If VReg is defined by a statically evaluable chain of instructions rooted on a G_FCONSTANT returns its APFloat value and def register.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
std::optional<FPValueAndVReg>
getFConstantVRegValWithLookThrough(
Register VReg,
MachineRegisterInfo const& MRI,
bool LookThroughInstrs = true);
The float constant and def register, or std::nullopt.
| Name | Description |
|---|---|
| VReg | Virtual register to look through for a float constant. |
| MRI | Register information for the function. |
| LookThroughInstrs | Whether to fold through trivial defining ops. |