Return the operand index that defines Reg, or ‐1 if not found.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

int
findRegisterDefOperandIdx(
    Register Reg,
    TargetRegisterInfo const* TRI,
    bool isDead = false,
    bool Overlap = false) const;

Description

When isDead is true, non‐dead defs are skipped. When Overlap is true, overlapping defs and register masks are considered. With a non‐null TRI, super‐register defs are also matched.

Return Value

Operand index of the matching def, or ‐1.

Parameters

Name

Description

Reg

Register whose defining operand is sought.

TRI

Target register info used for super‐register checks.

isDead

If true, skip defs that are not dead.

Overlap

If true, also match overlapping defs / regmasks.

Created with MrDocs