LLVM
10.0.0
lib
MCA
Stages
Stage.cpp
Go to the documentation of this file.
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
//===----------------------------------------------------------------------===//
14
15
#include "
llvm/MCA/Stages/Stage.h
"
16
17
namespace
llvm
{
18
namespace
mca {
19
20
// Pin the vtable here in the implementation file.
21
Stage::~Stage
() =
default
;
22
23
void
Stage::addListener
(
HWEventListener
*Listener) {
24
Listeners.insert(Listener);
25
}
26
27
}
// namespace mca
28
}
// namespace llvm
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::mca::HWEventListener
Definition:
HWEventListener.h:158
Stage.h
This file defines a stage.
llvm::mca::Stage::~Stage
virtual ~Stage()
llvm::mca::Stage::addListener
void addListener(HWEventListener *Listener)
Add a listener to receive callbacks during the execution of this stage.
Definition:
Stage.cpp:23
Generated on Tue Mar 24 2020 13:10:59 for LLVM by
1.8.13