summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Analysis.h
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-17 13:41:28 +0000
committerClement Courbet <courbet@google.com>2018-05-17 13:41:28 +0000
commitcf210746038b4b7a31b8dffb937611d6d9afc4df (patch)
tree80bce1d061af5f29d95a41b70fc69839182c5462 /llvm/tools/llvm-exegesis/lib/Analysis.h
parent5e41fc83c5b614569ea862a4e412b8920b9aca1f (diff)
downloadbcm5719-llvm-cf210746038b4b7a31b8dffb937611d6d9afc4df.tar.gz
bcm5719-llvm-cf210746038b4b7a31b8dffb937611d6d9afc4df.zip
[llvm-exegesis] Write out inconsistencies to a file.
Reviewers: gchatelet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D47013 llvm-svn: 332608
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.h')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.h b/llvm/tools/llvm-exegesis/lib/Analysis.h
index dcfaf3469dd..d8046e54a70 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.h
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.h
@@ -33,10 +33,11 @@ public:
const InstructionBenchmarkClustering &Clustering);
// Prints a csv of instructions for each cluster.
- llvm::Error printClusters(llvm::raw_ostream &OS) const;
-
+ struct PrintClusters {};
// Find potential errors in the scheduling information given measurements.
- llvm::Error printSchedClassInconsistencies(llvm::raw_ostream &OS) const;
+ struct PrintSchedClassInconsistencies {};
+
+ template <typename Pass> llvm::Error run(llvm::raw_ostream &OS) const;
private:
void printInstructionRow(bool PrintSchedClass, size_t PointId,
OpenPOWER on IntegriCloud