LLVM: llvm::mca::IncrementalSourceMgr Class Reference (original) (raw)

An implementation of SourceMgr that allows users to add new instructions incrementally / dynamically. More...

#include "[llvm/MCA/IncrementalSourceMgr.h](IncrementalSourceMgr%5F8h%5Fsource.html)"

Public Member Functions
IncrementalSourceMgr ()=default
IncrementalSourceMgr & operator= (const IncrementalSourceMgr &)=delete
IncrementalSourceMgr (const IncrementalSourceMgr &)=delete
void clear ()
void setOnInstFreedCallback (InstFreedCallback CB)
Set a callback that is invoked when a mca::Instruction is no longer needed.
ArrayRef< UniqueInst > getInstructions () const override
Provides a fixed range of UniqueInst to iterate.
bool hasNext () const override
Whether there is any SourceRef to inspect / peek next.
bool isEnd () const override
Whether the instruction stream has eneded.
SourceRef peekNext () const override
The next SourceRef.
void addInst (UniqueInst &&Inst)
Add a new instruction.
void addRecycledInst (Instruction *Inst)
Add a recycled instruction.
void updateNext () override
Advance to the next SourceRef.
void endOfStream ()
Mark the end of instruction stream.
void printStatistic (raw_ostream &OS)
Print statistic about instruction recycling stats.
Public Member Functions inherited from llvm::mca::SourceMgr
virtual size_t size () const
(Fixed) Number of UniqueInst.
virtual ~SourceMgr ()=default

An implementation of SourceMgr that allows users to add new instructions incrementally / dynamically.

Note that this SourceMgr takes ownership of all mca::Instruction.

Definition at line 27 of file IncrementalSourceMgr.h.

llvm::mca::IncrementalSourceMgr::IncrementalSourceMgr ( ) default

Referenced by IncrementalSourceMgr(), and operator=().

IncrementalSourceMgr() [2/2]

addInst()

void llvm::mca::IncrementalSourceMgr::addInst ( UniqueInst && Inst) inline

addRecycledInst()

void llvm::mca::IncrementalSourceMgr::addRecycledInst ( Instruction * Inst) inline

clear()

void IncrementalSourceMgr::clear ( )

endOfStream()

void llvm::mca::IncrementalSourceMgr::endOfStream ( ) inline

getInstructions()

ArrayRef< UniqueInst > llvm::mca::IncrementalSourceMgr::getInstructions ( ) const inlineoverridevirtual

hasNext()

bool llvm::mca::IncrementalSourceMgr::hasNext ( ) const inlineoverridevirtual

isEnd()

bool llvm::mca::IncrementalSourceMgr::isEnd ( ) const inlineoverridevirtual

operator=()

References IncrementalSourceMgr().

peekNext()

SourceRef llvm::mca::IncrementalSourceMgr::peekNext ( ) const inlineoverridevirtual

printStatistic()

void IncrementalSourceMgr::printStatistic ( raw_ostream & OS )

setOnInstFreedCallback()

void llvm::mca::IncrementalSourceMgr::setOnInstFreedCallback ( InstFreedCallback CB) inline

updateNext()

void IncrementalSourceMgr::updateNext ( ) overridevirtual

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