]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/llvm-mca/Stage.cpp
Merge clang 7.0.1 and several follow-up changes
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / llvm-mca / Stage.cpp
1 //===---------------------- Stage.cpp ---------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 /// \file
10 ///
11 /// This file defines a stage.
12 /// A chain of stages compose an instruction pipeline.
13 ///
14 //===----------------------------------------------------------------------===//
15
16 #include "Stage.h"
17
18 namespace mca {
19
20 // Pin the vtable here in the implementation file.
21 Stage::Stage() {}
22
23 void Stage::addListener(HWEventListener *Listener) {
24   Listeners.insert(Listener);
25 }
26
27 } // namespace mca