LLVM 20.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

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

◆ LLVMAddCase()

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

Definition at line 3473 of file Core.cpp.

References unwrap().

◆ LLVMAddClause()

void LLVMAddClause ( LLVMValueRef  LandingPad,
LLVMValueRef  ClauseVal 
)

Definition at line 3490 of file Core.cpp.

◆ LLVMAddDestination()

void LLVMAddDestination ( LLVMValueRef  IndirectBr,
LLVMBasicBlockRef  Dest 
)

Definition at line 3478 of file Core.cpp.

References unwrap().

◆ LLVMAddHandler()

void LLVMAddHandler ( LLVMValueRef  CatchSwitch,
LLVMBasicBlockRef  Dest 
)

Definition at line 3502 of file Core.cpp.

References unwrap().

◆ LLVMAddMetadataToInst()

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 3320 of file Core.cpp.

References unwrap().

◆ LLVMBuildAdd()

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

Definition at line 3570 of file Core.cpp.

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

◆ LLVMBuildAddrSpaceCast()

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

Definition at line 4132 of file Core.cpp.

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

◆ LLVMBuildAggregateRet()

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

Definition at line 3346 of file Core.cpp.

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

◆ LLVMBuildAlloca()

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

Definition at line 3843 of file Core.cpp.

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

◆ LLVMBuildAnd()

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

Definition at line 3685 of file Core.cpp.

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

◆ LLVMBuildArrayAlloca()

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

Definition at line 3848 of file Core.cpp.

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

◆ LLVMBuildArrayMalloc()

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

◆ LLVMBuildAShr()

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

Definition at line 3680 of file Core.cpp.

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

◆ LLVMBuildAtomicCmpXchg()

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

◆ LLVMBuildAtomicRMW()

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

◆ LLVMBuildBinOp()

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

Definition at line 3700 of file Core.cpp.

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

◆ LLVMBuildBitCast()

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

Definition at line 4127 of file Core.cpp.

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

◆ LLVMBuildBr()

LLVMValueRef LLVMBuildBr ( LLVMBuilderRef  B,
LLVMBasicBlockRef  Dest 
)

Definition at line 3351 of file Core.cpp.

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

◆ LLVMBuildCall2()

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

Definition at line 4212 of file Core.cpp.

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

◆ LLVMBuildCallBr()

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()

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

◆ LLVMBuildCast()

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

Definition at line 4155 of file Core.cpp.

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

◆ LLVMBuildCatchPad()

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

Definition at line 3424 of file Core.cpp.

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

◆ LLVMBuildCatchRet()

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

Definition at line 3457 of file Core.cpp.

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

◆ LLVMBuildCatchSwitch()

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

◆ LLVMBuildCleanupPad()

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

◆ LLVMBuildCleanupRet()

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

Definition at line 3463 of file Core.cpp.

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

◆ LLVMBuildCondBr()

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

Definition at line 3355 of file Core.cpp.

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

◆ LLVMBuilderGetDefaultFPMathTag()

LLVMMetadataRef LLVMBuilderGetDefaultFPMathTag ( LLVMBuilderRef  Builder)

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

See also
llvm::IRBuilder::getDefaultFPMathTag()

Definition at line 3332 of file Core.cpp.

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

◆ LLVMBuilderSetDefaultFPMathTag()

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 3324 of file Core.cpp.

References unwrap().

◆ LLVMBuildExactSDiv()

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

Definition at line 3645 of file Core.cpp.

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

◆ LLVMBuildExactUDiv()

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

Definition at line 3635 of file Core.cpp.

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

◆ LLVMBuildExtractElement()

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

Definition at line 4247 of file Core.cpp.

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

◆ LLVMBuildExtractValue()

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

Definition at line 4267 of file Core.cpp.

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

◆ LLVMBuildFAdd()

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

Definition at line 3585 of file Core.cpp.

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

◆ LLVMBuildFCmp()

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

