LLVM 22.0.0git
llvm::NoFolder Class Referencefinal

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

#include "llvm/IR/NoFolder.h"

Inheritance diagram for llvm::NoFolder:
[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
ValueFoldCmp (CmpInst::Predicate P, Value *LHS, Value *RHS) const override
ValueFoldGEP (Type *Ty, Value *Ptr, ArrayRef< Value * > IdxList, GEPNoWrapFlags NW) 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
Public Member Functions inherited from llvm::IRBuilderFolder
virtual ~IRBuilderFolder ()

Detailed Description

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

Definition at line 36 of file NoFolder.h.

Constructor & Destructor Documentation

◆ NoFolder()

llvm::NoFolder::NoFolder ( )
explicitdefault

Member Function Documentation

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

References LHS, and RHS.

◆ FoldBinOp()

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

Implements llvm::IRBuilderFolder.

Definition at line 49 of file NoFolder.h.

References LHS, Opc, and RHS.

◆ FoldBinOpFMF()

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

Implements llvm::IRBuilderFolder.

Definition at line 64 of file NoFolder.h.

References LHS, Opc, and RHS.

◆ FoldCast()

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

Implements llvm::IRBuilderFolder.

Definition at line 111 of file NoFolder.h.

◆ FoldCmp()

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

Implements llvm::IRBuilderFolder.

Definition at line 74 of file NoFolder.h.

References LHS, P, and RHS.

◆ FoldExactBinOp()

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

Implements llvm::IRBuilderFolder.

Definition at line 54 of file NoFolder.h.

References LHS, Opc, and RHS.

◆ FoldExtractElement()

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

Implements llvm::IRBuilderFolder.

Definition at line 97 of file NoFolder.h.

◆ FoldExtractValue()

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

Implements llvm::IRBuilderFolder.

Definition at line 87 of file NoFolder.h.

◆ FoldGEP()

Value * llvm::NoFolder::FoldGEP ( Type * Ty,
Value * Ptr,
ArrayRef< Value * > IdxList,
GEPNoWrapFlags NW ) const
inlineoverridevirtual

Implements llvm::IRBuilderFolder.

Definition at line 78 of file NoFolder.h.

References Ptr.

◆ FoldInsertElement()

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

Implements llvm::IRBuilderFolder.

Definition at line 101 of file NoFolder.h.

◆ FoldInsertValue()

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

Implements llvm::IRBuilderFolder.

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

References LHS, Opc, and RHS.

◆ FoldSelect()

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

Implements llvm::IRBuilderFolder.

Definition at line 83 of file NoFolder.h.

References llvm::CallingConv::C.

◆ FoldShuffleVector()

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

Implements llvm::IRBuilderFolder.

Definition at line 106 of file NoFolder.h.

◆ FoldUnOpFMF()

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

Implements llvm::IRBuilderFolder.

Definition at line 69 of file NoFolder.h.

References Opc.


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