summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-16 08:47:21 +0000
committerClement Courbet <courbet@google.com>2018-05-16 08:47:21 +0000
commit6d6c1a99d7b23e7e199e8ea51490edae4ba733b7 (patch)
treec717329a290419752b1a95ae5de0f5b5ddf79130 /llvm/tools/llvm-exegesis/llvm-exegesis.cpp
parent58e6fe5b54b74d3f7aab29c151ed24ecb259c553 (diff)
downloadbcm5719-llvm-6d6c1a99d7b23e7e199e8ea51490edae4ba733b7.tar.gz
bcm5719-llvm-6d6c1a99d7b23e7e199e8ea51490edae4ba733b7.zip
[llvm-exegesis] Analysis: Display sched class for instructions.
Reviewers: gchatelet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D46883 llvm-svn: 332437
Diffstat (limited to 'llvm/tools/llvm-exegesis/llvm-exegesis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/llvm-exegesis.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
index 623d3011dfb..2d4e3f8a28f 100644
--- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -146,12 +146,12 @@ void analysisMain() {
llvm::errs() << "unknown target '" << Points[0].LLVMTriple << "'\n";
return;
}
- std::unique_ptr<llvm::MCSubtargetInfo> STI(TheTarget->createMCSubtargetInfo(
- Points[0].LLVMTriple, Points[0].CpuName, ""));
-
const auto Clustering = llvm::cantFail(InstructionBenchmarkClustering::create(
Points, AnalysisNumPoints, AnalysisEpsilon));
- if (auto Err = printAnalysisClusters(Clustering, *STI, llvm::outs()))
+
+ const Analysis Analyzer(*TheTarget, Clustering);
+
+ if (auto Err = Analyzer.printClusters(llvm::outs()))
llvm::report_fatal_error(std::move(Err));
}
OpenPOWER on IntegriCloud