Definition at line 4199 of file Core.cpp.

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

◆ LLVMBuildFDiv()

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

Definition at line 3650 of file Core.cpp.

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

◆ LLVMBuildFence()

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

◆ LLVMBuildFMul()

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

Definition at line 3625 of file Core.cpp.

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

◆ LLVMBuildFNeg()

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

Definition at line 3724 of file Core.cpp.

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

◆ LLVMBuildFPCast()

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

Definition at line 4179 of file Core.cpp.

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

◆ LLVMBuildFPExt()

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

Definition at line 4112 of file Core.cpp.

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

◆ LLVMBuildFPToSI()

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

Definition at line 4092 of file Core.cpp.

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

◆ LLVMBuildFPToUI()

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

Definition at line 4087 of file Core.cpp.

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

◆ LLVMBuildFPTrunc()

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

Definition at line 4107 of file Core.cpp.

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

◆ LLVMBuildFree()

LLVMValueRef LLVMBuildFree ( LLVMBuilderRef  B,
LLVMValueRef  PointerVal 
)

Definition at line 3853 of file Core.cpp.

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

◆ LLVMBuildFreeze()

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

Definition at line 4279 of file Core.cpp.

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

◆ LLVMBuildFRem()

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

Definition at line 3665 of file Core.cpp.

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

◆ LLVMBuildFSub()

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

Definition at line 3605 of file Core.cpp.

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

◆ LLVMBuildGEP2()

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

Definition at line 3963 of file Core.cpp.

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

◆ LLVMBuildGEPWithNoWrapFlags()

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 3978 of file Core.cpp.

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

◆ LLVMBuildGlobalString()

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

Definition at line 3995 of file Core.cpp.

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

◆ LLVMBuildGlobalStringPtr()

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

Definition at line 4000 of file Core.cpp.

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

◆ LLVMBuildICmp()

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

Definition at line 4192 of file Core.cpp.

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

◆ LLVMBuildInBoundsGEP2()

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

Definition at line 3970 of file Core.cpp.

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

◆ LLVMBuildIndirectBr()

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

Definition at line 3365 of file Core.cpp.

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

◆ LLVMBuildInsertElement()

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

Definition at line 4253 of file Core.cpp.

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

◆ LLVMBuildInsertValue()

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

Definition at line 4272 of file Core.cpp.

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

◆ LLVMBuildIntCast()

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

Deprecated: This cast is always signed.

Use LLVMBuildIntCast2 instead.

Definition at line 4173 of file Core.cpp.

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

◆ LLVMBuildIntCast2()

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

Definition at line 4166 of file Core.cpp.

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

◆ LLVMBuildIntToPtr()

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

Definition at line 4122 of file Core.cpp.

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

◆ LLVMBuildInvoke2()

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

Definition at line 3389 of file Core.cpp.

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

◆ LLVMBuildInvokeWithOperandBundles()

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

◆ LLVMBuildIsNotNull()

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

Definition at line 4289 of file Core.cpp.

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

◆ LLVMBuildIsNull()

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

Definition at line 4284 of file Core.cpp.

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

◆ LLVMBuildLandingPad()

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

◆ LLVMBuildLoad2()

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

Definition at line 3857 of file Core.cpp.

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

◆ LLVMBuildLShr()

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

Definition at line 3675 of file Core.cpp.

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

◆ LLVMBuildMalloc()

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

◆ LLVMBuildMemCpy()

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 3825 of file Core.cpp.

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

◆ LLVMBuildMemMove()

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 3834 of file Core.cpp.

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

◆ LLVMBuildMemSet()

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 3818 of file Core.cpp.

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

◆ LLVMBuildMul()

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

Definition at line 3610 of file Core.cpp.

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

◆ LLVMBuildNeg()

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

Definition at line 3707 of file Core.cpp.

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

◆ LLVMBuildNot()

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

