|
LLVM
5.0.0
|
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"
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 (Value *Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef< Value * > Args=None, const Twine &Name="") |
| Create an invoke instruction. More... | |
| InvokeInst * | CreateInvoke (Value *Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, 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 * | CreateFAdd (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| 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 * | CreateFSub (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| 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 * | CreateFMul (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| 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 * | CreateFDiv (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| Value * | CreateURem (Value *LHS, Value *RHS, const Twine &Name="") |
| Value * | CreateSRem (Value *LHS, Value *RHS, const Twine &Name="") |
| Value * | CreateFRem (Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| 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 * | 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 * | 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 * | CreateBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| 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 * | CreateNot (Value *V, const Twine &Name="") |
| AllocaInst * | CreateAlloca (Type *Ty, unsigned AddrSpace, Value *ArraySize=nullptr, const Twine &Name="") |
| AllocaInst * | CreateAlloca (Type *Ty, Value *ArraySize=nullptr, const Twine &Name="") |
| LoadInst * | CreateLoad (Value *Ptr, const char *Name) |
| LoadInst * | CreateLoad (Value *Ptr, const Twine &Name="") |
| LoadInst * | CreateLoad (Type *Ty, 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 (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="") |
| StoreInst * | CreateAlignedStore (Value *Val, Value *Ptr, unsigned 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 (Value *Ptr, uint64_t Idx0, const Twine &Name="") |
| Value * | CreateConstInBoundsGEP1_64 (Value *Ptr, uint64_t Idx0, const Twine &Name="") |
| Value * | CreateConstGEP2_64 (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 * | 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="") |
| 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) |
| PHINode * | CreatePHI (Type *Ty, unsigned NumReservedValues, const Twine &Name="") |
| CallInst * | CreateCall (Value *Callee, ArrayRef< Value * > Args=None, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| CallInst * | CreateCall (FunctionType *FTy, Value *Callee, ArrayRef< Value * > Args, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| CallInst * | CreateCall (Value *Callee, ArrayRef< Value * > Args, ArrayRef< OperandBundleDef > OpBundles, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| CallInst * | CreateCall (Function *Callee, ArrayRef< Value * > Args, const Twine &Name="", MDNode *FPMathTag=nullptr) |
| 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 * | 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 * | CreateInvariantGroupBarrier (Value *Ptr) |
| Create an invariant.group.barrier intrinsic call, that stops optimizer to propagate equality using invariant.group metadata. 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... | |
| CallInst * | CreateAlignmentAssumption (const DataLayout &DL, Value *PtrValue, unsigned Alignment, Value *OffsetValue=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) |
| 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... | |
| 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, unsigned 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, unsigned Align, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr) |
| CallInst * | CreateMemCpy (Value *Dst, Value *Src, uint64_t Size, unsigned Align, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr) |
| Create and insert a memcpy between the specified pointers. More... | |
| CallInst * | CreateMemCpy (Value *Dst, Value *Src, Value *Size, unsigned Align, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr) |
| CallInst * | CreateElementUnorderedAtomicMemCpy (Value *Dst, Value *Src, 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, Value *Src, Value *Size, uint32_t ElementSize, MDNode *TBAATag=nullptr, MDNode *TBAAStructTag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr) |
| CallInst * | CreateMemMove (Value *Dst, Value *Src, uint64_t Size, unsigned Align, bool isVolatile=false, MDNode *TBAATag=nullptr, MDNode *ScopeTag=nullptr, MDNode *NoAliasTag=nullptr) |
| Create and insert a memmove between the specified pointers. More... | |
| CallInst * | CreateMemMove (Value *Dst, Value *Src, Value *Size, unsigned Align, bool isVolatile=false, MDNode *TBAATag=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="") |
| 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="") |
| brief 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="") |
| brief 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 * | CreateBinaryIntrinsic (Intrinsic::ID ID, Value *LHS, Value *RHS, const Twine &Name="") |
Create a call to intrinsic ID with 2 operands which is mangled on the first type. 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... | |
Additional Inherited Members | |
Protected Attributes inherited from llvm::IRBuilderBase | |
| BasicBlock * | BB |
| BasicBlock::iterator | InsertPt |
| LLVMContext & | Context |
| MDNode * | DefaultFPMathTag |
| FastMathFlags | FMF |
| ArrayRef< OperandBundleDef > | DefaultOperandBundles |
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 664 of file IRBuilder.h.
|
inline |
Definition at line 668 of file IRBuilder.h.
|
inlineexplicit |
Definition at line 674 of file IRBuilder.h.
|
inlineexplicit |
Definition at line 678 of file IRBuilder.h.
|
inlineexplicit |
Definition at line 684 of file IRBuilder.h.
|
inlineexplicit |
Definition at line 690 of file IRBuilder.h.
|
inline |
Definition at line 696 of file IRBuilder.h.
|
inline |
Definition at line 703 of file IRBuilder.h.
|
inline |
Definition at line 889 of file IRBuilder.h.
Referenced by llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), createMemSetLoop(), llvm::IRBuilder< TargetFolder >::CreateNSWAdd(), llvm::IRBuilder< TargetFolder >::CreateNUWAdd(), evaluateGEPOffsetExpression(), foldAndOrOfEqualityCmpsWithConstants(), foldUDivShl(), generateUnsignedDivisionCode(), LowerAtomicRMWInst(), LowerCTPOP(), performAtomicOp(), llvm::InductionDescriptor::transform(), TurnSwitchRangeIntoICmp(), llvm::UnrollRuntimeLoopRemainder(), llvm::UpgradeIntrinsicCall(), and llvm::ObjectSizeOffsetEvaluator::visitGEPOperator().
|
inline |
Definition at line 1448 of file IRBuilder.h.
|
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 761 of file IRBuilder.h.
|
inline |
Definition at line 1182 of file IRBuilder.h.
Referenced by combineLoadToNewType(), simplifyMaskedLoad(), unpackLoadToAggregate(), llvm::UpgradeIntrinsicCall(), and UpgradeMaskedLoad().
|
inline |
Definition at line 1187 of file IRBuilder.h.
|
inline |
Definition at line 1193 of file IRBuilder.h.
|
inline |
Definition at line 1199 of file IRBuilder.h.
Referenced by combineStoreToNewValue(), unpackStoreToAggregate(), llvm::UpgradeIntrinsicCall(), and UpgradeMaskedStore().
|
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.
Definition at line 1909 of file IRBuilder.h.
|
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.
This overload handles the condition where the Alignment is dependent on an existing value rather than a static value.
Definition at line 1931 of file IRBuilder.h.
|
inline |
Definition at line 1152 of file IRBuilder.h.
Referenced by handleNoSuspendCoroutine(), and simplifyAllocaArraySize().
|
inline |
Definition at line 1157 of file IRBuilder.h.
|
inline |
Definition at line 1063 of file IRBuilder.h.
Referenced by llvm::LoopAccessInfo::addRuntimeChecks(), checkForNegativeOperand(), llvm::IRBuilder< TargetFolder >::CreateAnd(), createMaskedBitTest(), createMaskInstrs(), foldLogOpOfMaskedICmps(), FoldOrWithConstants(), foldSelectICmpAndOr(), foldShiftedShift(), FoldXorWithConstants(), generateUnsignedDivisionCode(), LowerAtomicRMWInst(), LowerBSWAP(), LowerCTPOP(), llvm::IntrinsicLowering::LowerIntrinsicCall(), performAtomicOp(), performMaskedAtomicOp(), processUMulZExtIdiom(), llvm::UnrollRuntimeLoopRemainder(), llvm::UpgradeIntrinsicCall(), upgradeMaskedCompare(), and upgradeMaskedMove().
|
inline |
Definition at line 1072 of file IRBuilder.h.
|
inline |
Definition at line 1075 of file IRBuilder.h.
|
inline |
Definition at line 1045 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateAShr(), generateSignedDivisionCode(), generateSignedRemainderCode(), generateUnsignedDivisionCode(), simplifyX86immShift(), and simplifyX86varShift().
|
inline |
Definition at line 1054 of file IRBuilder.h.
|
inline |
Definition at line 1058 of file IRBuilder.h.
|
inline |
Definition at line 1211 of file IRBuilder.h.
Referenced by createCmpXchgInstFun().
|
inline |
Definition at line 1218 of file IRBuilder.h.
|
inline |
Definition at line 1108 of file IRBuilder.h.
Referenced by CreateBinOpAsGiven(), createReplacementInstr(), llvm::FoldBranchToCommonDest(), foldLogicCastConstant(), foldOperationIntoPhiValue(), foldOperationIntoSelectOperand(), llvm::getShuffleReduction(), matchDeMorgansLaws(), SimplifyBSwap(), and llvm::InductionDescriptor::transform().
|
inline |
Definition at line 1444 of file IRBuilder.h.
Referenced by llvm::LoopAccessInfo::addRuntimeChecks(), canonicalizeBitCastExtElt(), llvm::castToCStr(), combineLoadToNewType(), combineStoreToNewValue(), llvm::IRBuilder< TargetFolder >::CreateBitOrPointerCast(), createCast(), createIfThenElse(), llvm::IRBuilder< TargetFolder >::CreateInvariantGroupBarrier(), llvm::createMemCpyLoopUnknownSize(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), emitX86MaskSelect(), foldBitCastBitwiseLogic(), foldBitCastSelect(), foldVecTruncToExtElt(), getX86MaskVec(), handleNoSuspendCoroutine(), llvm::InlineFunction(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), lowerSubFn(), matchSelectFromAndOr(), optimizeVectorResize(), simplifyX86extrq(), simplifyX86insertq(), simplifyX86MaskedLoad(), simplifyX86MaskedStore(), llvm::UpgradeIntrinsicCall(), upgradeMaskedCompare(), UpgradeMaskedLoad(), UpgradeMaskedStore(), UpgradeX86PSLLDQIntrinsics(), and UpgradeX86PSRLDQIntrinsics().
|
inline |
Definition at line 1516 of file IRBuilder.h.
Referenced by llvm::InstCombiner::visitLoadInst().
|
inline |
Create an unconditional 'br label X' instruction.
Definition at line 769 of file IRBuilder.h.
Referenced by llvm::ConstantFoldTerminator(), FoldTwoEntryPHINode(), generateUnsignedDivisionCode(), RemoveSwitchAfterSelectConversion(), removeUndefIntroducingPredecessor(), SimplifyTerminatorOnSelect(), SwitchToLookupTable(), and TryToSimplifyUncondBranchWithICmpInIt().
|
inline |
Definition at line 1659 of file IRBuilder.h.
Referenced by callIntrinsic(), llvm::SanitizerStatReport::create(), llvm::IRBuilder< TargetFolder >::CreateCall(), createCTLZIntrinsic(), CreateGCRelocates(), llvm::IRBuilder< TargetFolder >::CreateInvariantGroupBarrier(), createPopcntIntrinsic(), llvm::AArch64TargetLowering::emitAtomicCmpXchgNoStoreLLBalance(), llvm::ARMTargetLowering::emitAtomicCmpXchgNoStoreLLBalance(), llvm::emitBinaryFloatFnCall(), emitCalloc(), llvm::emitFPutC(), llvm::emitFPutS(), llvm::emitFWrite(), llvm::HexagonTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::emitMemChr(), llvm::emitMemCmp(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::emitStrChr(), llvm::emitStrCpy(), llvm::emitStrLen(), llvm::emitStrNCmp(), llvm::emitStrNCpy(), llvm::PPCTargetLowering::emitTrailingFence(), llvm::emitUnaryFloatFnCall(), generateUnsignedDivisionCode(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), getStackGuard(), insertSinCosCall(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::makeDMB(), MakeGuardControlFlowExplicit(), optimizeUnaryDoubleFP(), processUMulZExtIdiom(), replaceUnaryCall(), SimplifyBSwap(), simplifyX86extrq(), simplifyX86insertq(), llvm::UpgradeIntrinsicCall(), UpgradeX86MaskedShift(), and UseTlsOffset().
|
inline |
Definition at line 1666 of file IRBuilder.h.
|
inline |
Definition at line 1675 of file IRBuilder.h.
|
inline |
Definition at line 1684 of file IRBuilder.h.
|
inline |
Definition at line 1476 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateAddrSpaceCast(), llvm::IRBuilder< TargetFolder >::CreateBitCast(), llvm::IRBuilder< TargetFolder >::CreateFPExt(), llvm::IRBuilder< TargetFolder >::CreateFPToSI(), llvm::IRBuilder< TargetFolder >::CreateFPToUI(), llvm::IRBuilder< TargetFolder >::CreateFPTrunc(), llvm::IRBuilder< TargetFolder >::CreateIntToPtr(), llvm::IRBuilder< TargetFolder >::CreatePtrToInt(), createReplacementInstr(), llvm::IRBuilder< TargetFolder >::CreateSExt(), llvm::IRBuilder< TargetFolder >::CreateSIToFP(), llvm::IRBuilder< TargetFolder >::CreateTrunc(), llvm::IRBuilder< TargetFolder >::CreateUIToFP(), llvm::IRBuilder< TargetFolder >::CreateZExt(), foldOperationIntoSelectOperand(), and shrinkInsertElt().
|
inline |
Definition at line 844 of file IRBuilder.h.
|
inline |
Definition at line 855 of file IRBuilder.h.
|
inline |
Definition at line 837 of file IRBuilder.h.
|
inline |
Definition at line 849 of file IRBuilder.h.
|
inline |
Definition at line 832 of file IRBuilder.h.
|
inline |
Create a conditional 'br Cond, TrueDest, FalseDest' instruction.
Definition at line 775 of file IRBuilder.h.
Referenced by ConnectEpilog(), ConnectProlog(), llvm::ConstantFoldTerminator(), llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), createMemSetLoop(), generateUnsignedDivisionCode(), handleFinalSuspend(), SimplifyBranchOnICmpChain(), SimplifyTerminatorOnSelect(), SwitchToLookupTable(), TurnSwitchRangeIntoICmp(), and llvm::UnrollRuntimeLoopRemainder().
|
inline |
Create a conditional 'br Cond, TrueDest, FalseDest' instruction.
Copy branch meta data if available.
Definition at line 784 of file IRBuilder.h.
|
inline |
Definition at line 1274 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateConstGEP1_32(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), and UseTlsOffset().
|
inline |
Definition at line 1277 of file IRBuilder.h.
|
inline |
Definition at line 1319 of file IRBuilder.h.
|
inline |
Definition at line 1295 of file IRBuilder.h.
|
inline |
Definition at line 1336 of file IRBuilder.h.
|
inline |
Definition at line 1286 of file IRBuilder.h.
|
inline |
Definition at line 1327 of file IRBuilder.h.
|
inline |
Definition at line 1307 of file IRBuilder.h.
Referenced by createResumeEntryBlock(), llvm::IRBuilder< TargetFolder >::CreateStructGEP(), handleFinalSuspend(), lowerSubFn(), and updateCoroFrame().
|
inline |
Definition at line 1348 of file IRBuilder.h.
|
inline |
Definition at line 976 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreatePtrDiff().
|
inline |
Definition at line 964 of file IRBuilder.h.
|
inline |
Definition at line 1709 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateExtractElement(), llvm::getShuffleReduction(), insertSinCosCall(), instrumentMaskedLoadOrStore(), llvm::UpgradeIntrinsicCall(), upgradeMaskedMove(), and llvm::slpvectorizer::BoUpSLP::vectorizeTree().
|
inline |
Definition at line 1717 of file IRBuilder.h.
|
inline |
Return a value that has been extracted from a larger integer type.
Definition at line 1850 of file IRBuilder.h.
|
inline |
Definition at line 1751 of file IRBuilder.h.
Referenced by createCast(), createCmpXchgInstFun(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), insertSinCosCall(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), processUMulZExtIdiom(), and unpackStoreToAggregate().
|
inline |
Definition at line 903 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1641 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateFCmpOEQ(), llvm::IRBuilder< TargetFolder >::CreateFCmpOGE(), llvm::IRBuilder< TargetFolder >::CreateFCmpOGT(), llvm::IRBuilder< TargetFolder >::CreateFCmpOLE(), llvm::IRBuilder< TargetFolder >::CreateFCmpOLT(), llvm::IRBuilder< TargetFolder >::CreateFCmpONE(), llvm::IRBuilder< TargetFolder >::CreateFCmpORD(), llvm::IRBuilder< TargetFolder >::CreateFCmpUEQ(), llvm::IRBuilder< TargetFolder >::CreateFCmpUGE(), llvm::IRBuilder< TargetFolder >::CreateFCmpUGT(), llvm::IRBuilder< TargetFolder >::CreateFCmpULE(), llvm::IRBuilder< TargetFolder >::CreateFCmpULT(), llvm::IRBuilder< TargetFolder >::CreateFCmpUNE(), llvm::IRBuilder< TargetFolder >::CreateFCmpUNO(), llvm::RecurrenceDescriptor::createMinMaxOp(), and getFCmpValue().
|
inline |
Definition at line 1577 of file IRBuilder.h.
|
inline |
Definition at line 1585 of file IRBuilder.h.
|
inline |
Definition at line 1581 of file IRBuilder.h.
|
inline |
Definition at line 1593 of file IRBuilder.h.
|
inline |
Definition at line 1589 of file IRBuilder.h.
|
inline |
Definition at line 1597 of file IRBuilder.h.
|
inline |
Definition at line 1601 of file IRBuilder.h.
|
inline |
Definition at line 1609 of file IRBuilder.h.
|
inline |
Definition at line 1617 of file IRBuilder.h.
|
inline |
Definition at line 1613 of file IRBuilder.h.
|
inline |
Definition at line 1625 of file IRBuilder.h.
|
inline |
Definition at line 1621 of file IRBuilder.h.
|
inline |
Definition at line 1629 of file IRBuilder.h.
|
inline |
Definition at line 1605 of file IRBuilder.h.
|
inline |
Definition at line 979 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1205 of file IRBuilder.h.
Referenced by llvm::TargetLoweringBase::emitLeadingFence(), and llvm::TargetLoweringBase::emitTrailingFence().
|
inline |
Definition at line 947 of file IRBuilder.h.
Referenced by buildMultiplyTree(), getPow(), llvm::InductionDescriptor::transform(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1135 of file IRBuilder.h.
|
inline |
Definition at line 1529 of file IRBuilder.h.
|
inline |
Definition at line 1433 of file IRBuilder.h.
Referenced by optimizeBinaryDoubleFP(), optimizeUnaryDoubleFP(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1420 of file IRBuilder.h.
|
inline |
Definition at line 1417 of file IRBuilder.h.
|
inline |
Definition at line 1429 of file IRBuilder.h.
|
inline |
Definition at line 999 of file IRBuilder.h.
|
inline |
Definition at line 925 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1223 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateGEP(), genLoopLimit(), instrumentMaskedLoadOrStore(), and llvm::InductionDescriptor::transform().
|
inline |
Definition at line 1227 of file IRBuilder.h.
|
inline |
Definition at line 1258 of file IRBuilder.h.
|
inline |
Definition at line 1261 of file IRBuilder.h.
|
inline |
Same as CreateGlobalString, but return a pointer with "i8*" type instead of a pointer to array of i8.
Definition at line 1368 of file IRBuilder.h.
|
inline |
Definition at line 1634 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateAlignmentAssumption(), llvm::IRBuilder< TargetFolder >::CreateICmpEQ(), llvm::IRBuilder< TargetFolder >::CreateICmpNE(), llvm::IRBuilder< TargetFolder >::CreateICmpSGE(), llvm::IRBuilder< TargetFolder >::CreateICmpSGT(), llvm::IRBuilder< TargetFolder >::CreateICmpSLE(), llvm::IRBuilder< TargetFolder >::CreateICmpSLT(), llvm::IRBuilder< TargetFolder >::CreateICmpUGE(), llvm::IRBuilder< TargetFolder >::CreateICmpUGT(), llvm::IRBuilder< TargetFolder >::CreateICmpULE(), llvm::IRBuilder< TargetFolder >::CreateICmpULT(), llvm::RecurrenceDescriptor::createMinMaxOp(), foldAndOrOfEqualityCmpsWithConstants(), foldLogOpOfMaskedICmps(), generateMinMaxSelectPattern(), getNewICmpValue(), simplifyX86vpcom(), upgradeIntMinMax(), llvm::UpgradeIntrinsicCall(), and upgradeMaskedCompare().
|
inline |
Definition at line 1546 of file IRBuilder.h.
Referenced by llvm::ConstantFoldTerminator(), ConvertTwoCaseSwitch(), createIfThenElse(), llvm::IRBuilder< TargetFolder >::CreateIsNull(), llvm::HexagonTargetLowering::emitStoreConditional(), generateUnsignedDivisionCode(), handleFinalSuspend(), and LowerAtomicCmpXchgInst().
|
inline |
Definition at line 1549 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateIsNotNull(), createMaskedBitTest(), and llvm::createMemCpyLoopUnknownSize().
|
inline |
Definition at line 1567 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1564 of file IRBuilder.h.
Referenced by performAtomicOp().
|
inline |
Definition at line 1573 of file IRBuilder.h.
Referenced by performAtomicOp(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1570 of file IRBuilder.h.
Referenced by LowerAtomicRMWInst().
|
inline |
Definition at line 1555 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1552 of file IRBuilder.h.
Referenced by generateUnsignedDivisionCode(), and performAtomicOp().
|
inline |
Definition at line 1561 of file IRBuilder.h.
Referenced by performAtomicOp(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1558 of file IRBuilder.h.
Referenced by llvm::LoopAccessInfo::addRuntimeChecks(), ConnectProlog(), llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), createMemSetLoop(), foldUDivNegCst(), LowerAtomicRMWInst(), SwitchToLookupTable(), TurnSwitchRangeIntoICmp(), and llvm::UnrollRuntimeLoopRemainder().
|
inline |
Definition at line 1240 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateGlobalStringPtr(), llvm::IRBuilder< TargetFolder >::CreateInBoundsGEP(), llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), createMemSetLoop(), createReplacementInstr(), unpackLoadToAggregate(), and unpackStoreToAggregate().
|
inline |
Definition at line 1244 of file IRBuilder.h.
|
inline |
Definition at line 1267 of file IRBuilder.h.
|
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 808 of file IRBuilder.h.
|
inline |
Definition at line 1722 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateInsertElement(), llvm::IRBuilder< TargetFolder >::CreateVectorSplat(), hoistInsEltConst(), optimizeIntegerToVectorInsertions(), llvm::UpgradeIntrinsicCall(), and upgradeMaskedMove().
|
inline |
Definition at line 1731 of file IRBuilder.h.
|
inline |
Definition at line 1759 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateAggregateRet(), createCast(), llvm::AArch64TTIImpl::getOrCreateResultFromMemIntrinsic(), LowerAtomicCmpXchgInst(), and unpackLoadToAggregate().
|
inline |
Definition at line 1507 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateAlignmentAssumption(), llvm::emitFPutC(), llvm::emitPutChar(), evaluateGEPOffsetExpression(), llvm::IntrinsicLowering::LowerIntrinsicCall(), and simplifyAllocaArraySize().
|
delete |
|
inline |
Definition at line 1440 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateBitOrPointerCast(), createCast(), createMaskInstrs(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), and llvm::ARMTargetLowering::lowerInterleavedLoad().
|
inline |
Create an invariant.group.barrier intrinsic call, that stops optimizer to propagate equality using invariant.group metadata.
If Ptr type is different from i8*, it's casted to i8* before call and casted back to Ptr type after call.
Definition at line 1811 of file IRBuilder.h.
|
inline |
Create an invoke instruction.
Definition at line 813 of file IRBuilder.h.
|
inline |
Definition at line 820 of file IRBuilder.h.
|
inline |
Return an i1 value testing if Arg is not null.
Definition at line 1784 of file IRBuilder.h.
Referenced by ConnectEpilog(), llvm::UnrollRuntimeLoopRemainder(), and upgradeMaskedMove().
|
inline |
Return an i1 value testing if Arg is null.
Definition at line 1778 of file IRBuilder.h.
|
inline |
Definition at line 1768 of file IRBuilder.h.
|
inline |
Definition at line 1164 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateAlignedLoad(), llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), createResumeEntryBlock(), getStackGuard(), handleFinalSuspend(), LowerAtomicCmpXchgInst(), LowerAtomicRMWInst(), lowerSubFn(), llvm::UpgradeIntrinsicCall(), and llvm::InstCombiner::visitLoadInst().
|
inline |
Definition at line 1167 of file IRBuilder.h.
|
inline |
Definition at line 1170 of file IRBuilder.h.
|
inline |
Definition at line 1173 of file IRBuilder.h.
|
inline |
Definition at line 1027 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateExtractInteger(), llvm::IRBuilder< TargetFolder >::CreateLShr(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), foldSelectICmpAndOr(), generateUnsignedDivisionCode(), getShiftedValue(), LowerBSWAP(), LowerCTLZ(), LowerCTPOP(), performMaskedAtomicOp(), ReduceSwitchRange(), simplifyX86immShift(), simplifyX86varShift(), and SwitchToLookupTable().
|
inline |
Definition at line 1036 of file IRBuilder.h.
|
inline |
Definition at line 1040 of file IRBuilder.h.
|
inline |
Definition at line 933 of file IRBuilder.h.
Referenced by buildMultiplyTree(), llvm::IRBuilder< TargetFolder >::CreateNSWMul(), llvm::IRBuilder< TargetFolder >::CreateNUWMul(), generatedUnsignedRemainderCode(), simplifyX86muldq(), llvm::UpgradeIntrinsicCall(), llvm::ObjectSizeOffsetEvaluator::visitAllocaInst(), and llvm::ObjectSizeOffsetEvaluator::visitCallSite().
|
inline |
Definition at line 1120 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateNSWNeg(), llvm::IRBuilder< TargetFolder >::CreateNUWNeg(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1142 of file IRBuilder.h.
Referenced by canonicalizeICmpBool(), createMaskInstrs(), foldAddWithConstant(), llvm::FoldBranchToCommonDest(), LowerAtomicRMWInst(), LowerCTLZ(), llvm::IntrinsicLowering::LowerIntrinsicCall(), performAtomicOp(), SimplifyCondBranchToCondBranch(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 897 of file IRBuilder.h.
|
inline |
Definition at line 941 of file IRBuilder.h.
|
inline |
Definition at line 1129 of file IRBuilder.h.
|
inline |
Definition at line 919 of file IRBuilder.h.
|
inline |
Definition at line 900 of file IRBuilder.h.
Referenced by foldAddWithConstant().
|
inline |
Definition at line 944 of file IRBuilder.h.
|
inline |
Definition at line 1132 of file IRBuilder.h.
|
inline |
Definition at line 922 of file IRBuilder.h.
|
inline |
Definition at line 1079 of file IRBuilder.h.
Referenced by llvm::LoopAccessInfo::addRuntimeChecks(), checkForNegativeOperand(), llvm::IRBuilder< TargetFolder >::CreateOr(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), foldAndOrOfEqualityCmpsWithConstants(), foldLogOpOfMaskedICmps(), foldSelectICmpAndOr(), generateUnsignedDivisionCode(), LowerAtomicRMWInst(), LowerBSWAP(), LowerCTLZ(), performAtomicOp(), performMaskedAtomicOp(), ReduceSwitchRange(), SimplifyCondBranchToCondBranch(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1088 of file IRBuilder.h.
|
inline |
Definition at line 1091 of file IRBuilder.h.
|
inline |
Definition at line 1654 of file IRBuilder.h.
Referenced by llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), createMemSetLoop(), generateUnsignedDivisionCode(), and llvm::ObjectSizeOffsetEvaluator::visitPHINode().
|
inline |
Definition at line 1493 of file IRBuilder.h.
|
inline |
Definition at line 1484 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall(), and UseTlsOffset().
|
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 1795 of file IRBuilder.h.
|
inline |
Definition at line 1436 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateBitOrPointerCast(), createCast(), createMaskInstrs(), llvm::IRBuilder< TargetFolder >::CreatePtrDiff(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), and SimplifyBranchOnICmpChain().
|
inline |
Definition at line 828 of file IRBuilder.h.
|
inline |
Create a 'ret <val>' instruction.
Definition at line 750 of file IRBuilder.h.
Referenced by llvm::InlineFunction(), MakeGuardControlFlowExplicit(), SimplifyCondBranchToTwoReturns(), and SwitchToLookupTable().
|
inline |
Create a 'ret void' instruction.
Definition at line 745 of file IRBuilder.h.
Referenced by MakeGuardControlFlowExplicit(), and SimplifyCondBranchToTwoReturns().
|
inline |
Definition at line 967 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateExactSDiv(), llvm::expandDivisionUpTo32Bits(), and llvm::expandDivisionUpTo64Bits().
|
inline |
Definition at line 1689 of file IRBuilder.h.
Referenced by ConvertTwoCaseSwitch(), llvm::IRBuilder< TargetFolder >::CreateAlignmentAssumption(), llvm::RecurrenceDescriptor::createMinMaxOp(), emitX86MaskSelect(), EmitX86Select(), FoldTwoEntryPHINode(), generateMinMaxSelectPattern(), generateUnsignedDivisionCode(), HoistThenElseCodeToIf(), LowerAtomicCmpXchgInst(), LowerAtomicRMWInst(), matchSelectFromAndOr(), performAtomicOp(), SimplifyCondBranchToCondBranch(), SimplifyCondBranchToTwoReturns(), SpeculativelyExecuteBB(), upgradeIntMinMax(), llvm::UpgradeIntrinsicCall(), upgradeMaskedMove(), and llvm::ObjectSizeOffsetEvaluator::visitSelectInst().
|
inline |
Definition at line 1386 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateSExtOrTrunc(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), simplifyX86muldq(), llvm::UpgradeIntrinsicCall(), UpgradeMaskToInt(), and llvm::slpvectorizer::BoUpSLP::vectorizeTree().
|
inline |
Definition at line 1460 of file IRBuilder.h.
|
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 1405 of file IRBuilder.h.
Referenced by simplifyX86vpcom().
|
inline |
Definition at line 1008 of file IRBuilder.h.
Referenced by createMaskedBitTest(), createMaskInstrs(), llvm::IRBuilder< TargetFolder >::CreateShl(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), foldSelectICmpAndOr(), generateUnsignedDivisionCode(), getShiftedValue(), LowerBSWAP(), performMaskedAtomicOp(), ReduceSwitchRange(), simplifyValueKnownNonZero(), simplifyX86immShift(), and simplifyX86varShift().
|
inline |
Definition at line 1016 of file IRBuilder.h.
|
inline |
Definition at line 1021 of file IRBuilder.h.
|
inline |
Definition at line 1736 of file IRBuilder.h.
Referenced by concatenateTwoVectors(), llvm::IRBuilder< TargetFolder >::CreateShuffleVector(), llvm::IRBuilder< TargetFolder >::CreateVectorSplat(), emitX86MaskSelect(), llvm::getShuffleReduction(), getX86MaskVec(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), simplifyX86extrq(), simplifyX86insertps(), simplifyX86insertq(), simplifyX86muldq(), simplifyX86pshufb(), simplifyX86vperm2(), simplifyX86vpermilvar(), simplifyX86vpermv(), llvm::UpgradeIntrinsicCall(), upgradeMaskedCompare(), UpgradeX86ALIGNIntrinsics(), UpgradeX86PSLLDQIntrinsics(), and UpgradeX86PSRLDQIntrinsics().
|
inline |
Definition at line 1745 of file IRBuilder.h.
|
inline |
Definition at line 1426 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 993 of file IRBuilder.h.
Referenced by llvm::expandRemainderUpTo32Bits(), and llvm::expandRemainderUpTo64Bits().
|
inline |
Definition at line 1176 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateAlignedStore(), llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), createMemSetLoop(), createResumeEntryBlock(), LowerAtomicCmpXchgInst(), and LowerAtomicRMWInst().
|
inline |
Definition at line 1361 of file IRBuilder.h.
|
inline |
Definition at line 911 of file IRBuilder.h.
Referenced by checkForNegativeOperand(), llvm::IRBuilder< TargetFolder >::CreateAlignmentAssumption(), llvm::IRBuilder< TargetFolder >::CreateNSWSub(), llvm::IRBuilder< TargetFolder >::CreateNUWSub(), llvm::IRBuilder< TargetFolder >::CreatePtrDiff(), generatedUnsignedRemainderCode(), generateSignedDivisionCode(), generateSignedRemainderCode(), generateUnsignedDivisionCode(), LowerAtomicRMWInst(), llvm::IntrinsicLowering::LowerIntrinsicCall(), performAtomicOp(), ReduceSwitchRange(), simplifyValueKnownNonZero(), SwitchToLookupTable(), llvm::InductionDescriptor::transform(), and llvm::UpgradeIntrinsicCall().
|
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 798 of file IRBuilder.h.
Referenced by createResumeEntryBlock(), and SimplifyBranchOnICmpChain().
|
inline |
Definition at line 1380 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateExtractInteger(), createMaskInstrs(), llvm::IRBuilder< TargetFolder >::CreateSExtOrTrunc(), llvm::IRBuilder< TargetFolder >::CreateZExtOrTrunc(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), evaluateGEPOffsetExpression(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), performMaskedAtomicOp(), shrinkSplatShuffle(), SwitchToLookupTable(), truncateIVUse(), llvm::UpgradeIntrinsicCall(), and llvm::slpvectorizer::BoUpSLP::vectorizeTree().
|
inline |
Definition at line 1468 of file IRBuilder.h.
Referenced by llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), and llvm::SCEVExpander::replaceCongruentIVs().
|
inline |
Definition at line 955 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateExactUDiv(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), generatedUnsignedRemainderCode(), and generateSignedDivisionCode().
|
inline |
Definition at line 1423 of file IRBuilder.h.
Referenced by llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 859 of file IRBuilder.h.
Referenced by createResumeEntryBlock(), removeUndefIntroducingPredecessor(), and TryToMergeLandingPad().
|
inline |
Definition at line 987 of file IRBuilder.h.
Referenced by llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), generateSignedRemainderCode(), and llvm::UnrollRuntimeLoopRemainder().
|
inline |
Definition at line 1705 of file IRBuilder.h.
|
inline |
Return a vector value that contains.
NumElts elements. Definition at line 1835 of file IRBuilder.h.
Referenced by simplifyX86immShift().
|
inline |
Definition at line 1095 of file IRBuilder.h.
Referenced by canonicalizeICmpBool(), createMaskInstrs(), llvm::IRBuilder< TargetFolder >::CreateXor(), foldAndToXor(), foldOrToXor(), foldSelectICmpAndOr(), foldXorToXor(), generateSignedDivisionCode(), generateSignedRemainderCode(), getSelectCondition(), LowerAtomicRMWInst(), performAtomicOp(), and llvm::UpgradeIntrinsicCall().
|
inline |
Definition at line 1101 of file IRBuilder.h.
|
inline |
Definition at line 1104 of file IRBuilder.h.
|
inline |
Definition at line 1383 of file IRBuilder.h.
Referenced by llvm::IRBuilder< TargetFolder >::CreateZExtOrTrunc(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), foldUDivShl(), performMaskedAtomicOp(), processUMulZExtIdiom(), simplifyX86muldq(), llvm::UpgradeIntrinsicCall(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), and llvm::ObjectSizeOffsetEvaluator::visitCallSite().
|
inline |
Definition at line 1452 of file IRBuilder.h.
Referenced by llvm::AArch64TargetLowering::emitStoreConditional(), and llvm::ARMTargetLowering::emitStoreConditional().
|
inline |
Create a ZExt or Trunc from the integer value V to DestTy.
Return the value untouched if the type of V is already DestTy.
Definition at line 1391 of file IRBuilder.h.
Referenced by createMaskedBitTest(), foldSelectICmpAndOr(), and SwitchToLookupTable().
|
inline |
Get the constant folder being used.
Definition at line 711 of file IRBuilder.h.
|
inline |
Insert and return the specified instruction.
Definition at line 715 of file IRBuilder.h.
Referenced by llvm::LoopAccessInfo::addRuntimeChecks(), llvm::IRBuilder< TargetFolder >::CreateAdd(), llvm::IRBuilder< TargetFolder >::CreateAggregateRet(), llvm::IRBuilder< TargetFolder >::CreateAlloca(), llvm::IRBuilder< TargetFolder >::CreateAnd(), llvm::IRBuilder< TargetFolder >::CreateAShr(), llvm::IRBuilder< TargetFolder >::CreateAtomicCmpXchg(), llvm::IRBuilder< TargetFolder >::CreateAtomicRMW(), llvm::IRBuilder< TargetFolder >::CreateBinOp(), llvm::IRBuilder< TargetFolder >::CreateBr(), llvm::IRBuilder< TargetFolder >::CreateCall(), llvm::IRBuilder< TargetFolder >::CreateCast(), llvm::IRBuilder< TargetFolder >::CreateCatchPad(), llvm::IRBuilder< TargetFolder >::CreateCatchRet(), llvm::IRBuilder< TargetFolder >::CreateCatchSwitch(), llvm::IRBuilder< TargetFolder >::CreateCleanupPad(), llvm::IRBuilder< TargetFolder >::CreateCleanupRet(), llvm::IRBuilder< TargetFolder >::CreateCondBr(), llvm::IRBuilder< TargetFolder >::CreateConstGEP1_32(), llvm::IRBuilder< TargetFolder >::CreateConstGEP1_64(), llvm::IRBuilder< TargetFolder >::CreateConstGEP2_32(), llvm::IRBuilder< TargetFolder >::CreateConstGEP2_64(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP1_32(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP1_64(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP2_32(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP2_64(), llvm::IRBuilder< TargetFolder >::CreateExtractElement(), llvm::IRBuilder< TargetFolder >::CreateExtractValue(), llvm::IRBuilder< TargetFolder >::CreateFAdd(), llvm::IRBuilder< TargetFolder >::CreateFCmp(), llvm::IRBuilder< TargetFolder >::CreateFDiv(), llvm::IRBuilder< TargetFolder >::CreateFence(), llvm::IRBuilder< TargetFolder >::CreateFMul(), llvm::IRBuilder< TargetFolder >::CreateFNeg(), llvm::IRBuilder< TargetFolder >::CreateFPCast(), llvm::IRBuilder< TargetFolder >::CreateFRem(), llvm::IRBuilder< TargetFolder >::CreateFSub(), llvm::IRBuilder< TargetFolder >::CreateGEP(), llvm::IRBuilder< TargetFolder >::CreateICmp(), llvm::IRBuilder< TargetFolder >::CreateInBoundsGEP(), llvm::IRBuilder< TargetFolder >::CreateIndirectBr(), llvm::IRBuilder< TargetFolder >::CreateInsertElement(), llvm::IRBuilder< TargetFolder >::CreateInsertValue(), llvm::IRBuilder< TargetFolder >::CreateIntCast(), llvm::IRBuilder< TargetFolder >::CreateInvoke(), llvm::IRBuilder< TargetFolder >::CreateLandingPad(), llvm::IRBuilder< TargetFolder >::CreateLoad(), llvm::IRBuilder< TargetFolder >::CreateLShr(), llvm::IRBuilder< TargetFolder >::CreateMul(), llvm::IRBuilder< TargetFolder >::CreateNeg(), llvm::IRBuilder< TargetFolder >::CreateNot(), llvm::IRBuilder< TargetFolder >::CreateOr(), llvm::IRBuilder< TargetFolder >::CreatePHI(), llvm::IRBuilder< TargetFolder >::CreatePointerBitCastOrAddrSpaceCast(), llvm::IRBuilder< TargetFolder >::CreatePointerCast(), llvm::IRBuilder< TargetFolder >::CreateResume(), llvm::IRBuilder< TargetFolder >::CreateRet(), llvm::IRBuilder< TargetFolder >::CreateRetVoid(), llvm::IRBuilder< TargetFolder >::CreateSDiv(), llvm::IRBuilder< TargetFolder >::CreateSelect(), llvm::IRBuilder< TargetFolder >::CreateSExtOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateShl(), llvm::IRBuilder< TargetFolder >::CreateShuffleVector(), llvm::IRBuilder< TargetFolder >::CreateSRem(), llvm::IRBuilder< TargetFolder >::CreateStore(), llvm::IRBuilder< TargetFolder >::CreateSub(), llvm::IRBuilder< TargetFolder >::CreateSwitch(), llvm::IRBuilder< TargetFolder >::CreateTruncOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateUDiv(), llvm::IRBuilder< TargetFolder >::CreateUnreachable(), llvm::IRBuilder< TargetFolder >::CreateURem(), llvm::IRBuilder< TargetFolder >::CreateVAArg(), llvm::IRBuilder< TargetFolder >::CreateXor(), and llvm::IRBuilder< TargetFolder >::CreateZExtOrBitCast().
|
inline |
No-op overload to handle constants.
Definition at line 722 of file IRBuilder.h.
1.8.6