Fold an exact binary operator if it can be simplified.
Synopsis
Declared in <llvm/IR/IRBuilderFolder.h>
virtual
Value*
FoldExactBinOp(
Instruction::BinaryOps Opc,
Value* LHS,
Value* RHS,
bool IsExact) const = 0;
Return Value
The folded value, or nullptr if the operation cannot be simplified.
Parameters
Name |
Description |
Opc |
The binary opcode to fold. |
LHS |
Left‐hand operand. |
RHS |
Right‐hand operand. |
IsExact |
Whether the operation is exact. |
Created with MrDocs