Constant-fold a generic floating-point binary opcode on two registers.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
std::optional<APFloat>
ConstantFoldFPBinOp(
unsigned int Opcode,
Register const Op1,
Register const Op2,
MachineRegisterInfo const& MRI);
The folded APFloat, or std::nullopt on failure.
| Name | Description |
|---|---|
| Opcode | Generic floating-point binary opcode to fold. |
| Op1 | First operand register. |
| Op2 | Second operand register. |
| MRI | Register information for the function. |