summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.h')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkResult.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
index cf9bcece99a..3a7d241dbd0 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
@@ -50,9 +50,14 @@ struct InstructionBenchmark {
std::string Info;
static InstructionBenchmark readYamlOrDie(llvm::StringRef Filename);
- static std::vector<InstructionBenchmark> readYamlsOrDie(llvm::StringRef Filename);
+ static std::vector<InstructionBenchmark>
- // Unfortunately this function is non const because of YAML traits.
+ // Read functions.
+ readYamlsOrDie(llvm::StringRef Filename);
+ void readYamlFrom(llvm::StringRef InputContent);
+
+ // Write functions, non-const because of YAML traits.
+ void writeYamlTo(llvm::raw_ostream &S);
void writeYamlOrDie(const llvm::StringRef Filename);
};
OpenPOWER on IntegriCloud