LLVM
12.0.0git
|
A reference to a register write. More...
#include "llvm/MCA/Instruction.h"
Public Member Functions | |
WriteRef () | |
WriteRef (unsigned SourceIndex, WriteState *WS) | |
unsigned | getSourceIndex () const |
const WriteState * | getWriteState () const |
WriteState * | getWriteState () |
void | invalidate () |
bool | isWriteZero () const |
bool | isAvailable () const |
Returns true if this register write has been executed, and the new register value is therefore available to users. More... | |
bool | isValid () const |
bool | operator== (const WriteRef &Other) const |
void | dump () const |
A reference to a register write.
This class is mainly used by the register file to describe register mappings. It correlates a register write to the source index of the defining instruction.
Definition at line 602 of file Instruction.h.
|
inline |
Definition at line 607 of file Instruction.h.
References llvm::Data.
|
inline |
Definition at line 608 of file Instruction.h.
References llvm::Data.
void llvm::mca::WriteRef::dump | ( | ) | const |
Definition at line 129 of file Instruction.cpp.
References llvm::dbgs(), llvm::mca::WriteState::dump(), getSourceIndex(), getWriteState(), and isValid().
|
inline |
Definition at line 610 of file Instruction.h.
References llvm::Data.
Referenced by llvm::mca::RegisterFile::addRegisterRead(), llvm::mca::RegisterFile::addRegisterWrite(), dump(), and isAvailable().
|
inline |
Definition at line 611 of file Instruction.h.
References llvm::Data.
Referenced by llvm::mca::RegisterFile::addRegisterRead(), llvm::mca::RegisterFile::addRegisterWrite(), dump(), isAvailable(), isWriteZero(), and llvm::mca::RegisterFile::removeRegisterWrite().
|
inline |
Definition at line 612 of file Instruction.h.
References llvm::Data.
|
inline |
Definition at line 613 of file Instruction.h.
References llvm::Data.
Referenced by llvm::mca::RegisterFile::removeRegisterWrite().
|
inline |
Returns true if this register write has been executed, and the new register value is therefore available to users.
Definition at line 621 of file Instruction.h.
References getSourceIndex(), getWriteState(), and llvm::mca::WriteState::isExecuted().
|
inline |
Definition at line 628 of file Instruction.h.
References llvm::Data.
Referenced by dump(), and isWriteZero().
|
inline |
Definition at line 614 of file Instruction.h.
References assert(), getWriteState(), isValid(), and llvm::mca::WriteState::isWriteZero().
Definition at line 629 of file Instruction.h.
References llvm::Data, and Other.