Documentation ¶
Index ¶
- Constants
- func NewPackage(prog llssa.Program, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, err error)
- func NewPackageEx(prog llssa.Program, pkg, alt *ssa.Package, files []*ast.File) (ret llssa.Package, err error)
- func PkgKindOf(pkg *types.Package) (int, string)
- func SetDebug(dbgFlags dbgFlags)
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 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 ¶ added in v0.8.8
func NewPackageEx(prog llssa.Program, pkg, alt *ssa.Package, files []*ast.File) (ret llssa.Package, err error)
NewPackageEx compiles a Go package (pkg) to LLVM IR package. The Go package may have an alternative package (alt). The pkg and alt have the same (Pkg *types.Package).
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
_testdata
|
|
_testdefer
|
|
_testgo
|
|
_testlibc
|
|
_testlibgo
|
|
_testpy
|
|
_testrt
|
|
internal
|
|
Click to show internal directories.
Click to hide internal directories.