ΒΆOptional<llvm::APInt> getIConstantVRegVal(
    llvm::Register VReg,
    const llvm::MachineRegisterInfo& MRI)

Description

If \p VReg is defined by a G_CONSTANT, return the corresponding value.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:169

Parameters

llvm::Register VReg
const llvm::MachineRegisterInfo& MRI