IRBuilderFolder ‐ Interface for constant folding in IRBuilder.

Synopsis

Declared in <llvm/IR/IRBuilderFolder.h>

class IRBuilderFolder;

Member Functions

Name

Description

~IRBuilderFolder [destructor] [virtual]

Destroy the IRBuilderFolder.

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 if it can be simplified.

FoldBinOpFMF [virtual]

Fold a binary operator with fast‐math flags if it can be simplified.

FoldCast [virtual]

Fold a cast if it can be simplified.

FoldCmp [virtual]

Fold a compare if it can be simplified.

FoldExactBinOp [virtual]

Fold an exact binary operator if it can be simplified.

FoldExtractElement [virtual]

Fold an extractelement if it can be simplified.

FoldExtractValue [virtual]

Fold an extractvalue if it can be simplified.

FoldGEP [virtual]

Fold a GEP if it can be simplified.

FoldInsertElement [virtual]

Fold an insertelement if it can be simplified.

FoldInsertValue [virtual]

Fold an insertvalue if it can be simplified.

FoldIntrinsic [virtual]

Fold an intrinsic call if it can be simplified.

FoldNoWrapBinOp [virtual]

Fold a no‐wrap binary operator if it can be simplified.

FoldSelect [virtual]

Fold a select if it can be simplified.

FoldShuffleVector [virtual]

Fold a shufflevector if it can be simplified.

FoldUnOpFMF [virtual]

Fold a unary operator with fast‐math flags if it can be simplified.

Derived Classes

Name

Description

ConstantFolder

ConstantFolder ‐ Create constants with minimum, target independent, folding.

InstSimplifyFolder

InstSimplifyFolder ‐ Fold IRBuilder operations via InstructionSimplify.

NoFolder

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

TargetFolder

TargetFolder ‐ Create constants with target dependent folding.

Created with MrDocs