llvm::MachineInstr::hasOptionalDef

Return true if this instruction has an optional definition.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

bool
hasOptionalDef(QueryType Type = IgnoreBundle) const;

Description

E.g. ARM instructions that set condition codes when the 's' bit is set.

Return Value

True if an optional definition is present.

Parameters

NameDescription
TypeHow to query when this instruction is part of a bundle.