struct SourceMgr

Declaration

struct SourceMgr { /* full declaration omitted */ };

Description

Abstracting the input code sequence (a sequence of MCInst) and assigning unique identifiers to every instruction in the sequence.

Declared at: llvm/include/llvm/MCA/SourceMgr.h:29

Method Overview

Methods

virtual ArrayRef<llvm::mca::SourceMgr::UniqueInst>
getInstructions() const

Description

Provides a fixed range of \a UniqueInst to iterate.

Declared at: llvm/include/llvm/MCA/SourceMgr.h:33

virtual bool hasNext() const

Description

Whether there is any \a SourceRef to inspect / peek next. Note that returning false from this doesn't mean the instruction stream has ended.

Declared at: llvm/include/llvm/MCA/SourceMgr.h:42

virtual bool isEnd() const

Description

Whether the instruction stream has eneded.

Declared at: llvm/include/llvm/MCA/SourceMgr.h:45

virtual llvm::mca::SourceRef peekNext() const

Description

The next \a SourceRef.

Declared at: llvm/include/llvm/MCA/SourceMgr.h:48

virtual size_t size() const

Description

(Fixed) Number of \a UniqueInst. Returns the size of\a getInstructions by default.

Declared at: llvm/include/llvm/MCA/SourceMgr.h:37

virtual void updateNext()

Description

Advance to the next \a SourceRef.

Declared at: llvm/include/llvm/MCA/SourceMgr.h:51

virtual ~SourceMgr()

Declared at: llvm/include/llvm/MCA/SourceMgr.h:53