Skip to content

Commit

Permalink
cl: separate compiler and libs
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Jan 4, 2025
1 parent 5131881 commit ddd5c26
Show file tree
Hide file tree
Showing 415 changed files with 118 additions and 136 deletions.
File renamed without changes.
File renamed without changes.
35 changes: 0 additions & 35 deletions c/clang/_demo/inclusion/inclusion.go

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os"
"strings"

"github.com/goplus/llgo/internal/llgen"
"github.com/goplus/compiler/internal/llgen"
"github.com/goplus/mod"
)

Expand Down
2 changes: 1 addition & 1 deletion chore/llgen/llgen.go → compiler/chore/llgen/llgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"os"

"github.com/goplus/llgo/internal/llgen"
"github.com/goplus/compiler/internal/llgen"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions chore/llpyg/llpyg.go → compiler/chore/llpyg/llpyg.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"os/exec"
"strings"

"github.com/goplus/compiler/chore/llpyg/pysig"
"github.com/goplus/compiler/ssa"
"github.com/goplus/gogen"
"github.com/goplus/llgo/chore/llpyg/pysig"
"github.com/goplus/llgo/ssa"
)

type symbol struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion chore/nmdump/nmdump.go → compiler/chore/nmdump/nmdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"log"
"os"

"github.com/goplus/llgo/xtool/env/llvm"
"github.com/goplus/compiler/internal/env/llvm"
nmtool "github.com/goplus/llgo/xtool/nm"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"os"

"github.com/goplus/llgo/xtool/env/llvm"
"github.com/goplus/compiler/internal/env/llvm"
"github.com/goplus/llgo/xtool/nm/nmindex"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/goplus/llgo/cl/internal/stdio"
import "github.com/goplus/compiler/cl/internal/stdio"

var hello = [...]int8{'H', 'e', 'l', 'l', 'o', '\n', 0}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ import (
"fmt"
"unsafe"

"github.com/goplus/llgo/cl/_testgo/cgofull/pymod1"
"github.com/goplus/llgo/cl/_testgo/cgofull/pymod2"
"github.com/goplus/compiler/cl/_testgo/cgofull/pymod1"
"github.com/goplus/compiler/cl/_testgo/cgofull/pymod2"
)

//export go_callback_not_use_in_go
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/goplus/llgo/cl/internal/foo"
"github.com/goplus/compiler/cl/internal/foo"
)

type Game1 struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/goplus/llgo/cl/internal/foo"
import "github.com/goplus/compiler/cl/internal/foo"

func Foo() any {
return struct{ v int }{1}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/goplus/llgo/cl/internal/foo"
import "github.com/goplus/compiler/cl/internal/foo"

type bar struct {
pb *byte
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"unsafe"

"github.com/goplus/llgo/internal/abi"
"github.com/goplus/llgo/abi"
)

type T struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cl/_testrt/eface/in.go → compiler/cl/_testrt/eface/in.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"unsafe"

"github.com/goplus/llgo/internal/abi"
"github.com/goplus/llgo/abi"
)

type T string
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/goplus/llgo/abi"
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/internal/abi"
)

func Basic(kind abi.Kind) *abi.Type {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cl/_testrt/hello/in.go → compiler/cl/_testrt/hello/in.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/goplus/llgo/cl/internal/libc"
import "github.com/goplus/compiler/cl/internal/libc"

var format = [...]int8{'H', 'e', 'l', 'l', 'o', ' ', '%', 'd', '\n', 0}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ package main
import (
_ "unsafe"

_ "github.com/goplus/compiler/cl/internal/linktarget"
"github.com/goplus/llgo/c"
_ "github.com/goplus/llgo/cl/internal/linktarget"
)

//go:linkname print github.com/goplus/llgo/cl/internal/linktarget.F
//go:linkname print github.com/goplus/compiler/cl/internal/linktarget.F
func print(a, b, c, d *c.Char)

type m struct {
s string
}

//go:linkname setInfo github.com/goplus/llgo/cl/internal/linktarget.(*m).setInfo
//go:linkname setInfo github.com/goplus/compiler/cl/internal/linktarget.(*m).setInfo
func setInfo(*m, string)

//go:linkname info github.com/goplus/llgo/cl/internal/linktarget.m.info
//go:linkname info github.com/goplus/compiler/cl/internal/linktarget.m.info
func info(m) string

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"unsafe"

q "github.com/goplus/compiler/cl/internal/qsort"
"github.com/goplus/llgo/c"
q "github.com/goplus/llgo/cl/internal/qsort"
)

//llgo:type C
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ddd5c26

Please sign in to comment.