Definition at line 3728 of file Core.cpp.

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

◆ LLVMBuildNSWAdd()

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

Definition at line 3575 of file Core.cpp.

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

◆ LLVMBuildNSWMul()

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

Definition at line 3615 of file Core.cpp.

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

◆ LLVMBuildNSWNeg()

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

Definition at line 3711 of file Core.cpp.

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

◆ LLVMBuildNSWSub()

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

Definition at line 3595 of file Core.cpp.

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

◆ LLVMBuildNUWAdd()

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

Definition at line 3580 of file Core.cpp.

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

◆ LLVMBuildNUWMul()

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

Definition at line 3620 of file Core.cpp.

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

◆ LLVMBuildNUWSub()

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

Definition at line 3600 of file Core.cpp.

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

◆ LLVMBuildOr()

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

Definition at line 3690 of file Core.cpp.

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

◆ LLVMBuildPhi()

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

Definition at line 4208 of file Core.cpp.

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

◆ LLVMBuildPointerCast()

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

Definition at line 4161 of file Core.cpp.

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

◆ LLVMBuildPtrDiff2()

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

Definition at line 4294 of file Core.cpp.

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

◆ LLVMBuildPtrToInt()

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

Definition at line 4117 of file Core.cpp.

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

◆ LLVMBuildResume()

LLVMValueRef LLVMBuildResume ( LLVMBuilderRef  B,
LLVMValueRef  Exn 
)

Definition at line 3442 of file Core.cpp.

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

◆ LLVMBuildRet()

LLVMValueRef LLVMBuildRet ( LLVMBuilderRef  B,
LLVMValueRef  V 
)

Definition at line 3342 of file Core.cpp.

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

◆ LLVMBuildRetVoid()

LLVMValueRef LLVMBuildRetVoid ( LLVMBuilderRef  B)

Definition at line 3338 of file Core.cpp.

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

◆ LLVMBuildSDiv()

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

Definition at line 3640 of file Core.cpp.

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

◆ LLVMBuildSelect()

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

Definition at line 4235 of file Core.cpp.

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

◆ LLVMBuildSExt()

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

Definition at line 4082 of file Core.cpp.

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

◆ LLVMBuildSExtOrBitCast()

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

Definition at line 4143 of file Core.cpp.

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

◆ LLVMBuildShl()

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

Definition at line 3670 of file Core.cpp.

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

◆ LLVMBuildShuffleVector()

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

Definition at line 4260 of file Core.cpp.

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

◆ LLVMBuildSIToFP()

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

Definition at line 4102 of file Core.cpp.

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

◆ LLVMBuildSRem()

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

Definition at line 3660 of file Core.cpp.

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

◆ LLVMBuildStore()

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

Definition at line 3862 of file Core.cpp.

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

◆ LLVMBuildStructGEP2()

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

Definition at line 3988 of file Core.cpp.

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

◆ LLVMBuildSub()

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

Definition at line 3590 of file Core.cpp.

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

◆ LLVMBuildSwitch()

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

Definition at line 3360 of file Core.cpp.

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

◆ LLVMBuildTrunc()

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

Definition at line 4072 of file Core.cpp.

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

◆ LLVMBuildTruncOrBitCast()

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

Definition at line 4149 of file Core.cpp.

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

◆ LLVMBuildUDiv()

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

Definition at line 3630 of file Core.cpp.

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

◆ LLVMBuildUIToFP()

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

Definition at line 4097 of file Core.cpp.

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

◆ LLVMBuildUnreachable()

LLVMValueRef LLVMBuildUnreachable ( LLVMBuilderRef  B)

Definition at line 3469 of file Core.cpp.

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

◆ LLVMBuildURem()

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

Definition at line 3655 of file Core.cpp.

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

◆ LLVMBuildVAArg()

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

Definition at line 4242 of file Core.cpp.

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

◆ LLVMBuildXor()

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

