]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/MCA/Stages/Stage.cpp
Vendor import of llvm trunk r338536:
[FreeBSD/FreeBSD.git] / lib / MCA / Stages / 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 "llvm/MCA/Stages/Stage.h"
17
18 namespace llvm {
19 namespace mca {
20
21 // Pin the vtable here in the implementation file.
22 Stage::~Stage() = default;
23
24 void Stage::addListener(HWEventListener *Listener) {
25   Listeners.insert(Listener);
26 }
27
28 } // namespace mca
29 } // namespace llvm