If VReg is defined by a G_CONSTANT, return the corresponding value.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
std::optional<APInt>
getIConstantVRegVal(
Register VReg,
MachineRegisterInfo const& MRI);
The constant value, or std::nullopt if VReg is not a G_CONSTANT.
| Name | Description |
|---|---|
| VReg | Virtual register that may be defined by a G_CONSTANT. |
| MRI | Register information for the function. |