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

Description

Find the def instruction for \p Reg, folding away any trivial copies. Note it may still return a COPY, if it changes the type. May return nullptr if \p Reg is not a generic virtual register.

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

Parameters

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