LLVM 19.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]

Public Member Functions

 NoFolder ()=default
 
ValueFoldBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS) const override
 
ValueFoldExactBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, bool IsExact) const override
 
ValueFoldNoWrapBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, bool HasNUW, bool HasNSW) const override
 
ValueFoldBinOpFMF (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, FastMathFlags FMF) const override
 
ValueFoldUnOpFMF (Instruction::UnaryOps Opc, Value *V, FastMathFlags FMF) 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
 
ValueFoldExtractElement (Value *Vec, Value *Idx) const override
 
ValueFoldInsertElement (Value *Vec, Value *NewElt, Value *Idx) const override
 
ValueFoldShuffleVector (Value *V1, Value *V2, ArrayRef< int > Mask) const override
 
ValueFoldCast (Instruction::CastOps Op, Value *V, Type *DestTy) const override
 
ValueFoldBinaryIntrinsic (Intrinsic::ID ID, Value *LHS, Value *RHS, Type *Ty, Instruction *FMFSource) const override
 
InstructionCreatePointerCast (Constant *C, Type *DestTy) const override
 
InstructionCreatePointerBitCastOrAddrSpaceCast (Constant *C, Type *DestTy) const override
 
InstructionCreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const override
 
- Public Member Functions inherited from llvm::IRBuilderFolder
virtual ~IRBuilderFolder ()
 
virtual ValueFoldBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS) const =0
 
virtual ValueFoldExactBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, bool IsExact) const =0
 
virtual ValueFoldNoWrapBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, bool HasNUW, bool HasNSW) const =0
 
virtual ValueFoldBinOpFMF (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, FastMathFlags FMF) const =0
 
virtual ValueFoldUnOpFMF (Instruction::UnaryOps Opc, Value *V, FastMathFlags FMF) const =0
 
virtual ValueFoldICmp (CmpInst::Predicate P, Value *LHS, Value *RHS) const =0
 
virtual ValueFoldGEP (Type *Ty, Value *Ptr, ArrayRef< Value * > IdxList, bool IsInBounds=false) const =0
 
virtual ValueFoldSelect (Value *C, Value *True, Value *False) const =0
 
virtual ValueFoldExtractValue (Value *Agg, ArrayRef< unsigned > IdxList) const =0
 
virtual ValueFoldInsertValue (Value *Agg, Value *Val, ArrayRef< unsigned > IdxList) const =0
 
virtual ValueFoldExtractElement (Value *Vec, Value *Idx) const =0
 
virtual ValueFoldInsertElement (Value *Vec, Value *NewElt, Value *Idx) const =0
 
virtual ValueFoldShuffleVector (Value *V1, Value *V2, ArrayRef< int > Mask) const =0
 
virtual ValueFoldCast (Instruction::CastOps Op, Value *V, Type *DestTy) const =0
 
virtual ValueFoldBinaryIntrinsic (Intrinsic::ID ID, Value *LHS, Value *RHS, Type *Ty, Instruction *FMFSource=nullptr) const =0
 
virtual ValueCreatePointerCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreatePointerBitCastOrAddrSpaceCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const =0
 

Detailed Description

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

Definition at line 35 of file NoFolder.h.

Constructor & Destructor Documentation

◆ NoFolder()

llvm::NoFolder::NoFolder ( )
explicitdefault

Member Function Documentation

◆ CreateFCmp()

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

Implements llvm::IRBuilderFolder.

Definition at line 137 of file NoFolder.h.

References LHS, P, and RHS.

◆ 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 124 of file NoFolder.h.

References llvm::CallingConv::C, and llvm::CastInst::CreatePointerCast().

◆ FoldBinaryIntrinsic()

Value * llvm::NoFolder::FoldBinaryIntrinsic ( Intrinsic::ID  ID,
Value LHS,
Value RHS,
Type Ty,
Instruction FMFSource 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 115 of file NoFolder.h.

◆ FoldBinOp()

Value * llvm::NoFolder::FoldBinOp ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 48 of file NoFolder.h.

◆ FoldBinOpFMF()

Value * llvm::NoFolder::FoldBinOpFMF ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS,
FastMathFlags  FMF 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 63 of file NoFolder.h.

◆ FoldCast()

Value * llvm::NoFolder::FoldCast ( Instruction::CastOps  Op,
Value V,
Type DestTy 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 110 of file NoFolder.h.

◆ FoldExactBinOp()

Value * llvm::NoFolder::FoldExactBinOp ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS,
bool  IsExact 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 53 of file NoFolder.h.

◆ FoldExtractElement()

Value * llvm::NoFolder::FoldExtractElement ( Value Vec,
Value Idx 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 96 of file NoFolder.h.

◆ FoldExtractValue()

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

Implements llvm::IRBuilderFolder.

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

◆ FoldICmp()

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

Implements llvm::IRBuilderFolder.

Definition at line 73 of file NoFolder.h.

◆ FoldInsertElement()

Value * llvm::NoFolder::FoldInsertElement ( Value Vec,
Value NewElt,
Value Idx 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 100 of file NoFolder.h.

◆ FoldInsertValue()

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

Implements llvm::IRBuilderFolder.

Definition at line 91 of file NoFolder.h.

◆ FoldNoWrapBinOp()

Value * llvm::NoFolder::FoldNoWrapBinOp ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS,
bool  HasNUW,
bool  HasNSW 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 58 of file NoFolder.h.

◆ FoldSelect()

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

Implements llvm::IRBuilderFolder.

Definition at line 82 of file NoFolder.h.

◆ FoldShuffleVector()

Value * llvm::NoFolder::FoldShuffleVector ( Value V1,
Value V2,
ArrayRef< int >  Mask 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 105 of file NoFolder.h.

◆ FoldUnOpFMF()

Value * llvm::NoFolder::FoldUnOpFMF ( Instruction::UnaryOps  Opc,
Value V,
FastMathFlags  FMF 
) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 68 of file NoFolder.h.


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