Definition at line 3695 of file Core.cpp.

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

◆ LLVMBuildZExt()

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

Definition at line 4077 of file Core.cpp.

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

◆ LLVMBuildZExtOrBitCast()

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

Definition at line 4137 of file Core.cpp.

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

◆ LLVMCanValueUseFastMathFlags()

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 3783 of file Core.cpp.

◆ LLVMClearInsertionPosition()

void LLVMClearInsertionPosition ( LLVMBuilderRef  Builder)

Definition at line 3274 of file Core.cpp.

References unwrap().

◆ LLVMCreateBuilder()

LLVMBuilderRef LLVMCreateBuilder ( void  )

Definition at line 3230 of file Core.cpp.

References LLVMCreateBuilderInContext(), and LLVMGetGlobalContext().

◆ LLVMCreateBuilderInContext()

LLVMBuilderRef LLVMCreateBuilderInContext ( LLVMContextRef  C)

Definition at line 3226 of file Core.cpp.

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

Referenced by LLVMCreateBuilder().

◆ LLVMDisposeBuilder()

void LLVMDisposeBuilder ( LLVMBuilderRef  Builder)

Definition at line 3287 of file Core.cpp.

References unwrap().

◆ LLVMGetArgOperand()

LLVMValueRef LLVMGetArgOperand ( LLVMValueRef  Funclet,
unsigned  i 
)

Definition at line 3527 of file Core.cpp.

References llvm::wrap().

◆ LLVMGetAtomicRMWBinOp()

LLVMAtomicRMWBinOp LLVMGetAtomicRMWBinOp ( LLVMValueRef  AtomicRMWInst)

Definition at line 4062 of file Core.cpp.

References mapToLLVMRMWBinOp().

◆ LLVMGetCastOpcode()

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

Definition at line 4184 of file Core.cpp.

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

◆ LLVMGetClause()

LLVMValueRef LLVMGetClause ( LLVMValueRef  LandingPad,
unsigned  Idx 
)

Definition at line 3486 of file Core.cpp.

References Idx, and llvm::wrap().

◆ LLVMGetCmpXchgFailureOrdering()

LLVMAtomicOrdering LLVMGetCmpXchgFailureOrdering ( LLVMValueRef  CmpXchgInst)

Definition at line 4382 of file Core.cpp.

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

◆ LLVMGetCmpXchgSuccessOrdering()

LLVMAtomicOrdering LLVMGetCmpXchgSuccessOrdering ( LLVMValueRef  CmpXchgInst)

Definition at line 4369 of file Core.cpp.

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

◆ LLVMGetCurrentDebugLocation()

LLVMValueRef LLVMGetCurrentDebugLocation ( LLVMBuilderRef  Builder)

Deprecated: Returning the NULL location will crash.

Use LLVMGetCurrentDebugLocation2 instead.

Definition at line 3310 of file Core.cpp.

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

◆ LLVMGetCurrentDebugLocation2()

LLVMMetadataRef LLVMGetCurrentDebugLocation2 ( LLVMBuilderRef  Builder)

Get location information used by debugging information.

See also
llvm::IRBuilder::getCurrentDebugLocation()

Definition at line 3293 of file Core.cpp.

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

◆ LLVMGetExact()

LLVMBool LLVMGetExact ( LLVMValueRef  DivOrShrInst)

Definition at line 3752 of file Core.cpp.

References P.

◆ LLVMGetFastMathFlags()

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 3772 of file Core.cpp.

References mapToLLVMFastMathFlags(), and P.

◆ LLVMGetHandlers()

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 3510 of file Core.cpp.

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

◆ LLVMGetInsertBlock()

LLVMBasicBlockRef LLVMGetInsertBlock ( LLVMBuilderRef  Builder)

Definition at line 3270 of file Core.cpp.

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

◆ LLVMGetIsDisjoint()

LLVMBool LLVMGetIsDisjoint ( LLVMValueRef  Inst)

