1 //===---------------------- Stage.cpp ---------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file defines a stage.
12 /// A chain of stages compose an instruction pipeline.
14 //===----------------------------------------------------------------------===//
16 #include "llvm/MCA/Stages/Stage.h"
21 // Pin the vtable here in the implementation file.
22 Stage::~Stage() = default;
24 void Stage::addListener(HWEventListener *Listener) {
25 Listeners.insert(Listener);