[llvm] r335885 - [llvm-mca] Delete Pipeline's copy ctor and assignement operator.
Matt Davis via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 28 10:33:24 PDT 2018
Author: mattd
Date: Thu Jun 28 10:33:24 2018
New Revision: 335885
URL: http://llvm.org/viewvc/llvm-project?rev=335885&view=rev
Log:
[llvm-mca] Delete Pipeline's copy ctor and assignement operator.
Prevent copying of the Pipeline.
Modified:
llvm/trunk/tools/llvm-mca/Pipeline.h
Modified: llvm/trunk/tools/llvm-mca/Pipeline.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Pipeline.h?rev=335885&r1=335884&r2=335885&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Pipeline.h (original)
+++ llvm/trunk/tools/llvm-mca/Pipeline.h Thu Jun 28 10:33:24 2018
@@ -51,6 +51,9 @@ class HWStallEvent;
/// histograms. For example, it tracks how the dispatch group size changes
/// over time.
class Pipeline {
+ Pipeline(const Pipeline &P) = delete;
+ Pipeline &operator=(const Pipeline &P) = delete;
+
/// An ordered list of stages that define this instruction pipeline.
llvm::SmallVector<std::unique_ptr<Stage>, 8> Stages;
std::set<HWEventListener *> Listeners;
More information about the llvm-commits
mailing list