Documentation ¶
Index ¶
Constants ¶
View Source
const ( AIK_Direct = abiArgInfo(iota) AIK_Indirect )
View Source
const AttributeCommentPrefix = "#llgo "
View Source
const PNaClTriple = "armv7-none-linux-gnueabi"
PNaClTriple is the LLVM target triple that should be used to compile modules to be compatible with PNaCl (Portable Native Client).
Variables ¶
This section is empty.
Functions ¶
func NewLLVMTypeMap ¶
func NewLLVMTypeMap(ctx llvm.Context, target llvm.TargetData) *llvmTypeMap
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func NewCompiler(opts CompilerOptions) (*Compiler, error)
type CompilerOptions ¶
type CompilerOptions struct { // TargetTriple is the LLVM triple for the target. TargetTriple string // GenerateDebug decides whether debug data is // generated in the output module. GenerateDebug bool // DebugPrefixMaps is a list of mappings from source prefixes to // replacement prefixes, to be applied in debug info. DebugPrefixMaps []debug.PrefixMap // Logger is a logger used for tracing compilation. Logger *log.Logger // DumpSSA is a debugging option that dumps each SSA function // to stderr before generating code for it. DumpSSA bool // GccgoPath is the path to the gccgo binary whose libgo we read import // data from. If blank, the caller is expected to supply an import // path in ImportPaths. GccgoPath string // ImportPaths is the list of additional import paths ImportPaths []string // SanitizerAttribute is an attribute to apply to functions to enable // dynamic instrumentation using a sanitizer. SanitizerAttribute llvm.Attribute }
type MethodResolver ¶
type Module ¶
type TypeMap ¶
type TypeMap struct { types.MethodSetCache // contains filtered or unexported fields }
func NewTypeMap ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.