If VReg is defined by a statically evaluable chain of instructions rooted on a G_CONSTANT returns its APInt value and def register.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
std::optional<ValueAndVReg>
getIConstantVRegValWithLookThrough(
Register VReg,
MachineRegisterInfo const& MRI,
bool LookThroughInstrs = true);
Return Value
Class template for optional values.
Parameters
Name |
Description |
VReg |
Wrapper class representing virtual and physical registers. Should be passed by value. |
MRI |
MachineRegisterInfo ‐ Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc. |
Created with MrDocs