We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea5ac1 commit 578866dCopy full SHA for 578866d
llvm/lib/CodeGen/GlobalISel/Utils.cpp
@@ -287,7 +287,8 @@ std::optional<APInt> llvm::getIConstantVRegVal(Register VReg,
287
return ValAndVReg->Value;
288
}
289
290
-const APInt &llvm::getIConstantFromReg(Register Reg, const MachineRegisterInfo &MRI) {
+const APInt &llvm::getIConstantFromReg(Register Reg,
291
+ const MachineRegisterInfo &MRI) {
292
MachineInstr *Const = MRI.getVRegDef(Reg);
293
assert((Const && Const->getOpcode() == TargetOpcode::G_CONSTANT) &&
294
"expected a G_CONSTANT on Reg");
0 commit comments