Find the def instruction for Reg, folding away any trivial copies. May return nullptr if Reg is not a generic virtual register.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
MachineInstr*
getDefIgnoringCopies(
Register Reg,
MachineRegisterInfo const& MRI);
Also walks through hints such as G_ASSERT_ZEXT.
The def instruction, or nullptr.
| Name | Description |
|---|---|
| Reg | Virtual register whose definition is sought. |
| MRI | Register information for the function. |