ΒΆllvm::MachineInstr* getOpcodeDef(
    unsigned int Opcode,
    llvm::Register Reg,
    const llvm::MachineRegisterInfo& MRI)

Description

See if Reg is defined by an single def instruction that is Opcode. Also try to do trivial folding if it's a COPY with same types. Returns null otherwise.

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

Parameters

unsigned int Opcode
llvm::Register Reg
const llvm::MachineRegisterInfo& MRI