LLVM  10.0.0svn
Public Member Functions | List of all members
llvm::mca::InstRef Class Reference

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
 
InstructiongetInstruction ()
 
const InstructiongetInstruction () const
 
 operator bool () const
 Returns true if this references a valid instruction. More...
 
void invalidate ()
 Invalidate this reference. More...
 
void print (raw_ostream &OS) const
 

Detailed Description

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 562 of file Instruction.h.

Constructor & Destructor Documentation

◆ InstRef() [1/2]

llvm::mca::InstRef::InstRef ( )
inline

Definition at line 566 of file Instruction.h.

◆ InstRef() [2/2]

llvm::mca::InstRef::InstRef ( unsigned  Index,
Instruction I 
)
inline

Definition at line 567 of file Instruction.h.

Member Function Documentation

◆ getInstruction() [1/2]

Instruction* llvm::mca::InstRef::getInstruction ( )
inline

◆ getInstruction() [2/2]

const Instruction* llvm::mca::InstRef::getInstruction ( ) const
inline

Definition at line 577 of file Instruction.h.

◆ getSourceIndex()

unsigned llvm::mca::InstRef::getSourceIndex ( ) const
inline

◆ invalidate()

void llvm::mca::InstRef::invalidate ( )
inline

Invalidate this reference.

Definition at line 583 of file Instruction.h.

Referenced by llvm::mca::EntryStage::execute(), llvm::mca::Scheduler::issueInstruction(), and llvm::mca::Scheduler::select().

◆ operator bool()

llvm::mca::InstRef::operator bool ( ) const
inlineexplicit

Returns true if this references a valid instruction.

Definition at line 580 of file Instruction.h.

◆ operator!=()

bool llvm::mca::InstRef::operator!= ( const InstRef Other) const
inline

Definition at line 570 of file Instruction.h.

◆ operator<()

bool llvm::mca::InstRef::operator< ( const InstRef Other) const
inline

Definition at line 571 of file Instruction.h.

◆ operator==()

bool llvm::mca::InstRef::operator== ( const InstRef Other) const
inline

Definition at line 569 of file Instruction.h.

◆ print()

void llvm::mca::InstRef::print ( raw_ostream OS) const
inline

Definition at line 586 of file Instruction.h.

Referenced by llvm::mca::operator<<().


The documentation for this class was generated from the following file: