Attempt to constant fold a binary operation with the specified operands. Returns null or a constant expression of the specified operands on failure.
Synopsis
Declared in <llvm/Analysis/ConstantFolding.h>
Constant*
ConstantFoldBinaryOpOperands(
unsigned int Opcode,
Constant* LHS,
Constant* RHS,
DataLayout const& DL);
Return Value
The folded constant, or null or a constant expression on failure.
Parameters
Name |
Description |
Opcode |
Binary opcode to fold. |
LHS |
Left‐hand constant operand. |
RHS |
Right‐hand constant operand. |
DL |
Data layout used for type sizes and pointer widths. |
Created with MrDocs