Gets whether the instruction has the disjoint flag set.

Only valid for or instructions.

Definition at line 3788 of file Core.cpp.

References P.

◆ LLVMGetMaskValue()

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 4331 of file Core.cpp.

References I, P, and unwrap().

◆ LLVMGetNNeg()

LLVMBool LLVMGetNNeg ( LLVMValueRef  NonNegInst)

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

Only valid for zext instructions.

Definition at line 3762 of file Core.cpp.

References P.

◆ LLVMGetNSW()

LLVMBool LLVMGetNSW ( LLVMValueRef  ArithInst)

Definition at line 3742 of file Core.cpp.

References P.

◆ LLVMGetNumClauses()

unsigned LLVMGetNumClauses ( LLVMValueRef  LandingPad)

Definition at line 3482 of file Core.cpp.

◆ LLVMGetNumHandlers()

unsigned LLVMGetNumHandlers ( LLVMValueRef  CatchSwitch)

Definition at line 3506 of file Core.cpp.

◆ LLVMGetNumMaskElements()

unsigned LLVMGetNumMaskElements ( LLVMValueRef  ShuffleVectorInst)

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

Definition at line 4325 of file Core.cpp.

References I, P, and unwrap().

◆ LLVMGetNUW()

LLVMBool LLVMGetNUW ( LLVMValueRef  ArithInst)

Definition at line 3732 of file Core.cpp.

References P.

◆ LLVMGetOrdering()

LLVMAtomicOrdering LLVMGetOrdering ( LLVMValueRef  MemoryAccessInst)

Definition at line 4035 of file Core.cpp.

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

◆ LLVMGetParentCatchSwitch()

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 3516 of file Core.cpp.

References llvm::wrap().

◆ LLVMGetUndefMaskElem()

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

Definition at line 4337 of file Core.cpp.

References llvm::PoisonMaskElem.

◆ LLVMGetVolatile()

LLVMBool LLVMGetVolatile ( LLVMValueRef  MemoryAccessInst)

Definition at line 4005 of file Core.cpp.

References P, and unwrap().

◆ LLVMGetWeak()

LLVMBool LLVMGetWeak ( LLVMValueRef  CmpXchgInst)

Definition at line 4027 of file Core.cpp.

◆ LLVMInsertIntoBuilder()

void LLVMInsertIntoBuilder ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

Definition at line 3278 of file Core.cpp.

References unwrap().

◆ LLVMInsertIntoBuilderWithName()

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

Definition at line 3282 of file Core.cpp.

References Name, and unwrap().

◆ LLVMIsAtomicSingleThread()

LLVMBool LLVMIsAtomicSingleThread ( LLVMValueRef  AtomicInst)

Definition at line 4339 of file Core.cpp.

References I, P, llvm::SyncScope::SingleThread, and unwrap().

◆ LLVMIsCleanup()

LLVMBool LLVMIsCleanup ( LLVMValueRef  LandingPad)

Definition at line 3494 of file Core.cpp.

◆ LLVMPositionBuilder()

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 3241 of file Core.cpp.

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

◆ LLVMPositionBuilderAtEnd()

void LLVMPositionBuilderAtEnd ( LLVMBuilderRef  Builder,
LLVMBasicBlockRef  Block 
)

Definition at line 3265 of file Core.cpp.

References llvm::Block, and unwrap().

◆ LLVMPositionBuilderBefore()

void LLVMPositionBuilderBefore ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

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

Definition at line 3254 of file Core.cpp.

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

◆ LLVMPositionBuilderBeforeDbgRecords()

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 3247 of file Core.cpp.

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

◆ LLVMPositionBuilderBeforeInstrAndDbgRecords()

void LLVMPositionBuilderBeforeInstrAndDbgRecords ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

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

Definition at line 3259 of file Core.cpp.

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

◆ LLVMSetArgOperand()

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

