LLVM: llvm::TargetFolder Class Reference (original) (raw)

TargetFolder - Create constants with target dependent folding. More...

#include "[llvm/Analysis/TargetFolder.h](TargetFolder%5F8h%5Fsource.html)"

Public Member Functions
TargetFolder (const DataLayout &DL)
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 * FoldCmp (CmpInst::Predicate P, Value *LHS, Value *RHS) const override
Value * FoldUnOpFMF (Instruction::UnaryOps Opc, Value *V, FastMathFlags FMF) 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 ()

TargetFolder - Create constants with target dependent folding.

Definition at line 36 of file TargetFolder.h.

CreatePointerBitCastOrAddrSpaceCast()

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

CreatePointerCast()

FoldBinaryIntrinsic()

FoldBinOp()

FoldBinOpFMF()

FoldCast()

FoldCmp()

FoldExactBinOp()

FoldExtractElement()

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

FoldExtractValue()

FoldGEP()

FoldInsertElement()

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

FoldInsertValue()

FoldNoWrapBinOp()

FoldSelect()

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

FoldShuffleVector()

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

FoldUnOpFMF()


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