findRegisterUseOperand overloads

Synopses

Declared in <llvm/CodeGen/MachineInstr.h>

Find a use operand for Reg, or null if none matches.

MachineOperand*
findRegisterUseOperand(
    Register Reg,
    TargetRegisterInfo const* TRI,
    bool isKill = false);

Find a const use operand for Reg, or null if none matches.

MachineOperand const*
findRegisterUseOperand(
    Register Reg,
    TargetRegisterInfo const* TRI,
    bool isKill = false) const;

Return Value

Pointer to the matching use operand, or null.

Parameters

Name

Description

Reg

Register whose use operand is sought.

TRI

Target register info used for super‐register checks.

isKill

If true, require a killing use.

Created with MrDocs