LLVM  8.0.1
Stage.cpp
Go to the documentation of this file.
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 
25  Listeners.insert(Listener);
26 }
27 
28 } // namespace mca
29 } // namespace llvm
This class represents lattice values for constants.
Definition: AllocatorList.h:24
This file defines a stage.
virtual ~Stage()
void addListener(HWEventListener *Listener)
Add a listener to receive callbacks during the execution of this stage.
Definition: Stage.cpp:24