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

The default implementation of SourceMgr. More...

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

Public Member Functions
CircularSourceMgr (ArrayRef< UniqueInst > S, unsigned Iter)
ArrayRef< UniqueInst > getInstructions () const override
Provides a fixed range of UniqueInst to iterate.
unsigned getNumIterations () const
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 updateNext () override
Advance to the next SourceRef.
Public Member Functions inherited from llvm::mca::SourceMgr
virtual size_t size () const
(Fixed) Number of UniqueInst.
virtual ~SourceMgr ()=default

The default implementation of SourceMgr.

It always takes a fixed number of instructions and provides an option to loop the given sequence for a certain iterations.

Definition at line 59 of file SourceMgr.h.

getInstructions()

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

getNumIterations()

unsigned llvm::mca::CircularSourceMgr::getNumIterations ( ) const inline

hasNext()

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

isEnd()

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

peekNext()

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

updateNext()

void llvm::mca::CircularSourceMgr::updateNext ( ) inlineoverridevirtual

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