LLVM  10.0.0
Public Member Functions | List of all members
llvm::IRBuilder< T, Inserter > Class Template Reference

This provides a uniform API for creating instructions and inserting them into a basic block: either at the end of a BasicBlock, or at a specific iterator location in a block. More...

#include "llvm/IR/IRBuilder.h"

Inheritance diagram for llvm::IRBuilder< T, Inserter >:
[legend]
Collaboration diagram for llvm::IRBuilder< T, Inserter >:
[legend]

Public Member Functions

 IRBuilder (LLVMContext &C, const T &F, Inserter I=Inserter(), MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
 IRBuilder (LLVMContext &C, MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
 IRBuilder (BasicBlock *TheBB, const T &F, MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
 IRBuilder (BasicBlock *TheBB, MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
 IRBuilder (Instruction *IP, MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
 IRBuilder (BasicBlock *TheBB, BasicBlock::iterator IP, const T &F, MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
 IRBuilder (BasicBlock *TheBB, BasicBlock::iterator IP, MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
const T & getFolder ()
 Get the constant folder being used. More...
 
template<typename InstTy >
InstTy * Insert (InstTy *I, const Twine &Name="") const
 Insert and return the specified instruction. More...
 
Constant * Insert (Constant *C, const Twine &="") const
 No-op overload to handle constants. More...
 
ReturnInst * CreateRetVoid ()
 Create a 'ret void' instruction. More...
 
ReturnInst * CreateRet (Value *V)
 Create a 'ret <val>' instruction. More...
 
ReturnInst * CreateAggregateRet (Value *const *retVals, unsigned N)
 Create a sequence of N insertvalue instructions, with one Value from the retVals array each, that build a aggregate return value one value at a time, and a ret instruction to return the resulting aggregate value. More...
 
BranchInst * CreateBr (BasicBlock *Dest)
 Create an unconditional 'br label X' instruction. More...
 
BranchInst * CreateCondBr (Value *Cond, BasicBlock *True, BasicBlock *False, MDNode *BranchWeights=nullptr, MDNode *Unpredictable=nullptr)
 Create a conditional 'br Cond, TrueDest, FalseDest' instruction. More...
 
BranchInst * CreateCondBr (Value *Cond, BasicBlock *True, BasicBlock *False, Instruction *MDSrc)
 Create a conditional 'br Cond, TrueDest, FalseDest' instruction. More...
 
SwitchInst * CreateSwitch (Value *V, BasicBlock *Dest, unsigned NumCases=10, MDNode *BranchWeights=nullptr, MDNode *Unpredictable=nullptr)
 Create a switch instruction with the specified value, default dest, and with a hint for the number of cases that will be added (for efficient allocation). More...
 
IndirectBrInst * CreateIndirectBr (Value *Addr, unsigned NumDests=10)
 Create an indirect branch instruction with the specified address operand, with an optional hint for the number of destinations that will be added (for efficient allocation). More...
 
InvokeInst * CreateInvoke (FunctionType *Ty, Value *Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="")
 Create an invoke instruction. More...
 
InvokeInst * CreateInvoke (FunctionType *Ty, Value *Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value *> Args=None, const Twine &Name="")
 
InvokeInst * CreateInvoke (FunctionCallee Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="")
 
InvokeInst * CreateInvoke (FunctionCallee Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value *> Args=None, const Twine &Name="")
 
InvokeInst * CreateInvoke (Value *Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="")
 
InvokeInst * CreateInvoke (Value *Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value *> Args=None, const Twine &Name="")
 
CallBrInst * CreateCallBr (FunctionType *Ty, Value *Callee, BasicBlock *DefaultDest, ArrayRef< BasicBlock *> IndirectDests, ArrayRef< Value *> Args=None, const Twine &Name="")
 Create a callbr instruction. More...
 
CallBrInst * CreateCallBr (FunctionType *Ty, Value *Callee, BasicBlock *DefaultDest, ArrayRef< BasicBlock *> IndirectDests, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="")
 
CallBrInst * CreateCallBr (FunctionCallee Callee, BasicBlock *DefaultDest, ArrayRef< BasicBlock *> IndirectDests, ArrayRef< Value *> Args=None, const Twine &Name="")
 
CallBrInst * CreateCallBr (FunctionCallee Callee, BasicBlock *DefaultDest, ArrayRef< BasicBlock *> IndirectDests, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="")
 
ResumeInst * CreateResume (Value *Exn)
 
CleanupReturnInst * CreateCleanupRet (CleanupPadInst *CleanupPad, BasicBlock *UnwindBB=nullptr)
 
CatchSwitchInst * CreateCatchSwitch (Value *ParentPad, BasicBlock *UnwindBB, unsigned NumHandlers, const Twine &Name="")
 
CatchPadInst * CreateCatchPad (Value *ParentPad, ArrayRef< Value *> Args, const Twine &Name="")
 
CleanupPadInst * CreateCleanupPad (Value *ParentPad, ArrayRef< Value *> Args=None, const Twine &Name="")
 
CatchReturnInst * CreateCatchRet (CatchPadInst *CatchPad, BasicBlock *BB)
 
UnreachableInst * CreateUnreachable ()
 
Value * CreateAdd (Value *LHS, Value *RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
 
Value * CreateNSWAdd (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateNUWAdd (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateSub (Value *LHS, Value *RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
 
Value * CreateNSWSub (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateNUWSub (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateMul (Value *LHS, Value *RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
 
Value * CreateNSWMul (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateNUWMul (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateUDiv (Value *LHS, Value *RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateExactUDiv (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateSDiv (Value *LHS, Value *RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateExactSDiv (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateURem (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateSRem (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateShl (Value *LHS, Value *RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
 
Value * CreateShl (Value *LHS, const APInt &RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
 
Value * CreateShl (Value *LHS, uint64_t RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
 
Value * CreateLShr (Value *LHS, Value *RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateLShr (Value *LHS, const APInt &RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateLShr (Value *LHS, uint64_t RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateAShr (Value *LHS, Value *RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateAShr (Value *LHS, const APInt &RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateAShr (Value *LHS, uint64_t RHS, const Twine &Name="", bool isExact=false)
 
Value * CreateAnd (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateAnd (Value *LHS, const APInt &RHS, const Twine &Name="")
 
Value * CreateAnd (Value *LHS, uint64_t RHS, const Twine &Name="")
 
Value * CreateAnd (ArrayRef< Value *> Ops)
 
Value * CreateOr (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateOr (Value *LHS, const APInt &RHS, const Twine &Name="")
 
Value * CreateOr (Value *LHS, uint64_t RHS, const Twine &Name="")
 
Value * CreateOr (ArrayRef< Value *> Ops)
 
Value * CreateXor (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateXor (Value *LHS, const APInt &RHS, const Twine &Name="")
 
Value * CreateXor (Value *LHS, uint64_t RHS, const Twine &Name="")
 
Value * CreateFAdd (Value *L, Value *R, const Twine &Name="", MDNode *FPMD=nullptr)
 
Value * CreateFAddFMF (Value *L, Value *R, Instruction *FMFSource, const Twine &Name="")
 Copy fast-math-flags from an instruction rather than using the builder's default FMF. More...
 
Value * CreateFSub (Value *L, Value *R, const Twine &Name="", MDNode *FPMD=nullptr)
 
Value * CreateFSubFMF (Value *L, Value *R, Instruction *FMFSource, const Twine &Name="")
 Copy fast-math-flags from an instruction rather than using the builder's default FMF. More...
 
Value * CreateFMul (Value *L, Value *R, const Twine &Name="", MDNode *FPMD=nullptr)
 
Value * CreateFMulFMF (Value *L, Value *R, Instruction *FMFSource, const Twine &Name="")
 Copy fast-math-flags from an instruction rather than using the builder's default FMF. More...
 
Value * CreateFDiv (Value *L, Value *R, const Twine &Name="", MDNode *FPMD=nullptr)
 
Value * CreateFDivFMF (Value *L, Value *R, Instruction *FMFSource, const Twine &Name="")
 Copy fast-math-flags from an instruction rather than using the builder's default FMF. More...
 
Value * CreateFRem (Value *L, Value *R, const Twine &Name="", MDNode *FPMD=nullptr)
 
Value * CreateFRemFMF (Value *L, Value *R, Instruction *FMFSource, const Twine &Name="")
 Copy fast-math-flags from an instruction rather than using the builder's default FMF. More...
 
Value * CreateBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateConstrainedFPBinOp (Intrinsic::ID ID, Value *L, Value *R, Instruction *FMFSource=nullptr, const Twine &Name="", MDNode *FPMathTag=nullptr, Optional< fp::RoundingMode > Rounding=None, Optional< fp::ExceptionBehavior > Except=None)
 
Value * CreateNeg (Value *V, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
 
Value * CreateNSWNeg (Value *V, const Twine &Name="")
 
Value * CreateNUWNeg (Value *V, const Twine &Name="")
 
Value * CreateFNeg (Value *V, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFNegFMF (Value *V, Instruction *FMFSource, const Twine &Name="")
 Copy fast-math-flags from an instruction rather than using the builder's default FMF. More...
 
Value * CreateNot (Value *V, const Twine &Name="")
 
Value * CreateUnOp (Instruction::UnaryOps Opc, Value *V, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateNAryOp (unsigned Opc, ArrayRef< Value *> Ops, const Twine &Name="", MDNode *FPMathTag=nullptr)
 Create either a UnaryOperator or BinaryOperator depending on Opc. More...
 
AllocaInst * CreateAlloca (Type *Ty, unsigned AddrSpace, Value *ArraySize=nullptr, const Twine &Name="")
 
AllocaInst * CreateAlloca (Type *Ty, Value *ArraySize=nullptr, const Twine &Name="")
 
LoadInst * CreateLoad (Type *Ty, Value *Ptr, const char *Name)
 Provided to resolve 'CreateLoad(Ty, Ptr, "...")' correctly, instead of converting the string to 'bool' for the isVolatile parameter. More...
 
LoadInst * CreateLoad (Type *Ty, Value *Ptr, const Twine &Name="")
 
LoadInst * CreateLoad (Type *Ty, Value *Ptr, bool isVolatile, const Twine &Name="")
 
LoadInst * CreateLoad (Value *Ptr, const char *Name)
 
LoadInst * CreateLoad (Value *Ptr, const Twine &Name="")
 
LoadInst * CreateLoad (Value *Ptr, bool isVolatile, const Twine &Name="")
 
StoreInst * CreateStore (Value *Val, Value *Ptr, bool isVolatile=false)
 
LoadInst * CreateAlignedLoad (Type *Ty, Value *Ptr, unsigned Align, const char *Name)
 Provided to resolve 'CreateAlignedLoad(Ptr, Align, "...")' correctly, instead of converting the string to 'bool' for the isVolatile parameter. More...
 
LoadInst * CreateAlignedLoad (Type *Ty, Value *Ptr, MaybeAlign Align, const char *Name)
 
LoadInst * CreateAlignedLoad (Type *Ty, Value *Ptr, unsigned Align, const Twine &Name="")
 FIXME: Remove this function once transition to Align is over. More...
 
LoadInst * CreateAlignedLoad (Type *Ty, Value *Ptr, MaybeAlign Align, const Twine &Name="")
 
LoadInst * CreateAlignedLoad (Type *Ty, Value *Ptr, unsigned Align, bool isVolatile, const Twine &Name="")
 FIXME: Remove this function once transition to Align is over. More...
 
LoadInst * CreateAlignedLoad (Type *Ty, Value *Ptr, MaybeAlign Align, bool isVolatile, const Twine &Name="")
 
LoadInst * CreateAlignedLoad (Value *Ptr, unsigned Align, const char *Name)
 
LoadInst * CreateAlignedLoad (Value *Ptr, unsigned Align, const Twine &Name="")
 
LoadInst * CreateAlignedLoad (Value *Ptr, unsigned Align, bool isVolatile, const Twine &Name="")
 
LoadInst * CreateAlignedLoad (Value *Ptr, MaybeAlign Align, const char *Name)
 
LoadInst * CreateAlignedLoad (Value *Ptr, MaybeAlign Align, const Twine &Name="")
 
LoadInst * CreateAlignedLoad (Value *Ptr, MaybeAlign Align, bool isVolatile, const Twine &Name="")
 
StoreInst * CreateAlignedStore (Value *Val, Value *Ptr, unsigned Align, bool isVolatile=false)
 
StoreInst * CreateAlignedStore (Value *Val, Value *Ptr, MaybeAlign Align, bool isVolatile=false)
 
FenceInst * CreateFence (AtomicOrdering Ordering, SyncScope::ID SSID=SyncScope::System, const Twine &Name="")
 
AtomicCmpXchgInst * CreateAtomicCmpXchg (Value *Ptr, Value *Cmp, Value *New, AtomicOrdering SuccessOrdering, AtomicOrdering FailureOrdering, SyncScope::ID SSID=SyncScope::System)
 
AtomicRMWInst * CreateAtomicRMW (AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val, AtomicOrdering Ordering, SyncScope::ID SSID=SyncScope::System)
 
Value * CreateGEP (Value *Ptr, ArrayRef< Value *> IdxList, const Twine &Name="")
 
Value * CreateGEP (Type *Ty, Value *Ptr, ArrayRef< Value *> IdxList, const Twine &Name="")
 
Value * CreateInBoundsGEP (Value *Ptr, ArrayRef< Value *> IdxList, const Twine &Name="")
 
Value * CreateInBoundsGEP (Type *Ty, Value *Ptr, ArrayRef< Value *> IdxList, const Twine &Name="")
 
Value * CreateGEP (Value *Ptr, Value *Idx, const Twine &Name="")
 
Value * CreateGEP (Type *Ty, Value *Ptr, Value *Idx, const Twine &Name="")
 
Value * CreateInBoundsGEP (Type *Ty, Value *Ptr, Value *Idx, const Twine &Name="")
 
Value * CreateConstGEP1_32 (Value *Ptr, unsigned Idx0, const Twine &Name="")
 
Value * CreateConstGEP1_32 (Type *Ty, Value *Ptr, unsigned Idx0, const Twine &Name="")
 
Value * CreateConstInBoundsGEP1_32 (Type *Ty, Value *Ptr, unsigned Idx0, const Twine &Name="")
 
Value * CreateConstGEP2_32 (Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1, const Twine &Name="")
 
Value * CreateConstInBoundsGEP2_32 (Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1, const Twine &Name="")
 
Value * CreateConstGEP1_64 (Type *Ty, Value *Ptr, uint64_t Idx0, const Twine &Name="")
 
Value * CreateConstGEP1_64 (Value *Ptr, uint64_t Idx0, const Twine &Name="")
 
Value * CreateConstInBoundsGEP1_64 (Type *Ty, Value *Ptr, uint64_t Idx0, const Twine &Name="")
 
Value * CreateConstInBoundsGEP1_64 (Value *Ptr, uint64_t Idx0, const Twine &Name="")
 
Value * CreateConstGEP2_64 (Type *Ty, Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name="")
 
Value * CreateConstGEP2_64 (Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name="")
 
Value * CreateConstInBoundsGEP2_64 (Type *Ty, Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name="")
 
Value * CreateConstInBoundsGEP2_64 (Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name="")
 
Value * CreateStructGEP (Type *Ty, Value *Ptr, unsigned Idx, const Twine &Name="")
 
Value * CreateStructGEP (Value *Ptr, unsigned Idx, const Twine &Name="")
 
Constant * CreateGlobalStringPtr (StringRef Str, const Twine &Name="", unsigned AddressSpace=0)
 Same as CreateGlobalString, but return a pointer with "i8*" type instead of a pointer to array of i8. More...
 
Value * CreateTrunc (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateZExt (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateSExt (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateZExtOrTrunc (Value *V, Type *DestTy, const Twine &Name="")
 Create a ZExt or Trunc from the integer value V to DestTy. More...
 
Value * CreateSExtOrTrunc (Value *V, Type *DestTy, const Twine &Name="")
 Create a SExt or Trunc from the integer value V to DestTy. More...
 
Value * CreateFPToUI (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateFPToSI (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateUIToFP (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateSIToFP (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateFPTrunc (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateFPExt (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreatePtrToInt (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateIntToPtr (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateBitCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateAddrSpaceCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateZExtOrBitCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateSExtOrBitCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateTruncOrBitCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateCast (Instruction::CastOps Op, Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreatePointerCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreatePointerBitCastOrAddrSpaceCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateIntCast (Value *V, Type *DestTy, bool isSigned, const Twine &Name="")
 
Value * CreateBitOrPointerCast (Value *V, Type *DestTy, const Twine &Name="")
 
Value * CreateFPCast (Value *V, Type *DestTy, const Twine &Name="")
 
CallInst * CreateConstrainedFPCast (Intrinsic::ID ID, Value *V, Type *DestTy, Instruction *FMFSource=nullptr, const Twine &Name="", MDNode *FPMathTag=nullptr, Optional< fp::RoundingMode > Rounding=None, Optional< fp::ExceptionBehavior > Except=None)
 
Value * CreateIntCast (Value *, Type *, const char *)=delete
 
Value * CreateICmpEQ (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpNE (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpUGT (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpUGE (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpULT (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpULE (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpSGT (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpSGE (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpSLT (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateICmpSLE (Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateFCmpOEQ (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpOGT (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpOGE (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpOLT (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpOLE (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpONE (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpORD (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpUNO (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpUEQ (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpUGT (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpUGE (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpULT (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpULE (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpUNE (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateICmp (CmpInst::Predicate P, Value *LHS, Value *RHS, const Twine &Name="")
 
Value * CreateFCmp (CmpInst::Predicate P, Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
Value * CreateFCmpS (CmpInst::Predicate P, Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateConstrainedFPCmp (Intrinsic::ID ID, CmpInst::Predicate P, Value *L, Value *R, const Twine &Name="", Optional< fp::ExceptionBehavior > Except=None)
 
PHINode * CreatePHI (Type *Ty, unsigned NumReservedValues, const Twine &Name="")
 
CallInst * CreateCall (FunctionType *FTy, Value *Callee, ArrayRef< Value *> Args=None, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateCall (FunctionType *FTy, Value *Callee, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateCall (FunctionCallee Callee, ArrayRef< Value *> Args=None, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateCall (FunctionCallee Callee, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateCall (Value *Callee, ArrayRef< Value *> Args=None, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateCall (Value *Callee, ArrayRef< Value *> Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="", MDNode *FPMathTag=nullptr)
 
CallInst * CreateConstrainedFPCall (Function *Callee, ArrayRef< Value *> Args, const Twine &Name="", Optional< fp::RoundingMode > Rounding=None, Optional< fp::ExceptionBehavior > Except=None)
 
Value * CreateSelect (Value *C, Value *True, Value *False, const Twine &Name="", Instruction *MDFrom=nullptr)
 
VAArgInst * CreateVAArg (Value *List, Type *Ty, const Twine &Name="")
 
Value * CreateExtractElement (Value *Vec, Value *Idx, const Twine &Name="")
 
Value * CreateExtractElement (Value *Vec, uint64_t Idx, const Twine &Name="")
 
Value * CreateInsertElement (Value *Vec, Value *NewElt, Value *Idx, const Twine &Name="")
 
Value * CreateInsertElement (Value *Vec, Value *NewElt, uint64_t Idx, const Twine &Name="")
 
Value * CreateShuffleVector (Value *V1, Value *V2, Value *Mask, const Twine &Name="")
 
Value * CreateShuffleVector (Value *V1, Value *V2, ArrayRef< uint32_t > IntMask, const Twine &Name="")
 
Value * CreateExtractValue (Value *Agg, ArrayRef< unsigned > Idxs, const Twine &Name="")
 
Value * CreateInsertValue (Value *Agg, Value *Val, ArrayRef< unsigned > Idxs, const Twine &Name="")
 
LandingPadInst * CreateLandingPad (Type *Ty, unsigned NumClauses, const Twine &Name="")
 
Value * CreateFreeze (Value *V, const Twine &Name="")
 
Value * CreateIsNull (Value *Arg, const Twine &Name="")
 Return an i1 value testing if Arg is null. More...
 
Value * CreateIsNotNull (Value *Arg, const Twine &Name="")
 Return an i1 value testing if Arg is not null. More...
 
Value * CreatePtrDiff (Value *LHS, Value *RHS, const Twine &Name="")
 Return the i64 difference between two pointer values, dividing out the size of the pointed-to objects. More...
 
Value * CreateLaunderInvariantGroup (Value *Ptr)
 Create a launder.invariant.group intrinsic call. More...
 
Value * CreateStripInvariantGroup (Value *Ptr)
 Create a strip.invariant.group intrinsic call. More...
 
Value * CreateVectorSplat (unsigned NumElts, Value *V, const Twine &Name="")
 Return a vector value that contains. More...
 
Value * CreateExtractInteger (const DataLayout &DL, Value *From, IntegerType *ExtractedTy, uint64_t Offset, const Twine &Name)
 Return a value that has been extracted from a larger integer type. More...
 
Value * CreatePreserveArrayAccessIndex (Type *ElTy, Value *Base, unsigned Dimension, unsigned LastIndex, MDNode *DbgInfo)
 
Value * CreatePreserveUnionAccessIndex (Value *Base, unsigned FieldIndex, MDNode *DbgInfo)
 
Value * CreatePreserveStructAccessIndex (Type *ElTy, Value *Base, unsigned Index, unsigned FieldIndex, MDNode *DbgInfo)
 
CallInst * CreateAlignmentAssumption (const DataLayout &DL, Value *PtrValue, unsigned Alignment, Value *OffsetValue=nullptr, Value **TheCheck=nullptr)
 Create an assume intrinsic call that represents an alignment assumption on the provided pointer. More...
 
CallInst * CreateAlignmentAssumption (const DataLayout &DL, Value *PtrValue, Value *Alignment, Value *OffsetValue=nullptr, Value **TheCheck=nullptr)
 Create an assume intrinsic call that represents an alignment assumption on the provided pointer. More...
 
- Public Member Functions inherited from llvm::IRBuilderBase
 IRBuilderBase (LLVMContext &context, MDNode *FPMathTag=nullptr, ArrayRef< OperandBundleDef > OpBundles=None)
 
void ClearInsertionPoint ()
 Clear the insertion point: created instructions will not be inserted into a block. More...
 
BasicBlock * GetInsertBlock () const
 
BasicBlock::iterator GetInsertPoint () const
 
LLVMContext & getContext () const
 
void SetInsertPoint (BasicBlock *TheBB)
 This specifies that created instructions should be appended to the end of the specified block. More...
 
void SetInsertPoint (Instruction *I)
 This specifies that created instructions should be inserted before the specified instruction. More...
 
void SetInsertPoint (BasicBlock *TheBB, BasicBlock::iterator IP)
 This specifies that created instructions should be inserted at the specified point. More...
 
void SetCurrentDebugLocation (DebugLoc L)
 Set location information used by debugging information. More...
 
const DebugLoc & getCurrentDebugLocation () const
 Get location information used by debugging information. More...
 
void SetInstDebugLocation (Instruction *I) const
 If this builder has a current debug location, set it on the specified instruction. More...
 
Type * getCurrentFunctionReturnType () const
 Get the return type of the current function that we're emitting into. More...
 
InsertPoint saveIP () const
 Returns the current insert point. More...
 
InsertPoint saveAndClearIP ()
 Returns the current insert point, clearing it in the process. More...
 
void restoreIP (InsertPoint IP)
 Sets the current insert point to a previously-saved location. More...
 
MDNode * getDefaultFPMathTag () const
 Get the floating point math metadata being used. More...
 
FastMathFlags getFastMathFlags () const
 Get the flags to be applied to created floating point ops. More...
 
void clearFastMathFlags ()
 Clear the fast-math flags. More...
 
void setDefaultFPMathTag (MDNode *FPMathTag)
 Set the floating point math metadata to be used. More...
 
void setFastMathFlags (FastMathFlags NewFMF)
 Set the fast-math flags to be used with generated fp-math operators. More...
 
void setIsFPConstrained (bool IsCon)
 Enable/Disable use of constrained floating point math. More...
 
bool getIsFPConstrained ()
 Query for the use of constrained floating point math. More...
 
void setDefaultConstrainedExcept (fp::ExceptionBehavior NewExcept)
 Set the exception handling to be used with constrained floating point. More...
 
void setDefaultConstrainedRounding (fp::RoundingMode NewRounding)
 Set the rounding mode handling to be used with constrained floating point. More...
 
fp::ExceptionBehavior getDefaultConstrainedExcept ()
 Get the exception handling used with constrained floating point. More...
 
fp::RoundingMode getDefaultConstrainedRounding ()
 Get the rounding mode handling used with constrained floating point. More...
 
void setConstrainedFPFunctionAttr ()
 
void setConstrainedFPCallAttr (CallInst *I)
 
GlobalVariable * CreateGlobalString (StringRef Str, const Twine &Name="", unsigned AddressSpace=0)
 Make a new global variable with initializer type i8*. More...
 
ConstantInt * getInt1 (bool V)
 Get a constant value representing either true or false. More...
 
ConstantInt * getTrue ()
 Get the constant value for i1 true. More...
 
ConstantInt * getFalse ()
 Get the constant value for i1 false. More...
 
ConstantInt * getInt8 (uint8_t C)
 Get a constant 8-bit value. More...
 
ConstantInt * getInt16 (uint16_t C)
 Get a constant 16-bit value. More...
 
ConstantInt * getInt32 (uint32_t C)
 Get a constant 32-bit value. More...
 
ConstantInt * getInt64 (uint64_t C)
 Get a constant 64-bit value. More...
 
ConstantInt * getIntN (unsigned N, uint64_t C)
 Get a constant N-bit value, zero extended or truncated from a 64-bit value. More...
 
ConstantInt * getInt (const APInt &AI)
 Get a constant integer value. More...
 
IntegerType * getInt1Ty ()
 Fetch the type representing a single bit. More...
 
IntegerType * getInt8Ty ()
 Fetch the type representing an 8-bit integer. More...
 
IntegerType * getInt16Ty ()
 Fetch the type representing a 16-bit integer. More...
 
IntegerType * getInt32Ty ()
 Fetch the type representing a 32-bit integer. More...
 
IntegerType * getInt64Ty ()
 Fetch the type representing a 64-bit integer. More...
 
IntegerType * getInt128Ty ()
 Fetch the type representing a 128-bit integer. More...
 
IntegerType * getIntNTy (unsigned N)
 Fetch the type representing an N-bit integer. More...
 
Type * getHalfTy ()
 Fetch the type representing a 16-bit floating point value. More...
 
Type * getFloatTy ()
 Fetch the type representing a 32-bit floating point value. More...
 
Type * getDoubleTy ()
 Fetch the type representing a 64-bit floating point value. More...
 
Type * getVoidTy ()
 Fetch the type representing void. More...
 
PointerType * getInt8PtrTy (unsigned AddrSpace=0)
 Fetch the type representing a pointer to an 8-bit integer value. More...
 
IntegerType * getIntPtrTy (const DataLayout &DL, unsigned AddrSpace=0)
 Fetch the type representing a pointer to an integer value. More...
 
CallInst * CreateMemSet (Value *Ptr, Value *Val, uint64_t Size, MaybeAlign Align, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 Create and insert a memset to the specified pointer and the specified value. More...
 
CallInst * CreateMemSet (Value *Ptr, Value *Val, Value *Size, MaybeAlign Align, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
 LLVM_ATTRIBUTE_DEPRECATED (CallInst *CreateElementUnorderedAtomicMemSet(Value *Ptr, Value *Val, uint64_t Size, unsigned Alignment, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr), "Use the version that takes Align instead of this one")
 Create and insert an element unordered-atomic memset of the region of memory starting at the given pointer to the given value. More...
 
CallInst * CreateElementUnorderedAtomicMemSet (Value *Ptr, Value *Val, uint64_t Size, Align Alignment, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
 LLVM_ATTRIBUTE_DEPRECATED (CallInst *CreateElementUnorderedAtomicMemSet(Value *Ptr, Value *Val, Value *Size, unsigned Alignment, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr), "Use the version that takes Align instead of this one")
 FIXME: Remove this function once transition to Align is over. More...
 
CallInst * CreateElementUnorderedAtomicMemSet (Value *Ptr, Value *Val, Value *Size, Align Alignment, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
 LLVM_ATTRIBUTE_DEPRECATED (CallInst *CreateMemCpy(Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, uint64_t Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr), "Use the version that takes MaybeAlign instead")
 Create and insert a memcpy between the specified pointers. More...
 
CallInst * CreateMemCpy (Value *Dst, MaybeAlign DstAlign, Value *Src, MaybeAlign SrcAlign, uint64_t Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
 LLVM_ATTRIBUTE_DEPRECATED (CallInst *CreateMemCpy(Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, Value *Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr), "Use the version that takes MaybeAlign instead")
 FIXME: Remove this function once transition to Align is over. More...
 
CallInst * CreateMemCpy (Value *Dst, MaybeAlign DstAlign, Value *Src, MaybeAlign SrcAlign, Value *Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
CallInst * CreateElementUnorderedAtomicMemCpy (Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, uint64_t Size, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 Create and insert an element unordered-atomic memcpy between the specified pointers. More...
 
CallInst * CreateElementUnorderedAtomicMemCpy (Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, Value *Size, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
 LLVM_ATTRIBUTE_DEPRECATED (CallInst *CreateMemMove(Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, uint64_t Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr), "Use the version that takes MaybeAlign")
 Create and insert a memmove between the specified pointers. More...
 
CallInst * CreateMemMove (Value *Dst, MaybeAlign DstAlign, Value *Src, MaybeAlign SrcAlign, uint64_t Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
 LLVM_ATTRIBUTE_DEPRECATED (CallInst *CreateMemMove(Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, Value *Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr), "Use the version that takes MaybeAlign")
 FIXME: Remove this function once transition to Align is over. More...
 
CallInst * CreateMemMove (Value *Dst, MaybeAlign DstAlign, Value *Src, MaybeAlign SrcAlign, Value *Size, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
CallInst * CreateElementUnorderedAtomicMemMove (Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, uint64_t Size, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 Create and insert an element unordered-atomic memmove between the specified pointers. More...
 
CallInst * CreateElementUnorderedAtomicMemMove (Value *Dst, unsigned DstAlign, Value *Src, unsigned SrcAlign, Value *Size, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr)
 
CallInst * CreateFAddReduce (Value *Acc, Value *Src)
 Create a vector fadd reduction intrinsic of the source vector. More...
 
CallInst * CreateFMulReduce (Value *Acc, Value *Src)
 Create a vector fmul reduction intrinsic of the source vector. More...
 
CallInst * CreateAddReduce (Value *Src)
 Create a vector int add reduction intrinsic of the source vector. More...
 
CallInst * CreateMulReduce (Value *Src)
 Create a vector int mul reduction intrinsic of the source vector. More...
 
CallInst * CreateAndReduce (Value *Src)
 Create a vector int AND reduction intrinsic of the source vector. More...
 
CallInst * CreateOrReduce (Value *Src)
 Create a vector int OR reduction intrinsic of the source vector. More...
 
CallInst * CreateXorReduce (Value *Src)
 Create a vector int XOR reduction intrinsic of the source vector. More...
 
CallInst * CreateIntMaxReduce (Value *Src, bool IsSigned=false)
 Create a vector integer max reduction intrinsic of the source vector. More...
 
CallInst * CreateIntMinReduce (Value *Src, bool IsSigned=false)
 Create a vector integer min reduction intrinsic of the source vector. More...
 
CallInst * CreateFPMaxReduce (Value *Src, bool NoNaN=false)
 Create a vector float max reduction intrinsic of the source vector. More...
 
CallInst * CreateFPMinReduce (Value *Src, bool NoNaN=false)
 Create a vector float min reduction intrinsic of the source vector. More...
 
CallInst * CreateLifetimeStart (Value *Ptr, ConstantInt *Size=nullptr)
 Create a lifetime.start intrinsic. More...
 
CallInst * CreateLifetimeEnd (Value *Ptr, ConstantInt *Size=nullptr)
 Create a lifetime.end intrinsic. More...
 
CallInst * CreateInvariantStart (Value *Ptr, ConstantInt *Size=nullptr)
 Create a call to invariant.start intrinsic. More...
 
CallInst * CreateMaskedLoad (Value *Ptr, unsigned Align, Value *Mask, Value *PassThru=nullptr, const Twine &Name="")
 Create a call to Masked Load intrinsic. More...
 
CallInst * CreateMaskedStore (Value *Val, Value *Ptr, unsigned Align, Value *Mask)
 Create a call to Masked Store intrinsic. More...
 
CallInst * CreateMaskedGather (Value *Ptrs, unsigned Align, Value *Mask=nullptr, Value *PassThru=nullptr, const Twine &Name="")
 Create a call to Masked Gather intrinsic. More...
 
CallInst * CreateMaskedScatter (Value *Val, Value *Ptrs, unsigned Align, Value *Mask=nullptr)
 Create a call to Masked Scatter intrinsic. More...
 
CallInst * CreateAssumption (Value *Cond)
 Create an assume intrinsic call that allows the optimizer to assume that the provided condition will be true. More...
 
CallInst * CreateGCStatepointCall (uint64_t ID, uint32_t NumPatchBytes, Value *ActualCallee, ArrayRef< Value *> CallArgs, ArrayRef< Value *> DeoptArgs, ArrayRef< Value *> GCArgs, const Twine &Name="")
 Create a call to the experimental.gc.statepoint intrinsic to start a new statepoint sequence. More...
 
CallInst * CreateGCStatepointCall (uint64_t ID, uint32_t NumPatchBytes, Value *ActualCallee, uint32_t Flags, ArrayRef< Use > CallArgs, ArrayRef< Use > TransitionArgs, ArrayRef< Use > DeoptArgs, ArrayRef< Value *> GCArgs, const Twine &Name="")
 Create a call to the experimental.gc.statepoint intrinsic to start a new statepoint sequence. More...
 
CallInst * CreateGCStatepointCall (uint64_t ID, uint32_t NumPatchBytes, Value *ActualCallee, ArrayRef< Use > CallArgs, ArrayRef< Value *> DeoptArgs, ArrayRef< Value *> GCArgs, const Twine &Name="")
 Conveninence function for the common case when CallArgs are filled in using makeArrayRef(CS.arg_begin(), CS.arg_end()); Use needs to be .get()'ed to get the Value pointer. More...
 
InvokeInst * CreateGCStatepointInvoke (uint64_t ID, uint32_t NumPatchBytes, Value *ActualInvokee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value *> InvokeArgs, ArrayRef< Value *> DeoptArgs, ArrayRef< Value *> GCArgs, const Twine &Name="")
 Create an invoke to the experimental.gc.statepoint intrinsic to start a new statepoint sequence. More...
 
InvokeInst * CreateGCStatepointInvoke (uint64_t ID, uint32_t NumPatchBytes, Value *ActualInvokee, BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, ArrayRef< Use > InvokeArgs, ArrayRef< Use > TransitionArgs, ArrayRef< Use > DeoptArgs, ArrayRef< Value *> GCArgs, const Twine &Name="")
 Create an invoke to the experimental.gc.statepoint intrinsic to start a new statepoint sequence. More...
 
InvokeInst * CreateGCStatepointInvoke (uint64_t ID, uint32_t NumPatchBytes, Value *ActualInvokee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Use > InvokeArgs, ArrayRef< Value *> DeoptArgs, ArrayRef< Value *> GCArgs, const Twine &Name="")
 
CallInst * CreateGCResult (Instruction *Statepoint, Type *ResultType, const Twine &Name="")
 Create a call to the experimental.gc.result intrinsic to extract the result from a call wrapped in a statepoint. More...
 
CallInst * CreateGCRelocate (Instruction *Statepoint, int BaseOffset, int DerivedOffset, Type *ResultType, const Twine &Name="")
 Create a call to the experimental.gc.relocate intrinsics to project the relocated value of one pointer from the statepoint. More...
 
CallInst * CreateUnaryIntrinsic (Intrinsic::ID ID, Value *V, Instruction *FMFSource=nullptr, const Twine &Name="")
 Create a call to intrinsic ID with 1 operand which is mangled on its type. More...
 
CallInst * CreateBinaryIntrinsic (Intrinsic::ID ID, Value *LHS, Value *RHS, Instruction *FMFSource=nullptr, const Twine &Name="")
 Create a call to intrinsic ID with 2 operands which is mangled on the first type. More...
 
CallInst * CreateIntrinsic (Intrinsic::ID ID, ArrayRef< Type *> Types, ArrayRef< Value *> Args, Instruction *FMFSource=nullptr, const Twine &Name="")
 Create a call to intrinsic ID with args, mangled using Types. More...
 
CallInst * CreateMinNum (Value *LHS, Value *RHS, const Twine &Name="")
 Create call to the minnum intrinsic. More...
 
CallInst * CreateMaxNum (Value *LHS, Value *RHS, const Twine &Name="")
 Create call to the maxnum intrinsic. More...
 
CallInst * CreateMinimum (Value *LHS, Value *RHS, const Twine &Name="")
 Create call to the minimum intrinsic. More...
 
CallInst * CreateMaximum (Value *LHS, Value *RHS, const Twine &Name="")
 Create call to the maximum intrinsic. More...
 

Additional Inherited Members

- Protected Attributes inherited from llvm::IRBuilderBase
BasicBlock * BB
 
BasicBlock::iterator InsertPt
 
LLVMContext & Context
 
MDNode * DefaultFPMathTag
 
FastMathFlags FMF
 
bool IsFPConstrained
 
fp::ExceptionBehavior DefaultConstrainedExcept
 
fp::RoundingMode DefaultConstrainedRounding
 
ArrayRef< OperandBundleDef > DefaultOperandBundles
 

Detailed Description

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
class llvm::IRBuilder< T, Inserter >

This provides a uniform API for creating instructions and inserting them into a basic block: either at the end of a BasicBlock, or at a specific iterator location in a block.

Note that the builder does not expose the full generality of LLVM instructions. For access to extra instruction properties, use the mutators (e.g. setVolatile) on the instructions after they have been created. Convenience state exists to specify fast-math flags and fp-math tags.

The first template argument specifies a class to use for creating constants. This defaults to creating minimally folded constants. The second template argument allows clients to specify custom insertion hooks that are called on every newly created insertion.

Definition at line 866 of file IRBuilder.h.

Constructor & Destructor Documentation

◆ IRBuilder() [1/7]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
llvm::IRBuilder< T, Inserter >::IRBuilder ( LLVMContext &  C,
const T &  F,
Inserter  I = Inserter(),
MDNode *  FPMathTag = nullptr,
ArrayRef< OperandBundleDef >  OpBundles = None 
)
inline

Definition at line 870 of file IRBuilder.h.

◆ IRBuilder() [2/7]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
llvm::IRBuilder< T, Inserter >::IRBuilder ( LLVMContext &  C,
MDNode *  FPMathTag = nullptr,
ArrayRef< OperandBundleDef >  OpBundles = None 
)
inlineexplicit

Definition at line 876 of file IRBuilder.h.

◆ IRBuilder() [3/7]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
llvm::IRBuilder< T, Inserter >::IRBuilder ( BasicBlock *  TheBB,
const T &  F,
MDNode *  FPMathTag = nullptr,
ArrayRef< OperandBundleDef >  OpBundles = None 
)
inlineexplicit

Definition at line 880 of file IRBuilder.h.

◆ IRBuilder() [4/7]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
llvm::IRBuilder< T, Inserter >::IRBuilder ( BasicBlock *  TheBB,
MDNode *  FPMathTag = nullptr,
ArrayRef< OperandBundleDef >  OpBundles = None 
)
inlineexplicit

Definition at line 886 of file IRBuilder.h.

◆ IRBuilder() [5/7]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
llvm::IRBuilder< T, Inserter >::IRBuilder ( Instruction *  IP,
MDNode *  FPMathTag = nullptr,
ArrayRef< OperandBundleDef >  OpBundles = None 
)
inlineexplicit

Definition at line 892 of file IRBuilder.h.

◆ IRBuilder() [6/7]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
llvm::IRBuilder< T, Inserter >::IRBuilder ( BasicBlock *  TheBB,
BasicBlock::iterator  IP,
const T &  F,
MDNode *  FPMathTag = nullptr,
ArrayRef< OperandBundleDef >  OpBundles = None 
)
inline

Definition at line 898 of file IRBuilder.h.

◆ IRBuilder() [7/7]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
llvm::IRBuilder< T, Inserter >::IRBuilder ( BasicBlock *  TheBB,
BasicBlock::iterator  IP,
MDNode *  FPMathTag = nullptr,
ArrayRef< OperandBundleDef >  OpBundles = None 
)
inline

Definition at line 905 of file IRBuilder.h.

Member Function Documentation

◆ CreateAdd()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAdd ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  HasNUW = false,
bool  HasNSW = false 
)
inline

◆ CreateAddrSpaceCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAddrSpaceCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2106 of file IRBuilder.h.

Referenced by GetRMWLibcall(), INITIALIZE_PASS(), and simplifyInvariantGroupIntrinsic().

◆ CreateAggregateRet()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
ReturnInst* llvm::IRBuilder< T, Inserter >::CreateAggregateRet ( Value *const *  retVals,
unsigned  N 
)
inline

Create a sequence of N insertvalue instructions, with one Value from the retVals array each, that build a aggregate return value one value at a time, and a ret instruction to return the resulting aggregate value.

This is a convenience function for code that uses aggregate return values as a vehicle for having multiple return values.

Definition at line 963 of file IRBuilder.h.

◆ CreateAlignedLoad() [1/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Type *  Ty,
Value *  Ptr,
unsigned  Align,
const char *  Name 
)
inline

Provided to resolve 'CreateAlignedLoad(Ptr, Align, "...")' correctly, instead of converting the string to 'bool' for the isVolatile parameter.

FIXME: Remove this function once transition to Align is over. Use the version that takes MaybeAlign instead of this one.

Definition at line 1707 of file IRBuilder.h.

Referenced by GetRMWLibcall(), getScalarIntrinsicDeclaration(), INITIALIZE_PASS(), lowerLoadRelative(), simplifyNeonVld1(), TypeSizeToSizeIndex(), unpackLoadToAggregate(), UpgradeMaskedLoad(), llvm::InnerLoopVectorizer::vectorizeInterleaveGroup(), and llvm::InnerLoopVectorizer::vectorizeMemoryInstruction().

◆ CreateAlignedLoad() [2/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Type *  Ty,
Value *  Ptr,
MaybeAlign  Align,
const char *  Name 
)
inline

Definition at line 1711 of file IRBuilder.h.

◆ CreateAlignedLoad() [3/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Type *  Ty,
Value *  Ptr,
unsigned  Align,
const Twine &  Name = "" 
)
inline

FIXME: Remove this function once transition to Align is over.

Use the version that takes MaybeAlign instead of this one.

Definition at line 1719 of file IRBuilder.h.

◆ CreateAlignedLoad() [4/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Type *  Ty,
Value *  Ptr,
MaybeAlign  Align,
const Twine &  Name = "" 
)
inline

Definition at line 1723 of file IRBuilder.h.

◆ CreateAlignedLoad() [5/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Type *  Ty,
Value *  Ptr,
unsigned  Align,
bool  isVolatile,
const Twine &  Name = "" 
)
inline

FIXME: Remove this function once transition to Align is over.

Use the version that takes MaybeAlign instead of this one.

Definition at line 1731 of file IRBuilder.h.

◆ CreateAlignedLoad() [6/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Type *  Ty,
Value *  Ptr,
MaybeAlign  Align,
bool  isVolatile,
const Twine &  Name = "" 
)
inline

Definition at line 1735 of file IRBuilder.h.

◆ CreateAlignedLoad() [7/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Value *  Ptr,
unsigned  Align,
const char *  Name 
)
inline

Definition at line 1743 of file IRBuilder.h.

◆ CreateAlignedLoad() [8/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Value *  Ptr,
unsigned  Align,
const Twine &  Name = "" 
)
inline

Definition at line 1748 of file IRBuilder.h.

◆ CreateAlignedLoad() [9/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Value *  Ptr,
unsigned  Align,
bool  isVolatile,
const Twine &  Name = "" 
)
inline

Definition at line 1754 of file IRBuilder.h.

◆ CreateAlignedLoad() [10/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Value *  Ptr,
MaybeAlign  Align,
const char *  Name 
)
inline

Definition at line 1760 of file IRBuilder.h.

◆ CreateAlignedLoad() [11/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Value *  Ptr,
MaybeAlign  Align,
const Twine &  Name = "" 
)
inline

Definition at line 1765 of file IRBuilder.h.

◆ CreateAlignedLoad() [12/12]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateAlignedLoad ( Value *  Ptr,
MaybeAlign  Align,
bool  isVolatile,
const Twine &  Name = "" 
)
inline

Definition at line 1771 of file IRBuilder.h.

◆ CreateAlignedStore() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
StoreInst* llvm::IRBuilder< T, Inserter >::CreateAlignedStore ( Value *  Val,
Value *  Ptr,
unsigned  Align,
bool  isVolatile = false 
)
inline

◆ CreateAlignedStore() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
StoreInst* llvm::IRBuilder< T, Inserter >::CreateAlignedStore ( Value *  Val,
Value *  Ptr,
MaybeAlign  Align,
bool  isVolatile = false 
)
inline

Definition at line 1783 of file IRBuilder.h.

◆ CreateAlignmentAssumption() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateAlignmentAssumption ( const DataLayout &  DL,
Value *  PtrValue,
unsigned  Alignment,
Value *  OffsetValue = nullptr,
Value **  TheCheck = nullptr 
)
inline

Create an assume intrinsic call that represents an alignment assumption on the provided pointer.

An optional offset can be provided, and if it is provided, the offset must be subtracted from the provided pointer to get the pointer with the specified alignment.

It may be sometimes useful to do some other logic based on this alignment check, thus it can be stored into 'TheCheck'.

Definition at line 2834 of file IRBuilder.h.

◆ CreateAlignmentAssumption() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateAlignmentAssumption ( const DataLayout &  DL,
Value *  PtrValue,
Value *  Alignment,
Value *  OffsetValue = nullptr,
Value **  TheCheck = nullptr 
)
inline

Create an assume intrinsic call that represents an alignment assumption on the provided pointer.

An optional offset can be provided, and if it is provided, the offset must be subtracted from the provided pointer to get the pointer with the specified alignment.

It may be sometimes useful to do some other logic based on this alignment check, thus it can be stored into 'TheCheck'.

This overload handles the condition where the Alignment is dependent on an existing value rather than a static value.

Definition at line 2861 of file IRBuilder.h.

◆ CreateAlloca() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
AllocaInst* llvm::IRBuilder< T, Inserter >::CreateAlloca ( Type *  Ty,
unsigned  AddrSpace,
Value *  ArraySize = nullptr,
const Twine &  Name = "" 
)
inline

◆ CreateAlloca() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
AllocaInst* llvm::IRBuilder< T, Inserter >::CreateAlloca ( Type *  Ty,
Value *  ArraySize = nullptr,
const Twine &  Name = "" 
)
inline

Definition at line 1661 of file IRBuilder.h.

◆ CreateAnd() [1/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAnd ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateAnd() [2/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAnd ( Value *  LHS,
const APInt &  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1371 of file IRBuilder.h.

◆ CreateAnd() [3/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAnd ( Value *  LHS,
uint64_t  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1375 of file IRBuilder.h.

◆ CreateAnd() [4/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAnd ( ArrayRef< Value *>  Ops)
inline

Definition at line 1379 of file IRBuilder.h.

◆ CreateAShr() [1/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAShr ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

◆ CreateAShr() [2/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAShr ( Value *  LHS,
const APInt &  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

Definition at line 1351 of file IRBuilder.h.

◆ CreateAShr() [3/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateAShr ( Value *  LHS,
uint64_t  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

Definition at line 1356 of file IRBuilder.h.

◆ CreateAtomicCmpXchg()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
AtomicCmpXchgInst* llvm::IRBuilder< T, Inserter >::CreateAtomicCmpXchg ( Value *  Ptr,
Value *  Cmp,
Value *  New,
AtomicOrdering  SuccessOrdering,
AtomicOrdering  FailureOrdering,
SyncScope::ID  SSID = SyncScope::System 
)
inline

◆ CreateAtomicRMW()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
AtomicRMWInst* llvm::IRBuilder< T, Inserter >::CreateAtomicRMW ( AtomicRMWInst::BinOp  Op,
Value *  Ptr,
Value *  Val,
AtomicOrdering  Ordering,
SyncScope::ID  SSID = SyncScope::System 
)
inline

◆ CreateBinOp()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateBinOp ( Instruction::BinaryOps  Opc,
Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

◆ CreateBitCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateBitCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2101 of file IRBuilder.h.

Referenced by AddCalls(), llvm::LoopAccessInfo::addRuntimeChecks(), annotateNonNullAndDereferenceable(), ApplyX86MaskOn1BitsVec(), atomicSizeSupported(), canonicalizeBitCastExtElt(), llvm::castToCStr(), combineStoreToNewValue(), createCast(), createCmpXchgInstFun(), llvm::createMemCpyLoopUnknownSize(), llvm::createSeparateConstOffsetFromGEPPass(), llvm::coro::Shape::emitDealloc(), llvm::HexagonTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), EmitX86ScalarSelect(), foldBitCastBitwiseLogic(), foldBitcastExtElt(), foldICmpBitCast(), foldVecTruncToExtElt(), getAllocaSizeInBytes(), getMulHu(), GetRMWLibcall(), getScalarIntrinsicDeclaration(), getSuccState(), getX86MaskVec(), handleNoSuspendCoroutine(), INITIALIZE_PASS(), llvm::InlineFunction(), llvm::log2(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), lowerLoadRelative(), lowerSubFn(), needsRuntimeRegistrationOfSectionRange(), optimizeMemCmpConstantSize(), optimizeVectorResizeWithIntegerBitCasts(), simplifyInvariantGroupIntrinsic(), simplifyNeonVld1(), simplifyX86MaskedLoad(), simplifyX86MaskedStore(), simplifyX86movmsk(), splitRetconCoroutine(), TypeSizeToSizeIndex(), unifyBitWidth(), UpgradeMaskedLoad(), UpgradeMaskedStore(), upgradePMULDQ(), UpgradeX86PSLLDQIntrinsics(), UpgradeX86PSRLDQIntrinsics(), UpgradeX86VPERMT2Intrinsics(), llvm::InnerLoopVectorizer::vectorizeInterleaveGroup(), and llvm::InnerLoopVectorizer::vectorizeMemoryInstruction().

◆ CreateBitOrPointerCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateBitOrPointerCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateBr()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
BranchInst* llvm::IRBuilder< T, Inserter >::CreateBr ( BasicBlock *  Dest)
inline

◆ CreateCall() [1/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateCall ( FunctionType *  FTy,
Value *  Callee,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2419 of file IRBuilder.h.

Referenced by AddCalls(), callIntrinsic(), CanGenerateTest(), llvm::SanitizerStatReport::create(), llvm::createAArch64StackTaggingPass(), createFFSIntrinsic(), CreateGCRelocates(), createOrdering(), createPopcntIntrinsic(), createPowWithIntegerExponent(), CreatePrologue(), llvm::orc::IRSpeculationLayer::emit(), llvm::AArch64TargetLowering::emitAtomicCmpXchgNoStoreLLBalance(), llvm::ARMTargetLowering::emitAtomicCmpXchgNoStoreLLBalance(), emitBinaryFloatFnCallHelper(), llvm::emitCalloc(), llvm::coro::Shape::emitDealloc(), llvm::emitFGetCUnlocked(), llvm::emitFGetSUnlocked(), llvm::emitFPutC(), llvm::emitFPutCUnlocked(), llvm::emitFPutS(), llvm::emitFPutSUnlocked(), llvm::emitFReadUnlocked(), llvm::emitFWrite(), llvm::emitFWriteUnlocked(), emitGetSwiftErrorValue(), emitLibCall(), llvm::HexagonTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::emitMalloc(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), emitSetSwiftErrorValue(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::PPCTargetLowering::emitTrailingFence(), emitUnaryFloatFnCallHelper(), getAllocaSizeInBytes(), GetCtorAndDtorPriority(), getDeclareIntrin(), getIntrinsicForMaskedAtomicRMWBinOp(), getIntToFPVal(), GetRMWLibcall(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), getSignature(), getSqrtCall(), getStackGuard(), getSuccState(), GlobalWasGeneratedByCompiler(), INITIALIZE_PASS(), insertSinCosCall(), insertValues(), instrumentMaskedLoadOrStore(), instrumentOneFunc(), isAtomic(), isCallPromotable(), isIndirectBrTarget(), IsInterestingCmp(), isInterestingPointerSubtraction(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), lowerLocalAllocas(), llvm::ARMTargetLowering::makeDMB(), llvm::makeGuardControlFlowExplicit(), needsRuntimeRegistrationOfSectionRange(), optimizeBinaryDoubleFP(), optimizeDoubleFP(), optimizeTrigReflections(), postDominates(), processUMulZExtIdiom(), promotedOpIsNUW(), replaceUnaryCall(), RetagMask(), llvm::LoopDataPrefetchPass::run(), llvm::HWAddressSanitizerPass::run(), llvm::ModuleSanitizerCoveragePass::run(), shouldKeepFDivF32(), shouldKeepInEntry(), SimplifyBSwap(), tryToRecognizePopCount(), TypeSizeToSizeIndex(), upgradeAVX512MaskToSelect(), UpgradeX86AddSubSatIntrinsics(), upgradeX86ConcatShift(), UpgradeX86MaskedShift(), upgradeX86Rotate(), UpgradeX86VPERMT2Intrinsics(), llvm::AMDGPULibCalls::useNative(), and UseTlsOffset().

◆ CreateCall() [2/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateCall ( FunctionType *  FTy,
Value *  Callee,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2430 of file IRBuilder.h.

◆ CreateCall() [3/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateCall ( FunctionCallee  Callee,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2441 of file IRBuilder.h.

◆ CreateCall() [4/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateCall ( FunctionCallee  Callee,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2447 of file IRBuilder.h.

◆ CreateCall() [5/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateCall ( Value *  Callee,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2455 of file IRBuilder.h.

◆ CreateCall() [6/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateCall ( Value *  Callee,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2463 of file IRBuilder.h.

◆ CreateCallBr() [1/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallBrInst* llvm::IRBuilder< T, Inserter >::CreateCallBr ( FunctionType *  Ty,
Value *  Callee,
BasicBlock *  DefaultDest,
ArrayRef< BasicBlock *>  IndirectDests,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "" 
)
inline

Create a callbr instruction.

Definition at line 1071 of file IRBuilder.h.

◆ CreateCallBr() [2/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallBrInst* llvm::IRBuilder< T, Inserter >::CreateCallBr ( FunctionType *  Ty,
Value *  Callee,
BasicBlock *  DefaultDest,
ArrayRef< BasicBlock *>  IndirectDests,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "" 
)
inline

Definition at line 1079 of file IRBuilder.h.

◆ CreateCallBr() [3/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallBrInst* llvm::IRBuilder< T, Inserter >::CreateCallBr ( FunctionCallee  Callee,
BasicBlock *  DefaultDest,
ArrayRef< BasicBlock *>  IndirectDests,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "" 
)
inline

Definition at line 1090 of file IRBuilder.h.

◆ CreateCallBr() [4/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallBrInst* llvm::IRBuilder< T, Inserter >::CreateCallBr ( FunctionCallee  Callee,
BasicBlock *  DefaultDest,
ArrayRef< BasicBlock *>  IndirectDests,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "" 
)
inline

Definition at line 1097 of file IRBuilder.h.

◆ CreateCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateCast ( Instruction::CastOps  Op,
Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateCatchPad()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CatchPadInst* llvm::IRBuilder< T, Inserter >::CreateCatchPad ( Value *  ParentPad,
ArrayRef< Value *>  Args,
const Twine &  Name = "" 
)
inline

Definition at line 1122 of file IRBuilder.h.

◆ CreateCatchRet()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CatchReturnInst* llvm::IRBuilder< T, Inserter >::CreateCatchRet ( CatchPadInst *  CatchPad,
BasicBlock *  BB 
)
inline

Definition at line 1133 of file IRBuilder.h.

◆ CreateCatchSwitch()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CatchSwitchInst* llvm::IRBuilder< T, Inserter >::CreateCatchSwitch ( Value *  ParentPad,
BasicBlock *  UnwindBB,
unsigned  NumHandlers,
const Twine &  Name = "" 
)
inline

Definition at line 1115 of file IRBuilder.h.

◆ CreateCleanupPad()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CleanupPadInst* llvm::IRBuilder< T, Inserter >::CreateCleanupPad ( Value *  ParentPad,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "" 
)
inline

Definition at line 1127 of file IRBuilder.h.

◆ CreateCleanupRet()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CleanupReturnInst* llvm::IRBuilder< T, Inserter >::CreateCleanupRet ( CleanupPadInst *  CleanupPad,
BasicBlock *  UnwindBB = nullptr 
)
inline

Definition at line 1110 of file IRBuilder.h.

◆ CreateCondBr() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
BranchInst* llvm::IRBuilder< T, Inserter >::CreateCondBr ( Value *  Cond,
BasicBlock *  True,
BasicBlock *  False,
MDNode *  BranchWeights = nullptr,
MDNode *  Unpredictable = nullptr 
)
inline

◆ CreateCondBr() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
BranchInst* llvm::IRBuilder< T, Inserter >::CreateCondBr ( Value *  Cond,
BasicBlock *  True,
BasicBlock *  False,
Instruction *  MDSrc 
)
inline

Create a conditional 'br Cond, TrueDest, FalseDest' instruction.

Copy branch meta data if available.

Definition at line 986 of file IRBuilder.h.

◆ CreateConstGEP1_32() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstGEP1_32 ( Value *  Ptr,
unsigned  Idx0,
const Twine &  Name = "" 
)
inline

◆ CreateConstGEP1_32() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstGEP1_32 ( Type *  Ty,
Value *  Ptr,
unsigned  Idx0,
const Twine &  Name = "" 
)
inline

Definition at line 1870 of file IRBuilder.h.

◆ CreateConstGEP1_64() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstGEP1_64 ( Type *  Ty,
Value *  Ptr,
uint64_t  Idx0,
const Twine &  Name = "" 
)
inline

Definition at line 1916 of file IRBuilder.h.

◆ CreateConstGEP1_64() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstGEP1_64 ( Value *  Ptr,
uint64_t  Idx0,
const Twine &  Name = "" 
)
inline

Definition at line 1926 of file IRBuilder.h.

◆ CreateConstGEP2_32()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstGEP2_32 ( Type *  Ty,
Value *  Ptr,
unsigned  Idx0,
unsigned  Idx1,
const Twine &  Name = "" 
)
inline

Definition at line 1890 of file IRBuilder.h.

◆ CreateConstGEP2_64() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstGEP2_64 ( Type *  Ty,
Value *  Ptr,
uint64_t  Idx0,
uint64_t  Idx1,
const Twine &  Name = "" 
)
inline

Definition at line 1945 of file IRBuilder.h.

Referenced by INITIALIZE_PASS().

◆ CreateConstGEP2_64() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstGEP2_64 ( Value *  Ptr,
uint64_t  Idx0,
uint64_t  Idx1,
const Twine &  Name = "" 
)
inline

Definition at line 1958 of file IRBuilder.h.

◆ CreateConstInBoundsGEP1_32()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP1_32 ( Type *  Ty,
Value *  Ptr,
unsigned  Idx0,
const Twine &  Name = "" 
)
inline

Definition at line 1880 of file IRBuilder.h.

◆ CreateConstInBoundsGEP1_64() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP1_64 ( Type *  Ty,
Value *  Ptr,
uint64_t  Idx0,
const Twine &  Name = "" 
)
inline

Definition at line 1930 of file IRBuilder.h.

Referenced by annotateNonNullAndDereferenceable().

◆ CreateConstInBoundsGEP1_64() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP1_64 ( Value *  Ptr,
uint64_t  Idx0,
const Twine &  Name = "" 
)
inline

Definition at line 1940 of file IRBuilder.h.

◆ CreateConstInBoundsGEP2_32()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP2_32 ( Type *  Ty,
Value *  Ptr,
unsigned  Idx0,
unsigned  Idx1,
const Twine &  Name = "" 
)
inline

Definition at line 1903 of file IRBuilder.h.

Referenced by lowerSubFn().

◆ CreateConstInBoundsGEP2_64() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP2_64 ( Type *  Ty,
Value *  Ptr,
uint64_t  Idx0,
uint64_t  Idx1,
const Twine &  Name = "" 
)
inline

Definition at line 1963 of file IRBuilder.h.

Referenced by getOrInsertValueProfilingCall().

◆ CreateConstInBoundsGEP2_64() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP2_64 ( Value *  Ptr,
uint64_t  Idx0,
uint64_t  Idx1,
const Twine &  Name = "" 
)
inline

Definition at line 1976 of file IRBuilder.h.

◆ CreateConstrainedFPBinOp()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateConstrainedFPBinOp ( Intrinsic::ID  ID,
Value *  L,
Value *  R,
Instruction *  FMFSource = nullptr,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr,
Optional< fp::RoundingMode >  Rounding = None,
Optional< fp::ExceptionBehavior >  Except = None 
)
inline

Definition at line 1561 of file IRBuilder.h.

◆ CreateConstrainedFPCall()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateConstrainedFPCall ( Function *  Callee,
ArrayRef< Value *>  Args,
const Twine &  Name = "",
Optional< fp::RoundingMode >  Rounding = None,
Optional< fp::ExceptionBehavior >  Except = None 
)
inline

Definition at line 2471 of file IRBuilder.h.

◆ CreateConstrainedFPCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateConstrainedFPCast ( Intrinsic::ID  ID,
Value *  V,
Type *  DestTy,
Instruction *  FMFSource = nullptr,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr,
Optional< fp::RoundingMode >  Rounding = None,
Optional< fp::ExceptionBehavior >  Except = None 
)
inline

Definition at line 2199 of file IRBuilder.h.

◆ CreateConstrainedFPCmp()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
CallInst* llvm::IRBuilder< T, Inserter >::CreateConstrainedFPCmp ( Intrinsic::ID  ID,
CmpInst::Predicate  P,
Value *  L,
Value *  R,
const Twine &  Name = "",
Optional< fp::ExceptionBehavior >  Except = None 
)
inline

Definition at line 2394 of file IRBuilder.h.

◆ CreateExactSDiv()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateExactSDiv ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1286 of file IRBuilder.h.

◆ CreateExactUDiv()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateExactUDiv ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1272 of file IRBuilder.h.

◆ CreateExtractElement() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateExtractElement ( Value *  Vec,
Value *  Idx,
const Twine &  Name = "" 
)
inline

◆ CreateExtractElement() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateExtractElement ( Value *  Vec,
uint64_t  Idx,
const Twine &  Name = "" 
)
inline

Definition at line 2528 of file IRBuilder.h.

◆ CreateExtractInteger()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateExtractInteger ( const DataLayout &  DL,
Value *  From,
IntegerType *  ExtractedTy,
uint64_t  Offset,
const Twine &  Name 
)
inline

Return a value that has been extracted from a larger integer type.

Definition at line 2694 of file IRBuilder.h.

◆ CreateExtractValue()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateExtractValue ( Value *  Agg,
ArrayRef< unsigned >  Idxs,
const Twine &  Name = "" 
)
inline

◆ CreateFAdd()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFAdd ( Value *  L,
Value *  R,
const Twine &  Name = "",
MDNode *  FPMD = nullptr 
)
inline

◆ CreateFAddFMF()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFAddFMF ( Value *  L,
Value *  R,
Instruction *  FMFSource,
const Twine &  Name = "" 
)
inline

Copy fast-math-flags from an instruction rather than using the builder's default FMF.

Definition at line 1439 of file IRBuilder.h.

Referenced by factorizeFAddFSub().

◆ CreateFCmp()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmp ( CmpInst::Predicate  P,
Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2367 of file IRBuilder.h.

Referenced by llvm::createMinMaxOp(), foldVectorCmp(), getFCmpValue(), and reassociateFCmps().

◆ CreateFCmpOEQ()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpOEQ ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2286 of file IRBuilder.h.

◆ CreateFCmpOGE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpOGE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2296 of file IRBuilder.h.

Referenced by getMulHu().

◆ CreateFCmpOGT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpOGT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2291 of file IRBuilder.h.

Referenced by createRdxShuffleMask().

◆ CreateFCmpOLE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpOLE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2306 of file IRBuilder.h.

◆ CreateFCmpOLT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpOLT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2301 of file IRBuilder.h.

Referenced by createRdxShuffleMask().

◆ CreateFCmpONE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpONE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2311 of file IRBuilder.h.

◆ CreateFCmpORD()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpORD ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2316 of file IRBuilder.h.

◆ CreateFCmpS()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpS ( CmpInst::Predicate  P,
Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2382 of file IRBuilder.h.

◆ CreateFCmpUEQ()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpUEQ ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2326 of file IRBuilder.h.

◆ CreateFCmpUGE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpUGE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2336 of file IRBuilder.h.

◆ CreateFCmpUGT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpUGT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2331 of file IRBuilder.h.

◆ CreateFCmpULE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpULE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2346 of file IRBuilder.h.

◆ CreateFCmpULT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpULT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2341 of file IRBuilder.h.

◆ CreateFCmpUNE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpUNE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2351 of file IRBuilder.h.

◆ CreateFCmpUNO()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFCmpUNO ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 2321 of file IRBuilder.h.

◆ CreateFDiv()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFDiv ( Value *  L,
Value *  R,
const Twine &  Name = "",
MDNode *  FPMD = nullptr 
)
inline

◆ CreateFDivFMF()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFDivFMF ( Value *  L,
Value *  R,
Instruction *  FMFSource,
const Twine &  Name = "" 
)
inline

Copy fast-math-flags from an instruction rather than using the builder's default FMF.

Definition at line 1514 of file IRBuilder.h.

◆ CreateFence()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
FenceInst* llvm::IRBuilder< T, Inserter >::CreateFence ( AtomicOrdering  Ordering,
SyncScope::ID  SSID = SyncScope::System,
const Twine &  Name = "" 
)
inline

◆ CreateFMul()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFMul ( Value *  L,
Value *  R,
const Twine &  Name = "",
MDNode *  FPMD = nullptr 
)
inline

◆ CreateFMulFMF()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFMulFMF ( Value *  L,
Value *  R,
Instruction *  FMFSource,
const Twine &  Name = "" 
)
inline

Copy fast-math-flags from an instruction rather than using the builder's default FMF.

Definition at line 1489 of file IRBuilder.h.

Referenced by factorizeLerp().

◆ CreateFNeg()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFNeg ( Value *  V,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 1598 of file IRBuilder.h.

Referenced by canonicalizeSaturatedAdd(), getMulHu(), and optimizeTrigReflections().

◆ CreateFNegFMF()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFNegFMF ( Value *  V,
Instruction *  FMFSource,
const Twine &  Name = "" 
)
inline

Copy fast-math-flags from an instruction rather than using the builder's default FMF.

Definition at line 1608 of file IRBuilder.h.

Referenced by hoistFNegAboveFMulFDiv().

◆ CreateFPCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFPCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2191 of file IRBuilder.h.

◆ CreateFPExt()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFPExt ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2084 of file IRBuilder.h.

Referenced by optimizeDoubleFP().

◆ CreateFPToSI()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFPToSI ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2054 of file IRBuilder.h.

Referenced by getMulHu(), and llvm::log2().

◆ CreateFPToUI()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFPToUI ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2047 of file IRBuilder.h.

Referenced by getMulHu().

◆ CreateFPTrunc()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFPTrunc ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2075 of file IRBuilder.h.

◆ CreateFreeze()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFreeze ( Value *  V,
const Twine &  Name = "" 
)
inline

Definition at line 2584 of file IRBuilder.h.

◆ CreateFRem()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFRem ( Value *  L,
Value *  R,
const Twine &  Name = "",
MDNode *  FPMD = nullptr 
)
inline

Definition at line 1526 of file IRBuilder.h.

◆ CreateFRemFMF()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFRemFMF ( Value *  L,
Value *  R,
Instruction *  FMFSource,
const Twine &  Name = "" 
)
inline

Copy fast-math-flags from an instruction rather than using the builder's default FMF.

Definition at line 1539 of file IRBuilder.h.

◆ CreateFSub()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFSub ( Value *  L,
Value *  R,
const Twine &  Name = "",
MDNode *  FPMD = nullptr 
)
inline

Definition at line 1451 of file IRBuilder.h.

Referenced by LowerAtomicRMWInst(), and performAtomicOp().

◆ CreateFSubFMF()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateFSubFMF ( Value *  L,
Value *  R,
Instruction *  FMFSource,
const Twine &  Name = "" 
)
inline

Copy fast-math-flags from an instruction rather than using the builder's default FMF.

Definition at line 1464 of file IRBuilder.h.

Referenced by factorizeFAddFSub(), and factorizeLerp().

◆ CreateGEP() [1/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateGEP ( Value *  Ptr,
ArrayRef< Value *>  IdxList,
const Twine &  Name = "" 
)
inline

◆ CreateGEP() [2/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateGEP ( Type *  Ty,
Value *  Ptr,
ArrayRef< Value *>  IdxList,
const Twine &  Name = "" 
)
inline

Definition at line 1813 of file IRBuilder.h.

◆ CreateGEP() [3/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateGEP ( Value *  Ptr,
Value *  Idx,
const Twine &  Name = "" 
)
inline

Definition at line 1847 of file IRBuilder.h.

◆ CreateGEP() [4/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateGEP ( Type *  Ty,
Value *  Ptr,
Value *  Idx,
const Twine &  Name = "" 
)
inline

Definition at line 1851 of file IRBuilder.h.

◆ CreateGlobalStringPtr()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Constant* llvm::IRBuilder< T, Inserter >::CreateGlobalStringPtr ( StringRef  Str,
const Twine &  Name = "",
unsigned  AddressSpace = 0 
)
inline

Same as CreateGlobalString, but return a pointer with "i8*" type instead of a pointer to array of i8.

Definition at line 1992 of file IRBuilder.h.

Referenced by CreatePrologue(), and shouldKeepInEntry().

◆ CreateICmp()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmp ( CmpInst::Predicate  P,
Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateICmpEQ()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpEQ ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateICmpNE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpNE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateICmpSGE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpSGE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 2274 of file IRBuilder.h.

Referenced by canonicalizeSaturatedAdd(), and instrumentMaskedLoadOrStore().

◆ CreateICmpSGT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpSGT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 2270 of file IRBuilder.h.

Referenced by createRdxShuffleMask(), performAtomicOp(), and simplifyX86pack().

◆ CreateICmpSLE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpSLE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 2282 of file IRBuilder.h.

Referenced by performAtomicOp().

◆ CreateICmpSLT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpSLT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateICmpUGE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpUGE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 2258 of file IRBuilder.h.

Referenced by foldUnsignedUnderflowCheck(), getMulHu(), and TypeSizeToSizeIndex().

◆ CreateICmpUGT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpUGT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateICmpULE()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpULE ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateICmpULT()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateICmpULT ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateInBoundsGEP() [1/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateInBoundsGEP ( Value *  Ptr,
ArrayRef< Value *>  IdxList,
const Twine &  Name = "" 
)
inline

◆ CreateInBoundsGEP() [2/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateInBoundsGEP ( Type *  Ty,
Value *  Ptr,
ArrayRef< Value *>  IdxList,
const Twine &  Name = "" 
)
inline

Definition at line 1832 of file IRBuilder.h.

◆ CreateInBoundsGEP() [3/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateInBoundsGEP ( Type *  Ty,
Value *  Ptr,
Value *  Idx,
const Twine &  Name = "" 
)
inline

Definition at line 1858 of file IRBuilder.h.

◆ CreateIndirectBr()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
IndirectBrInst* llvm::IRBuilder< T, Inserter >::CreateIndirectBr ( Value *  Addr,
unsigned  NumDests = 10 
)
inline

Create an indirect branch instruction with the specified address operand, with an optional hint for the number of destinations that will be added (for efficient allocation).

Definition at line 1010 of file IRBuilder.h.

◆ CreateInsertElement() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateInsertElement ( Value *  Vec,
Value *  NewElt,
Value *  Idx,
const Twine &  Name = "" 
)
inline

◆ CreateInsertElement() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateInsertElement ( Value *  Vec,
Value *  NewElt,
uint64_t  Idx,
const Twine &  Name = "" 
)
inline

Definition at line 2542 of file IRBuilder.h.

◆ CreateInsertValue()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateInsertValue ( Value *  Agg,
Value *  Val,
ArrayRef< unsigned >  Idxs,
const Twine &  Name = "" 
)
inline

◆ CreateIntCast() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateIntCast ( Value *  V,
Type *  DestTy,
bool  isSigned,
const Twine &  Name = "" 
)
inline

◆ CreateIntCast() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateIntCast ( Value *  ,
Type *  ,
const char *   
)
delete

◆ CreateIntToPtr()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateIntToPtr ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateInvoke() [1/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
InvokeInst* llvm::IRBuilder< T, Inserter >::CreateInvoke ( FunctionType *  Ty,
Value *  Callee,
BasicBlock *  NormalDest,
BasicBlock *  UnwindDest,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "" 
)
inline

Create an invoke instruction.

Definition at line 1015 of file IRBuilder.h.

Referenced by INITIALIZE_PASS().

◆ CreateInvoke() [2/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
InvokeInst* llvm::IRBuilder< T, Inserter >::CreateInvoke ( FunctionType *  Ty,
Value *  Callee,
BasicBlock *  NormalDest,
BasicBlock *  UnwindDest,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "" 
)
inline

Definition at line 1024 of file IRBuilder.h.

◆ CreateInvoke() [3/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
InvokeInst* llvm::IRBuilder< T, Inserter >::CreateInvoke ( FunctionCallee  Callee,
BasicBlock *  NormalDest,
BasicBlock *  UnwindDest,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "" 
)
inline

Definition at line 1032 of file IRBuilder.h.

◆ CreateInvoke() [4/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
InvokeInst* llvm::IRBuilder< T, Inserter >::CreateInvoke ( FunctionCallee  Callee,
BasicBlock *  NormalDest,
BasicBlock *  UnwindDest,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "" 
)
inline

Definition at line 1040 of file IRBuilder.h.

◆ CreateInvoke() [5/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
InvokeInst* llvm::IRBuilder< T, Inserter >::CreateInvoke ( Value *  Callee,
BasicBlock *  NormalDest,
BasicBlock *  UnwindDest,
ArrayRef< Value *>  Args,
ArrayRef< OperandBundleDef >  OpBundles,
const Twine &  Name = "" 
)
inline

Definition at line 1049 of file IRBuilder.h.

◆ CreateInvoke() [6/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
InvokeInst* llvm::IRBuilder< T, Inserter >::CreateInvoke ( Value *  Callee,
BasicBlock *  NormalDest,
BasicBlock *  UnwindDest,
ArrayRef< Value *>  Args = None,
const Twine &  Name = "" 
)
inline

Definition at line 1060 of file IRBuilder.h.

◆ CreateIsNotNull()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateIsNotNull ( Value *  Arg,
const Twine &  Name = "" 
)
inline

Return an i1 value testing if Arg is not null.

Definition at line 2599 of file IRBuilder.h.

Referenced by annotateNonNullAndDereferenceable(), ConnectEpilog(), foldAnyOrAllBitsSet(), foldSelectICmpAndAnd(), llvm::UnrollRuntimeLoopRemainder(), and upgradeMaskedMove().

◆ CreateIsNull()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateIsNull ( Value *  Arg,
const Twine &  Name = "" 
)
inline

Return an i1 value testing if Arg is null.

Definition at line 2593 of file IRBuilder.h.

◆ CreateLandingPad()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LandingPadInst* llvm::IRBuilder< T, Inserter >::CreateLandingPad ( Type *  Ty,
unsigned  NumClauses,
const Twine &  Name = "" 
)
inline

Definition at line 2579 of file IRBuilder.h.

◆ CreateLaunderInvariantGroup()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateLaunderInvariantGroup ( Value *  Ptr)
inline

Create a launder.invariant.group intrinsic call.

If Ptr type is different from pointer to i8, it's casted to pointer to i8 in the same address space before call and casted back to Ptr type after call.

Definition at line 2625 of file IRBuilder.h.

Referenced by simplifyInvariantGroupIntrinsic().

◆ CreateLoad() [1/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateLoad ( Type *  Ty,
Value *  Ptr,
const char *  Name 
)
inline

◆ CreateLoad() [2/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateLoad ( Type *  Ty,
Value *  Ptr,
const Twine &  Name = "" 
)
inline

Definition at line 1673 of file IRBuilder.h.

◆ CreateLoad() [3/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateLoad ( Type *  Ty,
Value *  Ptr,
bool  isVolatile,
const Twine &  Name = "" 
)
inline

Definition at line 1677 of file IRBuilder.h.

◆ CreateLoad() [4/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateLoad ( Value *  Ptr,
const char *  Name 
)
inline

Definition at line 1683 of file IRBuilder.h.

◆ CreateLoad() [5/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateLoad ( Value *  Ptr,
const Twine &  Name = "" 
)
inline

Definition at line 1688 of file IRBuilder.h.

◆ CreateLoad() [6/6]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
LoadInst* llvm::IRBuilder< T, Inserter >::CreateLoad ( Value *  Ptr,
bool  isVolatile,
const Twine &  Name = "" 
)
inline

Definition at line 1693 of file IRBuilder.h.

◆ CreateLShr() [1/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateLShr ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

◆ CreateLShr() [2/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateLShr ( Value *  LHS,
const APInt &  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

Definition at line 1331 of file IRBuilder.h.

◆ CreateLShr() [3/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateLShr ( Value *  LHS,
uint64_t  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

Definition at line 1336 of file IRBuilder.h.

◆ CreateMul()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateMul ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  HasNUW = false,
bool  HasNSW = false 
)
inline

◆ CreateNAryOp()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNAryOp ( unsigned  Opc,
ArrayRef< Value *>  Ops,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Create either a UnaryOperator or BinaryOperator depending on Opc.

Correct number of operands must be passed accordingly.

Definition at line 1636 of file IRBuilder.h.

Referenced by llvm::InnerLoopVectorizer::widenInstruction().

◆ CreateNeg()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNeg ( Value *  V,
const Twine &  Name = "",
bool  HasNUW = false,
bool  HasNSW = false 
)
inline

◆ CreateNot()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNot ( Value *  V,
const Twine &  Name = "" 
)
inline

◆ CreateNSWAdd()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNSWAdd ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1220 of file IRBuilder.h.

◆ CreateNSWMul()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNSWMul ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1254 of file IRBuilder.h.

◆ CreateNSWNeg()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNSWNeg ( Value *  V,
const Twine &  Name = "" 
)
inline

Definition at line 1590 of file IRBuilder.h.

◆ CreateNSWSub()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNSWSub ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1237 of file IRBuilder.h.

◆ CreateNUWAdd()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNUWAdd ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1224 of file IRBuilder.h.

Referenced by foldNoWrapAdd().

◆ CreateNUWMul()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNUWMul ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1258 of file IRBuilder.h.

◆ CreateNUWNeg()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNUWNeg ( Value *  V,
const Twine &  Name = "" 
)
inline

Definition at line 1594 of file IRBuilder.h.

◆ CreateNUWSub()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateNUWSub ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1241 of file IRBuilder.h.

◆ CreateOr() [1/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateOr ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateOr() [2/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateOr ( Value *  LHS,
const APInt &  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1397 of file IRBuilder.h.

◆ CreateOr() [3/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateOr ( Value *  LHS,
uint64_t  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1401 of file IRBuilder.h.

◆ CreateOr() [4/4]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateOr ( ArrayRef< Value *>  Ops)
inline

Definition at line 1405 of file IRBuilder.h.

◆ CreatePHI()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
PHINode* llvm::IRBuilder< T, Inserter >::CreatePHI ( Type *  Ty,
unsigned  NumReservedValues,
const Twine &  Name = "" 
)
inline

◆ CreatePointerBitCastOrAddrSpaceCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreatePointerBitCastOrAddrSpaceCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2156 of file IRBuilder.h.

◆ CreatePointerCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreatePointerCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreatePreserveArrayAccessIndex()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreatePreserveArrayAccessIndex ( Type *  ElTy,
Value *  Base,
unsigned  Dimension,
unsigned  LastIndex,
MDNode *  DbgInfo 
)
inline

Definition at line 2717 of file IRBuilder.h.

◆ CreatePreserveStructAccessIndex()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreatePreserveStructAccessIndex ( Type *  ElTy,
Value *  Base,
unsigned  Index,
unsigned  FieldIndex,
MDNode *  DbgInfo 
)
inline

Definition at line 2766 of file IRBuilder.h.

◆ CreatePreserveUnionAccessIndex()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreatePreserveUnionAccessIndex ( Value *  Base,
unsigned  FieldIndex,
MDNode *  DbgInfo 
)
inline

Definition at line 2747 of file IRBuilder.h.

◆ CreatePtrDiff()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreatePtrDiff ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

Return the i64 difference between two pointer values, dividing out the size of the pointed-to objects.

This is intended to implement C-style pointer subtraction. As such, the pointers must be appropriately aligned for their element types and pointing into the same object.

Definition at line 2610 of file IRBuilder.h.

◆ CreatePtrToInt()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreatePtrToInt ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateResume()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
ResumeInst* llvm::IRBuilder< T, Inserter >::CreateResume ( Value *  Exn)
inline

Definition at line 1106 of file IRBuilder.h.

◆ CreateRet()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
ReturnInst* llvm::IRBuilder< T, Inserter >::CreateRet ( Value *  V)
inline

◆ CreateRetVoid()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
ReturnInst* llvm::IRBuilder< T, Inserter >::CreateRetVoid ( )
inline

◆ CreateSDiv()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSDiv ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

Definition at line 1276 of file IRBuilder.h.

Referenced by llvm::expandDivisionUpTo32Bits(), and llvm::expandDivisionUpTo64Bits().

◆ CreateSelect()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSelect ( Value *  C,
Value *  True,
Value *  False,
const Twine &  Name = "",
Instruction *  MDFrom = nullptr 
)
inline

◆ CreateSExt()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSExt ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateSExtOrBitCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSExtOrBitCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2120 of file IRBuilder.h.

◆ CreateSExtOrTrunc()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSExtOrTrunc ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Create a SExt or Trunc from the integer value V to DestTy.

Return the value untouched if the type of V is already DestTy.

Definition at line 2034 of file IRBuilder.h.

Referenced by annotateNonNullAndDereferenceable(), insertValues(), isGEPFoldable(), mapBinOpcode(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), unifyBitWidth(), llvm::InnerLoopVectorizer::widenIntOrFpInduction(), and llvm::InnerLoopVectorizer::widenPHIInstruction().

◆ CreateShl() [1/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateShl ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  HasNUW = false,
bool  HasNSW = false 
)
inline

◆ CreateShl() [2/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateShl ( Value *  LHS,
const APInt &  RHS,
const Twine &  Name = "",
bool  HasNUW = false,
bool  HasNSW = false 
)
inline

Definition at line 1309 of file IRBuilder.h.

◆ CreateShl() [3/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateShl ( Value *  LHS,
uint64_t  RHS,
const Twine &  Name = "",
bool  HasNUW = false,
bool  HasNSW = false 
)
inline

Definition at line 1315 of file IRBuilder.h.

◆ CreateShuffleVector() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateShuffleVector ( Value *  V1,
Value *  V2,
Value *  Mask,
const Twine &  Name = "" 
)
inline

◆ CreateShuffleVector() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateShuffleVector ( Value *  V1,
Value *  V2,
ArrayRef< uint32_t >  IntMask,
const Twine &  Name = "" 
)
inline

Definition at line 2556 of file IRBuilder.h.

◆ CreateSIToFP()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSIToFP ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2068 of file IRBuilder.h.

Referenced by getMulHu(), and llvm::log2().

◆ CreateSRem()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSRem ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateStore()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
StoreInst* llvm::IRBuilder< T, Inserter >::CreateStore ( Value *  Val,
Value *  Ptr,
bool  isVolatile = false 
)
inline

◆ CreateStripInvariantGroup()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateStripInvariantGroup ( Value *  Ptr)
inline

Create a strip.invariant.group intrinsic call.

If Ptr type is different from pointer to i8, it's casted to pointer to i8 in the same address space before call and casted back to Ptr type after call.

Definition at line 2652 of file IRBuilder.h.

Referenced by simplifyInvariantGroupIntrinsic().

◆ CreateStructGEP() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateStructGEP ( Type *  Ty,
Value *  Ptr,
unsigned  Idx,
const Twine &  Name = "" 
)
inline

◆ CreateStructGEP() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateStructGEP ( Value *  Ptr,
unsigned  Idx,
const Twine &  Name = "" 
)
inline

Definition at line 1986 of file IRBuilder.h.

◆ CreateSub()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateSub ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  HasNUW = false,
bool  HasNSW = false 
)
inline

◆ CreateSwitch()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
SwitchInst* llvm::IRBuilder< T, Inserter >::CreateSwitch ( Value *  V,
BasicBlock *  Dest,
unsigned  NumCases = 10,
MDNode *  BranchWeights = nullptr,
MDNode *  Unpredictable = nullptr 
)
inline

Create a switch instruction with the specified value, default dest, and with a hint for the number of cases that will be added (for efficient allocation).

Definition at line 1000 of file IRBuilder.h.

Referenced by createResumeEntryBlock(), FitWeights(), and getSignature().

◆ CreateTrunc()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateTrunc ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateTruncOrBitCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateTruncOrBitCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateUDiv()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateUDiv ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "",
bool  isExact = false 
)
inline

◆ CreateUIToFP()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateUIToFP ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

Definition at line 2061 of file IRBuilder.h.

Referenced by getMulHu().

◆ CreateUnOp()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateUnOp ( Instruction::UnaryOps  Opc,
Value *  V,
const Twine &  Name = "",
MDNode *  FPMathTag = nullptr 
)
inline

Definition at line 1623 of file IRBuilder.h.

◆ CreateUnreachable()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
UnreachableInst* llvm::IRBuilder< T, Inserter >::CreateUnreachable ( )
inline

◆ CreateURem()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateURem ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateVAArg()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
VAArgInst* llvm::IRBuilder< T, Inserter >::CreateVAArg ( Value *  List,
Type *  Ty,
const Twine &  Name = "" 
)
inline

Definition at line 2516 of file IRBuilder.h.

◆ CreateVectorSplat()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateVectorSplat ( unsigned  NumElts,
Value *  V,
const Twine &  Name = "" 
)
inline

◆ CreateXor() [1/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateXor ( Value *  LHS,
Value *  RHS,
const Twine &  Name = "" 
)
inline

◆ CreateXor() [2/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateXor ( Value *  LHS,
const APInt &  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1418 of file IRBuilder.h.

◆ CreateXor() [3/3]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateXor ( Value *  LHS,
uint64_t  RHS,
const Twine &  Name = "" 
)
inline

Definition at line 1422 of file IRBuilder.h.

◆ CreateZExt()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateZExt ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateZExtOrBitCast()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateZExtOrBitCast ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ CreateZExtOrTrunc()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Value* llvm::IRBuilder< T, Inserter >::CreateZExtOrTrunc ( Value *  V,
Type *  DestTy,
const Twine &  Name = "" 
)
inline

◆ getFolder()

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
const T& llvm::IRBuilder< T, Inserter >::getFolder ( )
inline

Get the constant folder being used.

Definition at line 913 of file IRBuilder.h.

◆ Insert() [1/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
template<typename InstTy >
InstTy* llvm::IRBuilder< T, Inserter >::Insert ( InstTy *  I,
const Twine &  Name = "" 
) const
inline

◆ Insert() [2/2]

template<typename T = ConstantFolder, typename Inserter = IRBuilderDefaultInserter>
Constant* llvm::IRBuilder< T, Inserter >::Insert ( Constant *  C,
const Twine &  = "" 
) const
inline

No-op overload to handle constants.

Definition at line 924 of file IRBuilder.h.


The documentation for this class was generated from the following file: