LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::NoFolder Class Reference

NoFolder - Create "constants" (actually, instructions) with no folding. More...

#include "llvm/IR/NoFolder.h"

Public Member Functions

 NoFolder ()=default
 
InstructionCreateAdd (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
InstructionCreateNSWAdd (Constant *LHS, Constant *RHS) const
 
InstructionCreateNUWAdd (Constant *LHS, Constant *RHS) const
 
InstructionCreateFAdd (Constant *LHS, Constant *RHS) const
 
InstructionCreateSub (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
InstructionCreateNSWSub (Constant *LHS, Constant *RHS) const
 
InstructionCreateNUWSub (Constant *LHS, Constant *RHS) const
 
InstructionCreateFSub (Constant *LHS, Constant *RHS) const
 
InstructionCreateMul (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
InstructionCreateNSWMul (Constant *LHS, Constant *RHS) const
 
InstructionCreateNUWMul (Constant *LHS, Constant *RHS) const
 
InstructionCreateFMul (Constant *LHS, Constant *RHS) const
 
InstructionCreateUDiv (Constant *LHS, Constant *RHS, bool isExact=false) const
 
InstructionCreateExactUDiv (Constant *LHS, Constant *RHS) const
 
InstructionCreateSDiv (Constant *LHS, Constant *RHS, bool isExact=false) const
 
InstructionCreateExactSDiv (Constant *LHS, Constant *RHS) const
 
InstructionCreateFDiv (Constant *LHS, Constant *RHS) const
 
InstructionCreateURem (Constant *LHS, Constant *RHS) const
 
InstructionCreateSRem (Constant *LHS, Constant *RHS) const
 
InstructionCreateFRem (Constant *LHS, Constant *RHS) const
 
InstructionCreateShl (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
InstructionCreateLShr (Constant *LHS, Constant *RHS, bool isExact=false) const
 
InstructionCreateAShr (Constant *LHS, Constant *RHS, bool isExact=false) const
 
InstructionCreateAnd (Constant *LHS, Constant *RHS) const
 
InstructionCreateOr (Constant *LHS, Constant *RHS) const
 
InstructionCreateXor (Constant *LHS, Constant *RHS) const
 
InstructionCreateBinOp (Instruction::BinaryOps Opc, Constant *LHS, Constant *RHS) const
 
InstructionCreateNeg (Constant *C, bool HasNUW=false, bool HasNSW=false) const
 
InstructionCreateNSWNeg (Constant *C) const
 
InstructionCreateNUWNeg (Constant *C) const
 
InstructionCreateFNeg (Constant *C) const
 
InstructionCreateNot (Constant *C) const
 
ConstantCreateGetElementPtr (Type *Ty, Constant *C, ArrayRef< Constant *> IdxList) const
 
ConstantCreateGetElementPtr (Type *Ty, Constant *C, Constant *Idx) const
 
InstructionCreateGetElementPtr (Type *Ty, Constant *C, ArrayRef< Value *> IdxList) const
 
ConstantCreateInBoundsGetElementPtr (Type *Ty, Constant *C, ArrayRef< Constant *> IdxList) const
 
ConstantCreateInBoundsGetElementPtr (Type *Ty, Constant *C, Constant *Idx) const
 
InstructionCreateInBoundsGetElementPtr (Type *Ty, Constant *C, ArrayRef< Value *> IdxList) const
 
InstructionCreateCast (Instruction::CastOps Op, Constant *C, Type *DestTy) const
 
InstructionCreatePointerCast (Constant *C, Type *DestTy) const
 
InstructionCreateIntCast (Constant *C, Type *DestTy, bool isSigned) const
 
InstructionCreateFPCast (Constant *C, Type *DestTy) const
 
InstructionCreateBitCast (Constant *C, Type *DestTy) const
 
InstructionCreateIntToPtr (Constant *C, Type *DestTy) const
 
InstructionCreatePtrToInt (Constant *C, Type *DestTy) const
 
InstructionCreateZExtOrBitCast (Constant *C, Type *DestTy) const
 
InstructionCreateSExtOrBitCast (Constant *C, Type *DestTy) const
 
InstructionCreateTruncOrBitCast (Constant *C, Type *DestTy) const
 
InstructionCreateICmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
 
InstructionCreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
 
InstructionCreateSelect (Constant *C, Constant *True, Constant *False) const
 
InstructionCreateExtractElement (Constant *Vec, Constant *Idx) const
 
InstructionCreateInsertElement (Constant *Vec, Constant *NewElt, Constant *Idx) const
 
InstructionCreateShuffleVector (Constant *V1, Constant *V2, Constant *Mask) const
 
InstructionCreateExtractValue (Constant *Agg, ArrayRef< unsigned > IdxList) const
 
InstructionCreateInsertValue (Constant *Agg, Constant *Val, ArrayRef< unsigned > IdxList) const
 

Detailed Description

NoFolder - Create "constants" (actually, instructions) with no folding.

Definition at line 33 of file NoFolder.h.

Constructor & Destructor Documentation

◆ NoFolder()

llvm::NoFolder::NoFolder ( )
explicitdefault

Member Function Documentation

◆ CreateAdd()

Instruction* llvm::NoFolder::CreateAdd ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

◆ CreateAnd()

Instruction* llvm::NoFolder::CreateAnd ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 161 of file NoFolder.h.

◆ CreateAShr()

Instruction* llvm::NoFolder::CreateAShr ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 154 of file NoFolder.h.

◆ CreateBinOp()

Instruction* llvm::NoFolder::CreateBinOp ( Instruction::BinaryOps  Opc,
Constant LHS,
Constant RHS 
) const
inline

Definition at line 173 of file NoFolder.h.

References llvm::BinaryOperator::Create().

◆ CreateBitCast()

Instruction* llvm::NoFolder::CreateBitCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 267 of file NoFolder.h.

References CreateCast().

◆ CreateCast()

Instruction* llvm::NoFolder::CreateCast ( Instruction::CastOps  Op,
Constant C,
Type DestTy 
) const
inline

Definition at line 249 of file NoFolder.h.

References llvm::CastInst::Create().

Referenced by CreateBitCast(), CreateIntToPtr(), and CreatePtrToInt().

◆ CreateExactSDiv()

Instruction* llvm::NoFolder::CreateExactSDiv ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 119 of file NoFolder.h.

◆ CreateExactUDiv()

Instruction* llvm::NoFolder::CreateExactUDiv ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 108 of file NoFolder.h.

◆ CreateExtractElement()

Instruction* llvm::NoFolder::CreateExtractElement ( Constant Vec,
Constant Idx 
) const
inline

Definition at line 314 of file NoFolder.h.

References llvm::ExtractElementInst::Create().

◆ CreateExtractValue()

Instruction* llvm::NoFolder::CreateExtractValue ( Constant Agg,
ArrayRef< unsigned IdxList 
) const
inline

Definition at line 328 of file NoFolder.h.

References llvm::ExtractValueInst::Create().

◆ CreateFAdd()

Instruction* llvm::NoFolder::CreateFAdd ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 57 of file NoFolder.h.

◆ CreateFCmp()

Instruction* llvm::NoFolder::CreateFCmp ( CmpInst::Predicate  P,
Constant LHS,
Constant RHS 
) const
inline

Definition at line 300 of file NoFolder.h.

◆ CreateFDiv()

Instruction* llvm::NoFolder::CreateFDiv ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 123 of file NoFolder.h.

◆ CreateFMul()

Instruction* llvm::NoFolder::CreateFMul ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 97 of file NoFolder.h.

◆ CreateFNeg()

Instruction* llvm::NoFolder::CreateFNeg ( Constant C) const
inline

Definition at line 198 of file NoFolder.h.

References llvm::BinaryOperator::CreateFNeg().

◆ CreateFPCast()

Instruction* llvm::NoFolder::CreateFPCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 263 of file NoFolder.h.

References llvm::CastInst::CreateFPCast().

◆ CreateFRem()

Instruction* llvm::NoFolder::CreateFRem ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 135 of file NoFolder.h.

◆ CreateFSub()

Instruction* llvm::NoFolder::CreateFSub ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 77 of file NoFolder.h.

◆ CreateGetElementPtr() [1/3]

Constant* llvm::NoFolder::CreateGetElementPtr ( Type Ty,
Constant C,
ArrayRef< Constant *>  IdxList 
) const
inline

Definition at line 210 of file NoFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

◆ CreateGetElementPtr() [2/3]

Constant* llvm::NoFolder::CreateGetElementPtr ( Type Ty,
Constant C,
Constant Idx 
) const
inline

Definition at line 215 of file NoFolder.h.

References llvm::ConstantExpr::getGetElementPtr().

◆ CreateGetElementPtr() [3/3]

Instruction* llvm::NoFolder::CreateGetElementPtr ( Type Ty,
Constant C,
ArrayRef< Value *>  IdxList 
) const
inline

Definition at line 222 of file NoFolder.h.

References llvm::GetElementPtrInst::Create().

◆ CreateICmp()

Instruction* llvm::NoFolder::CreateICmp ( CmpInst::Predicate  P,
Constant LHS,
Constant RHS 
) const
inline

Definition at line 295 of file NoFolder.h.

◆ CreateInBoundsGetElementPtr() [1/3]

Constant* llvm::NoFolder::CreateInBoundsGetElementPtr ( Type Ty,
Constant C,
ArrayRef< Constant *>  IdxList 
) const
inline

Definition at line 227 of file NoFolder.h.

References llvm::ConstantExpr::getInBoundsGetElementPtr().

◆ CreateInBoundsGetElementPtr() [2/3]

Constant* llvm::NoFolder::CreateInBoundsGetElementPtr ( Type Ty,
Constant C,
Constant Idx 
) const
inline

Definition at line 232 of file NoFolder.h.

References llvm::ConstantExpr::getInBoundsGetElementPtr().

◆ CreateInBoundsGetElementPtr() [3/3]

Instruction* llvm::NoFolder::CreateInBoundsGetElementPtr ( Type Ty,
Constant C,
ArrayRef< Value *>  IdxList 
) const
inline

Definition at line 240 of file NoFolder.h.

References llvm::GetElementPtrInst::CreateInBounds().

◆ CreateInsertElement()

Instruction* llvm::NoFolder::CreateInsertElement ( Constant Vec,
Constant NewElt,
Constant Idx 
) const
inline

Definition at line 318 of file NoFolder.h.

References llvm::InsertElementInst::Create().

◆ CreateInsertValue()

Instruction* llvm::NoFolder::CreateInsertValue ( Constant Agg,
Constant Val,
ArrayRef< unsigned IdxList 
) const
inline

Definition at line 333 of file NoFolder.h.

References llvm::InsertValueInst::Create().

◆ CreateIntCast()

Instruction* llvm::NoFolder::CreateIntCast ( Constant C,
Type DestTy,
bool  isSigned 
) const
inline

Definition at line 258 of file NoFolder.h.

References llvm::CastInst::CreateIntegerCast().

◆ CreateIntToPtr()

Instruction* llvm::NoFolder::CreateIntToPtr ( Constant C,
Type DestTy 
) const
inline

Definition at line 271 of file NoFolder.h.

References CreateCast().

◆ CreateLShr()

Instruction* llvm::NoFolder::CreateLShr ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 147 of file NoFolder.h.

◆ CreateMul()

Instruction* llvm::NoFolder::CreateMul ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

◆ CreateNeg()

Instruction* llvm::NoFolder::CreateNeg ( Constant C,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

◆ CreateNot()

Instruction* llvm::NoFolder::CreateNot ( Constant C) const
inline

Definition at line 202 of file NoFolder.h.

References llvm::BinaryOperator::CreateNot().

◆ CreateNSWAdd()

Instruction* llvm::NoFolder::CreateNSWAdd ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 49 of file NoFolder.h.

◆ CreateNSWMul()

Instruction* llvm::NoFolder::CreateNSWMul ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 89 of file NoFolder.h.

◆ CreateNSWNeg()

Instruction* llvm::NoFolder::CreateNSWNeg ( Constant C) const
inline

Definition at line 190 of file NoFolder.h.

References llvm::BinaryOperator::CreateNSWNeg().

◆ CreateNSWSub()

Instruction* llvm::NoFolder::CreateNSWSub ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 69 of file NoFolder.h.

◆ CreateNUWAdd()

Instruction* llvm::NoFolder::CreateNUWAdd ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 53 of file NoFolder.h.

◆ CreateNUWMul()

Instruction* llvm::NoFolder::CreateNUWMul ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 93 of file NoFolder.h.

◆ CreateNUWNeg()

Instruction* llvm::NoFolder::CreateNUWNeg ( Constant C) const
inline

Definition at line 194 of file NoFolder.h.

References llvm::BinaryOperator::CreateNUWNeg().

◆ CreateNUWSub()

Instruction* llvm::NoFolder::CreateNUWSub ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 73 of file NoFolder.h.

◆ CreateOr()

Instruction* llvm::NoFolder::CreateOr ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 165 of file NoFolder.h.

◆ CreatePointerCast()

Instruction* llvm::NoFolder::CreatePointerCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 254 of file NoFolder.h.

References llvm::CastInst::CreatePointerCast().

◆ CreatePtrToInt()

Instruction* llvm::NoFolder::CreatePtrToInt ( Constant C,
Type DestTy 
) const
inline

Definition at line 275 of file NoFolder.h.

References CreateCast().

◆ CreateSDiv()

Instruction* llvm::NoFolder::CreateSDiv ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 112 of file NoFolder.h.

◆ CreateSelect()

Instruction* llvm::NoFolder::CreateSelect ( Constant C,
Constant True,
Constant False 
) const
inline

Definition at line 309 of file NoFolder.h.

References llvm::SelectInst::Create().

◆ CreateSExtOrBitCast()

Instruction* llvm::NoFolder::CreateSExtOrBitCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 283 of file NoFolder.h.

References llvm::CastInst::CreateSExtOrBitCast().

◆ CreateShl()

Instruction* llvm::NoFolder::CreateShl ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

◆ CreateShuffleVector()

Instruction* llvm::NoFolder::CreateShuffleVector ( Constant V1,
Constant V2,
Constant Mask 
) const
inline

Definition at line 323 of file NoFolder.h.

◆ CreateSRem()

Instruction* llvm::NoFolder::CreateSRem ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 131 of file NoFolder.h.

◆ CreateSub()

Instruction* llvm::NoFolder::CreateSub ( Constant LHS,
Constant RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inline

◆ CreateTruncOrBitCast()

Instruction* llvm::NoFolder::CreateTruncOrBitCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 287 of file NoFolder.h.

References llvm::CastInst::CreateTruncOrBitCast().

◆ CreateUDiv()

Instruction* llvm::NoFolder::CreateUDiv ( Constant LHS,
Constant RHS,
bool  isExact = false 
) const
inline

Definition at line 101 of file NoFolder.h.

◆ CreateURem()

Instruction* llvm::NoFolder::CreateURem ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 127 of file NoFolder.h.

◆ CreateXor()

Instruction* llvm::NoFolder::CreateXor ( Constant LHS,
Constant RHS 
) const
inline

Definition at line 169 of file NoFolder.h.

◆ CreateZExtOrBitCast()

Instruction* llvm::NoFolder::CreateZExtOrBitCast ( Constant C,
Type DestTy 
) const
inline

Definition at line 279 of file NoFolder.h.

References llvm::CastInst::CreateZExtOrBitCast().


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