Versions in this module Expand all Collapse all v0 v0.0.1 Oct 22, 2019 Changes in this version + const ConstantAsMetadataMetadataKind + const DIBasicTypeMetadataKind + const DICommonBlockMetadataKind + const DICompileUnitMetadataKind + const DICompositeTypeMetadataKind + const DIDerivedTypeMetadataKind + const DIEnumeratorMetadataKind + const DIExpressionMetadataKind + const DIFileMetadataKind + const DIGlobalVariableExpressionMetadataKind + const DIGlobalVariableMetadataKind + const DIImportedEntityMetadataKind + const DILabelMetadataKind + const DILexicalBlockFileMetadataKind + const DILexicalBlockMetadataKind + const DILocalVariableMetadataKind + const DILocationMetadataKind + const DIMacroFileMetadataKind + const DIMacroMetadataKind + const DIModuleMetadataKind + const DINamespaceMetadataKind + const DIObjCPropertyMetadataKind + const DISubprogramMetadataKind + const DISubrangeMetadataKind + const DISubroutineTypeMetadataKind + const DITemplateTypeParameterMetadataKind + const DITemplateValueParameterMetadataKind + const DistinctMDOperandPlaceholderMetadataKind + const FlagAppleBlock + const FlagArgumentNotModified + const FlagArtificial + const FlagExplicit + const FlagFwdDecl + const FlagIndirectVariable + const FlagObjcClassComplete + const FlagObjectPointer + const FlagPrivate + const FlagProtected + const FlagPrototyped + const FlagReserved + const FlagStaticMember + const FlagVector + const FlagVirtual + const GenericDINodeMetadataKind + const LocalAsMetadataMetadataKind + const MDStringMetadataKind + const MDTupleMetadataKind + const Version + func AttributeKindID(name string) (id uint) + func DefaultTargetTriple() (triple string) + func InitializeAllAsmParsers() + func InitializeAllAsmPrinters() + func InitializeAllTargetInfos() + func InitializeAllTargetMCs() + func InitializeAllTargets() + func InitializeNativeAsmPrinter() error + func InitializeNativeTarget() error + func LinkInInterpreter() + func LinkInMCJIT() + func LinkModules(Dest, Src Module) error + func LoadLibraryPermanently(lib string) error + func MDKindID(name string) (id int) + func ParseCommandLineOptions(args []string, overview string) + func VerifyFunction(f Value, a VerifierFailureAction) error + func VerifyModule(m Module, a VerifierFailureAction) error + func ViewFunctionCFG(f Value) + func ViewFunctionCFGOnly(f Value) + func WriteBitcodeToFile(m Module, file *os.File) error + type AtomicOrdering C.LLVMAtomicOrdering + const AtomicOrderingAcquire + const AtomicOrderingAcquireRelease + const AtomicOrderingMonotonic + const AtomicOrderingNotAtomic + const AtomicOrderingRelease + const AtomicOrderingSequentiallyConsistent + const AtomicOrderingUnordered + type AtomicRMWBinOp C.LLVMAtomicRMWBinOp + const AtomicRMWBinOpAdd + const AtomicRMWBinOpAnd + const AtomicRMWBinOpMax + const AtomicRMWBinOpMin + const AtomicRMWBinOpNand + const AtomicRMWBinOpOr + const AtomicRMWBinOpSub + const AtomicRMWBinOpUMax + const AtomicRMWBinOpUMin + const AtomicRMWBinOpXchg + const AtomicRMWBinOpXor + type Attribute struct + C C.LLVMAttributeRef + func (a Attribute) GetEnumKind() (id int) + func (a Attribute) GetEnumValue() (val uint64) + func (a Attribute) GetStringKind() string + func (a Attribute) GetStringValue() string + func (a Attribute) IsEnum() bool + func (a Attribute) IsString() bool + func (c Attribute) IsNil() bool + type BasicBlock struct + C C.LLVMBasicBlockRef + func AddBasicBlock(f Value, name string) (bb BasicBlock) + func InsertBasicBlock(ref BasicBlock, name string) (bb BasicBlock) + func NextBasicBlock(bb BasicBlock) (rbb BasicBlock) + func PrevBasicBlock(bb BasicBlock) (rbb BasicBlock) + func (bb BasicBlock) AsValue() (v Value) + func (bb BasicBlock) EraseFromParent() + func (bb BasicBlock) FirstInstruction() (v Value) + func (bb BasicBlock) LastInstruction() (v Value) + func (bb BasicBlock) MoveAfter(pos BasicBlock) + func (bb BasicBlock) MoveBefore(pos BasicBlock) + func (bb BasicBlock) Parent() (v Value) + func (c BasicBlock) IsNil() bool + type Builder struct + C C.LLVMBuilderRef + func NewBuilder() (b Builder) + func (b Builder) ClearInsertionPoint() + func (b Builder) CreateAShr(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateAdd(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateAggregateRet(vs []Value) (rv Value) + func (b Builder) CreateAlloca(t Type, name string) (v Value) + func (b Builder) CreateAnd(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateArrayAlloca(t Type, val Value, name string) (v Value) + func (b Builder) CreateArrayMalloc(t Type, val Value, name string) (v Value) + func (b Builder) CreateAtomicCmpXchg(ptr, cmp, newVal Value, successOrdering, failureOrdering AtomicOrdering, ...) (v Value) + func (b Builder) CreateAtomicRMW(op AtomicRMWBinOp, ptr, val Value, ordering AtomicOrdering, singleThread bool) (v Value) + func (b Builder) CreateBinOp(op Opcode, lhs, rhs Value, name string) (v Value) + func (b Builder) CreateBitCast(val Value, t Type, name string) (v Value) + func (b Builder) CreateBr(bb BasicBlock) (rv Value) + func (b Builder) CreateCall(fn Value, args []Value, name string) (v Value) + func (b Builder) CreateCast(val Value, op Opcode, t Type, name string) (v Value) + func (b Builder) CreateCondBr(ifv Value, thenb, elseb BasicBlock) (rv Value) + func (b Builder) CreateExactSDiv(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateExtractElement(vec, i Value, name string) (v Value) + func (b Builder) CreateExtractValue(agg Value, i int, name string) (v Value) + func (b Builder) CreateFAdd(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateFCmp(pred FloatPredicate, lhs, rhs Value, name string) (v Value) + func (b Builder) CreateFDiv(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateFMul(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateFNeg(v Value, name string) (rv Value) + func (b Builder) CreateFPCast(val Value, t Type, name string) (v Value) + func (b Builder) CreateFPExt(val Value, t Type, name string) (v Value) + func (b Builder) CreateFPToSI(val Value, t Type, name string) (v Value) + func (b Builder) CreateFPToUI(val Value, t Type, name string) (v Value) + func (b Builder) CreateFPTrunc(val Value, t Type, name string) (v Value) + func (b Builder) CreateFRem(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateFSub(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateFree(p Value) (v Value) + func (b Builder) CreateGEP(p Value, indices []Value, name string) (v Value) + func (b Builder) CreateGlobalString(str, name string) (v Value) + func (b Builder) CreateGlobalStringPtr(str, name string) (v Value) + func (b Builder) CreateICmp(pred IntPredicate, lhs, rhs Value, name string) (v Value) + func (b Builder) CreateInBoundsGEP(p Value, indices []Value, name string) (v Value) + func (b Builder) CreateIndirectBr(addr Value, numDests int) (rv Value) + func (b Builder) CreateInsertElement(vec, elt, i Value, name string) (v Value) + func (b Builder) CreateInsertValue(agg, elt Value, i int, name string) (v Value) + func (b Builder) CreateIntCast(val Value, t Type, name string) (v Value) + func (b Builder) CreateIntToPtr(val Value, t Type, name string) (v Value) + func (b Builder) CreateInvoke(fn Value, args []Value, then, catch BasicBlock, name string) (rv Value) + func (b Builder) CreateIsNotNull(val Value, name string) (v Value) + func (b Builder) CreateIsNull(val Value, name string) (v Value) + func (b Builder) CreateLShr(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateLandingPad(t Type, nclauses int, name string) (l Value) + func (b Builder) CreateLoad(p Value, name string) (v Value) + func (b Builder) CreateMalloc(t Type, name string) (v Value) + func (b Builder) CreateMul(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateNSWAdd(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateNSWMul(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateNSWNeg(v Value, name string) (rv Value) + func (b Builder) CreateNSWSub(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateNUWAdd(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateNUWMul(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateNUWNeg(v Value, name string) (rv Value) + func (b Builder) CreateNUWSub(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateNeg(v Value, name string) (rv Value) + func (b Builder) CreateNot(v Value, name string) (rv Value) + func (b Builder) CreateOr(lhs, rhs Value, name string) (v Value) + func (b Builder) CreatePHI(t Type, name string) (v Value) + func (b Builder) CreatePointerCast(val Value, t Type, name string) (v Value) + func (b Builder) CreatePtrDiff(lhs, rhs Value, name string) (v Value) + func (b Builder) CreatePtrToInt(val Value, t Type, name string) (v Value) + func (b Builder) CreateResume(ex Value) (v Value) + func (b Builder) CreateRet(v Value) (rv Value) + func (b Builder) CreateRetVoid() (rv Value) + func (b Builder) CreateSDiv(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateSExt(val Value, t Type, name string) (v Value) + func (b Builder) CreateSExtOrBitCast(val Value, t Type, name string) (v Value) + func (b Builder) CreateSIToFP(val Value, t Type, name string) (v Value) + func (b Builder) CreateSRem(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateSelect(ifv, thenv, elsev Value, name string) (v Value) + func (b Builder) CreateShl(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateShuffleVector(v1, v2, mask Value, name string) (v Value) + func (b Builder) CreateStore(val Value, p Value) (v Value) + func (b Builder) CreateStructGEP(p Value, i int, name string) (v Value) + func (b Builder) CreateSub(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateSwitch(v Value, elseb BasicBlock, numCases int) (rv Value) + func (b Builder) CreateTrunc(val Value, t Type, name string) (v Value) + func (b Builder) CreateTruncOrBitCast(val Value, t Type, name string) (v Value) + func (b Builder) CreateUDiv(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateUIToFP(val Value, t Type, name string) (v Value) + func (b Builder) CreateURem(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateUnreachable() (rv Value) + func (b Builder) CreateVAArg(list Value, t Type, name string) (v Value) + func (b Builder) CreateXor(lhs, rhs Value, name string) (v Value) + func (b Builder) CreateZExt(val Value, t Type, name string) (v Value) + func (b Builder) CreateZExtOrBitCast(val Value, t Type, name string) (v Value) + func (b Builder) Dispose() + func (b Builder) GetCurrentDebugLocation() (loc DebugLoc) + func (b Builder) GetInsertBlock() (bb BasicBlock) + func (b Builder) Insert(instr Value) + func (b Builder) InsertDeclare(module Module, storage Value, md Value) Value + func (b Builder) InsertWithName(instr Value, name string) + func (b Builder) SetCurrentDebugLocation(line, col uint, scope, inlinedAt Metadata) + func (b Builder) SetInsertPoint(block BasicBlock, instr Value) + func (b Builder) SetInsertPointAtEnd(block BasicBlock) + func (b Builder) SetInsertPointBefore(instr Value) + func (b Builder) SetInstDebugLocation(v Value) + func (c Builder) IsNil() bool + type ByteOrdering C.enum_LLVMByteOrdering + const BigEndian + const LittleEndian + type CallConv C.LLVMCallConv + const CCallConv + const ColdCallConv + const FastCallConv + const X86FastcallCallConv + const X86StdcallCallConv + type CodeGenFileType C.LLVMCodeGenFileType + const AssemblyFile + const ObjectFile + type CodeGenOptLevel C.LLVMCodeGenOptLevel + const CodeGenLevelAggressive + const CodeGenLevelDefault + const CodeGenLevelLess + const CodeGenLevelNone + type CodeModel C.LLVMCodeModel + const CodeModelDefault + const CodeModelJITDefault + const CodeModelKernel + const CodeModelLarge + const CodeModelMedium + const CodeModelSmall + const CodeModelTiny + type Comdat struct + C C.LLVMComdatRef + func (c Comdat) SelectionKind() ComdatSelectionKind + func (c Comdat) SetSelectionKind(k ComdatSelectionKind) + type ComdatSelectionKind C.LLVMComdatSelectionKind + const AnyComdatSelectionKind + const ExactMatchComdatSelectionKind + const LargestComdatSelectionKind + const NoDuplicatesComdatSelectionKind + const SameSizeComdatSelectionKind + type Context struct + C C.LLVMContextRef + func GlobalContext() Context + func NewContext() Context + func (c Context) AddBasicBlock(f Value, name string) (bb BasicBlock) + func (c Context) ConstString(str string, addnull bool) (v Value) + func (c Context) ConstStruct(constVals []Value, packed bool) (v Value) + func (c Context) CreateEnumAttribute(kind uint, val uint64) (a Attribute) + func (c Context) CreateStringAttribute(kind string, val string) (a Attribute) + func (c Context) Dispose() + func (c Context) DoubleType() (t Type) + func (c Context) FP128Type() (t Type) + func (c Context) FloatType() (t Type) + func (c Context) InsertBasicBlock(ref BasicBlock, name string) (bb BasicBlock) + func (c Context) Int16Type() (t Type) + func (c Context) Int1Type() (t Type) + func (c Context) Int32Type() (t Type) + func (c Context) Int64Type() (t Type) + func (c Context) Int8Type() (t Type) + func (c Context) IntType(numbits int) (t Type) + func (c Context) IsNil() bool + func (c Context) LabelType() (t Type) + func (c Context) MDKindID(name string) (id int) + func (c Context) MDNode(mds []Metadata) (md Metadata) + func (c Context) MDString(str string) (md Metadata) + func (c Context) NewBuilder() (b Builder) + func (c Context) NewModule(name string) (m Module) + func (c Context) PPCFP128Type() (t Type) + func (c Context) StructCreateNamed(name string) (t Type) + func (c Context) StructType(elementTypes []Type, packed bool) (t Type) + func (c Context) TemporaryMDNode(mds []Metadata) (md Metadata) + func (c Context) TokenType() (t Type) + func (c Context) VoidType() (t Type) + func (c Context) X86FP80Type() (t Type) + type DIArrayType struct + AlignInBits uint32 + ElementType Metadata + SizeInBits uint64 + Subscripts []DISubrange + type DIAutoVariable struct + AlignInBits uint32 + AlwaysPreserve bool + File Metadata + Flags int + Line int + Name string + Type Metadata + type DIBasicType struct + Encoding DwarfTypeEncoding + Name string + SizeInBits uint64 + type DIBuilder struct + func NewDIBuilder(m Module) *DIBuilder + func (d *DIBuilder) CreateArrayType(t DIArrayType) Metadata + func (d *DIBuilder) CreateAutoVariable(scope Metadata, v DIAutoVariable) Metadata + func (d *DIBuilder) CreateBasicType(t DIBasicType) Metadata + func (d *DIBuilder) CreateCompileUnit(cu DICompileUnit) Metadata + func (d *DIBuilder) CreateExpression(addr []int64) Metadata + func (d *DIBuilder) CreateFile(filename, dir string) Metadata + func (d *DIBuilder) CreateFunction(diScope Metadata, f DIFunction) Metadata + func (d *DIBuilder) CreateLexicalBlock(diScope Metadata, b DILexicalBlock) Metadata + func (d *DIBuilder) CreateLexicalBlockFile(diScope Metadata, diFile Metadata, discriminator int) Metadata + func (d *DIBuilder) CreateMemberType(scope Metadata, t DIMemberType) Metadata + func (d *DIBuilder) CreateParameterVariable(scope Metadata, v DIParameterVariable) Metadata + func (d *DIBuilder) CreatePointerType(t DIPointerType) Metadata + func (d *DIBuilder) CreateReplaceableCompositeType(scope Metadata, t DIReplaceableCompositeType) Metadata + func (d *DIBuilder) CreateStructType(scope Metadata, t DIStructType) Metadata + func (d *DIBuilder) CreateSubroutineType(t DISubroutineType) Metadata + func (d *DIBuilder) CreateTypedef(t DITypedef) Metadata + func (d *DIBuilder) Destroy() + func (d *DIBuilder) Finalize() + func (d *DIBuilder) InsertDeclareAtEnd(v Value, diVarInfo, expr Metadata, l DebugLoc, bb BasicBlock) Value + func (d *DIBuilder) InsertValueAtEnd(v Value, diVarInfo, expr Metadata, l DebugLoc, bb BasicBlock) Value + type DICompileUnit struct + Dir string + File string + Flags string + Language DwarfLang + Optimized bool + Producer string + RuntimeVersion int + type DIFunction struct + File Metadata + Flags int + IsDefinition bool + Line int + LinkageName string + LocalToUnit bool + Name string + Optimized bool + ScopeLine int + Type Metadata + type DILexicalBlock struct + Column int + File Metadata + Line int + type DIMemberType struct + AlignInBits uint32 + File Metadata + Flags int + Line int + Name string + OffsetInBits uint64 + SizeInBits uint64 + Type Metadata + type DIParameterVariable struct + AlwaysPreserve bool + ArgNo int + File Metadata + Flags int + Line int + Name string + Type Metadata + type DIPointerType struct + AddressSpace uint32 + AlignInBits uint32 + Name string + Pointee Metadata + SizeInBits uint64 + type DIReplaceableCompositeType struct + AlignInBits uint32 + File Metadata + Flags int + Line int + Name string + RuntimeLang int + SizeInBits uint64 + Tag dwarf.Tag + UniqueID string + type DIStructType struct + AlignInBits uint32 + DerivedFrom Metadata + Elements []Metadata + File Metadata + Flags int + Line int + Name string + SizeInBits uint64 + UniqueID string + VTableHolder Metadata + type DISubrange struct + Count int64 + Lo int64 + type DISubroutineType struct + File Metadata + Flags int + Parameters []Metadata + type DITypedef struct + Context Metadata + File Metadata + Line int + Name string + Type Metadata + type DebugLoc struct + Col uint + InlinedAt Metadata + Line uint + Scope Metadata + type DwarfLang uint32 + const DW_LANG_Go + type DwarfTag uint32 + const DW_TAG_arg_variable + const DW_TAG_auto_variable + const DW_TAG_base_type + const DW_TAG_compile_unit + const DW_TAG_file_type + const DW_TAG_lexical_block + const DW_TAG_pointer_type + const DW_TAG_structure_type + const DW_TAG_subprogram + const DW_TAG_subroutine_type + const DW_TAG_variable + type DwarfTypeEncoding uint32 + const DW_ATE_UTF + const DW_ATE_address + const DW_ATE_boolean + const DW_ATE_complex_float + const DW_ATE_decimal_float + const DW_ATE_edited + const DW_ATE_float + const DW_ATE_hi_user + const DW_ATE_imaginary_float + const DW_ATE_lo_user + const DW_ATE_numeric_string + const DW_ATE_packed_decimal + const DW_ATE_signed + const DW_ATE_signed_char + const DW_ATE_signed_fixed + const DW_ATE_unsigned + const DW_ATE_unsigned_char + const DW_ATE_unsigned_fixed + type ExecutionEngine struct + C C.LLVMExecutionEngineRef + func NewExecutionEngine(m Module) (ee ExecutionEngine, err error) + func NewInterpreter(m Module) (ee ExecutionEngine, err error) + func NewMCJITCompiler(m Module, options MCJITCompilerOptions) (ee ExecutionEngine, err error) + func (ee ExecutionEngine) AddGlobalMapping(global Value, addr unsafe.Pointer) + func (ee ExecutionEngine) AddModule(m Module) + func (ee ExecutionEngine) Dispose() + func (ee ExecutionEngine) FindFunction(name string) (f Value) + func (ee ExecutionEngine) FreeMachineCodeForFunction(f Value) + func (ee ExecutionEngine) PointerToGlobal(global Value) unsafe.Pointer + func (ee ExecutionEngine) RecompileAndRelinkFunction(f Value) unsafe.Pointer + func (ee ExecutionEngine) RemoveModule(m Module) + func (ee ExecutionEngine) RunFunction(f Value, args []GenericValue) (g GenericValue) + func (ee ExecutionEngine) RunStaticConstructors() + func (ee ExecutionEngine) RunStaticDestructors() + func (ee ExecutionEngine) TargetData() (td TargetData) + type FloatPredicate C.LLVMRealPredicate + const FloatOEQ + const FloatOGE + const FloatOGT + const FloatOLE + const FloatOLT + const FloatONE + const FloatORD + const FloatPredicateFalse + const FloatPredicateTrue + const FloatUEQ + const FloatUGE + const FloatUGT + const FloatULE + const FloatULT + const FloatUNE + const FloatUNO + type GenericValue struct + C C.LLVMGenericValueRef + func NewGenericValueFromFloat(t Type, n float64) (g GenericValue) + func NewGenericValueFromInt(t Type, n uint64, signed bool) (g GenericValue) + func NewGenericValueFromPointer(p unsafe.Pointer) (g GenericValue) + func (g GenericValue) Dispose() + func (g GenericValue) Float(t Type) float64 + func (g GenericValue) Int(signed bool) uint64 + func (g GenericValue) IntWidth() int + func (g GenericValue) Pointer() unsafe.Pointer + type InlineAsmDialect C.LLVMInlineAsmDialect + const InlineAsmDialectATT + const InlineAsmDialectIntel + type IntPredicate C.LLVMIntPredicate + const IntEQ + const IntNE + const IntSGE + const IntSGT + const IntSLE + const IntSLT + const IntUGE + const IntUGT + const IntULE + const IntULT + type LandingPadClause C.LLVMLandingPadClauseTy + const LandingPadCatch + const LandingPadFilter + type Linkage C.LLVMLinkage + const AppendingLinkage + const AvailableExternallyLinkage + const CommonLinkage + const ExternalLinkage + const ExternalWeakLinkage + const InternalLinkage + const LinkOnceAnyLinkage + const LinkOnceODRLinkage + const PrivateLinkage + const WeakAnyLinkage + const WeakODRLinkage + type MCJITCompilerOptions struct + C C.struct_LLVMMCJITCompilerOptions + func NewMCJITCompilerOptions() MCJITCompilerOptions + func (options *MCJITCompilerOptions) SetMCJITCodeModel(CodeModel CodeModel) + func (options *MCJITCompilerOptions) SetMCJITEnableFastISel(fastisel bool) + func (options *MCJITCompilerOptions) SetMCJITNoFramePointerElim(nfp bool) + func (options *MCJITCompilerOptions) SetMCJITOptimizationLevel(level uint) + type MemoryBuffer struct + C C.LLVMMemoryBufferRef + func NewMemoryBufferFromFile(path string) (b MemoryBuffer, err error) + func NewMemoryBufferFromStdin() (b MemoryBuffer, err error) + func WriteBitcodeToMemoryBuffer(m Module) MemoryBuffer + func (b MemoryBuffer) Bytes() []byte + func (b MemoryBuffer) Dispose() + func (c MemoryBuffer) IsNil() bool + type Metadata struct + C C.LLVMMetadataRef + func (c Metadata) IsNil() bool + func (md Metadata) FileDirectory() string + func (md Metadata) FileFilename() string + func (md Metadata) FileSource() string + func (md Metadata) Kind() MetadataKind + func (md Metadata) LocationColumn() uint + func (md Metadata) LocationInlinedAt() Metadata + func (md Metadata) LocationLine() uint + func (md Metadata) LocationScope() Metadata + func (md Metadata) ReplaceAllUsesWith(new Metadata) + func (md Metadata) ScopeFile() Metadata + type MetadataKind C.LLVMMetadataKind + type Module struct + C C.LLVMModuleRef + func NewModule(name string) (m Module) + func ParseBitcodeFile(name string) (Module, error) + func (c Module) IsNil() bool + func (m Module) AddNamedMetadataOperand(name string, operand Metadata) + func (m Module) Comdat(name string) (c Comdat) + func (m Module) Context() (c Context) + func (m Module) DataLayout() string + func (m Module) Dispose() + func (m Module) Dump() + func (m Module) FirstFunction() (v Value) + func (m Module) FirstGlobal() (v Value) + func (m Module) GetTypeByName(name string) (t Type) + func (m Module) LastFunction() (v Value) + func (m Module) LastGlobal() (v Value) + func (m Module) NamedFunction(name string) (v Value) + func (m Module) NamedGlobal(name string) (v Value) + func (m Module) SetDataLayout(layout string) + func (m Module) SetInlineAsm(asm string) + func (m Module) SetTarget(target string) + func (m Module) String() string + func (m Module) Target() string + type ModuleProvider struct + C C.LLVMModuleProviderRef + func NewModuleProviderForModule(m Module) (mp ModuleProvider) + func (c ModuleProvider) IsNil() bool + func (mp ModuleProvider) Dispose() + type Opcode C.LLVMOpcode + const AShr + const Add + const Alloca + const And + const BitCast + const Br + const Call + const ExtractElement + const ExtractValue + const FAdd + const FCmp + const FDiv + const FMul + const FPExt + const FPToSI + const FPToUI + const FPTrunc + const FRem + const FSub + const GetElementPtr + const ICmp + const IndirectBr + const InsertElement + const InsertValue + const IntToPtr + const Invoke + const LShr + const Load + const Mul + const Or + const PHI + const PtrToInt + const Ret + const SDiv + const SExt + const SIToFP + const SRem + const Select + const Shl + const ShuffleVector + const Store + const Sub + const Switch + const Trunc + const UDiv + const UIToFP + const URem + const Unreachable + const VAArg + const Xor + const ZExt + type PassManager struct + C C.LLVMPassManagerRef + func NewFunctionPassManagerForModule(m Module) (pm PassManager) + func NewPassManager() (pm PassManager) + func (c PassManager) IsNil() bool + func (pm PassManager) AddAddressSanitizerFunctionPass() + func (pm PassManager) AddAddressSanitizerModulePass() + func (pm PassManager) AddAggressiveDCEPass() + func (pm PassManager) AddArgumentPromotionPass() + func (pm PassManager) AddCFGSimplificationPass() + func (pm PassManager) AddConstantMergePass() + func (pm PassManager) AddConstantPropagationPass() + func (pm PassManager) AddCoroCleanupPass() + func (pm PassManager) AddCoroEarlyPass() + func (pm PassManager) AddCoroElidePass() + func (pm PassManager) AddCoroSplitPass() + func (pm PassManager) AddDataFlowSanitizerPass(abilist []string) + func (pm PassManager) AddDeadArgEliminationPass() + func (pm PassManager) AddDeadStoreEliminationPass() + func (pm PassManager) AddDemoteMemoryToRegisterPass() + func (pm PassManager) AddFunctionAttrsPass() + func (pm PassManager) AddFunctionInliningPass() + func (pm PassManager) AddGVNPass() + func (pm PassManager) AddGlobalDCEPass() + func (pm PassManager) AddGlobalOptimizerPass() + func (pm PassManager) AddIPConstantPropagationPass() + func (pm PassManager) AddIPSCCPPass() + func (pm PassManager) AddIndVarSimplifyPass() + func (pm PassManager) AddInstructionCombiningPass() + func (pm PassManager) AddInternalizePass(allButMain bool) + func (pm PassManager) AddJumpThreadingPass() + func (pm PassManager) AddLICMPass() + func (pm PassManager) AddLoopDeletionPass() + func (pm PassManager) AddLoopRotatePass() + func (pm PassManager) AddLoopUnrollPass() + func (pm PassManager) AddLoopUnswitchPass() + func (pm PassManager) AddMemCpyOptPass() + func (pm PassManager) AddMemorySanitizerLegacyPassPass() + func (pm PassManager) AddPromoteMemoryToRegisterPass() + func (pm PassManager) AddPruneEHPass() + func (pm PassManager) AddReassociatePass() + func (pm PassManager) AddSCCPPass() + func (pm PassManager) AddScalarReplAggregatesPass() + func (pm PassManager) AddScalarReplAggregatesPassWithThreshold(threshold int) + func (pm PassManager) AddSimplifyLibCallsPass() + func (pm PassManager) AddStripDeadPrototypesPass() + func (pm PassManager) AddTailCallEliminationPass() + func (pm PassManager) AddThreadSanitizerPass() + func (pm PassManager) AddVerifierPass() + func (pm PassManager) Dispose() + func (pm PassManager) FinalizeFunc() bool + func (pm PassManager) InitializeFunc() bool + func (pm PassManager) Run(m Module) bool + func (pm PassManager) RunFunc(f Value) bool + type PassManagerBuilder struct + C C.LLVMPassManagerBuilderRef + func NewPassManagerBuilder() (pmb PassManagerBuilder) + func (pmb PassManagerBuilder) Dispose() + func (pmb PassManagerBuilder) Populate(pm PassManager) + func (pmb PassManagerBuilder) PopulateFunc(pm PassManager) + func (pmb PassManagerBuilder) PopulateLTOPassManager(pm PassManager, internalize bool, runInliner bool) + func (pmb PassManagerBuilder) SetDisableSimplifyLibCalls(val bool) + func (pmb PassManagerBuilder) SetDisableUnitAtATime(val bool) + func (pmb PassManagerBuilder) SetDisableUnrollLoops(val bool) + func (pmb PassManagerBuilder) SetOptLevel(level int) + func (pmb PassManagerBuilder) SetSizeLevel(level int) + func (pmb PassManagerBuilder) UseInlinerWithThreshold(threshold uint) + type RelocMode C.LLVMRelocMode + const RelocDefault + const RelocDynamicNoPic + const RelocPIC + const RelocStatic + type Target struct + C C.LLVMTargetRef + func FirstTarget() Target + func GetTargetFromTriple(triple string) (t Target, err error) + func (t Target) CreateTargetMachine(Triple string, CPU string, Features string, Level CodeGenOptLevel, ...) (tm TargetMachine) + func (t Target) Description() string + func (t Target) Name() string + func (t Target) NextTarget() Target + type TargetData struct + C C.LLVMTargetDataRef + func NewTargetData(rep string) (td TargetData) + func (td TargetData) ABITypeAlignment(t Type) int + func (td TargetData) ByteOrder() ByteOrdering + func (td TargetData) CallFrameTypeAlignment(t Type) int + func (td TargetData) Dispose() + func (td TargetData) ElementContainingOffset(t Type, offset uint64) int + func (td TargetData) ElementOffset(t Type, element int) uint64 + func (td TargetData) IntPtrType() (t Type) + func (td TargetData) PointerSize() int + func (td TargetData) PrefTypeAlignment(t Type) int + func (td TargetData) PreferredAlignment(g Value) int + func (td TargetData) String() (s string) + func (td TargetData) TypeAllocSize(t Type) uint64 + func (td TargetData) TypeSizeInBits(t Type) uint64 + func (td TargetData) TypeStoreSize(t Type) uint64 + type TargetMachine struct + C C.LLVMTargetMachineRef + func (tm TargetMachine) AddAnalysisPasses(pm PassManager) + func (tm TargetMachine) CreateTargetData() TargetData + func (tm TargetMachine) Dispose() + func (tm TargetMachine) EmitToMemoryBuffer(m Module, ft CodeGenFileType) (MemoryBuffer, error) + func (tm TargetMachine) Triple() string + type Type struct + C C.LLVMTypeRef + func ArrayType(elementType Type, elementCount int) (t Type) + func DoubleType() (t Type) + func FP128Type() (t Type) + func FloatType() (t Type) + func FunctionType(returnType Type, paramTypes []Type, isVarArg bool) (t Type) + func Int16Type() (t Type) + func Int1Type() (t Type) + func Int32Type() (t Type) + func Int64Type() (t Type) + func Int8Type() (t Type) + func IntType(numbits int) (t Type) + func LabelType() (t Type) + func PPCFP128Type() (t Type) + func PointerType(elementType Type, addressSpace int) (t Type) + func StructType(elementTypes []Type, packed bool) (t Type) + func VectorType(elementType Type, elementCount int) (t Type) + func VoidType() (t Type) + func X86FP80Type() (t Type) + func (c Type) IsNil() bool + func (t Type) ArrayLength() int + func (t Type) Context() (c Context) + func (t Type) ElementType() (rt Type) + func (t Type) IntTypeWidth() int + func (t Type) IsFunctionVarArg() bool + func (t Type) IsStructPacked() bool + func (t Type) ParamTypes() []Type + func (t Type) ParamTypesCount() int + func (t Type) PointerAddressSpace() int + func (t Type) ReturnType() (rt Type) + func (t Type) String() string + func (t Type) StructElementTypes() []Type + func (t Type) StructElementTypesCount() int + func (t Type) StructName() string + func (t Type) StructSetBody(elementTypes []Type, packed bool) + func (t Type) Subtypes() (ret []Type) + func (t Type) TypeKind() TypeKind + func (t Type) VectorSize() int + type TypeKind C.LLVMTypeKind + const ArrayTypeKind + const DoubleTypeKind + const FP128TypeKind + const FloatTypeKind + const FunctionTypeKind + const IntegerTypeKind + const LabelTypeKind + const MetadataTypeKind + const PPC_FP128TypeKind + const PointerTypeKind + const StructTypeKind + const TokenTypeKind + const VectorTypeKind + const VoidTypeKind + const X86_FP80TypeKind + func (t TypeKind) String() string + type Use struct + C C.LLVMUseRef + func (c Use) IsNil() bool + func (u Use) NextUse() (ru Use) + func (u Use) UsedValue() (v Value) + func (u Use) User() (v Value) + type Value struct + C C.LLVMValueRef + func AddAlias(m Module, t Type, aliasee Value, name string) (v Value) + func AddFunction(m Module, name string, ft Type) (v Value) + func AddGlobal(m Module, t Type, name string) (v Value) + func AddGlobalInAddressSpace(m Module, t Type, name string, addressSpace int) (v Value) + func AlignOf(t Type) (v Value) + func BlockAddress(f Value, bb BasicBlock) (v Value) + func ConstAShr(lhs, rhs Value) (v Value) + func ConstAdd(lhs, rhs Value) (v Value) + func ConstAllOnes(t Type) (v Value) + func ConstAnd(lhs, rhs Value) (v Value) + func ConstArray(t Type, constVals []Value) (v Value) + func ConstBitCast(v Value, t Type) (rv Value) + func ConstExactSDiv(lhs, rhs Value) (v Value) + func ConstExtractElement(vec, i Value) (rv Value) + func ConstExtractValue(agg Value, indices []uint32) (rv Value) + func ConstFAdd(lhs, rhs Value) (v Value) + func ConstFCmp(pred FloatPredicate, lhs, rhs Value) (v Value) + func ConstFDiv(lhs, rhs Value) (v Value) + func ConstFMul(lhs, rhs Value) (v Value) + func ConstFNeg(v Value) (rv Value) + func ConstFPCast(v Value, t Type) (rv Value) + func ConstFPExt(v Value, t Type) (rv Value) + func ConstFPToSI(v Value, t Type) (rv Value) + func ConstFPToUI(v Value, t Type) (rv Value) + func ConstFPTrunc(v Value, t Type) (rv Value) + func ConstFRem(lhs, rhs Value) (v Value) + func ConstFSub(lhs, rhs Value) (v Value) + func ConstFloat(t Type, n float64) (v Value) + func ConstFloatFromString(t Type, str string) (v Value) + func ConstGEP(v Value, indices []Value) (rv Value) + func ConstICmp(pred IntPredicate, lhs, rhs Value) (v Value) + func ConstInBoundsGEP(v Value, indices []Value) (rv Value) + func ConstInsertElement(vec, elem, i Value) (rv Value) + func ConstInsertValue(agg, val Value, indices []uint32) (rv Value) + func ConstInt(t Type, n uint64, signExtend bool) (v Value) + func ConstIntCast(v Value, t Type, signed bool) (rv Value) + func ConstIntFromString(t Type, str string, radix int) (v Value) + func ConstIntToPtr(v Value, t Type) (rv Value) + func ConstLShr(lhs, rhs Value) (v Value) + func ConstMul(lhs, rhs Value) (v Value) + func ConstNSWAdd(lhs, rhs Value) (v Value) + func ConstNSWMul(lhs, rhs Value) (v Value) + func ConstNSWNeg(v Value) (rv Value) + func ConstNSWSub(lhs, rhs Value) (v Value) + func ConstNUWAdd(lhs, rhs Value) (v Value) + func ConstNUWMul(lhs, rhs Value) (v Value) + func ConstNUWNeg(v Value) (rv Value) + func ConstNUWSub(lhs, rhs Value) (v Value) + func ConstNamedStruct(t Type, constVals []Value) (v Value) + func ConstNeg(v Value) (rv Value) + func ConstNot(v Value) (rv Value) + func ConstNull(t Type) (v Value) + func ConstOr(lhs, rhs Value) (v Value) + func ConstPointerCast(v Value, t Type) (rv Value) + func ConstPointerNull(t Type) (v Value) + func ConstPtrToInt(v Value, t Type) (rv Value) + func ConstSDiv(lhs, rhs Value) (v Value) + func ConstSExt(v Value, t Type) (rv Value) + func ConstSExtOrBitCast(v Value, t Type) (rv Value) + func ConstSIToFP(v Value, t Type) (rv Value) + func ConstSRem(lhs, rhs Value) (v Value) + func ConstSelect(cond, iftrue, iffalse Value) (rv Value) + func ConstShl(lhs, rhs Value) (v Value) + func ConstShuffleVector(veca, vecb, mask Value) (rv Value) + func ConstString(str string, addnull bool) (v Value) + func ConstStruct(constVals []Value, packed bool) (v Value) + func ConstSub(lhs, rhs Value) (v Value) + func ConstTrunc(v Value, t Type) (rv Value) + func ConstTruncOrBitCast(v Value, t Type) (rv Value) + func ConstUDiv(lhs, rhs Value) (v Value) + func ConstUIToFP(v Value, t Type) (rv Value) + func ConstURem(lhs, rhs Value) (v Value) + func ConstVector(scalarConstVals []Value, packed bool) (v Value) + func ConstXor(lhs, rhs Value) (v Value) + func ConstZExt(v Value, t Type) (rv Value) + func ConstZExtOrBitCast(v Value, t Type) (rv Value) + func InlineAsm(t Type, asmString, constraints string, hasSideEffects, isAlignStack bool, ...) (rv Value) + func NextFunction(v Value) (rv Value) + func NextGlobal(v Value) (rv Value) + func NextInstruction(v Value) (rv Value) + func NextParam(v Value) (rv Value) + func PrevFunction(v Value) (rv Value) + func PrevGlobal(v Value) (rv Value) + func PrevInstruction(v Value) (rv Value) + func PrevParam(v Value) (rv Value) + func SizeOf(t Type) (v Value) + func Undef(t Type) (v Value) + func (c Value) IsNil() bool + func (l Value) AddClause(v Value) + func (l Value) SetCleanup(cleanup bool) + func (v Value) AddAttributeAtIndex(i int, a Attribute) + func (v Value) AddCallSiteAttribute(i int, a Attribute) + func (v Value) AddCase(on Value, dest BasicBlock) + func (v Value) AddDest(dest BasicBlock) + func (v Value) AddFunctionAttr(a Attribute) + func (v Value) AddIncoming(vals []Value, blocks []BasicBlock) + func (v Value) AddTargetDependentFunctionAttr(attr, value string) + func (v Value) Alignment() int + func (v Value) AsBasicBlock() (bb BasicBlock) + func (v Value) BasicBlocks() []BasicBlock + func (v Value) BasicBlocksCount() int + func (v Value) CalledValue() (rv Value) + func (v Value) CmpXchgFailureOrdering() AtomicOrdering + func (v Value) CmpXchgSuccessOrdering() AtomicOrdering + func (v Value) Comdat() (c Comdat) + func (v Value) ConstantAsMetadata() (md Metadata) + func (v Value) Dump() + func (v Value) EntryBasicBlock() (bb BasicBlock) + func (v Value) EraseFromParentAsFunction() + func (v Value) EraseFromParentAsGlobal() + func (v Value) EraseFromParentAsInstruction() + func (v Value) FirstBasicBlock() (bb BasicBlock) + func (v Value) FirstParam() (rv Value) + func (v Value) FirstUse() (u Use) + func (v Value) FloatPredicate() FloatPredicate + func (v Value) FunctionCallConv() CallConv + func (v Value) GC() string + func (v Value) GetEnumAttributeAtIndex(i int, kind uint) (a Attribute) + func (v Value) GetEnumFunctionAttribute(kind uint) Attribute + func (v Value) GetStringAttributeAtIndex(i int, kind string) (a Attribute) + func (v Value) GlobalParent() (m Module) + func (v Value) HasMetadata() bool + func (v Value) IncomingBlock(i int) (bb BasicBlock) + func (v Value) IncomingCount() int + func (v Value) IncomingValue(i int) (rv Value) + func (v Value) Indices() []uint32 + func (v Value) Initializer() (rv Value) + func (v Value) InstructionCallConv() CallConv + func (v Value) InstructionDebugLoc() (md Metadata) + func (v Value) InstructionOpcode() Opcode + func (v Value) InstructionParent() (bb BasicBlock) + func (v Value) InstructionSetDebugLoc(md Metadata) + func (v Value) IntPredicate() IntPredicate + func (v Value) IntrinsicID() int + func (v Value) IsAAllocaInst() (rv Value) + func (v Value) IsAArgument() (rv Value) + func (v Value) IsABasicBlock() (rv Value) + func (v Value) IsABinaryOperator() (rv Value) + func (v Value) IsABitCastInst() (rv Value) + func (v Value) IsABranchInst() (rv Value) + func (v Value) IsACallInst() (rv Value) + func (v Value) IsACastInst() (rv Value) + func (v Value) IsACmpInst() (rv Value) + func (v Value) IsAConstant() (rv Value) + func (v Value) IsAConstantAggregateZero() (rv Value) + func (v Value) IsAConstantArray() (rv Value) + func (v Value) IsAConstantExpr() (rv Value) + func (v Value) IsAConstantFP() (rv Value) + func (v Value) IsAConstantInt() (rv Value) + func (v Value) IsAConstantPointerNull() (rv Value) + func (v Value) IsAConstantStruct() (rv Value) + func (v Value) IsAConstantVector() (rv Value) + func (v Value) IsADbgDeclareInst() (rv Value) + func (v Value) IsADbgInfoIntrinsic() (rv Value) + func (v Value) IsAExtractElementInst() (rv Value) + func (v Value) IsAExtractValueInst() (rv Value) + func (v Value) IsAFCmpInst() (rv Value) + func (v Value) IsAFPExtInst() (rv Value) + func (v Value) IsAFPToSIInst() (rv Value) + func (v Value) IsAFPToUIInst() (rv Value) + func (v Value) IsAFPTruncInst() (rv Value) + func (v Value) IsAFunction() (rv Value) + func (v Value) IsAGetElementPtrInst() (rv Value) + func (v Value) IsAGlobalAlias() (rv Value) + func (v Value) IsAGlobalValue() (rv Value) + func (v Value) IsAGlobalVariable() (rv Value) + func (v Value) IsAICmpInst() (rv Value) + func (v Value) IsAInlineAsm() (rv Value) + func (v Value) IsAInsertElementInst() (rv Value) + func (v Value) IsAInsertValueInst() (rv Value) + func (v Value) IsAInstruction() (rv Value) + func (v Value) IsAIntToPtrInst() (rv Value) + func (v Value) IsAIntrinsicInst() (rv Value) + func (v Value) IsAInvokeInst() (rv Value) + func (v Value) IsALoadInst() (rv Value) + func (v Value) IsAMemCpyInst() (rv Value) + func (v Value) IsAMemIntrinsic() (rv Value) + func (v Value) IsAMemMoveInst() (rv Value) + func (v Value) IsAMemSetInst() (rv Value) + func (v Value) IsAPHINode() (rv Value) + func (v Value) IsAPtrToIntInst() (rv Value) + func (v Value) IsAReturnInst() (rv Value) + func (v Value) IsASExtInst() (rv Value) + func (v Value) IsASIToFPInst() (rv Value) + func (v Value) IsASelectInst() (rv Value) + func (v Value) IsAShuffleVectorInst() (rv Value) + func (v Value) IsAStoreInst() (rv Value) + func (v Value) IsASwitchInst() (rv Value) + func (v Value) IsATruncInst() (rv Value) + func (v Value) IsAUIToFPInst() (rv Value) + func (v Value) IsAUnaryInstruction() (rv Value) + func (v Value) IsAUndefValue() (rv Value) + func (v Value) IsAUnreachableInst() (rv Value) + func (v Value) IsAUser() (rv Value) + func (v Value) IsAVAArgInst() (rv Value) + func (v Value) IsAZExtInst() (rv Value) + func (v Value) IsAtomicSingleThread() bool + func (v Value) IsBasicBlock() bool + func (v Value) IsConstant() bool + func (v Value) IsDeclaration() bool + func (v Value) IsGlobalConstant() bool + func (v Value) IsNull() bool + func (v Value) IsTailCall() bool + func (v Value) IsThreadLocal() bool + func (v Value) IsUndef() bool + func (v Value) IsVolatile() bool + func (v Value) LastBasicBlock() (bb BasicBlock) + func (v Value) LastParam() (rv Value) + func (v Value) Linkage() Linkage + func (v Value) Metadata(kind int) (rv Value) + func (v Value) Name() string + func (v Value) Opcode() Opcode + func (v Value) Operand(i int) (rv Value) + func (v Value) OperandsCount() int + func (v Value) Ordering() AtomicOrdering + func (v Value) Param(i int) (rv Value) + func (v Value) ParamParent() (rv Value) + func (v Value) Params() []Value + func (v Value) ParamsCount() int + func (v Value) RemoveEnumAttributeAtIndex(i int, kind uint) + func (v Value) RemoveEnumFunctionAttribute(kind uint) + func (v Value) RemoveStringAttributeAtIndex(i int, kind string) + func (v Value) ReplaceAllUsesWith(nv Value) + func (v Value) SExtValue() int64 + func (v Value) Section() string + func (v Value) SetAlignment(a int) + func (v Value) SetAtomicSingleThread(singleThread bool) + func (v Value) SetCmpXchgFailureOrdering(ordering AtomicOrdering) + func (v Value) SetCmpXchgSuccessOrdering(ordering AtomicOrdering) + func (v Value) SetComdat(c Comdat) + func (v Value) SetFunctionCallConv(cc CallConv) + func (v Value) SetGC(name string) + func (v Value) SetGlobalConstant(gc bool) + func (v Value) SetInitializer(cv Value) + func (v Value) SetInstrParamAlignment(i int, align int) + func (v Value) SetInstructionCallConv(cc CallConv) + func (v Value) SetLinkage(l Linkage) + func (v Value) SetMetadata(kind int, node Metadata) + func (v Value) SetName(name string) + func (v Value) SetOperand(i int, op Value) + func (v Value) SetOrdering(ordering AtomicOrdering) + func (v Value) SetParamAlignment(align int) + func (v Value) SetPersonality(p Value) + func (v Value) SetSection(str string) + func (v Value) SetSubprogram(sp Metadata) + func (v Value) SetTailCall(is bool) + func (v Value) SetThreadLocal(tl bool) + func (v Value) SetUnnamedAddr(ua bool) + func (v Value) SetVisibility(vi Visibility) + func (v Value) SetVolatile(volatile bool) + func (v Value) Type() (t Type) + func (v Value) Visibility() Visibility + func (v Value) ZExtValue() uint64 + type VerifierFailureAction C.LLVMVerifierFailureAction + const AbortProcessAction + const PrintMessageAction + const ReturnStatusAction + type Visibility C.LLVMVisibility + const DefaultVisibility + const HiddenVisibility + const ProtectedVisibility