Return true if this instruction fully defines Reg.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

bool
definesRegister(
    Register Reg,
    TargetRegisterInfo const* TRI) const;

Description

With a non‐null TRI, also matches a def of a super‐register. Ignores subreg indices on virtual registers.

Return Value

True if Reg is fully defined.

Parameters

Name

Description

Reg

Register whose definition is queried.

TRI

Optional target register info for super‐register checks.

Created with MrDocs