aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index 5d4912e..4b91c6c 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
@@ -22,6 +22,10 @@ static constexpr const char kIntegerPrefix[] = "i_0x";
static constexpr const char kDoublePrefix[] = "f_";
static constexpr const char kInvalidOperand[] = "INVALID";
+namespace llvm {
+
+namespace {
+
// A mutable struct holding an LLVMState that can be passed through the
// serialization process to encode/decode registers and instructions.
struct YamlContext {
@@ -141,13 +145,13 @@ private:
return 0;
}
- const exegesis::LLVMState *State;
+ const llvm::exegesis::LLVMState *State;
std::string LastError;
llvm::raw_string_ostream ErrorStream;
};
+} // namespace
// Defining YAML traits for IO.
-namespace llvm {
namespace yaml {
static YamlContext &getTypedContext(void *Ctx) {
@@ -294,7 +298,6 @@ struct MappingContextTraits<exegesis::InstructionBenchmark, YamlContext> {
};
} // namespace yaml
-} // namespace llvm
namespace exegesis {
@@ -384,3 +387,4 @@ void PerInstructionStats::push(const BenchmarkMeasure &BM) {
}
} // namespace exegesis
+} // namespace llvm