15#ifndef LLVM_MCA_PIPELINE_H
16#define LLVM_MCA_PIPELINE_H
59 State CurrentState = State::Created;
63 std::set<HWEventListener *> Listeners;
67 bool hasWorkToProcess();
68 void notifyCycleBegin();
69 void notifyCycleEnd();
81 bool isPaused()
const {
return CurrentState == State::Paused; }
This file defines a stage.
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
A pipeline for a specific subtarget.
void addEventListener(HWEventListener *Listener)
bool isPaused() const
Returns whether the pipeline is currently paused.
void appendStage(std::unique_ptr< Stage > S)
Expected< unsigned > run()
Returns the total number of simulated cycles.
This is an optimization pass for GlobalISel generic memory operations.