ΒΆllvm::MachineInstr* getDefIgnoringCopies(
    llvm::Register Reg,
    const llvm::MachineRegisterInfo& MRI)

Description

Find the def instruction for \p Reg, folding away any trivial copies. May return nullptr 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:235

Parameters

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