Find the source register for Reg, folding away any trivial copies.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
Register
getSrcRegIgnoringCopies(
Register Reg,
MachineRegisterInfo const& MRI);
It will be an output register of the instruction that getDefIgnoringCopies returns. May return an invalid register if Reg is not a generic virtual register.
Also walks through hints such as G_ASSERT_ZEXT.
The underlying source register, or an invalid register.
| Name | Description |
|---|---|
| Reg | Virtual register whose source is sought. |
| MRI | Register information for the function. |