ΒΆOptional<llvm::DefinitionAndSourceRegister>
getDefSrcRegIgnoringCopies(
    llvm::Register Reg,
    const llvm::MachineRegisterInfo& MRI)

Description

Find the def instruction for \p Reg, and underlying value Register folding away any copies. Also walks through hints such as G_ASSERT_ZEXT.

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

Parameters

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