llvm::getConstantFPVRegVal

Return the ConstantFP defining VReg, or nullptr if it is not a G_FCONSTANT.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

ConstantFP const*
getConstantFPVRegVal(
    Register VReg,
    MachineRegisterInfo const& MRI);

Return Value

The ConstantFP, or nullptr if VReg is not a G_FCONSTANT.

Parameters

NameDescription
VRegVirtual register that may be defined by a G_FCONSTANT.
MRIRegister information for the function.