class InstRef
Declaration
class InstRef { /* full declaration omitted */ };
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.
Declared at: llvm/include/llvm/MCA/Instruction.h:562
Method Overview
- public InstRef()
- public InstRef(unsigned int Index, llvm::mca::Instruction * I)
- public llvm::mca::Instruction * getInstruction()
- public const llvm::mca::Instruction * getInstruction() const
- public unsigned int getSourceIndex() const
- public void invalidate()
- public bool operator bool() const
- public void print(llvm::raw_ostream & OS) const
Methods
¶InstRef()
InstRef()
Declared at: llvm/include/llvm/MCA/Instruction.h:566
¶InstRef(unsigned int Index,
llvm::mca::Instruction* I)
InstRef(unsigned int Index,
llvm::mca::Instruction* I)
Declared at: llvm/include/llvm/MCA/Instruction.h:567
Parameters
- unsigned int Index
- llvm::mca::Instruction* I
¶llvm::mca::Instruction* getInstruction()
llvm::mca::Instruction* getInstruction()
Declared at: llvm/include/llvm/MCA/Instruction.h:576
¶const llvm::mca::Instruction* getInstruction()
const
const llvm::mca::Instruction* getInstruction()
const
Declared at: llvm/include/llvm/MCA/Instruction.h:577
¶unsigned int getSourceIndex() const
unsigned int getSourceIndex() const
Declared at: llvm/include/llvm/MCA/Instruction.h:575
¶void invalidate()
void invalidate()
Description
Invalidate this reference.
Declared at: llvm/include/llvm/MCA/Instruction.h:583
¶bool operator bool() const
bool operator bool() const
Description
Returns true if this references a valid instruction.
Declared at: llvm/include/llvm/MCA/Instruction.h:580
¶void print(llvm::raw_ostream& OS) const
void print(llvm::raw_ostream& OS) const
Declared at: llvm/include/llvm/MCA/Instruction.h:586