Constant-fold an integer-to-float conversion opcode.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
std::optional<APFloat>
ConstantFoldIntToFloat(
unsigned int Opcode,
LLT DstTy,
Register Src,
MachineRegisterInfo const& MRI);
The folded APFloat, or std::nullopt on failure.
| Name | Description |
|---|---|
| Opcode | Integer-to-float conversion opcode to fold. |
| DstTy | Destination floating-point type. |
| Src | Source integer register. |
| MRI | Register information for the function. |