Find the source register for Reg, folding away any trivial copies. 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.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
Register
getSrcRegIgnoringCopies(
Register Reg,
MachineRegisterInfo const& MRI);
Also walks through hints such as G_ASSERT_ZEXT.
Wrapper class representing virtual and physical registers. Should be passed by value.
| Name | Description |
|---|---|
| Reg | 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. |