llvm::InstSimplifyFolder::FoldCast

Fold a cast using InstructionSimplify.

Synopsis

Declared in <llvm/Analysis/InstSimplifyFolder.h>

virtual
Value*
FoldCast(
    Instruction::CastOps Op,
    Value* V,
    Type* DestTy) const override;

Return Value

The simplified value, or nullptr if the operation cannot be folded.

Parameters

NameDescription
OpThe cast opcode.
VThe value to cast.
DestTyThe destination type.