LLVM: llvm::ConstantFolder Class Reference (original) (raw)
ConstantFolder - Create constants with minimum, target independent, folding. More...
#include "[llvm/IR/ConstantFolder.h](ConstantFolder%5F8h%5Fsource.html)"
| Public Member Functions |
|
|
ConstantFolder ()=default |
| Value * |
FoldBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS) const override |
| Value * |
FoldExactBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, bool IsExact) const override |
| Value * |
FoldNoWrapBinOp (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, bool HasNUW, bool HasNSW) const override |
| Value * |
FoldBinOpFMF (Instruction::BinaryOps Opc, Value *LHS, Value *RHS, FastMathFlags FMF) const override |
| Value * |
FoldUnOpFMF (Instruction::UnaryOps Opc, Value *V, FastMathFlags FMF) const override |
| Value * |
FoldCmp (CmpInst::Predicate P, Value *LHS, Value *RHS) const override |
| Value * |
FoldGEP (Type *Ty, Value *Ptr, ArrayRef< Value * > IdxList, GEPNoWrapFlags NW) const override |
| Value * |
FoldSelect (Value *C, Value *True, Value *False) const override |
| Value * |
FoldExtractValue (Value *Agg, ArrayRef< unsigned > IdxList) const override |
| Value * |
FoldInsertValue (Value *Agg, Value *Val, ArrayRef< unsigned > IdxList) const override |
| Value * |
FoldExtractElement (Value *Vec, Value *Idx) const override |
| Value * |
FoldInsertElement (Value *Vec, Value *NewElt, Value *Idx) const override |
| Value * |
FoldShuffleVector (Value *V1, Value *V2, ArrayRef< int > Mask) const override |
| Value * |
FoldCast (Instruction::CastOps Op, Value *V, Type *DestTy) const override |
| Value * |
FoldBinaryIntrinsic (Intrinsic::ID ID, Value *LHS, Value *RHS, Type *Ty, Instruction *FMFSource) const override |
| Constant * |
CreatePointerCast (Constant *C, Type *DestTy) const override |
| Constant * |
CreatePointerBitCastOrAddrSpaceCast (Constant *C, Type *DestTy) const override |
| Public Member Functions inherited from llvm::IRBuilderFolder |
|
| virtual |
~IRBuilderFolder () |
ConstantFolder - Create constants with minimum, target independent, folding.
Definition at line 31 of file ConstantFolder.h.
| llvm::ConstantFolder::ConstantFolder ( ) |
explicitdefault |
◆ CreatePointerBitCastOrAddrSpaceCast()
| Constant * llvm::ConstantFolder::CreatePointerBitCastOrAddrSpaceCast ( Constant * C, Type * DestTy ) const |
inlineoverridevirtual |
◆ CreatePointerCast()
◆ FoldBinaryIntrinsic()
◆ FoldBinOp()
◆ FoldBinOpFMF()
◆ FoldCast()
◆ FoldCmp()
◆ FoldExactBinOp()
| Value * llvm::ConstantFolder::FoldExtractElement ( Value * Vec, Value * Idx ) const |
inlineoverridevirtual |
◆ FoldGEP()
◆ FoldInsertElement()
| Value * llvm::ConstantFolder::FoldInsertElement ( Value * Vec, Value * NewElt, Value * Idx ) const |
inlineoverridevirtual |
◆ FoldInsertValue()
◆ FoldNoWrapBinOp()
◆ FoldSelect()
| Value * llvm::ConstantFolder::FoldSelect ( Value * C, Value * True, Value * False ) const |
inlineoverridevirtual |
◆ FoldShuffleVector()
| Value * llvm::ConstantFolder::FoldShuffleVector ( Value * V1, Value * V2, ArrayRef< int > Mask ) const |
inlineoverridevirtual |
◆ FoldUnOpFMF()
The documentation for this class was generated from the following file: