class Pipeline
Declaration
class Pipeline { /* full declaration omitted */ };
Description
A pipeline for a specific subtarget. It emulates an out-of-order execution of instructions. Instructions are fetched from a MCInst sequence managed by an initial 'Fetch' stage. Instructions are firstly fetched, then dispatched to the schedulers, and then executed. This class tracks the lifetime of an instruction from the moment where it gets dispatched to the schedulers, to the moment where it finishes executing and register writes are architecturally committed. In particular, it monitors changes in the state of every instruction in flight. Instructions are executed in a loop of iterations. The number of iterations is defined by the SourceMgr object, which is managed by the initial stage of the instruction pipeline. The Pipeline entry point is method 'run()' which executes cycles in a loop until there are new instructions to dispatch, and not every instruction has been retired. Internally, the Pipeline collects statistical information in the form of histograms. For example, it tracks how the dispatch group size changes over time.
Declared at: llvm/include/llvm/MCA/Pipeline.h:52
Method Overview
- public Pipeline()
- public void addEventListener(llvm::mca::HWEventListener * Listener)
- public void appendStage(std::unique_ptr<Stage> S)
- public Expected<unsigned int> run()
Methods
¶Pipeline()
Pipeline()
Declared at: llvm/include/llvm/MCA/Pipeline.h:67
¶void addEventListener(
llvm::mca::HWEventListener* Listener)
void addEventListener(
llvm::mca::HWEventListener* Listener)
Declared at: llvm/include/llvm/MCA/Pipeline.h:73
Parameters
- llvm::mca::HWEventListener* Listener
¶void appendStage(std::unique_ptr<Stage> S)
void appendStage(std::unique_ptr<Stage> S)
Declared at: llvm/include/llvm/MCA/Pipeline.h:68
Parameters
- std::unique_ptr<Stage> S
¶Expected<unsigned int> run()
Expected<unsigned int> run()
Description
Returns the total number of simulated cycles.
Declared at: llvm/include/llvm/MCA/Pipeline.h:71