Attempt to constant fold a unary operation with the specified operand. Returns null on failure.
Declared in <llvm/Analysis/ConstantFolding.h>
Constant*
ConstantFoldUnaryOpOperand(
unsigned int Opcode,
Constant* Op,
DataLayout const& DL);
The folded constant on success, or null on failure.
| Name | Description |
|---|---|
| Opcode | Unary opcode to fold. |
| Op | Constant operand of the unary operation. |
| DL | Data layout used for type sizes and pointer widths. |