ΒΆllvm::Register getSrcRegIgnoringCopies(
    llvm::Register Reg,
    const llvm::MachineRegisterInfo& MRI)

Description

Find the source register for \p Reg, folding away any trivial copies. It will be an output register of the instruction that getDefIgnoringCopies returns. May return an invalid register if \p Reg is not a generic virtual register. Also walks through hints such as G_ASSERT_ZEXT.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:244

Parameters

llvm::Register Reg
const llvm::MachineRegisterInfo& MRI