LLVM 20.0.0git
|
An InstRef contains both a SourceMgr index and Instruction pair. More...
#include "llvm/MCA/Instruction.h"
Public Member Functions | |
InstRef () | |
InstRef (unsigned Index, Instruction *I) | |
bool | operator== (const InstRef &Other) const |
bool | operator!= (const InstRef &Other) const |
bool | operator< (const InstRef &Other) const |
unsigned | getSourceIndex () const |
Instruction * | getInstruction () |
const Instruction * | getInstruction () const |
operator bool () const | |
Returns true if this references a valid instruction. | |
void | invalidate () |
Invalidate this reference. | |
void | print (raw_ostream &OS) const |
An InstRef contains both a SourceMgr index and Instruction pair.
The index is used as a unique identifier for the instruction. MCA will make use of this index as a key throughout MCA.
Definition at line 720 of file Instruction.h.
|
inline |
Definition at line 724 of file Instruction.h.
|
inline |
Definition at line 725 of file Instruction.h.
|
inline |
Definition at line 734 of file Instruction.h.
Referenced by llvm::mca::RetireControlUnit::consumeCurrentToken(), and llvm::mca::RetireControlUnit::getCurrentToken().
|
inline |
Definition at line 735 of file Instruction.h.
|
inline |
Definition at line 733 of file Instruction.h.
Referenced by llvm::mca::DefaultSchedulerStrategy::compare(), llvm::mca::MemoryGroup::onInstructionExecuted(), and print().
|
inline |
Invalidate this reference.
Definition at line 741 of file Instruction.h.
Referenced by llvm::mca::StallInfo::clear(), llvm::mca::EntryStage::execute(), and llvm::mca::MemoryGroup::onInstructionExecuted().
|
inlineexplicit |
Returns true if this references a valid instruction.
Definition at line 738 of file Instruction.h.
Definition at line 728 of file Instruction.h.
References llvm::Other.
Definition at line 729 of file Instruction.h.
References llvm::Other.
Definition at line 727 of file Instruction.h.
References llvm::Other.
|
inline |
Definition at line 744 of file Instruction.h.
References getSourceIndex(), and OS.