diff options
author | Clement Courbet <courbet@google.com> | 2018-05-16 08:47:21 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-05-16 08:47:21 +0000 |
commit | 6d6c1a99d7b23e7e199e8ea51490edae4ba733b7 (patch) | |
tree | c717329a290419752b1a95ae5de0f5b5ddf79130 /llvm/tools/llvm-exegesis/llvm-exegesis.cpp | |
parent | 58e6fe5b54b74d3f7aab29c151ed24ecb259c553 (diff) | |
download | bcm5719-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.cpp | 8 |
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)); } |