15#ifndef LLVM_MCA_PIPELINE_H
16#define LLVM_MCA_PIPELINE_H
53 Pipeline &operator=(
const Pipeline &
P) =
delete;
60 State CurrentState = State::Created;
64 std::set<HWEventListener *> Listeners;
68 bool hasWorkToProcess();
69 void notifyCycleBegin();
70 void notifyCycleEnd();
82 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.
LLVM_ABI void addEventListener(HWEventListener *Listener)
bool isPaused() const
Returns whether the pipeline is currently paused.
LLVM_ABI void appendStage(std::unique_ptr< Stage > S)
LLVM_ABI Expected< unsigned > run()
Returns the total number of simulated cycles.
This is an optimization pass for GlobalISel generic memory operations.