ΒΆOptional<llvm::FPValueAndVReg>
getFConstantVRegValWithLookThrough(
llvm::Register VReg,
const llvm::MachineRegisterInfo& MRI,
bool LookThroughInstrs = true)
Optional<llvm::FPValueAndVReg>
getFConstantVRegValWithLookThrough(
llvm::Register VReg,
const llvm::MachineRegisterInfo& MRI,
bool LookThroughInstrs = true)
Description
If \p VReg is defined by a statically evaluable chain of instructions rooted on a G_FCONSTANT returns its APFloat value and def register.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:204
Parameters
- llvm::Register VReg
- const llvm::MachineRegisterInfo& MRI
- bool LookThroughInstrs = true