Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / lib / MCA / Stages / Stage.cpp
blob5613d4d6bd0721cfe67c6cf29146e51a08e75e34
1 //===---------------------- Stage.cpp ---------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 /// \file
9 ///
10 /// This file defines a stage.
11 /// A chain of stages compose an instruction pipeline.
12 ///
13 //===----------------------------------------------------------------------===//
15 #include "llvm/MCA/Stages/Stage.h"
17 namespace llvm {
18 namespace mca {
20 // Pin the vtable here in the implementation file.
21 Stage::~Stage() = default;
23 void Stage::addListener(HWEventListener *Listener) {
24 Listeners.insert(Listener);
27 char InstStreamPause::ID = 0;
28 } // namespace mca
29 } // namespace llvm