cl

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbgFlagInstruction dbgFlags = 1 << iota
	DbgFlagGoSSA

	DbgFlagAll = DbgFlagInstruction | DbgFlagGoSSA
)
View Source
const (
	PkgNormal = iota
	PkgLLGo
	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 PkgKindOf added in v0.4.0

func PkgKindOf(pkg *types.Package) (int, string)

PkgKindOf returns the kind of a package.

func SetDebug

func SetDebug(dbgFlags dbgFlags)

SetDebug sets debug flags.

Types

This section is empty.

Directories

Path Synopsis
_testdata
fncall command
importpkg command
method command
print command
printf command
printval command
ptrmthd command
uint command
untyped command
vargs command
varinit command
_testlibc
argv command
sqlite command
_testrt
alloca command
allocstr command
any command
builtin command
callback command
cast command
closure command
concat command
cstr command
cvar command
fprintf command
gblarray command
gotypes command
hello command
index command
intgen command
linkname command
map command
panic command
qsort command
result command
strlen command
struct command
sum command
typalias command
unreachable command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL