LLVM 22.0.0git
Functions
Instruction Builders

An instruction builder represents a point within a basic block and is the exclusive means of building instructions using the C interface. More...

Collaboration diagram for Instruction Builders:

Functions

LLVM_C_ABI LLVMBuilderRef LLVMCreateBuilderInContext (LLVMContextRef C)
 
LLVM_C_ABI LLVMBuilderRef LLVMCreateBuilder (void)
 
LLVM_C_ABI void LLVMPositionBuilder (LLVMBuilderRef Builder, LLVMBasicBlockRef Block, LLVMValueRef Instr)
 Set the builder position before Instr but after any attached debug records, or if Instr is null set the position to the end of Block.
 
LLVM_C_ABI void LLVMPositionBuilderBeforeDbgRecords (LLVMBuilderRef Builder, LLVMBasicBlockRef Block, LLVMValueRef Inst)
 Set the builder position before Instr and any attached debug records, or if Instr is null set the position to the end of Block.
 
LLVM_C_ABI void LLVMPositionBuilderBefore (LLVMBuilderRef Builder, LLVMValueRef Instr)
 Set the builder position before Instr but after any attached debug records.
 
LLVM_C_ABI void LLVMPositionBuilderBeforeInstrAndDbgRecords (LLVMBuilderRef Builder, LLVMValueRef Instr)
 Set the builder position before Instr and any attached debug records.
 
LLVM_C_ABI void LLVMPositionBuilderAtEnd (LLVMBuilderRef Builder, LLVMBasicBlockRef Block)
 
LLVM_C_ABI LLVMBasicBlockRef LLVMGetInsertBlock (LLVMBuilderRef Builder)
 
LLVM_C_ABI void LLVMClearInsertionPosition (LLVMBuilderRef Builder)
 
LLVM_C_ABI void LLVMInsertIntoBuilder (LLVMBuilderRef Builder, LLVMValueRef Instr)
 
LLVM_C_ABI void LLVMInsertIntoBuilderWithName (LLVMBuilderRef Builder, LLVMValueRef Instr, const char *Name)
 
LLVM_C_ABI void LLVMDisposeBuilder (LLVMBuilderRef Builder)
 
LLVM_C_ABI LLVMMetadataRef LLVMGetCurrentDebugLocation2 (LLVMBuilderRef Builder)
 Get location information used by debugging information.
 
LLVM_C_ABI void LLVMSetCurrentDebugLocation2 (LLVMBuilderRef Builder, LLVMMetadataRef Loc)
 Set location information used by debugging information.
 
LLVM_C_ABI void LLVMSetInstDebugLocation (LLVMBuilderRef Builder, LLVMValueRef Inst)
 Attempts to set the debug location for the given instruction using the current debug location for the given builder.
 
LLVM_C_ABI void LLVMAddMetadataToInst (LLVMBuilderRef Builder, LLVMValueRef Inst)
 Adds the metadata registered with the given builder to the given instruction.
 
LLVM_C_ABI LLVMMetadataRef LLVMBuilderGetDefaultFPMathTag (LLVMBuilderRef Builder)
 Get the dafult floating-point math metadata for a given builder.
 
LLVM_C_ABI void LLVMBuilderSetDefaultFPMathTag (LLVMBuilderRef Builder, LLVMMetadataRef FPMathTag)
 Set the default floating-point math metadata for the given builder.
 
LLVM_C_ABI LLVMContextRef LLVMGetBuilderContext (LLVMBuilderRef Builder)
 Obtain the context to which this builder is associated.
 
LLVM_C_ABI void LLVMSetCurrentDebugLocation (LLVMBuilderRef Builder, LLVMValueRef L)
 Deprecated: Passing the NULL location will crash.
 
LLVM_C_ABI LLVMValueRef LLVMGetCurrentDebugLocation (LLVMBuilderRef Builder)
 Deprecated: Returning the NULL location will crash.
 
LLVM_C_ABI LLVMValueRef LLVMBuildRetVoid (LLVMBuilderRef)
 
LLVM_C_ABI LLVMValueRef LLVMBuildRet (LLVMBuilderRef, LLVMValueRef V)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAggregateRet (LLVMBuilderRef, LLVMValueRef *RetVals, unsigned N)
 
LLVM_C_ABI LLVMValueRef LLVMBuildBr (LLVMBuilderRef, LLVMBasicBlockRef Dest)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCondBr (LLVMBuilderRef, LLVMValueRef If, LLVMBasicBlockRef Then, LLVMBasicBlockRef Else)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSwitch (LLVMBuilderRef, LLVMValueRef V, LLVMBasicBlockRef Else, unsigned NumCases)
 