Definition at line 3531 of file Core.cpp.

References unwrap(), and value.

◆ LLVMSetAtomicRMWBinOp()

void LLVMSetAtomicRMWBinOp ( LLVMValueRef  AtomicRMWInst,
LLVMAtomicRMWBinOp  BinOp 
)

Definition at line 4066 of file Core.cpp.

References mapFromLLVMRMWBinOp().

◆ LLVMSetAtomicSingleThread()

void LLVMSetAtomicSingleThread ( LLVMValueRef  AtomicInst,
LLVMBool  SingleThread 
)

Definition at line 4354 of file Core.cpp.

References I, P, llvm::SyncScope::SingleThread, llvm::SyncScope::System, and unwrap().

◆ LLVMSetCleanup()

void LLVMSetCleanup ( LLVMValueRef  LandingPad,
LLVMBool  Val 
)

Definition at line 3498 of file Core.cpp.

◆ LLVMSetCmpXchgFailureOrdering()

void LLVMSetCmpXchgFailureOrdering ( LLVMValueRef  CmpXchgInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4387 of file Core.cpp.

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

◆ LLVMSetCmpXchgSuccessOrdering()

void LLVMSetCmpXchgSuccessOrdering ( LLVMValueRef  CmpXchgInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4374 of file Core.cpp.

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

◆ LLVMSetCurrentDebugLocation()

void LLVMSetCurrentDebugLocation ( LLVMBuilderRef  Builder,
LLVMValueRef  L 
)

Deprecated: Passing the NULL location will crash.

Use LLVMGetCurrentDebugLocation2 instead.

Definition at line 3304 of file Core.cpp.

References unwrap().

◆ LLVMSetCurrentDebugLocation2()

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 3297 of file Core.cpp.

References unwrap().

◆ LLVMSetExact()

void LLVMSetExact ( LLVMValueRef  DivOrShrInst,
LLVMBool  IsExact 
)

Definition at line 3757 of file Core.cpp.

References P.

◆ LLVMSetFastMathFlags()

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 3778 of file Core.cpp.

References mapFromLLVMFastMathFlags(), and P.

◆ LLVMSetInstDebugLocation()

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 3316 of file Core.cpp.

References unwrap().

◆ LLVMSetIsDisjoint()

void LLVMSetIsDisjoint ( LLVMValueRef  Inst,
LLVMBool  IsDisjoint 
)

Sets the disjoint flag for the instruction.

Only valid for or instructions.

Definition at line 3793 of file Core.cpp.

References P.

◆ LLVMSetNNeg()

void LLVMSetNNeg ( LLVMValueRef  NonNegInst,
LLVMBool  IsNonNeg 
)

Sets the non-negative flag for the instruction.

Only valid for zext instructions.

Definition at line 3767 of file Core.cpp.

References P.

◆ LLVMSetNSW()

void LLVMSetNSW ( LLVMValueRef  ArithInst,
LLVMBool  HasNSW 
)

Definition at line 3747 of file Core.cpp.

References P.

◆ LLVMSetNUW()

void LLVMSetNUW ( LLVMValueRef  ArithInst,
LLVMBool  HasNUW 
)

Definition at line 3737 of file Core.cpp.

References P.

◆ LLVMSetOrdering()

void LLVMSetOrdering ( LLVMValueRef  MemoryAccessInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4049 of file Core.cpp.

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

◆ LLVMSetParentCatchSwitch()

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 3520 of file Core.cpp.

◆ LLVMSetVolatile()

void LLVMSetVolatile ( LLVMValueRef  MemoryAccessInst,
LLVMBool  IsVolatile 
)

Definition at line 4016 of file Core.cpp.

References P, and unwrap().

◆ LLVMSetWeak()

void LLVMSetWeak ( LLVMValueRef  CmpXchgInst,
LLVMBool  IsWeak 
)

Definition at line 4031 of file Core.cpp.