llgo/ssa: phi refactor

This commit is contained in:
xushiwei
2024-05-26 14:58:26 +08:00
parent 91c9b4e168
commit 5cf6a30027
9 changed files with 197 additions and 74 deletions

16
cl/_testgo/abiname/in.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import "github.com/goplus/llgo/internal/abi"
// NewPkgName creates a package name.
func NewPkgName(pkgPath string) (ret abi.Name) {
if len(pkgPath) > 0 {
ret = abi.NewName(pkgPath, "", false, false)
}
return
}
func main() {
n := NewPkgName("pkgPath")
println(n.Name(), n.Tag(), n.IsExported(), n.IsEmbedded(), n.IsBlank())
}