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.
 
LLVMContextRef LLVMGetBuilderContext (LLVMBuilderRef Builder)
 Obtain the context to which this builder is associated.
 
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 LLVMBuildFenceSyncScope (LLVMBuilderRef B, LLVMAtomicOrdering ordering, unsigned SSID, const char *Name)
 
LLVMValueRef LLVMBuildAtomicRMW (LLVMBuilderRef B, LLVMAtomicRMWBinOp op, LLVMValueRef PTR, LLVMValueRef Val, LLVMAtomicOrdering ordering, LLVMBool singleThread)
 
LLVMValueRef LLVMBuildAtomicRMWSyncScope (LLVMBuilderRef B, LLVMAtomicRMWBinOp op, LLVMValueRef PTR, LLVMValueRef Val, LLVMAtomicOrdering ordering, unsigned SSID)
 
LLVMValueRef LLVMBuildAtomicCmpXchg (LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Cmp, LLVMValueRef New, LLVMAtomicOrdering SuccessOrdering, LLVMAtomicOrdering FailureOrdering, LLVMBool SingleThread)
 
LLVMValueRef LLVMBuildAtomicCmpXchgSyncScope (LLVMBuilderRef B, LLVMValueRef Ptr, LLVMValueRef Cmp, LLVMValueRef New, LLVMAtomicOrdering SuccessOrdering, LLVMAtomicOrdering FailureOrdering, unsigned SSID)
 
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)
 
LLVMBool LLVMIsAtomic (LLVMValueRef Inst)
 Returns whether an instruction is an atomic instruction, e.g., atomicrmw, cmpxchg, fence, or loads and stores with atomic ordering.
 
unsigned LLVMGetAtomicSyncScopeID (LLVMValueRef AtomicInst)
 Returns the synchronization scope ID of an atomic instruction.
 
void LLVMSetAtomicSyncScopeID (LLVMValueRef AtomicInst, unsigned SSID)
 Sets the synchronization scope ID of an atomic instruction.
 
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 3486 of file Core.cpp.

References unwrap().

◆ LLVMAddClause()

void LLVMAddClause ( LLVMValueRef  LandingPad,
LLVMValueRef  ClauseVal 
)

Definition at line 3503 of file Core.cpp.

◆ LLVMAddDestination()

void LLVMAddDestination ( LLVMValueRef  IndirectBr,
LLVMBasicBlockRef  Dest 
)

Definition at line 3491 of file Core.cpp.

References unwrap().

◆ LLVMAddHandler()

void LLVMAddHandler ( LLVMValueRef  CatchSwitch,
LLVMBasicBlockRef  Dest 
)

Definition at line 3515 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 3329 of file Core.cpp.

References unwrap().

◆ LLVMBuildAdd()

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

Definition at line 3583 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 4150 of file Core.cpp.

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

◆ LLVMBuildAggregateRet()

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

Definition at line 3359 of file Core.cpp.

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

◆ LLVMBuildAlloca()

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

Definition at line 3856 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 3698 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 3861 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 3693 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 
)

◆ LLVMBuildAtomicCmpXchgSyncScope()

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

Definition at line 4354 of file Core.cpp.

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

◆ LLVMBuildAtomicRMW()

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

◆ LLVMBuildAtomicRMWSyncScope()

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

Definition at line 4330 of file Core.cpp.

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

◆ LLVMBuildBinOp()

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

Definition at line 3713 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 4145 of file Core.cpp.

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

◆ LLVMBuildBr()

LLVMValueRef LLVMBuildBr ( LLVMBuilderRef  B,
LLVMBasicBlockRef  Dest 
)

Definition at line 3364 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 4230 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 4173 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 3437 of file Core.cpp.

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

◆ LLVMBuildCatchRet()

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

Definition at line 3470 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 3476 of file Core.cpp.

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

◆ LLVMBuildCondBr()

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

Definition at line 3368 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 3345 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 3333 of file Core.cpp.

References unwrap().

◆ LLVMBuildExactSDiv()

