llvm::TargetFolder

TargetFolder - Create constants with target dependent folding.

Synopsis

Declared in <llvm/Analysis/TargetFolder.h>

class TargetFolder final
    : public IRBuilderFolder

Base Classes

NameDescription
IRBuilderFolderIRBuilderFolder - Interface for constant folding in IRBuilder.

Member Functions

NameDescription
TargetFolder [constructor]Construct a folder that creates constants with target-dependent folding.
CreatePointerBitCastOrAddrSpaceCast [virtual]Create a bitcast or addrspacecast of constant pointer C to DestTy.
CreatePointerCast [virtual]Create a pointer cast of constant C to type DestTy.
FoldBinOp [virtual]Fold a binary operator with target-dependent constant folding.
FoldBinOpFMF [virtual]Fold a binary operator with fast-math flags via target-dependent folding.
FoldCast [virtual]Fold a cast with target-dependent constant folding.
FoldCmp [virtual]Fold a compare with target-dependent constant folding.
FoldExactBinOp [virtual]Fold an exact binary operator with target-dependent constant folding.
FoldExtractElement [virtual]Fold an extractelement with target-dependent constant folding.
FoldExtractValue [virtual]Fold an extractvalue with target-dependent constant folding.
FoldGEP [virtual]Fold a GEP with target-dependent constant folding.
FoldInsertElement [virtual]Fold an insertelement with target-dependent constant folding.
FoldInsertValue [virtual]Fold an insertvalue with target-dependent constant folding.
FoldIntrinsic FoldIntrinsic overloads
FoldNoWrapBinOp [virtual]Fold a no-wrap binary operator with target-dependent constant folding.
FoldSelect FoldSelect overloads
FoldShuffleVector [virtual]Fold a shufflevector with target-dependent constant folding.
FoldUnOpFMF [virtual]Fold a unary operator with fast-math flags via target-dependent folding.