LLVM  16.0.0git
Public Member Functions | List of all members
llvm::IRBuilderFolder Class Referenceabstract

IRBuilderFolder - Interface for constant folding in IRBuilder. More...

#include "llvm/IR/IRBuilderFolder.h"

Inheritance diagram for llvm::IRBuilderFolder:
Inheritance graph
[legend]

Public Member Functions

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 ValueCreateCast (Instruction::CastOps Op, Constant *C, Type *DestTy) const =0
 
virtual ValueCreatePointerCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreatePointerBitCastOrAddrSpaceCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateIntCast (Constant *C, Type *DestTy, bool isSigned) const =0
 
virtual ValueCreateFPCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateBitCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateIntToPtr (Constant *C, Type *DestTy) const =0
 
virtual ValueCreatePtrToInt (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateZExtOrBitCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateSExtOrBitCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateTruncOrBitCast (Constant *C, Type *DestTy) const =0
 
virtual ValueCreateFCmp (CmpInst::Predicate P, Constant *LHS, Constant *RHS) const =0
 

Detailed Description

IRBuilderFolder - Interface for constant folding in IRBuilder.

Definition at line 24 of file IRBuilderFolder.h.

Constructor & Destructor Documentation

◆ ~IRBuilderFolder()

IRBuilderFolder::~IRBuilderFolder ( )
virtualdefault

Member Function Documentation

◆ CreateBitCast()

virtual Value* llvm::IRBuilderFolder::CreateBitCast ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreateCast()

virtual Value* llvm::IRBuilderFolder::CreateCast ( Instruction::CastOps  Op,
Constant C,
Type DestTy 
) const
pure virtual

◆ CreateFCmp()

virtual Value* llvm::IRBuilderFolder::CreateFCmp ( CmpInst::Predicate  P,
Constant LHS,
Constant RHS 
) const
pure virtual

◆ CreateFPCast()

virtual Value* llvm::IRBuilderFolder::CreateFPCast ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreateIntCast()

virtual Value* llvm::IRBuilderFolder::CreateIntCast ( Constant C,
Type DestTy,
bool  isSigned 
) const
pure virtual

◆ CreateIntToPtr()

virtual Value* llvm::IRBuilderFolder::CreateIntToPtr ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreatePointerBitCastOrAddrSpaceCast()

virtual Value* llvm::IRBuilderFolder::CreatePointerBitCastOrAddrSpaceCast ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreatePointerCast()

virtual Value* llvm::IRBuilderFolder::CreatePointerCast ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreatePtrToInt()

virtual Value* llvm::IRBuilderFolder::CreatePtrToInt ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreateSExtOrBitCast()

virtual Value* llvm::IRBuilderFolder::CreateSExtOrBitCast ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreateTruncOrBitCast()

virtual Value* llvm::IRBuilderFolder::CreateTruncOrBitCast ( Constant C,
Type DestTy 
) const
pure virtual

◆ CreateZExtOrBitCast()

virtual Value* llvm::IRBuilderFolder::CreateZExtOrBitCast ( Constant C,
Type DestTy 
) const
pure virtual

◆ FoldBinOp()

virtual Value* llvm::IRBuilderFolder::FoldBinOp ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS 
) const
pure virtual

◆ FoldBinOpFMF()

virtual Value* llvm::IRBuilderFolder::FoldBinOpFMF ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS,
FastMathFlags  FMF 
) const
pure virtual

◆ FoldExactBinOp()

virtual Value* llvm::IRBuilderFolder::FoldExactBinOp ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS,
bool  IsExact 
) const
pure virtual

◆ FoldExtractElement()

virtual Value* llvm::IRBuilderFolder::FoldExtractElement ( Value Vec,
Value Idx 
) const
pure virtual

◆ FoldExtractValue()

virtual Value* llvm::IRBuilderFolder::FoldExtractValue ( Value Agg,
ArrayRef< unsigned >  IdxList 
) const
pure virtual

◆ FoldGEP()

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

◆ FoldICmp()

virtual Value* llvm::IRBuilderFolder::FoldICmp ( CmpInst::Predicate  P,
Value LHS,
Value RHS 
) const
pure virtual

◆ FoldInsertElement()

virtual Value* llvm::IRBuilderFolder::FoldInsertElement ( Value Vec,
Value NewElt,
Value Idx 
) const
pure virtual

◆ FoldInsertValue()

virtual Value* llvm::IRBuilderFolder::FoldInsertValue ( Value Agg,
Value Val,
ArrayRef< unsigned >  IdxList 
) const
pure virtual

◆ FoldNoWrapBinOp()

virtual Value* llvm::IRBuilderFolder::FoldNoWrapBinOp ( Instruction::BinaryOps  Opc,
Value LHS,
Value RHS,
bool  HasNUW,
bool  HasNSW 
) const
pure virtual

◆ FoldSelect()

virtual Value* llvm::IRBuilderFolder::FoldSelect ( Value C,
Value True,
Value False 
) const
pure virtual

◆ FoldShuffleVector()

virtual Value* llvm::IRBuilderFolder::FoldShuffleVector ( Value V1,
Value V2,
ArrayRef< int Mask 
) const
pure virtual

◆ FoldUnOpFMF()

virtual Value* llvm::IRBuilderFolder::FoldUnOpFMF ( Instruction::UnaryOps  Opc,
Value V,
FastMathFlags  FMF 
) const
pure virtual

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