Attempt to constant fold a cast instruction with the specified operand.
Declared in <llvm/IR/ConstantFold.h>
Constant*
ConstantFoldCastInstruction(
unsigned int opcode,
Constant* V,
Type* DestTy);
The constant result is returned if successful; if not, null is returned.
The folded constant, or null if the cast cannot be folded.
| Name | Description |
|---|---|
| opcode | The opcode of the cast. |
| V | The source constant. |
| DestTy | The destination type. |