LLVM  7.0.0
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
 
Instruction * CreateAdd (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
Instruction * CreateNSWAdd (Constant *LHS, Constant *RHS) const
 
Instruction * CreateNUWAdd (Constant *LHS, Constant *RHS) const
 
Instruction * CreateFAdd (Constant *LHS, Constant *RHS) const
 
Instruction * CreateSub (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
Instruction * CreateNSWSub (Constant *LHS, Constant *RHS) const
 
Instruction * CreateNUWSub (Constant *LHS, Constant *RHS) const
 
Instruction * CreateFSub (Constant *LHS, Constant *RHS) const
 
Instruction * CreateMul (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
Instruction * CreateNSWMul (Constant *LHS, Constant *RHS) const
 
Instruction * CreateNUWMul (Constant *LHS, Constant *RHS) const
 
Instruction * CreateFMul (Constant *LHS, Constant *RHS) const
 
Instruction * CreateUDiv (Constant *LHS, Constant *RHS, bool isExact=false) const
 
Instruction * CreateExactUDiv (Constant *LHS, Constant *RHS) const
 
Instruction * CreateSDiv (Constant *LHS, Constant *RHS, bool isExact=false) const
 
Instruction * CreateExactSDiv (Constant *LHS, Constant *RHS) const
 
Instruction * CreateFDiv (Constant *LHS, Constant *RHS) const
 
Instruction * CreateURem (Constant *LHS, Constant *RHS) const
 
Instruction * CreateSRem (Constant *LHS, Constant *RHS) const
 
Instruction * CreateFRem (Constant *LHS, Constant *RHS) const
 
Instruction * CreateShl (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const
 
Instruction * CreateLShr (Constant *LHS, Constant *RHS, bool isExact=false) const
 
Instruction * CreateAShr (Constant *LHS, Constant *RHS, bool isExact=false) const
 
Instruction * CreateAnd (Constant *LHS, Constant *RHS) const
 
Instruction * CreateOr (Constant *LHS, Constant *RHS) const
 
Instruction * CreateXor (Constant *LHS, Constant *RHS) const
 
Instruction * CreateBinOp (Instruction::BinaryOps Opc, Constant *LHS, Constant *RHS) const
 
Instruction * CreateNeg (Constant *C, bool HasNUW=false, bool HasNSW=false) const
 
Instruction * CreateNSWNeg (Constant *C) const
 
Instruction * CreateNUWNeg (Constant *C) const
 
Instruction * CreateFNeg (Constant *C) const
 
Instruction * CreateNot (Constant *C) const
 
Constant * CreateGetElementPtr (Type *Ty, Constant *C, ArrayRef< Constant *> IdxList) const
 
Constant * CreateGetElementPtr (Type *Ty, Constant *C, Constant *Idx) const
 
Instruction * CreateGetElementPtr (Type *Ty, Constant *C, ArrayRef< Value *> IdxList) const
 
Constant * CreateInBoundsGetElementPtr (Type *Ty, Constant *C, ArrayRef< Constant *> IdxList) const
 
Constant * CreateInBoundsGetElementPtr (Type *Ty, Constant *C, Constant *Idx) const
 
Instruction * CreateInBoundsGetElementPtr (Type *Ty, Constant *C, ArrayRef< Value *> IdxList) const
 
Instruction * CreateCast (Instruction::CastOps Op, Constant *C, Type *DestTy) const
 
Instruction * CreatePointerCast (Constant *C, Type *DestTy) const
 
Instruction * CreateIntCast (Constant *C, Type *DestTy, bool isSigned) const
 
Instruction * CreateFPCast (Constant *C, Type *DestTy) const
 
Instruction * CreateBitCast (Constant *C, Type *DestTy) const
 
Instruction * CreateIntToPtr (Constant *C, Type *DestTy) const
 
Instruction * CreatePtrToInt (Constant *C, Type *DestTy) const
 
Instruction * CreateZExtOrBitCast (Constant *C, Type *DestTy) const
 
Instruction * CreateSExtOrBitCast (Constant *C, Type *DestTy) const
 
Instruction * CreateTruncOrBitCast (Constant *C, Type *DestTy) const
 
Instruction * CreateICmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
 
Instruction * CreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const
 
Instruction * CreateSelect (Constant *C, Constant *True, Constant *False) const
 
Instruction * CreateExtractElement (Constant *Vec, Constant *Idx) const
 
Instruction * CreateInsertElement (Constant *Vec, Constant *NewElt, Constant *Idx) const
 
Instruction * CreateShuffleVector (Constant *V1, Constant *V2, Constant *Mask) const
 
Instruction * CreateExtractValue (Constant *Agg, ArrayRef< unsigned > IdxList) const
 
Instruction * CreateInsertValue (Constant *Agg, Constant *Val, ArrayRef< unsigned > IdxList) const
 

Detailed Description

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

Definition at line 34 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 162 of file NoFolder.h.

◆ CreateAShr()

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

Definition at line 155 of file NoFolder.h.

◆ CreateBinOp()

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

Definition at line 174 of file NoFolder.h.

References llvm::BinaryOperator::Create().

◆ CreateBitCast()

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

Definition at line 268 of file NoFolder.h.

References CreateCast().

◆ CreateCast()

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

Definition at line 250 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 120 of file NoFolder.h.

◆ CreateExactUDiv()

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

Definition at line 109 of file NoFolder.h.

◆ CreateExtractElement()

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

Definition at line 315 of file NoFolder.h.

References llvm::ExtractElementInst::Create().

◆ CreateExtractValue()

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

Definition at line 329 of file NoFolder.h.

References llvm::ExtractValueInst::Create().

◆ CreateFAdd()

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

Definition at line 58 of file NoFolder.h.

◆ CreateFCmp()

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

Definition at line 301 of file NoFolder.h.

◆ CreateFDiv()

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

Definition at line 124 of file NoFolder.h.

◆ CreateFMul()

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

Definition at line 98 of file NoFolder.h.

◆ CreateFNeg()

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

Definition at line 199 of file NoFolder.h.

References llvm::BinaryOperator::CreateFNeg().

◆ CreateFPCast()

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

Definition at line 264 of file NoFolder.h.

References llvm::CastInst::CreateFPCast().

◆ CreateFRem()

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

Definition at line 136 of file NoFolder.h.

◆ CreateFSub()

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

Definition at line 78 of file NoFolder.h.

◆ CreateGetElementPtr() [1/3]

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

Definition at line 211 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 216 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 223 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 296 of file NoFolder.h.

◆ CreateInBoundsGetElementPtr() [1/3]

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

Definition at line 228 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 233 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 241 of file NoFolder.h.

References llvm::GetElementPtrInst::CreateInBounds().

◆ CreateInsertElement()

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

Definition at line 319 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 334 of file NoFolder.h.

References llvm::InsertValueInst::Create().

◆ CreateIntCast()

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

Definition at line 259 of file NoFolder.h.

References llvm::CastInst::CreateIntegerCast().

◆ CreateIntToPtr()

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

Definition at line 272 of file NoFolder.h.

References CreateCast().

◆ CreateLShr()

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

Definition at line 148 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 203 of file NoFolder.h.

References llvm::BinaryOperator::CreateNot().

◆ CreateNSWAdd()

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

Definition at line 50 of file NoFolder.h.

◆ CreateNSWMul()

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

Definition at line 90 of file NoFolder.h.

◆ CreateNSWNeg()

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

Definition at line 191 of file NoFolder.h.

References llvm::BinaryOperator::CreateNSWNeg().

◆ CreateNSWSub()

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

Definition at line 70 of file NoFolder.h.

◆ CreateNUWAdd()

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

Definition at line 54 of file NoFolder.h.

◆ CreateNUWMul()

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

Definition at line 94 of file NoFolder.h.

◆ CreateNUWNeg()

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

Definition at line 195 of file NoFolder.h.

References llvm::BinaryOperator::CreateNUWNeg().

◆ CreateNUWSub()

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

Definition at line 74 of file NoFolder.h.

◆ CreateOr()

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

Definition at line 166 of file NoFolder.h.

◆ CreatePointerCast()

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

Definition at line 255 of file NoFolder.h.

References llvm::CastInst::CreatePointerCast().

◆ CreatePtrToInt()

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

Definition at line 276 of file NoFolder.h.

References CreateCast().

◆ CreateSDiv()

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

Definition at line 113 of file NoFolder.h.

◆ CreateSelect()

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

Definition at line 310 of file NoFolder.h.

References llvm::SelectInst::Create().

◆ CreateSExtOrBitCast()

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

Definition at line 284 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 324 of file NoFolder.h.

◆ CreateSRem()

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

Definition at line 132 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 288 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 102 of file NoFolder.h.

◆ CreateURem()

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

Definition at line 128 of file NoFolder.h.

◆ CreateXor()

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

Definition at line 170 of file NoFolder.h.

◆ CreateZExtOrBitCast()

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

Definition at line 280 of file NoFolder.h.

References llvm::CastInst::CreateZExtOrBitCast().


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