LLVM  15.0.0git
Public Member Functions | List of all members
llvm::NoFolder Class Referencefinal

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

#include "llvm/IR/NoFolder.h"

Inheritance diagram for llvm::NoFolder:
Inheritance graph
[legend]
Collaboration diagram for llvm::NoFolder:
Collaboration graph
[legend]

Public Member Functions

 NoFolder ()=default
 
ValueFoldAdd (Value *LHS, Value *RHS, bool HasNUW=false, bool HasNSW=false) const override
 
ValueFoldAnd (Value *LHS, Value *RHS) const override
 
ValueFoldOr (Value *LHS, Value *RHS) const override
 
ValueFoldICmp (CmpInst::Predicate P, Value *LHS, Value *RHS) const override
 
ValueFoldGEP (Type *Ty, Value *Ptr, ArrayRef< Value * > IdxList, bool IsInBounds=false) const override
 
ValueFoldSelect (Value *C, Value *True, Value *False) const override
 
ValueFoldExtractValue (Value *Agg, ArrayRef< unsigned > IdxList) const override
 
ValueFoldInsertValue (Value *Agg, Value *Val, ArrayRef< unsigned > IdxList) const override
 
InstructionCreateFAdd (Constant *LHS, Constant *RHS) const override
 
InstructionCreateSub (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const override
 
InstructionCreateFSub (Constant *LHS, Constant *RHS) const override
 
InstructionCreateMul (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const override
 
InstructionCreateFMul (Constant *LHS, Constant *RHS) const override
 
InstructionCreateUDiv (Constant *LHS, Constant *RHS, bool isExact=false) const override
 
InstructionCreateSDiv (Constant *LHS, Constant *RHS, bool isExact=false) const override
 
InstructionCreateFDiv (Constant *LHS, Constant *RHS) const override
 
InstructionCreateURem (Constant *LHS, Constant *RHS) const override
 
InstructionCreateSRem (Constant *LHS, Constant *RHS) const override
 
InstructionCreateFRem (Constant *LHS, Constant *RHS) const override
 
InstructionCreateShl (Constant *LHS, Constant *RHS, bool HasNUW=false, bool HasNSW=false) const override
 
InstructionCreateLShr (Constant *LHS, Constant *RHS, bool isExact=false) const override
 
InstructionCreateAShr (Constant *LHS, Constant *RHS, bool isExact=false) const override
 
InstructionCreateXor (Constant *LHS, Constant *RHS) const override
 
InstructionCreateBinOp (Instruction::BinaryOps Opc, Constant *LHS, Constant *RHS) const override
 
InstructionCreateNeg (Constant *C, bool HasNUW=false, bool HasNSW=false) const override
 
InstructionCreateFNeg (Constant *C) const override
 
InstructionCreateNot (Constant *C) const override
 
InstructionCreateUnOp (Instruction::UnaryOps Opc, Constant *C) const override
 
InstructionCreateCast (Instruction::CastOps Op, Constant *C, Type *DestTy) const override
 
InstructionCreatePointerCast (Constant *C, Type *DestTy) const override
 
InstructionCreatePointerBitCastOrAddrSpaceCast (Constant *C, Type *DestTy) const override
 
InstructionCreateIntCast (Constant *C, Type *DestTy, bool isSigned) const override
 
InstructionCreateFPCast (Constant *C, Type *DestTy) const override
 
InstructionCreateBitCast (Constant *C, Type *DestTy) const override
 
InstructionCreateIntToPtr (Constant *C, Type *DestTy) const override
 
InstructionCreatePtrToInt (Constant *C, Type *DestTy) const override
 
InstructionCreateZExtOrBitCast (Constant *C, Type *DestTy) const override
 
InstructionCreateSExtOrBitCast (Constant *C, Type *DestTy) const override
 
InstructionCreateTruncOrBitCast (Constant *C, Type *DestTy) const override
 
InstructionCreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const override
 
InstructionCreateExtractElement (Constant *Vec, Constant *Idx) const override
 
InstructionCreateInsertElement (Constant *Vec, Constant *NewElt, Constant *Idx) const override
 
InstructionCreateShuffleVector (Constant *V1, Constant *V2, ArrayRef< int > Mask) const override
 
- Public Member Functions inherited from llvm::IRBuilderFolder
virtual ~IRBuilderFolder ()
 

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

◆ CreateAShr()

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

Implements llvm::IRBuilderFolder.

Definition at line 157 of file NoFolder.h.

References LHS, and RHS.

◆ CreateBinOp()

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

Implements llvm::IRBuilderFolder.

Definition at line 168 of file NoFolder.h.

References llvm::BinaryOperator::Create(), LHS, and RHS.

◆ CreateBitCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 226 of file NoFolder.h.

References CreateCast().

◆ CreateCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 203 of file NoFolder.h.

References llvm::CastInst::Create().

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

◆ CreateExtractElement()

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

Implements llvm::IRBuilderFolder.

Definition at line 263 of file NoFolder.h.

References llvm::ExtractElementInst::Create().

◆ CreateFAdd()

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

Implements llvm::IRBuilderFolder.

Definition at line 82 of file NoFolder.h.

References LHS, and RHS.

◆ CreateFCmp()

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

Implements llvm::IRBuilderFolder.

Definition at line 254 of file NoFolder.h.

References LHS, P, and RHS.

◆ CreateFDiv()

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

Implements llvm::IRBuilderFolder.

Definition at line 126 of file NoFolder.h.

References LHS, and RHS.

◆ CreateFMul()

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

Implements llvm::IRBuilderFolder.

Definition at line 108 of file NoFolder.h.

References LHS, and RHS.

◆ CreateFNeg()

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

Implements llvm::IRBuilderFolder.

Definition at line 186 of file NoFolder.h.

◆ CreateFPCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 222 of file NoFolder.h.

References llvm::CastInst::CreateFPCast().

◆ CreateFRem()

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

Implements llvm::IRBuilderFolder.

Definition at line 138 of file NoFolder.h.

References LHS, and RHS.

◆ CreateFSub()

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

Implements llvm::IRBuilderFolder.

Definition at line 95 of file NoFolder.h.

References LHS, and RHS.

◆ CreateInsertElement()

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

Implements llvm::IRBuilderFolder.

Definition at line 268 of file NoFolder.h.

References llvm::InsertElementInst::Create().

◆ CreateIntCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 217 of file NoFolder.h.

References llvm::CastInst::CreateIntegerCast().

◆ CreateIntToPtr()

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

Implements llvm::IRBuilderFolder.

Definition at line 230 of file NoFolder.h.

References CreateCast().

◆ CreateLShr()

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

Implements llvm::IRBuilderFolder.

Definition at line 150 of file NoFolder.h.

References LHS, and RHS.

◆ CreateMul()

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

◆ CreateNeg()

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

◆ CreateNot()

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

Implements llvm::IRBuilderFolder.

Definition at line 190 of file NoFolder.h.

References llvm::BinaryOperator::CreateNot().

◆ CreatePointerBitCastOrAddrSpaceCast()

Instruction* llvm::NoFolder::CreatePointerBitCastOrAddrSpaceCast ( Constant C,
Type DestTy 
) const
inlineoverridevirtual

◆ CreatePointerCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 208 of file NoFolder.h.

References llvm::CastInst::CreatePointerCast().

◆ CreatePtrToInt()

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

Implements llvm::IRBuilderFolder.

Definition at line 234 of file NoFolder.h.

References CreateCast().

◆ CreateSDiv()

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

Implements llvm::IRBuilderFolder.

Definition at line 119 of file NoFolder.h.

References LHS, and RHS.

◆ CreateSExtOrBitCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 242 of file NoFolder.h.

References llvm::CastInst::CreateSExtOrBitCast().

◆ CreateShl()

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

◆ CreateShuffleVector()

Instruction* llvm::NoFolder::CreateShuffleVector ( Constant V1,
Constant V2,
ArrayRef< int Mask 
) const
inlineoverridevirtual

◆ CreateSRem()

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

Implements llvm::IRBuilderFolder.

Definition at line 134 of file NoFolder.h.

References LHS, and RHS.

◆ CreateSub()

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

◆ CreateTruncOrBitCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 246 of file NoFolder.h.

References llvm::CastInst::CreateTruncOrBitCast().

◆ CreateUDiv()

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

Implements llvm::IRBuilderFolder.

Definition at line 112 of file NoFolder.h.

References LHS, and RHS.

◆ CreateUnOp()

Instruction* llvm::NoFolder::CreateUnOp ( Instruction::UnaryOps  Opc,
Constant C 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 194 of file NoFolder.h.

References llvm::UnaryOperator::Create().

◆ CreateURem()

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

Implements llvm::IRBuilderFolder.

Definition at line 130 of file NoFolder.h.

References LHS, and RHS.

◆ CreateXor()

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

Implements llvm::IRBuilderFolder.

Definition at line 164 of file NoFolder.h.

References LHS, and RHS.

◆ CreateZExtOrBitCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 238 of file NoFolder.h.

References llvm::CastInst::CreateZExtOrBitCast().

◆ FoldAdd()

Value* llvm::NoFolder::FoldAdd ( Value LHS,
Value RHS,
bool  HasNUW = false,
bool  HasNSW = false 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 46 of file NoFolder.h.

◆ FoldAnd()

Value* llvm::NoFolder::FoldAnd ( Value LHS,
Value RHS 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 51 of file NoFolder.h.

◆ FoldExtractValue()

Value* llvm::NoFolder::FoldExtractValue ( Value Agg,
ArrayRef< unsigned >  IdxList 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 68 of file NoFolder.h.

◆ FoldGEP()

Value* llvm::NoFolder::FoldGEP ( Type Ty,
Value Ptr,
ArrayRef< Value * >  IdxList,
bool  IsInBounds = false 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 59 of file NoFolder.h.

◆ FoldICmp()

Value* llvm::NoFolder::FoldICmp ( CmpInst::Predicate  P,
Value LHS,
Value RHS 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 55 of file NoFolder.h.

◆ FoldInsertValue()

Value* llvm::NoFolder::FoldInsertValue ( Value Agg,
Value Val,
ArrayRef< unsigned >  IdxList 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 73 of file NoFolder.h.

◆ FoldOr()

Value* llvm::NoFolder::FoldOr ( Value LHS,
Value RHS 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 53 of file NoFolder.h.

◆ FoldSelect()

Value* llvm::NoFolder::FoldSelect ( Value C,
Value True,
Value False 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 64 of file NoFolder.h.


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