Fold a cast using InstructionSimplify.
Declared in <llvm/Analysis/InstSimplifyFolder.h>
virtual
Value*
FoldCast(
Instruction::CastOps Op,
Value* V,
Type* DestTy) const override;
The simplified value, or nullptr if the operation cannot be folded.
| Name | Description |
|---|---|
| Op | The cast opcode. |
| V | The value to cast. |
| DestTy | The destination type. |