summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-04 11:43:40 +0000
committerClement Courbet <courbet@google.com>2018-06-04 11:43:40 +0000
commit2cb97b95a2c209cf6a78108161392cfc2388062d (patch)
treec75f4de17e7a2147d03509d1b29854a99f2196bd /llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
parent77d1811e96e02164d40485e98369bdea44189855 (diff)
downloadbcm5719-llvm-2cb97b95a2c209cf6a78108161392cfc2388062d.tar.gz
bcm5719-llvm-2cb97b95a2c209cf6a78108161392cfc2388062d.zip
[llvm-exegesis][NFC] Use an enum instead of a string for benchmark mode.
Summary: YAML encoding is backwards-compatible. Reviewers: gchatelet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D47705 llvm-svn: 333886
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.h')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkResult.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
index 41d631eca4b..b160507afc6 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
@@ -27,8 +27,8 @@ namespace exegesis {
struct InstructionBenchmarkKey {
// The LLVM opcode name.
std::string OpcodeName;
- // The benchmark mode.
- std::string Mode;
+ enum ModeE { Unknown, Latency, Uops };
+ ModeE Mode;
// An opaque configuration, that can be used to separate several benchmarks of
// the same instruction under different configurations.
std::string Config;
OpenPOWER on IntegriCloud