getOpcodeDef overloads

Synopses

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

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.

template<class T>
T*
getOpcodeDef(
    Register Reg,
    MachineRegisterInfo const& MRI);

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.

MachineInstr*
getOpcodeDef(
    unsigned int Opcode,
    Register Reg,
    MachineRegisterInfo const& MRI);

Return Value

  • The defining instruction cast to T, or nullptr.

  • The defining instruction matching Opcode, or nullptr.

Parameters

Name

Description

Reg

Virtual register whose defining instruction is inspected.

MRI

Register information for the function.

Opcode

Opcode that the defining instruction must match.

Created with MrDocs