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

Synopsis

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

APInt const&
getIConstantFromReg(
    Register VReg,
    MachineRegisterInfo const& MRI);

Return Value

The constant APInt defining VReg.

Parameters

Name

Description

VReg

Virtual register defined by a G_CONSTANT.

MRI

Register information for the function.

Created with MrDocs