llvm::MachineOperand::readsReg

Return true if this operand reads the previous value of its register.

Synopsis

Declared in <llvm/CodeGen/MachineOperand.h>

bool
readsReg() const;

Description

A use operand with the <undef> flag set doesn't read its register. A sub-register def implicitly reads the other parts of the register being redefined unless the <undef> flag is set.

This refers to reading the register value from before the current instruction or bundle. Internal bundle reads are not included.

Return Value

True if this operand reads the previous value of its register.