ΒΆtemplate <class T>
T* getOpcodeDef(
    llvm::Register Reg,
    const llvm::MachineRegisterInfo& MRI)

Description

See if Reg is defined by an single def instruction of type T 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:251

Templates

T

Parameters

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