Documentation
¶
Index ¶
- Constants
- func EnableDbgSyms(b bool)
- func EnableDebug(b bool)
- func EnableTrace(b bool)
- func NewPackage(prog llssa.Program, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, err error)
- func NewPackageEx(prog llssa.Program, patches Patches, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, externs []string, err error)
- func ParsePkgSyntax(prog llssa.Program, pkg *types.Package, files []*ast.File)
- func PkgKindOf(pkg *types.Package) (int, string)
- func SetDebug(dbgFlags dbgFlags)
- type Patch
- type Patches
Constants ¶
View Source
const ( DbgFlagInstruction dbgFlags = 1 << iota DbgFlagGoSSA DbgFlagAll = DbgFlagInstruction | DbgFlagGoSSA )
View Source
const ( PkgNormal = iota PkgLLGo PkgPyModule // py.<module> PkgNoInit // noinit: a package that don't need to be initialized PkgDeclOnly // decl: a package that only have declarations PkgLinkIR // link llvm ir (.ll) PkgLinkExtern // link external object (.a/.so/.dll/.dylib/etc.) )
View Source
const (
RuntimeInit = llssa.PkgRuntime + ".init"
)
Variables ¶
This section is empty.
Functions ¶
func EnableDbgSyms ¶
func EnableDbgSyms(b bool)
func EnableDebug ¶
func EnableDebug(b bool)
func EnableTrace ¶
func EnableTrace(b bool)
func NewPackage ¶
func NewPackage(prog llssa.Program, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, err error)
NewPackage compiles a Go package to LLVM IR package.
func NewPackageEx ¶
func NewPackageEx(prog llssa.Program, patches Patches, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, externs []string, err error)
NewPackageEx compiles a Go package to LLVM IR package.
func ParsePkgSyntax ¶
ParsePkgSyntax parses AST of a package to check llgo:type in type declaration.
Types ¶
Directories
¶
Path | Synopsis |
---|---|
_testdata
|
|
debug
command
|
|
fncall
command
|
|
importpkg
command
|
|
method
command
|
|
print
command
|
|
printf
command
|
|
printval
command
|
|
ptrmthd
command
|
|
uint
command
|
|
untyped
command
|
|
utf8
command
|
|
vargs
command
|
|
varinit
command
|
|
_testdefer
|
|
loop
command
|
|
multiret
command
|
|
print
command
|
|
singleret
command
|
|
_testgo
|
|
allocinloop
command
|
|
cgobasic
command
|
|
cgocfiles
command
|
|
cgodefer
command
|
|
cgofull
command
|
|
cgomacro
command
|
|
cgopython
command
|
|
chan
command
|
|
closure
command
|
|
closure2
command
|
|
constconv
command
|
|
defer1
command
|
|
defer2
command
|
|
defer3
command
|
|
defer4
command
|
|
defer5
command
|
|
equal
command
|
|
errors
command
|
|
goexit
command
|
|
goroutine
command
|
|
ifaceconv
command
|
|
ifaceprom
command
|
|
indexerr
command
|
|
interface
command
|
|
invoke
command
|
|
makeslice
command
|
|
multiret
command
|
|
print
command
|
|
reader
command
|
|
reflect
command
|
|
reflectconv
command
|
|
select
command
|
|
selects
command
|
|
sigsegv
command
|
|
strucintf
command
|
|
struczero
command
|
|
syncmap
command
|
|
tpindex
command
|
|
tpinst
command
|
|
tpnamed
command
|
|
tprecur
command
|
|
tprecurfn
command
|
|
tptypes
command
|
|
_testlibc
|
|
allocacstrs
command
|
|
argv
command
|
|
atomic
command
|
|
complex
command
|
|
defer
command
|
|
demangle
command
|
|
once
command
|
|
setjmp
command
|
|
sqlite
command
|
|
_testlibgo
|
|
atomic
command
|
|
bytes
command
|
|
complex
command
|
|
errors
command
|
|
math
command
|
|
mathbits
command
|
|
nettextproto
command
|
|
os
command
|
|
strings
command
|
|
sync
command
|
|
waitgroup
command
|
|
_testpy
|
|
callpy
command
|
|
gcd
command
|
|
matrix
command
|
|
max
command
|
|
pi
command
|
|
pow
command
|
|
_testrt
|
|
abinamed
command
|
|
alloca
command
|
|
allocstr
command
|
|
any
command
|
|
builtin
command
|
|
callback
command
|
|
cast
command
|
|
closure
command
|
|
closureconv
command
|
|
closureiface
command
|
|
complex
command
|
|
concat
command
|
|
constuptr
command
|
|
cstr
command
|
|
cvar
command
|
|
eface
command
|
|
float2any
command
|
|
fprintf
command
|
|
freevars
command
|
|
funcaddr
command
|
|
funcdecl
command
|
|
gblarray
command
|
|
gotypes
command
|
|
hello
command
|
|
index
command
|
|
intgen
command
|
|
len
command
|
|
linkname
command
|
|
makemap
command
|
|
map
command
|
|
mask
command
|
|
named
command
|
|
namedslice
command
|
|
nextblock
command
|
|
panic
command
|
|
qsort
command
|
|
qsortfn
command
|
|
result
command
|
|
slice2array
command
|
|
slicelen
command
|
|
strlen
command
|
|
struct
command
|
|
structsize
command
|
|
sum
command
|
|
tpabi
command
|
|
tpfunc
command
|
|
tpmap
command
|
|
tpmethod
command
|
|
typalias
command
|
|
typed
command
|
|
unreachable
command
|
|
unsafe
command
|
|
Click to show internal directories.
Click to hide internal directories.