LLVM_C_ABI LLVMValueRef LLVMBuildIndirectBr (LLVMBuilderRef B, LLVMValueRef Addr, unsigned NumDests)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCallBr (LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Fn, LLVMBasicBlockRef DefaultDest, LLVMBasicBlockRef *IndirectDests, unsigned NumIndirectDests, LLVMValueRef *Args, unsigned NumArgs, LLVMOperandBundleRef *Bundles, unsigned NumBundles, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildInvoke2 (LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildInvokeWithOperandBundles (LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, LLVMOperandBundleRef *Bundles, unsigned NumBundles, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildUnreachable (LLVMBuilderRef)
 
LLVM_C_ABI LLVMValueRef LLVMBuildResume (LLVMBuilderRef B, LLVMValueRef Exn)
 
LLVM_C_ABI LLVMValueRef LLVMBuildLandingPad (LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef PersFn, unsigned NumClauses, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCleanupRet (LLVMBuilderRef B, LLVMValueRef CatchPad, LLVMBasicBlockRef BB)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCatchRet (LLVMBuilderRef B, LLVMValueRef CatchPad, LLVMBasicBlockRef BB)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCatchPad (LLVMBuilderRef B, LLVMValueRef ParentPad, LLVMValueRef *Args, unsigned NumArgs, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCleanupPad (LLVMBuilderRef B, LLVMValueRef ParentPad, LLVMValueRef *Args, unsigned NumArgs, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCatchSwitch (LLVMBuilderRef B, LLVMValueRef ParentPad, LLVMBasicBlockRef UnwindBB, unsigned NumHandlers, const char *Name)
 
LLVM_C_ABI void LLVMAddCase (LLVMValueRef Switch, LLVMValueRef OnVal, LLVMBasicBlockRef Dest)
 
LLVM_C_ABI void LLVMAddDestination (LLVMValueRef IndirectBr, LLVMBasicBlockRef Dest)
 
LLVM_C_ABI unsigned LLVMGetNumClauses (LLVMValueRef LandingPad)
 
LLVM_C_ABI LLVMValueRef LLVMGetClause (LLVMValueRef LandingPad, unsigned Idx)
 
LLVM_C_ABI void LLVMAddClause (LLVMValueRef LandingPad, LLVMValueRef ClauseVal)
 
LLVM_C_ABI LLVMBool LLVMIsCleanup (LLVMValueRef LandingPad)
 
LLVM_C_ABI void LLVMSetCleanup (LLVMValueRef LandingPad, LLVMBool Val)
 
LLVM_C_ABI void LLVMAddHandler (LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest)
 
LLVM_C_ABI unsigned LLVMGetNumHandlers (LLVMValueRef CatchSwitch)
 
LLVM_C_ABI void LLVMGetHandlers (LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers)
 Obtain the basic blocks acting as handlers for a catchswitch instruction.
 
LLVM_C_ABI LLVMValueRef LLVMGetArgOperand (LLVMValueRef Funclet, unsigned i)
 
LLVM_C_ABI void LLVMSetArgOperand (LLVMValueRef Funclet, unsigned i, LLVMValueRef value)
 
LLVM_C_ABI LLVMValueRef LLVMGetParentCatchSwitch (LLVMValueRef CatchPad)
 Get the parent catchswitch instruction of a catchpad instruction.
 
LLVM_C_ABI void LLVMSetParentCatchSwitch (LLVMValueRef CatchPad, LLVMValueRef CatchSwitch)
 Set the parent catchswitch instruction of a catchpad instruction.
 
LLVM_C_ABI LLVMValueRef LLVMBuildAdd (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNSWAdd (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNUWAdd (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFAdd (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSub (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNSWSub (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNUWSub (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFSub (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildMul (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNSWMul (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNUWMul (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFMul (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildUDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildExactUDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildExactSDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFDiv (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildURem (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSRem (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFRem (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildShl (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildLShr (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAShr (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAnd (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildOr (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildXor (LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildBinOp (LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNeg (LLVMBuilderRef, LLVMValueRef V, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNSWNeg (LLVMBuilderRef B, LLVMValueRef V, const char *Name)
 
LLVM_C_ABI LLVM_ATTRIBUTE_C_DEPRECATED (LLVMValueRef LLVMBuildNUWNeg(LLVMBuilderRef B, LLVMValueRef V, const char *Name), "Use LLVMBuildNeg + LLVMSetNUW instead.")
 
LLVM_C_ABI LLVMValueRef LLVMBuildFNeg (LLVMBuilderRef, LLVMValueRef V, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildNot (LLVMBuilderRef, LLVMValueRef V, const char *Name)
 
LLVM_C_ABI LLVMBool LLVMGetNUW (LLVMValueRef ArithInst)
 
LLVM_C_ABI void LLVMSetNUW (LLVMValueRef ArithInst, LLVMBool HasNUW)
 
LLVM_C_ABI LLVMBool LLVMGetNSW (LLVMValueRef ArithInst)
 
LLVM_C_ABI void LLVMSetNSW (LLVMValueRef ArithInst, LLVMBool HasNSW)
 
LLVM_C_ABI LLVMBool LLVMGetExact (LLVMValueRef DivOrShrInst)
 
LLVM_C_ABI void LLVMSetExact (LLVMValueRef DivOrShrInst, LLVMBool IsExact)
 
LLVM_C_ABI LLVMBool LLVMGetNNeg (LLVMValueRef NonNegInst)
 Gets if the instruction has the non-negative flag set.
 
LLVM_C_ABI void LLVMSetNNeg (LLVMValueRef NonNegInst, LLVMBool IsNonNeg)
 Sets the non-negative flag for the instruction.
 
LLVM_C_ABI LLVMFastMathFlags LLVMGetFastMathFlags (LLVMValueRef FPMathInst)
 Get the flags for which fast-math-style optimizations are allowed for this value.
 
LLVM_C_ABI void LLVMSetFastMathFlags (LLVMValueRef FPMathInst, LLVMFastMathFlags FMF)
 Sets the flags for which fast-math-style optimizations are allowed for this value.
 
LLVM_C_ABI LLVMBool LLVMCanValueUseFastMathFlags (LLVMValueRef Inst)
 Check if a given value can potentially have fast math flags.
 
LLVM_C_ABI LLVMBool LLVMGetIsDisjoint (LLVMValueRef Inst)
 Gets whether the instruction has the disjoint flag set.
 
LLVM_C_ABI void LLVMSetIsDisjoint (LLVMValueRef Inst, LLVMBool IsDisjoint)
 Sets the disjoint flag for the instruction.
 
LLVM_C_ABI LLVMValueRef LLVMBuildMalloc (LLVMBuilderRef, LLVMTypeRef Ty, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildArrayMalloc (LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildMemSet (LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Val, LLVMValueRef Len, unsigned Align)
 Creates and inserts a memset to the specified pointer and the specified value.
 
LLVM_C_ABI LLVMValueRef LLVMBuildMemCpy (LLVMBuilderRef B, LLVMValueRef Dst, unsigned DstAlign, LLVMValueRef Src, unsigned SrcAlign, LLVMValueRef Size)
 Creates and inserts a memcpy between the specified pointers.
 
LLVM_C_ABI LLVMValueRef LLVMBuildMemMove (LLVMBuilderRef B, LLVMValueRef Dst, unsigned DstAlign, LLVMValueRef Src, unsigned SrcAlign, LLVMValueRef Size)
 Creates and inserts a memmove between the specified pointers.
 
LLVM_C_ABI LLVMValueRef LLVMBuildAlloca (LLVMBuilderRef, LLVMTypeRef Ty, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildArrayAlloca (LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFree (LLVMBuilderRef, LLVMValueRef PointerVal)
 
LLVM_C_ABI LLVMValueRef LLVMBuildLoad2 (LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef PointerVal, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildStore (LLVMBuilderRef, LLVMValueRef Val, LLVMValueRef Ptr)
 
LLVM_C_ABI LLVMValueRef LLVMBuildGEP2 (LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, LLVMValueRef *Indices, unsigned NumIndices, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildInBoundsGEP2 (LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, LLVMValueRef *Indices, unsigned NumIndices, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildGEPWithNoWrapFlags (LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, LLVMValueRef *Indices, unsigned NumIndices, const char *Name, LLVMGEPNoWrapFlags NoWrapFlags)
 Creates a GetElementPtr instruction.
 
LLVM_C_ABI LLVMValueRef LLVMBuildStructGEP2 (LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Pointer, unsigned Idx, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildGlobalString (LLVMBuilderRef B, const char *Str, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildGlobalStringPtr (LLVMBuilderRef B, const char *Str, const char *Name)
 Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.
 
LLVM_C_ABI LLVMBool LLVMGetVolatile (LLVMValueRef MemoryAccessInst)
 
LLVM_C_ABI void LLVMSetVolatile (LLVMValueRef MemoryAccessInst, LLVMBool IsVolatile)
 
LLVM_C_ABI LLVMBool LLVMGetWeak (LLVMValueRef CmpXchgInst)
 
LLVM_C_ABI void LLVMSetWeak (LLVMValueRef CmpXchgInst, LLVMBool IsWeak)
 
LLVM_C_ABI LLVMAtomicOrdering LLVMGetOrdering (LLVMValueRef MemoryAccessInst)
 
LLVM_C_ABI void LLVMSetOrdering (LLVMValueRef MemoryAccessInst, LLVMAtomicOrdering Ordering)
 
LLVM_C_ABI LLVMAtomicRMWBinOp LLVMGetAtomicRMWBinOp (LLVMValueRef AtomicRMWInst)
 
LLVM_C_ABI void LLVMSetAtomicRMWBinOp (LLVMValueRef AtomicRMWInst, LLVMAtomicRMWBinOp BinOp)
 
LLVM_C_ABI LLVMValueRef LLVMBuildTrunc (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildZExt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSExt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFPToUI (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFPToSI (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildUIToFP (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSIToFP (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFPTrunc (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFPExt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildPtrToInt (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildIntToPtr (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildBitCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAddrSpaceCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildZExtOrBitCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSExtOrBitCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildTruncOrBitCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCast (LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildPointerCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildIntCast2 (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, LLVMBool IsSigned, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFPCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildIntCast (LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name)
 Deprecated: This cast is always signed.
 
LLVM_C_ABI LLVMOpcode LLVMGetCastOpcode (LLVMValueRef Src, LLVMBool SrcIsSigned, LLVMTypeRef DestTy, LLVMBool DestIsSigned)
 
LLVM_C_ABI LLVMValueRef LLVMBuildICmp (LLVMBuilderRef, LLVMIntPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFCmp (LLVMBuilderRef, LLVMRealPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildPhi (LLVMBuilderRef, LLVMTypeRef Ty, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCall2 (LLVMBuilderRef, LLVMTypeRef, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildCallWithOperandBundles (LLVMBuilderRef, LLVMTypeRef, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, LLVMOperandBundleRef *Bundles, unsigned NumBundles, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildSelect (LLVMBuilderRef, LLVMValueRef If, LLVMValueRef Then, LLVMValueRef Else, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildVAArg (LLVMBuilderRef, LLVMValueRef List, LLVMTypeRef Ty, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildExtractElement (LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef Index, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildInsertElement (LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef EltVal, LLVMValueRef Index, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildShuffleVector (LLVMBuilderRef, LLVMValueRef V1, LLVMValueRef V2, LLVMValueRef Mask, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildExtractValue (LLVMBuilderRef, LLVMValueRef AggVal, unsigned Index, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildInsertValue (LLVMBuilderRef, LLVMValueRef AggVal, LLVMValueRef EltVal, unsigned Index, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFreeze (LLVMBuilderRef, LLVMValueRef Val, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildIsNull (LLVMBuilderRef, LLVMValueRef Val, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildIsNotNull (LLVMBuilderRef, LLVMValueRef Val, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildPtrDiff2 (LLVMBuilderRef, LLVMTypeRef ElemTy, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFence (LLVMBuilderRef B, LLVMAtomicOrdering ordering, LLVMBool singleThread, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildFenceSyncScope (LLVMBuilderRef B, LLVMAtomicOrdering ordering, unsigned SSID, const char *Name)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAtomicRMW (LLVMBuilderRef B, LLVMAtomicRMWBinOp op, LLVMValueRef PTR, LLVMValueRef Val, LLVMAtomicOrdering ordering, LLVMBool singleThread)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAtomicRMWSyncScope (LLVMBuilderRef B, LLVMAtomicRMWBinOp op, LLVMValueRef PTR, LLVMValueRef Val, LLVMAtomicOrdering ordering, unsigned SSID)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAtomicCmpXchg (LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Cmp, LLVMValueRef New, LLVMAtomicOrdering SuccessOrdering, LLVMAtomicOrdering FailureOrdering, LLVMBool SingleThread)
 
LLVM_C_ABI LLVMValueRef LLVMBuildAtomicCmpXchgSyncScope (LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Cmp, LLVMValueRef New, LLVMAtomicOrdering SuccessOrdering, LLVMAtomicOrdering FailureOrdering, unsigned SSID)
 
LLVM_C_ABI unsigned LLVMGetNumMaskElements (LLVMValueRef ShuffleVectorInst)
 Get the number of elements in the mask of a ShuffleVector instruction.
 
LLVM_C_ABI int LLVMGetUndefMaskElem (void)
 
LLVM_C_ABI int LLVMGetMaskValue (LLVMValueRef ShuffleVectorInst, unsigned Elt)
 Get the mask value at position Elt in the mask of a ShuffleVector instruction.
 
LLVM_C_ABI LLVMBool LLVMIsAtomicSingleThread (LLVMValueRef AtomicInst)
 
LLVM_C_ABI void LLVMSetAtomicSingleThread (LLVMValueRef AtomicInst, LLVMBool SingleThread)
 
LLVM_C_ABI LLVMBool LLVMIsAtomic (LLVMValueRef Inst)
 Returns whether an instruction is an atomic instruction, e.g., atomicrmw, cmpxchg, fence, or loads and stores with atomic ordering.
 
LLVM_C_ABI unsigned LLVMGetAtomicSyncScopeID (LLVMValueRef AtomicInst)
 Returns the synchronization scope ID of an atomic instruction.
 
LLVM_C_ABI void LLVMSetAtomicSyncScopeID (LLVMValueRef AtomicInst, unsigned SSID)
 Sets the synchronization scope ID of an atomic instruction.
 
LLVM_C_ABI LLVMAtomicOrdering LLVMGetCmpXchgSuccessOrdering (LLVMValueRef CmpXchgInst)
 
LLVM_C_ABI void LLVMSetCmpXchgSuccessOrdering (LLVMValueRef CmpXchgInst, LLVMAtomicOrdering Ordering)
 
LLVM_C_ABI LLVMAtomicOrdering LLVMGetCmpXchgFailureOrdering (LLVMValueRef CmpXchgInst)
 
LLVM_C_ABI void LLVMSetCmpXchgFailureOrdering (LLVMValueRef CmpXchgInst, LLVMAtomicOrdering Ordering)
 

Detailed Description

An instruction builder represents a point within a basic block and is the exclusive means of building instructions using the C interface.

Function Documentation

◆ LLVM_ATTRIBUTE_C_DEPRECATED()

LLVM_C_ABI LLVM_ATTRIBUTE_C_DEPRECATED ( LLVMValueRef   LLVMBuildNUWNegLLVMBuilderRef B, LLVMValueRef V, const char *Name,
"Use LLVMBuildNeg + LLVMSetNUW instead."   
)

◆ LLVMAddCase()

LLVM_C_ABI void LLVMAddCase ( LLVMValueRef  Switch,
LLVMValueRef  OnVal,
LLVMBasicBlockRef  Dest 
)

Definition at line 3536 of file Core.cpp.

References unwrap().

◆ LLVMAddClause()

LLVM_C_ABI void LLVMAddClause ( LLVMValueRef  LandingPad,
LLVMValueRef  ClauseVal 
)

Definition at line 3553 of file Core.cpp.

◆ LLVMAddDestination()

LLVM_C_ABI void LLVMAddDestination ( LLVMValueRef  IndirectBr,
LLVMBasicBlockRef  Dest 
)

Definition at line 3541 of file Core.cpp.

References unwrap().

◆ LLVMAddHandler()

LLVM_C_ABI void LLVMAddHandler ( LLVMValueRef  CatchSwitch,
LLVMBasicBlockRef  Dest 
)

Definition at line 3565 of file Core.cpp.

References unwrap().

◆ LLVMAddMetadataToInst()

LLVM_C_ABI void LLVMAddMetadataToInst ( LLVMBuilderRef  Builder,
LLVMValueRef  Inst 
)

Adds the metadata registered with the given builder to the given instruction.

See also
llvm::IRBuilder::AddMetadataToInst()

Definition at line 3379 of file Core.cpp.

References unwrap().

◆ LLVMBuildAdd()

LLVM_C_ABI LLVMValueRef LLVMBuildAdd ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3633 of file Core.cpp.

References B, CreateAdd(), LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildAddrSpaceCast()

LLVM_C_ABI LLVMValueRef LLVMBuildAddrSpaceCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4216 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildAggregateRet()

LLVM_C_ABI LLVMValueRef LLVMBuildAggregateRet ( LLVMBuilderRef  B,
LLVMValueRef RetVals,
unsigned  N 
)

Definition at line 3409 of file Core.cpp.

References B, N, unwrap(), and llvm::wrap().

◆ LLVMBuildAlloca()

LLVM_C_ABI LLVMValueRef LLVMBuildAlloca ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
const char Name 
)

Definition at line 3906 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildAnd()

LLVM_C_ABI LLVMValueRef LLVMBuildAnd ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3748 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildArrayAlloca()

LLVM_C_ABI LLVMValueRef LLVMBuildArrayAlloca ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Val,
const char Name 
)

Definition at line 3911 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildArrayMalloc()

LLVM_C_ABI LLVMValueRef LLVMBuildArrayMalloc ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Val,
const char Name 
)

◆ LLVMBuildAShr()

LLVM_C_ABI LLVMValueRef LLVMBuildAShr ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3743 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildAtomicCmpXchg()

LLVM_C_ABI LLVMValueRef LLVMBuildAtomicCmpXchg ( LLVMBuilderRef  B,
LLVMValueRef  Ptr,
LLVMValueRef  Cmp,
LLVMValueRef  New,
LLVMAtomicOrdering  SuccessOrdering,
LLVMAtomicOrdering  FailureOrdering,
LLVMBool  SingleThread 
)

◆ LLVMBuildAtomicCmpXchgSyncScope()

LLVM_C_ABI LLVMValueRef LLVMBuildAtomicCmpXchgSyncScope ( LLVMBuilderRef  B,
LLVMValueRef  Ptr,
LLVMValueRef  Cmp,
LLVMValueRef  New,
LLVMAtomicOrdering  SuccessOrdering,
LLVMAtomicOrdering  FailureOrdering,
unsigned  SSID 
)

Definition at line 4420 of file Core.cpp.

References B, mapFromLLVMOrdering(), Ptr, unwrap(), and llvm::wrap().

◆ LLVMBuildAtomicRMW()

LLVM_C_ABI LLVMValueRef LLVMBuildAtomicRMW ( LLVMBuilderRef  B,
LLVMAtomicRMWBinOp  op,
LLVMValueRef  PTR,
LLVMValueRef  Val,
LLVMAtomicOrdering  ordering,
LLVMBool  singleThread 
)

◆ LLVMBuildAtomicRMWSyncScope()

LLVM_C_ABI LLVMValueRef LLVMBuildAtomicRMWSyncScope ( LLVMBuilderRef  B,
LLVMAtomicRMWBinOp  op,
LLVMValueRef  PTR,
LLVMValueRef  Val,
LLVMAtomicOrdering  ordering,
unsigned  SSID 
)

Definition at line 4396 of file Core.cpp.

References B, mapFromLLVMOrdering(), mapFromLLVMRMWBinOp(), op, unwrap(), and llvm::wrap().

◆ LLVMBuildBinOp()

LLVM_C_ABI LLVMValueRef LLVMBuildBinOp ( LLVMBuilderRef  B,
LLVMOpcode  Op,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3763 of file Core.cpp.

References B, LHS, map_from_llvmopcode(), Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildBitCast()

LLVM_C_ABI LLVMValueRef LLVMBuildBitCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4211 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildBr()

Definition at line 3414 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildCall2()

LLVM_C_ABI LLVMValueRef LLVMBuildCall2 ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Fn,
LLVMValueRef Args,
unsigned  NumArgs,
const char Name 
)

Definition at line 4296 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildCallBr()

LLVM_C_ABI LLVMValueRef LLVMBuildCallBr ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Fn,
LLVMBasicBlockRef  DefaultDest,
LLVMBasicBlockRef IndirectDests,
unsigned  NumIndirectDests,
LLVMValueRef Args,
unsigned  NumArgs,
LLVMOperandBundleRef Bundles,
unsigned  NumBundles,
const char Name 
)

◆ LLVMBuildCallWithOperandBundles()

LLVM_C_ABI LLVMValueRef LLVMBuildCallWithOperandBundles ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Fn,
LLVMValueRef Args,
unsigned  NumArgs,
LLVMOperandBundleRef Bundles,
unsigned  NumBundles,
const char Name 
)

◆ LLVMBuildCast()

LLVM_C_ABI LLVMValueRef LLVMBuildCast ( LLVMBuilderRef  B,
LLVMOpcode  Op,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4239 of file Core.cpp.

References B, map_from_llvmopcode(), Name, unwrap(), and llvm::wrap().

◆ LLVMBuildCatchPad()

LLVM_C_ABI LLVMValueRef LLVMBuildCatchPad ( LLVMBuilderRef  B,
LLVMValueRef  ParentPad,
LLVMValueRef Args,
unsigned  NumArgs,
const char Name 
)

Definition at line 3487 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildCatchRet()

LLVM_C_ABI LLVMValueRef LLVMBuildCatchRet ( LLVMBuilderRef  B,
LLVMValueRef  CatchPad,
LLVMBasicBlockRef  BB 
)

Definition at line 3520 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildCatchSwitch()

LLVM_C_ABI LLVMValueRef LLVMBuildCatchSwitch ( LLVMBuilderRef  B,
LLVMValueRef  ParentPad,
LLVMBasicBlockRef  UnwindBB,
unsigned  NumHandlers,
const char Name 
)

◆ LLVMBuildCleanupPad()

LLVM_C_ABI LLVMValueRef LLVMBuildCleanupPad ( LLVMBuilderRef  B,
LLVMValueRef  ParentPad,
LLVMValueRef Args,
unsigned  NumArgs,
const char Name 
)

◆ LLVMBuildCleanupRet()

LLVM_C_ABI LLVMValueRef LLVMBuildCleanupRet ( LLVMBuilderRef  B,
LLVMValueRef  CatchPad,
LLVMBasicBlockRef  BB 
)

Definition at line 3526 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildCondBr()

LLVM_C_ABI LLVMValueRef LLVMBuildCondBr ( LLVMBuilderRef  B,
LLVMValueRef  If,
LLVMBasicBlockRef  Then,
LLVMBasicBlockRef  Else 
)

Definition at line 3418 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuilderGetDefaultFPMathTag()

LLVM_C_ABI LLVMMetadataRef LLVMBuilderGetDefaultFPMathTag ( LLVMBuilderRef  Builder)

Get the dafult floating-point math metadata for a given builder.

See also
llvm::IRBuilder::getDefaultFPMathTag()

Definition at line 3395 of file Core.cpp.

References unwrap(), and llvm::wrap().

◆ LLVMBuilderSetDefaultFPMathTag()

LLVM_C_ABI void LLVMBuilderSetDefaultFPMathTag ( LLVMBuilderRef  Builder,
LLVMMetadataRef  FPMathTag 
)

Set the default floating-point math metadata for the given builder.

To clear the metadata, pass NULL to FPMathTag.

See also
llvm::IRBuilder::setDefaultFPMathTag()

Definition at line 3383 of file Core.cpp.

References unwrap().

◆ LLVMBuildExactSDiv()

LLVM_C_ABI LLVMValueRef LLVMBuildExactSDiv ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3708 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildExactUDiv()

LLVM_C_ABI LLVMValueRef LLVMBuildExactUDiv ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3698 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildExtractElement()

LLVM_C_ABI LLVMValueRef LLVMBuildExtractElement ( LLVMBuilderRef  B,
LLVMValueRef  VecVal,
LLVMValueRef  Index,
const char Name 
)

Definition at line 4331 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildExtractValue()

LLVM_C_ABI LLVMValueRef LLVMBuildExtractValue ( LLVMBuilderRef  B,
LLVMValueRef  AggVal,
unsigned  Index,
const char Name 
)

Definition at line 4351 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFAdd()

LLVM_C_ABI LLVMValueRef LLVMBuildFAdd ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3648 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildFCmp()

LLVM_C_ABI LLVMValueRef LLVMBuildFCmp ( LLVMBuilderRef  B,
LLVMRealPredicate  Op,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 4283 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildFDiv()

LLVM_C_ABI LLVMValueRef LLVMBuildFDiv ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3713 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildFence()

LLVM_C_ABI LLVMValueRef LLVMBuildFence ( LLVMBuilderRef  B,
LLVMAtomicOrdering  ordering,
LLVMBool  singleThread,
const char Name 
)

◆ LLVMBuildFenceSyncScope()

LLVM_C_ABI LLVMValueRef LLVMBuildFenceSyncScope ( LLVMBuilderRef  B,
LLVMAtomicOrdering  ordering,
unsigned  SSID,
const char Name 
)

Definition at line 4040 of file Core.cpp.

References B, mapFromLLVMOrdering(), Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFMul()

LLVM_C_ABI LLVMValueRef LLVMBuildFMul ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3688 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildFNeg()

LLVM_C_ABI LLVMValueRef LLVMBuildFNeg ( LLVMBuilderRef  B,
LLVMValueRef  V,
const char Name 
)

Definition at line 3787 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFPCast()

LLVM_C_ABI LLVMValueRef LLVMBuildFPCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4263 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFPExt()

LLVM_C_ABI LLVMValueRef LLVMBuildFPExt ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4196 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFPToSI()

LLVM_C_ABI LLVMValueRef LLVMBuildFPToSI ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4176 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFPToUI()

LLVM_C_ABI LLVMValueRef LLVMBuildFPToUI ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4171 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFPTrunc()

LLVM_C_ABI LLVMValueRef LLVMBuildFPTrunc ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4191 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFree()

LLVM_C_ABI LLVMValueRef LLVMBuildFree ( LLVMBuilderRef  B,
LLVMValueRef  PointerVal 
)

Definition at line 3916 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildFreeze()

LLVM_C_ABI LLVMValueRef LLVMBuildFreeze ( LLVMBuilderRef  B,
LLVMValueRef  Val,
const char Name 
)

Definition at line 4363 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildFRem()

LLVM_C_ABI LLVMValueRef LLVMBuildFRem ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3728 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildFSub()

LLVM_C_ABI LLVMValueRef LLVMBuildFSub ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3668 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildGEP2()

LLVM_C_ABI LLVMValueRef LLVMBuildGEP2 ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Pointer,
LLVMValueRef Indices,
unsigned  NumIndices,
const char Name 
)

Definition at line 4047 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildGEPWithNoWrapFlags()

LLVM_C_ABI LLVMValueRef LLVMBuildGEPWithNoWrapFlags ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Pointer,
LLVMValueRef Indices,
unsigned  NumIndices,
const char Name,
LLVMGEPNoWrapFlags  NoWrapFlags 
)

Creates a GetElementPtr instruction.

Similar to LLVMBuildGEP2, but allows specifying the no-wrap flags.

See also
llvm::IRBuilder::CreateGEP()

Definition at line 4062 of file Core.cpp.

References B, mapFromLLVMGEPNoWrapFlags(), Name, unwrap(), and llvm::wrap().

◆ LLVMBuildGlobalString()

LLVM_C_ABI LLVMValueRef LLVMBuildGlobalString ( LLVMBuilderRef  B,
const char Str,
const char Name 
)

Definition at line 4079 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildGlobalStringPtr()

LLVM_C_ABI LLVMValueRef LLVMBuildGlobalStringPtr ( LLVMBuilderRef  B,
const char Str,
const char Name 
)

Deprecated: Use LLVMBuildGlobalString instead, which has identical behavior.

Definition at line 4084 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildICmp()

LLVM_C_ABI LLVMValueRef LLVMBuildICmp ( LLVMBuilderRef  B,
LLVMIntPredicate  Op,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 4276 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildInBoundsGEP2()

LLVM_C_ABI LLVMValueRef LLVMBuildInBoundsGEP2 ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Pointer,
LLVMValueRef Indices,
unsigned  NumIndices,
const char Name 
)

Definition at line 4054 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildIndirectBr()

LLVM_C_ABI LLVMValueRef LLVMBuildIndirectBr ( LLVMBuilderRef  B,
LLVMValueRef  Addr,
unsigned  NumDests 
)

Definition at line 3428 of file Core.cpp.

References Addr, B, unwrap(), and llvm::wrap().

◆ LLVMBuildInsertElement()

LLVM_C_ABI LLVMValueRef LLVMBuildInsertElement ( LLVMBuilderRef  B,
LLVMValueRef  VecVal,
LLVMValueRef  EltVal,
LLVMValueRef  Index,
const char Name 
)

Definition at line 4337 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildInsertValue()

LLVM_C_ABI LLVMValueRef LLVMBuildInsertValue ( LLVMBuilderRef  B,
LLVMValueRef  AggVal,
LLVMValueRef  EltVal,
unsigned  Index,
const char Name 
)

Definition at line 4356 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildIntCast()

LLVM_C_ABI LLVMValueRef LLVMBuildIntCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Deprecated: This cast is always signed.

Use LLVMBuildIntCast2 instead.

Definition at line 4257 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildIntCast2()

LLVM_C_ABI LLVMValueRef LLVMBuildIntCast2 ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
LLVMBool  IsSigned,
const char Name 
)

Definition at line 4250 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildIntToPtr()

LLVM_C_ABI LLVMValueRef LLVMBuildIntToPtr ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4206 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildInvoke2()

LLVM_C_ABI LLVMValueRef LLVMBuildInvoke2 ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Fn,
LLVMValueRef Args,
unsigned  NumArgs,
LLVMBasicBlockRef  Then,
LLVMBasicBlockRef  Catch,
const char Name 
)

Definition at line 3452 of file Core.cpp.

References B, llvm::Catch, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildInvokeWithOperandBundles()

LLVM_C_ABI LLVMValueRef LLVMBuildInvokeWithOperandBundles ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Fn,
LLVMValueRef Args,
unsigned  NumArgs,
LLVMBasicBlockRef  Then,
LLVMBasicBlockRef  Catch,
LLVMOperandBundleRef Bundles,
unsigned  NumBundles,
const char Name 
)

◆ LLVMBuildIsNotNull()

LLVM_C_ABI LLVMValueRef LLVMBuildIsNotNull ( LLVMBuilderRef  B,
LLVMValueRef  Val,
const char Name 
)

Definition at line 4373 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildIsNull()

LLVM_C_ABI LLVMValueRef LLVMBuildIsNull ( LLVMBuilderRef  B,
LLVMValueRef  Val,
const char Name 
)

Definition at line 4368 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildLandingPad()

LLVM_C_ABI LLVMValueRef LLVMBuildLandingPad ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  PersFn,
unsigned  NumClauses,
const char Name 
)

◆ LLVMBuildLoad2()

LLVM_C_ABI LLVMValueRef LLVMBuildLoad2 ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  PointerVal,
const char Name 
)

Definition at line 3920 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildLShr()

LLVM_C_ABI LLVMValueRef LLVMBuildLShr ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3738 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildMalloc()

LLVM_C_ABI LLVMValueRef LLVMBuildMalloc ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
const char Name 
)

◆ LLVMBuildMemCpy()

LLVM_C_ABI LLVMValueRef LLVMBuildMemCpy ( LLVMBuilderRef  B,
LLVMValueRef  Dst,
unsigned  DstAlign,
LLVMValueRef  Src,
unsigned  SrcAlign,
LLVMValueRef  Size 
)

Creates and inserts a memcpy between the specified pointers.

See also
llvm::IRRBuilder::CreateMemCpy()

Definition at line 3888 of file Core.cpp.

References B, Size, unwrap(), and llvm::wrap().

◆ LLVMBuildMemMove()

LLVM_C_ABI LLVMValueRef LLVMBuildMemMove ( LLVMBuilderRef  B,
LLVMValueRef  Dst,
unsigned  DstAlign,
LLVMValueRef  Src,
unsigned  SrcAlign,
LLVMValueRef  Size 
)

Creates and inserts a memmove between the specified pointers.

See also
llvm::IRRBuilder::CreateMemMove()

Definition at line 3897 of file Core.cpp.

References B, Size, unwrap(), and llvm::wrap().

◆ LLVMBuildMemSet()

LLVM_C_ABI LLVMValueRef LLVMBuildMemSet ( LLVMBuilderRef  B,
LLVMValueRef  Ptr,
LLVMValueRef  Val,
LLVMValueRef  Len,
unsigned  Align 
)

Creates and inserts a memset to the specified pointer and the specified value.

See also
llvm::IRRBuilder::CreateMemSet()

Definition at line 3881 of file Core.cpp.

References B, Ptr, unwrap(), and llvm::wrap().

◆ LLVMBuildMul()

LLVM_C_ABI LLVMValueRef LLVMBuildMul ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3673 of file Core.cpp.

References B, CreateMul(), LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildNeg()

LLVM_C_ABI LLVMValueRef LLVMBuildNeg ( LLVMBuilderRef  B,
LLVMValueRef  V,
const char Name 
)

Definition at line 3770 of file Core.cpp.

References B, CreateNeg(), Name, unwrap(), and llvm::wrap().

◆ LLVMBuildNot()

LLVM_C_ABI LLVMValueRef LLVMBuildNot ( LLVMBuilderRef  B,
LLVMValueRef  V,
const char Name 
)

Definition at line 3791 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildNSWAdd()

LLVM_C_ABI LLVMValueRef LLVMBuildNSWAdd ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3638 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildNSWMul()

LLVM_C_ABI LLVMValueRef LLVMBuildNSWMul ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3678 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildNSWNeg()

LLVM_C_ABI LLVMValueRef LLVMBuildNSWNeg ( LLVMBuilderRef  B,
LLVMValueRef  V,
const char Name 
)

Definition at line 3774 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildNSWSub()

LLVM_C_ABI LLVMValueRef LLVMBuildNSWSub ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3658 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildNUWAdd()

LLVM_C_ABI LLVMValueRef LLVMBuildNUWAdd ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3643 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildNUWMul()

LLVM_C_ABI LLVMValueRef LLVMBuildNUWMul ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3683 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildNUWSub()

LLVM_C_ABI LLVMValueRef LLVMBuildNUWSub ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3663 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildOr()

LLVM_C_ABI LLVMValueRef LLVMBuildOr ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3753 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildPhi()

LLVM_C_ABI LLVMValueRef LLVMBuildPhi ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
const char Name 
)

Definition at line 4292 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildPointerCast()

LLVM_C_ABI LLVMValueRef LLVMBuildPointerCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4245 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildPtrDiff2()

LLVM_C_ABI LLVMValueRef LLVMBuildPtrDiff2 ( LLVMBuilderRef  B,
LLVMTypeRef  ElemTy,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 4378 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildPtrToInt()

LLVM_C_ABI LLVMValueRef LLVMBuildPtrToInt ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4201 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildResume()

LLVM_C_ABI LLVMValueRef LLVMBuildResume ( LLVMBuilderRef  B,
LLVMValueRef  Exn 
)

Definition at line 3505 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildRet()

LLVM_C_ABI LLVMValueRef LLVMBuildRet ( LLVMBuilderRef  B,
LLVMValueRef  V 
)

Definition at line 3405 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildRetVoid()

LLVM_C_ABI LLVMValueRef LLVMBuildRetVoid ( LLVMBuilderRef  B)

Definition at line 3401 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildSDiv()

LLVM_C_ABI LLVMValueRef LLVMBuildSDiv ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3703 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildSelect()

LLVM_C_ABI LLVMValueRef LLVMBuildSelect ( LLVMBuilderRef  B,
LLVMValueRef  If,
LLVMValueRef  Then,
LLVMValueRef  Else,
const char Name 
)

Definition at line 4319 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildSExt()

LLVM_C_ABI LLVMValueRef LLVMBuildSExt ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4166 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildSExtOrBitCast()

LLVM_C_ABI LLVMValueRef LLVMBuildSExtOrBitCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4227 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildShl()

LLVM_C_ABI LLVMValueRef LLVMBuildShl ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3733 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildShuffleVector()

LLVM_C_ABI LLVMValueRef LLVMBuildShuffleVector ( LLVMBuilderRef  B,
LLVMValueRef  V1,
LLVMValueRef  V2,
LLVMValueRef  Mask,
const char Name 
)

Definition at line 4344 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildSIToFP()

LLVM_C_ABI LLVMValueRef LLVMBuildSIToFP ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4186 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildSRem()

LLVM_C_ABI LLVMValueRef LLVMBuildSRem ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3723 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildStore()

LLVM_C_ABI LLVMValueRef LLVMBuildStore ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMValueRef  Ptr 
)

Definition at line 3925 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildStructGEP2()

LLVM_C_ABI LLVMValueRef LLVMBuildStructGEP2 ( LLVMBuilderRef  B,
LLVMTypeRef  Ty,
LLVMValueRef  Pointer,
unsigned  Idx,
const char Name 
)

Definition at line 4072 of file Core.cpp.

References B, Idx, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildSub()

LLVM_C_ABI LLVMValueRef LLVMBuildSub ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3653 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildSwitch()

LLVM_C_ABI LLVMValueRef LLVMBuildSwitch ( LLVMBuilderRef  B,
LLVMValueRef  V,
LLVMBasicBlockRef  Else,
unsigned  NumCases 
)

Definition at line 3423 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildTrunc()

LLVM_C_ABI LLVMValueRef LLVMBuildTrunc ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4156 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildTruncOrBitCast()

LLVM_C_ABI LLVMValueRef LLVMBuildTruncOrBitCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4233 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildUDiv()

LLVM_C_ABI LLVMValueRef LLVMBuildUDiv ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3693 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildUIToFP()

LLVM_C_ABI LLVMValueRef LLVMBuildUIToFP ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4181 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildUnreachable()

LLVM_C_ABI LLVMValueRef LLVMBuildUnreachable ( LLVMBuilderRef  B)

Definition at line 3532 of file Core.cpp.

References B, unwrap(), and llvm::wrap().

◆ LLVMBuildURem()

LLVM_C_ABI LLVMValueRef LLVMBuildURem ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3718 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildVAArg()

LLVM_C_ABI LLVMValueRef LLVMBuildVAArg ( LLVMBuilderRef  B,
LLVMValueRef  List,
LLVMTypeRef  Ty,
const char Name 
)

Definition at line 4326 of file Core.cpp.

References B, List, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildXor()

LLVM_C_ABI LLVMValueRef LLVMBuildXor ( LLVMBuilderRef  B,
LLVMValueRef  LHS,
LLVMValueRef  RHS,
const char Name 
)

Definition at line 3758 of file Core.cpp.

References B, LHS, Name, RHS, unwrap(), and llvm::wrap().

◆ LLVMBuildZExt()

LLVM_C_ABI LLVMValueRef LLVMBuildZExt ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4161 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMBuildZExtOrBitCast()

LLVM_C_ABI LLVMValueRef LLVMBuildZExtOrBitCast ( LLVMBuilderRef  B,
LLVMValueRef  Val,
LLVMTypeRef  DestTy,
const char Name 
)

Definition at line 4221 of file Core.cpp.

References B, Name, unwrap(), and llvm::wrap().

◆ LLVMCanValueUseFastMathFlags()

LLVM_C_ABI LLVMBool LLVMCanValueUseFastMathFlags ( LLVMValueRef  Inst)

Check if a given value can potentially have fast math flags.

Will return true for floating point arithmetic instructions, and for select, phi, and call instructions whose type is a floating point type, or a vector or array thereof. See https://llvm.org/docs/LangRef.html#fast-math-flags

Definition at line 3846 of file Core.cpp.

◆ LLVMClearInsertionPosition()

LLVM_C_ABI void LLVMClearInsertionPosition ( LLVMBuilderRef  Builder)

Definition at line 3333 of file Core.cpp.

References unwrap().

◆ LLVMCreateBuilder()

LLVM_C_ABI LLVMBuilderRef LLVMCreateBuilder ( void  )

Definition at line 3289 of file Core.cpp.

References LLVMCreateBuilderInContext(), and LLVMGetGlobalContext().

◆ LLVMCreateBuilderInContext()

LLVM_C_ABI LLVMBuilderRef LLVMCreateBuilderInContext ( LLVMContextRef  C)

Definition at line 3285 of file Core.cpp.

References llvm::CallingConv::C, unwrap(), and llvm::wrap().

Referenced by LLVMCreateBuilder().

◆ LLVMDisposeBuilder()

LLVM_C_ABI void LLVMDisposeBuilder ( LLVMBuilderRef  Builder)

Definition at line 3346 of file Core.cpp.

References unwrap().

◆ LLVMGetArgOperand()

LLVM_C_ABI LLVMValueRef LLVMGetArgOperand ( LLVMValueRef  Funclet,
unsigned  i 
)

Definition at line 3590 of file Core.cpp.

References llvm::wrap().

◆ LLVMGetAtomicRMWBinOp()

LLVM_C_ABI LLVMAtomicRMWBinOp LLVMGetAtomicRMWBinOp ( LLVMValueRef  AtomicRMWInst)

Definition at line 4146 of file Core.cpp.

References mapToLLVMRMWBinOp().

◆ LLVMGetAtomicSyncScopeID()

LLVM_C_ABI unsigned LLVMGetAtomicSyncScopeID ( LLVMValueRef  AtomicInst)

Returns the synchronization scope ID of an atomic instruction.

Definition at line 4468 of file Core.cpp.

References assert(), llvm::getAtomicSyncScopeID(), and I.

◆ LLVMGetBuilderContext()

LLVM_C_ABI LLVMContextRef LLVMGetBuilderContext ( LLVMBuilderRef  Builder)

Obtain the context to which this builder is associated.

See also
llvm::IRBuilder::getContext()

Definition at line 3391 of file Core.cpp.

References unwrap(), and llvm::wrap().

◆ LLVMGetCastOpcode()

LLVM_C_ABI LLVMOpcode LLVMGetCastOpcode ( LLVMValueRef  Src,
LLVMBool  SrcIsSigned,
LLVMTypeRef  DestTy,
LLVMBool  DestIsSigned 
)

Definition at line 4268 of file Core.cpp.

References llvm::CastInst::getCastOpcode(), map_to_llvmopcode(), and unwrap().

◆ LLVMGetClause()

LLVM_C_ABI LLVMValueRef LLVMGetClause ( LLVMValueRef  LandingPad,
unsigned  Idx 
)

Definition at line 3549 of file Core.cpp.

References Idx, and llvm::wrap().

◆ LLVMGetCmpXchgFailureOrdering()

LLVM_C_ABI LLVMAtomicOrdering LLVMGetCmpXchgFailureOrdering ( LLVMValueRef  CmpXchgInst)

Definition at line 4493 of file Core.cpp.

References mapToLLVMOrdering(), P, and unwrap().

◆ LLVMGetCmpXchgSuccessOrdering()

LLVM_C_ABI LLVMAtomicOrdering LLVMGetCmpXchgSuccessOrdering ( LLVMValueRef  CmpXchgInst)

Definition at line 4480 of file Core.cpp.

References mapToLLVMOrdering(), P, and unwrap().

◆ LLVMGetCurrentDebugLocation()

LLVM_C_ABI LLVMValueRef LLVMGetCurrentDebugLocation ( LLVMBuilderRef  Builder)

Deprecated: Returning the NULL location will crash.

Use LLVMGetCurrentDebugLocation2 instead.

Definition at line 3369 of file Core.cpp.

References Context, llvm::MetadataAsValue::get(), llvm::BasicBlock::getContext(), unwrap(), and llvm::wrap().

◆ LLVMGetCurrentDebugLocation2()

LLVM_C_ABI LLVMMetadataRef LLVMGetCurrentDebugLocation2 ( LLVMBuilderRef  Builder)

Get location information used by debugging information.

See also
llvm::IRBuilder::getCurrentDebugLocation()

Definition at line 3352 of file Core.cpp.

References unwrap(), and llvm::wrap().

◆ LLVMGetExact()

LLVM_C_ABI LLVMBool LLVMGetExact ( LLVMValueRef  DivOrShrInst)

Definition at line 3815 of file Core.cpp.

References P.

◆ LLVMGetFastMathFlags()

LLVM_C_ABI LLVMFastMathFlags LLVMGetFastMathFlags ( LLVMValueRef  FPMathInst)

Get the flags for which fast-math-style optimizations are allowed for this value.

Only valid on floating point instructions.

See also
LLVMCanValueUseFastMathFlags

Definition at line 3835 of file Core.cpp.

References mapToLLVMFastMathFlags(), and P.

◆ LLVMGetHandlers()

LLVM_C_ABI void LLVMGetHandlers ( LLVMValueRef  CatchSwitch,
LLVMBasicBlockRef Handlers 
)

Obtain the basic blocks acting as handlers for a catchswitch instruction.

The Handlers parameter should point to a pre-allocated array of LLVMBasicBlockRefs at least LLVMGetNumHandlers() large. On return, the first LLVMGetNumHandlers() entries in the array will be populated with LLVMBasicBlockRef instances.

Parameters
CatchSwitchThe catchswitch instruction to operate on.
HandlersMemory address of an array to be filled with basic blocks.

Definition at line 3573 of file Core.cpp.

References H, llvm::CatchSwitchInst::handlers(), and llvm::wrap().

◆ LLVMGetInsertBlock()

LLVM_C_ABI LLVMBasicBlockRef LLVMGetInsertBlock ( LLVMBuilderRef  Builder)

Definition at line 3329 of file Core.cpp.

References unwrap(), and llvm::wrap().

◆ LLVMGetIsDisjoint()

LLVM_C_ABI LLVMBool LLVMGetIsDisjoint ( LLVMValueRef  Inst)

Gets whether the instruction has the disjoint flag set.

Only valid for or instructions.

Definition at line 3851 of file Core.cpp.

References P.

◆ LLVMGetMaskValue()

LLVM_C_ABI int LLVMGetMaskValue ( LLVMValueRef  ShuffleVectorInst,
unsigned  Elt 
)

Get the mask value at position Elt in the mask of a ShuffleVector instruction.

\Returns the result of LLVMGetUndefMaskElem() if the mask value is poison at that position.

Definition at line 4437 of file Core.cpp.

References I, P, and unwrap().

◆ LLVMGetNNeg()

LLVM_C_ABI LLVMBool LLVMGetNNeg ( LLVMValueRef  NonNegInst)

Gets if the instruction has the non-negative flag set.

Only valid for zext instructions.

Definition at line 3825 of file Core.cpp.

References P.

◆ LLVMGetNSW()

LLVM_C_ABI LLVMBool LLVMGetNSW ( LLVMValueRef  ArithInst)

Definition at line 3805 of file Core.cpp.

References P.

◆ LLVMGetNumClauses()

LLVM_C_ABI unsigned LLVMGetNumClauses ( LLVMValueRef  LandingPad)

Definition at line 3545 of file Core.cpp.

◆ LLVMGetNumHandlers()

LLVM_C_ABI unsigned LLVMGetNumHandlers ( LLVMValueRef  CatchSwitch)

Definition at line 3569 of file Core.cpp.

◆ LLVMGetNumMaskElements()

LLVM_C_ABI unsigned LLVMGetNumMaskElements ( LLVMValueRef  ShuffleVectorInst)

Get the number of elements in the mask of a ShuffleVector instruction.

Definition at line 4431 of file Core.cpp.

References I, P, and unwrap().

◆ LLVMGetNUW()

LLVM_C_ABI LLVMBool LLVMGetNUW ( LLVMValueRef  ArithInst)

Definition at line 3795 of file Core.cpp.

References P.

◆ LLVMGetOrdering()

LLVM_C_ABI LLVMAtomicOrdering LLVMGetOrdering ( LLVMValueRef  MemoryAccessInst)

Definition at line 4119 of file Core.cpp.

References mapToLLVMOrdering(), P, and unwrap().

◆ LLVMGetParentCatchSwitch()

LLVM_C_ABI LLVMValueRef LLVMGetParentCatchSwitch ( LLVMValueRef  CatchPad)

Get the parent catchswitch instruction of a catchpad instruction.

This only works on llvm::CatchPadInst instructions.

See also
llvm::CatchPadInst::getCatchSwitch()

Definition at line 3579 of file Core.cpp.

References llvm::wrap().

◆ LLVMGetUndefMaskElem()

LLVM_C_ABI int LLVMGetUndefMaskElem ( void  )
Returns
a constant that specifies that the result of a ShuffleVectorInst is undefined.

Definition at line 4443 of file Core.cpp.

References llvm::PoisonMaskElem.

◆ LLVMGetVolatile()

LLVM_C_ABI LLVMBool LLVMGetVolatile ( LLVMValueRef  MemoryAccessInst)

Definition at line 4089 of file Core.cpp.

References P, and unwrap().

◆ LLVMGetWeak()

LLVM_C_ABI LLVMBool LLVMGetWeak ( LLVMValueRef  CmpXchgInst)

Definition at line 4111 of file Core.cpp.

◆ LLVMInsertIntoBuilder()

LLVM_C_ABI void LLVMInsertIntoBuilder ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

Definition at line 3337 of file Core.cpp.

References unwrap().

◆ LLVMInsertIntoBuilderWithName()

LLVM_C_ABI void LLVMInsertIntoBuilderWithName ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr,
const char Name 
)

Definition at line 3341 of file Core.cpp.

References Name, and unwrap().

◆ LLVMIsAtomic()

LLVM_C_ABI LLVMBool LLVMIsAtomic ( LLVMValueRef  Inst)

Returns whether an instruction is an atomic instruction, e.g., atomicrmw, cmpxchg, fence, or loads and stores with atomic ordering.

Definition at line 4445 of file Core.cpp.

◆ LLVMIsAtomicSingleThread()

LLVM_C_ABI LLVMBool LLVMIsAtomicSingleThread ( LLVMValueRef  AtomicInst)

Definition at line 4449 of file Core.cpp.

References llvm::getAtomicSyncScopeID(), I, and llvm::SyncScope::SingleThread.

◆ LLVMIsCleanup()

LLVM_C_ABI LLVMBool LLVMIsCleanup ( LLVMValueRef  LandingPad)

Definition at line 3557 of file Core.cpp.

◆ LLVMPositionBuilder()

LLVM_C_ABI void LLVMPositionBuilder ( LLVMBuilderRef  Builder,
LLVMBasicBlockRef  Block,
LLVMValueRef  Instr 
)

Set the builder position before Instr but after any attached debug records, or if Instr is null set the position to the end of Block.

Definition at line 3300 of file Core.cpp.

References llvm::Block, LLVMPositionBuilderImpl(), and unwrap().

◆ LLVMPositionBuilderAtEnd()

LLVM_C_ABI void LLVMPositionBuilderAtEnd ( LLVMBuilderRef  Builder,
LLVMBasicBlockRef  Block 
)

Definition at line 3324 of file Core.cpp.

References llvm::Block, and unwrap().

◆ LLVMPositionBuilderBefore()

LLVM_C_ABI void LLVMPositionBuilderBefore ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

Set the builder position before Instr but after any attached debug records.

Definition at line 3313 of file Core.cpp.

References I, LLVMPositionBuilderImpl(), and unwrap().

◆ LLVMPositionBuilderBeforeDbgRecords()

LLVM_C_ABI void LLVMPositionBuilderBeforeDbgRecords ( LLVMBuilderRef  Builder,
LLVMBasicBlockRef  Block,
LLVMValueRef  Inst 
)

Set the builder position before Instr and any attached debug records, or if Instr is null set the position to the end of Block.

Definition at line 3306 of file Core.cpp.

References llvm::Block, LLVMPositionBuilderImpl(), and unwrap().

◆ LLVMPositionBuilderBeforeInstrAndDbgRecords()

LLVM_C_ABI void LLVMPositionBuilderBeforeInstrAndDbgRecords ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

Set the builder position before Instr and any attached debug records.

Definition at line 3318 of file Core.cpp.

References I, LLVMPositionBuilderImpl(), and unwrap().

◆ LLVMSetArgOperand()

LLVM_C_ABI void LLVMSetArgOperand ( LLVMValueRef  Funclet,
unsigned  i,
LLVMValueRef  value 
)

Definition at line 3594 of file Core.cpp.

References unwrap(), and value.

◆ LLVMSetAtomicRMWBinOp()

LLVM_C_ABI void LLVMSetAtomicRMWBinOp ( LLVMValueRef  AtomicRMWInst,
LLVMAtomicRMWBinOp  BinOp 
)

Definition at line 4150 of file Core.cpp.

References mapFromLLVMRMWBinOp().

◆ LLVMSetAtomicSingleThread()

LLVM_C_ABI void LLVMSetAtomicSingleThread ( LLVMValueRef  AtomicInst,
LLVMBool  SingleThread 
)

◆ LLVMSetAtomicSyncScopeID()

LLVM_C_ABI void LLVMSetAtomicSyncScopeID ( LLVMValueRef  AtomicInst,
unsigned  SSID 
)

Sets the synchronization scope ID of an atomic instruction.

Definition at line 4474 of file Core.cpp.

References assert(), I, and llvm::setAtomicSyncScopeID().

◆ LLVMSetCleanup()

LLVM_C_ABI void LLVMSetCleanup ( LLVMValueRef  LandingPad,
LLVMBool  Val 
)

Definition at line 3561 of file Core.cpp.

◆ LLVMSetCmpXchgFailureOrdering()

LLVM_C_ABI void LLVMSetCmpXchgFailureOrdering ( LLVMValueRef  CmpXchgInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4498 of file Core.cpp.

References mapFromLLVMOrdering(), P, and unwrap().

◆ LLVMSetCmpXchgSuccessOrdering()

LLVM_C_ABI void LLVMSetCmpXchgSuccessOrdering ( LLVMValueRef  CmpXchgInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4485 of file Core.cpp.

References mapFromLLVMOrdering(), P, and unwrap().

◆ LLVMSetCurrentDebugLocation()

LLVM_C_ABI void LLVMSetCurrentDebugLocation ( LLVMBuilderRef  Builder,
LLVMValueRef  L 
)

Deprecated: Passing the NULL location will crash.

Use LLVMGetCurrentDebugLocation2 instead.

Definition at line 3363 of file Core.cpp.

References unwrap().

◆ LLVMSetCurrentDebugLocation2()

LLVM_C_ABI void LLVMSetCurrentDebugLocation2 ( LLVMBuilderRef  Builder,
LLVMMetadataRef  Loc 
)

Set location information used by debugging information.

To clear the location metadata of the given instruction, pass NULL to Loc.

See also
llvm::IRBuilder::SetCurrentDebugLocation()

Definition at line 3356 of file Core.cpp.

References unwrap().

◆ LLVMSetExact()

LLVM_C_ABI void LLVMSetExact ( LLVMValueRef  DivOrShrInst,
LLVMBool  IsExact 
)

Definition at line 3820 of file Core.cpp.

References P.

◆ LLVMSetFastMathFlags()

LLVM_C_ABI void LLVMSetFastMathFlags ( LLVMValueRef  FPMathInst,
LLVMFastMathFlags  FMF 
)

Sets the flags for which fast-math-style optimizations are allowed for this value.

Only valid on floating point instructions.

See also
LLVMCanValueUseFastMathFlags

Definition at line 3841 of file Core.cpp.

References mapFromLLVMFastMathFlags(), and P.

◆ LLVMSetInstDebugLocation()

LLVM_C_ABI void LLVMSetInstDebugLocation ( LLVMBuilderRef  Builder,
LLVMValueRef  Inst 
)

Attempts to set the debug location for the given instruction using the current debug location for the given builder.

If the builder has no current debug location, this function is a no-op.

Deprecated:
LLVMSetInstDebugLocation is deprecated in favor of the more general LLVMAddMetadataToInst.
See also
llvm::IRBuilder::SetInstDebugLocation()

Definition at line 3375 of file Core.cpp.

References unwrap().

◆ LLVMSetIsDisjoint()

LLVM_C_ABI void LLVMSetIsDisjoint ( LLVMValueRef  Inst,
LLVMBool  IsDisjoint 
)

Sets the disjoint flag for the instruction.

Only valid for or instructions.

Definition at line 3856 of file Core.cpp.

References P.

◆ LLVMSetNNeg()

LLVM_C_ABI void LLVMSetNNeg ( LLVMValueRef  NonNegInst,
LLVMBool  IsNonNeg 
)

Sets the non-negative flag for the instruction.

Only valid for zext instructions.

Definition at line 3830 of file Core.cpp.

References P.

◆ LLVMSetNSW()

LLVM_C_ABI void LLVMSetNSW ( LLVMValueRef  ArithInst,
LLVMBool  HasNSW 
)

Definition at line 3810 of file Core.cpp.

References P.

◆ LLVMSetNUW()

LLVM_C_ABI void LLVMSetNUW ( LLVMValueRef  ArithInst,
LLVMBool  HasNUW 
)

Definition at line 3800 of file Core.cpp.

References P.

◆ LLVMSetOrdering()

LLVM_C_ABI void LLVMSetOrdering ( LLVMValueRef  MemoryAccessInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4133 of file Core.cpp.

References mapFromLLVMOrdering(), P, and unwrap().

◆ LLVMSetParentCatchSwitch()

LLVM_C_ABI void LLVMSetParentCatchSwitch ( LLVMValueRef  CatchPad,
LLVMValueRef  CatchSwitch 
)

Set the parent catchswitch instruction of a catchpad instruction.

This only works on llvm::CatchPadInst instructions.

See also
llvm::CatchPadInst::setCatchSwitch()

Definition at line 3583 of file Core.cpp.

◆ LLVMSetVolatile()

LLVM_C_ABI void LLVMSetVolatile ( LLVMValueRef  MemoryAccessInst,
LLVMBool  IsVolatile 
)

Definition at line 4100 of file Core.cpp.

References P, and unwrap().

◆ LLVMSetWeak()

LLVM_C_ABI void LLVMSetWeak ( LLVMValueRef  CmpXchgInst,
LLVMBool  IsWeak 
)

Definition at line 4115 of file Core.cpp.