LLVM: llvm::mca::InstRef Class Reference (original) (raw)
An InstRef contains both a SourceMgr index and Instruction pair. More...
#include "[llvm/MCA/Instruction.h](MCA%5F2Instruction%5F8h%5Fsource.html)"
| 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 723 of file Instruction.h.
◆ InstRef() [1/2]
| llvm::mca::InstRef::InstRef ( ) | inline |
|---|
◆ InstRef() [2/2]
◆ getInstruction() [1/2]
| Instruction * llvm::mca::InstRef::getInstruction ( ) | inline |
|---|
◆ getInstruction() [2/2]
◆ getSourceIndex()
| unsigned llvm::mca::InstRef::getSourceIndex ( ) const | inline |
|---|
◆ invalidate()
| void llvm::mca::InstRef::invalidate ( ) | inline |
|---|
◆ operator bool()
| llvm::mca::InstRef::operator bool ( ) const | inlineexplicit |
|---|
Returns true if this references a valid instruction.
Definition at line 741 of file Instruction.h.
◆ operator!=()
◆ operator<()
◆ operator==()
◆ print()
| void llvm::mca::InstRef::print ( raw_ostream & OS) const | inline |
|---|
The documentation for this class was generated from the following file:
- include/llvm/MCA/Instruction.h