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