LLVMValueRef LLVMBuildExactSDiv ( 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().

◆ LLVMBuildExactUDiv()

LLVMValueRef LLVMBuildExactUDiv ( 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().

◆ LLVMBuildExtractElement()

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

Definition at line 4265 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 4285 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 3598 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 4217 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 3663 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 
)

◆ LLVMBuildFenceSyncScope()

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

Definition at line 3974 of file Core.cpp.

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

◆ LLVMBuildFMul()

LLVMValueRef LLVMBuildFMul ( 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().

◆ LLVMBuildFNeg()

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

Definition at line 3737 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 4197 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 4130 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 4110 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 4105 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 4125 of file Core.cpp.

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

◆ LLVMBuildFree()

LLVMValueRef LLVMBuildFree ( LLVMBuilderRef  B,
LLVMValueRef  PointerVal 
)

Definition at line 3866 of file Core.cpp.

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

◆ LLVMBuildFreeze()

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

Definition at line 4297 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 3678 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 3618 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 3981 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 3996 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 4013 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 4018 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 4210 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 3988 of file Core.cpp.

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

◆ LLVMBuildIndirectBr()

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

Definition at line 3378 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 4271 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 4290 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 4191 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 4184 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 4140 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 3402 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 4307 of file Core.cpp.

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

◆ LLVMBuildIsNull()

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

Definition at line 4302 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 3870 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 3688 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 3838 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 3847 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 3831 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 3623 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 3720 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 3741 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 3588 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 3628 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 3724 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 3608 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 3593 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 3633 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 3613 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 3703 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 4226 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 4179 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 4312 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 4135 of file Core.cpp.

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

◆ LLVMBuildResume()

LLVMValueRef LLVMBuildResume ( LLVMBuilderRef  B,
LLVMValueRef  Exn 
)

Definition at line 3455 of file Core.cpp.

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

◆ LLVMBuildRet()

LLVMValueRef LLVMBuildRet ( LLVMBuilderRef  B,
LLVMValueRef  V 
)

Definition at line 3355 of file Core.cpp.

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

◆ LLVMBuildRetVoid()

LLVMValueRef LLVMBuildRetVoid ( LLVMBuilderRef  B)

Definition at line 3351 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 3653 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 4253 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 4100 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 4161 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 3683 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 4278 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 4120 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 3673 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 3875 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 4006 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 3603 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 3373 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 4090 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 4167 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 3643 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 4115 of file Core.cpp.

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

◆ LLVMBuildUnreachable()

LLVMValueRef LLVMBuildUnreachable ( LLVMBuilderRef  B)

Definition at line 3482 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 3668 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 4260 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 3708 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 4095 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 4155 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 3796 of file Core.cpp.

◆ LLVMClearInsertionPosition()

void LLVMClearInsertionPosition ( LLVMBuilderRef  Builder)

Definition at line 3283 of file Core.cpp.

References unwrap().

◆ LLVMCreateBuilder()

LLVMBuilderRef LLVMCreateBuilder ( void  )

Definition at line 3239 of file Core.cpp.

References LLVMCreateBuilderInContext(), and LLVMGetGlobalContext().

◆ LLVMCreateBuilderInContext()

LLVMBuilderRef LLVMCreateBuilderInContext ( LLVMContextRef  C)

Definition at line 3235 of file Core.cpp.

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

Referenced by LLVMCreateBuilder().

◆ LLVMDisposeBuilder()

void LLVMDisposeBuilder ( LLVMBuilderRef  Builder)

Definition at line 3296 of file Core.cpp.

References unwrap().

◆ LLVMGetArgOperand()

LLVMValueRef LLVMGetArgOperand ( LLVMValueRef  Funclet,
unsigned  i 
)

Definition at line 3540 of file Core.cpp.

References llvm::wrap().

◆ LLVMGetAtomicRMWBinOp()

LLVMAtomicRMWBinOp LLVMGetAtomicRMWBinOp ( LLVMValueRef  AtomicRMWInst)

Definition at line 4080 of file Core.cpp.

References mapToLLVMRMWBinOp().

◆ LLVMGetAtomicSyncScopeID()

unsigned LLVMGetAtomicSyncScopeID ( LLVMValueRef  AtomicInst)

Returns the synchronization scope ID of an atomic instruction.

Definition at line 4402 of file Core.cpp.

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

◆ LLVMGetBuilderContext()

LLVMContextRef LLVMGetBuilderContext ( LLVMBuilderRef  Builder)

Obtain the context to which this builder is associated.

See also
llvm::IRBuilder::getContext()

Definition at line 3341 of file Core.cpp.

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

◆ LLVMGetCastOpcode()

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

Definition at line 4202 of file Core.cpp.

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

◆ LLVMGetClause()

LLVMValueRef LLVMGetClause ( LLVMValueRef  LandingPad,
unsigned  Idx 
)

Definition at line 3499 of file Core.cpp.

References Idx, and llvm::wrap().

◆ LLVMGetCmpXchgFailureOrdering()

LLVMAtomicOrdering LLVMGetCmpXchgFailureOrdering ( LLVMValueRef  CmpXchgInst)

Definition at line 4427 of file Core.cpp.

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

◆ LLVMGetCmpXchgSuccessOrdering()

LLVMAtomicOrdering LLVMGetCmpXchgSuccessOrdering ( LLVMValueRef  CmpXchgInst)

Definition at line 4414 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 3319 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 3302 of file Core.cpp.

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

◆ LLVMGetExact()

LLVMBool LLVMGetExact ( LLVMValueRef  DivOrShrInst)

Definition at line 3765 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 3785 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 3523 of file Core.cpp.

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

◆ LLVMGetInsertBlock()

LLVMBasicBlockRef LLVMGetInsertBlock ( LLVMBuilderRef  Builder)

Definition at line 3279 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 3801 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 4371 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 3775 of file Core.cpp.

References P.

◆ LLVMGetNSW()

LLVMBool LLVMGetNSW ( LLVMValueRef  ArithInst)

Definition at line 3755 of file Core.cpp.

References P.

◆ LLVMGetNumClauses()

unsigned LLVMGetNumClauses ( LLVMValueRef  LandingPad)

Definition at line 3495 of file Core.cpp.

◆ LLVMGetNumHandlers()

unsigned LLVMGetNumHandlers ( LLVMValueRef  CatchSwitch)

Definition at line 3519 of file Core.cpp.

◆ LLVMGetNumMaskElements()

unsigned LLVMGetNumMaskElements ( LLVMValueRef  ShuffleVectorInst)

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

Definition at line 4365 of file Core.cpp.

References I, P, and unwrap().

◆ LLVMGetNUW()

LLVMBool LLVMGetNUW ( LLVMValueRef  ArithInst)

Definition at line 3745 of file Core.cpp.

References P.

◆ LLVMGetOrdering()

LLVMAtomicOrdering LLVMGetOrdering ( LLVMValueRef  MemoryAccessInst)

Definition at line 4053 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 3529 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 4377 of file Core.cpp.

References llvm::PoisonMaskElem.

◆ LLVMGetVolatile()

LLVMBool LLVMGetVolatile ( LLVMValueRef  MemoryAccessInst)

Definition at line 4023 of file Core.cpp.

References P, and unwrap().

◆ LLVMGetWeak()

LLVMBool LLVMGetWeak ( LLVMValueRef  CmpXchgInst)

Definition at line 4045 of file Core.cpp.

◆ LLVMInsertIntoBuilder()

void LLVMInsertIntoBuilder ( LLVMBuilderRef  Builder,
LLVMValueRef  Instr 
)

Definition at line 3287 of file Core.cpp.

References unwrap().

◆ LLVMInsertIntoBuilderWithName()

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

Definition at line 3291 of file Core.cpp.

References Name, and unwrap().

◆ LLVMIsAtomic()

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

◆ LLVMIsAtomicSingleThread()

LLVMBool LLVMIsAtomicSingleThread ( LLVMValueRef  AtomicInst)

Definition at line 4383 of file Core.cpp.

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

◆ LLVMIsCleanup()

LLVMBool LLVMIsCleanup ( LLVMValueRef  LandingPad)

Definition at line 3507 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 3250 of file Core.cpp.

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

◆ LLVMPositionBuilderAtEnd()

void LLVMPositionBuilderAtEnd ( LLVMBuilderRef  Builder,
LLVMBasicBlockRef  Block 
)

Definition at line 3274 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 3263 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 3256 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 3268 of file Core.cpp.

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

◆ LLVMSetArgOperand()

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

Definition at line 3544 of file Core.cpp.

References unwrap(), and value.

◆ LLVMSetAtomicRMWBinOp()

void LLVMSetAtomicRMWBinOp ( LLVMValueRef  AtomicRMWInst,
LLVMAtomicRMWBinOp  BinOp 
)

Definition at line 4084 of file Core.cpp.

References mapFromLLVMRMWBinOp().

◆ LLVMSetAtomicSingleThread()

void LLVMSetAtomicSingleThread ( LLVMValueRef  AtomicInst,
LLVMBool  SingleThread 
)

◆ LLVMSetAtomicSyncScopeID()

void LLVMSetAtomicSyncScopeID ( LLVMValueRef  AtomicInst,
unsigned  SSID 
)

Sets the synchronization scope ID of an atomic instruction.

Definition at line 4408 of file Core.cpp.

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

◆ LLVMSetCleanup()

void LLVMSetCleanup ( LLVMValueRef  LandingPad,
LLVMBool  Val 
)

Definition at line 3511 of file Core.cpp.

◆ LLVMSetCmpXchgFailureOrdering()

void LLVMSetCmpXchgFailureOrdering ( LLVMValueRef  CmpXchgInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4432 of file Core.cpp.

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

◆ LLVMSetCmpXchgSuccessOrdering()

void LLVMSetCmpXchgSuccessOrdering ( LLVMValueRef  CmpXchgInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4419 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 3313 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 3306 of file Core.cpp.

References unwrap().

◆ LLVMSetExact()

void LLVMSetExact ( LLVMValueRef  DivOrShrInst,
LLVMBool  IsExact 
)

Definition at line 3770 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 3791 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 3325 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 3806 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 3780 of file Core.cpp.

References P.

◆ LLVMSetNSW()

void LLVMSetNSW ( LLVMValueRef  ArithInst,
LLVMBool  HasNSW 
)

Definition at line 3760 of file Core.cpp.

References P.

◆ LLVMSetNUW()

void LLVMSetNUW ( LLVMValueRef  ArithInst,
LLVMBool  HasNUW 
)

Definition at line 3750 of file Core.cpp.

References P.

◆ LLVMSetOrdering()

void LLVMSetOrdering ( LLVMValueRef  MemoryAccessInst,
LLVMAtomicOrdering  Ordering 
)

Definition at line 4067 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 3533 of file Core.cpp.

◆ LLVMSetVolatile()

void LLVMSetVolatile ( LLVMValueRef  MemoryAccessInst,
LLVMBool  IsVolatile 
)

Definition at line 4034 of file Core.cpp.

References P, and unwrap().

◆ LLVMSetWeak()

void LLVMSetWeak ( LLVMValueRef  CmpXchgInst,
LLVMBool  IsWeak 
)

Definition at line 4049 of file Core.cpp.