summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-10-22 17:10:47 +0000
committerFangrui Song <maskray@google.com>2018-10-22 17:10:47 +0000
commit32401afd8cb86680afa1bc93e732b5fbc5a83401 (patch)
tree104d8d309cfeaaf0686baf678eb784dd6116b8a7 /llvm/tools/llvm-exegesis/lib
parent8d8dcfe690e64608f89af071038851f1c4925ee4 (diff)
downloadbcm5719-llvm-32401afd8cb86680afa1bc93e732b5fbc5a83401.tar.gz
bcm5719-llvm-32401afd8cb86680afa1bc93e732b5fbc5a83401.zip
[llvm-exegesis] Move namespace exegesis inside llvm::
Summary: This allows simplifying references of llvm::foo with foo when the needs come in the future. Reviewers: courbet, gchatelet Reviewed By: gchatelet Subscribers: javed.absar, tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D53455 llvm-svn: 344922
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib')
-rw-r--r--llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Assembler.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Assembler.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkCode.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp10
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkResult.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Clustering.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Clustering.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/CodeTemplate.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Latency.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Latency.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/LlvmState.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/LlvmState.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/MCInstrDescView.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/PerfHelper.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/PerfHelper.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/RegisterAliasing.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/RegisterAliasing.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/RegisterValue.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/RegisterValue.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/SnippetGenerator.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Target.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Target.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Uops.cpp2
-rw-r--r--llvm/tools/llvm-exegesis/lib/Uops.h2
-rw-r--r--llvm/tools/llvm-exegesis/lib/X86/Target.cpp2
33 files changed, 71 insertions, 3 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
index 90c5927ad29..be8f0b41ede 100644
--- a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
@@ -11,6 +11,7 @@
#include "AArch64.h"
#include "AArch64RegisterInfo.h"
+namespace llvm {
namespace exegesis {
namespace {
@@ -90,3 +91,4 @@ void InitializeAArch64ExegesisTarget() {
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index 73c54f53225..0dd6bcbd466 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -15,6 +15,7 @@
#include <unordered_set>
#include <vector>
+namespace llvm {
namespace exegesis {
static const char kCsvSep = ',';
@@ -796,3 +797,4 @@ std::vector<std::pair<uint16_t, float>> computeIdealizedProcResPressure(
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.h b/llvm/tools/llvm-exegesis/lib/Analysis.h
index a65a2f1b1da..9ee1493f4e0 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.h
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.h
@@ -30,6 +30,7 @@
#include <string>
#include <unordered_map>
+namespace llvm {
namespace exegesis {
// A helper class to analyze benchmark results for a target.
@@ -135,5 +136,6 @@ std::vector<std::pair<uint16_t, float>> computeIdealizedProcResPressure(
llvm::SmallVector<llvm::MCWriteProcResEntry, 8> WPRS);
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_CLUSTERING_H
diff --git a/llvm/tools/llvm-exegesis/lib/Assembler.cpp b/llvm/tools/llvm-exegesis/lib/Assembler.cpp
index 1576cfe58e0..771a6e9ad24 100644
--- a/llvm/tools/llvm-exegesis/lib/Assembler.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Assembler.cpp
@@ -23,6 +23,7 @@
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/Support/MemoryBuffer.h"
+namespace llvm {
namespace exegesis {
static constexpr const char ModuleID[] = "ExegesisInfoTest";
@@ -295,3 +296,4 @@ ExecutableFunction::ExecutableFunction(
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/Assembler.h b/llvm/tools/llvm-exegesis/lib/Assembler.h
index f2a77168cb7..ee6bc86f378 100644
--- a/llvm/tools/llvm-exegesis/lib/Assembler.h
+++ b/llvm/tools/llvm-exegesis/lib/Assembler.h
@@ -32,6 +32,7 @@
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
+namespace llvm {
namespace exegesis {
class ExegesisTarget;
@@ -82,5 +83,6 @@ struct ExecutableFunction {
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_ASSEMBLER_H
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h b/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
index b10dca5c25e..38bea2519a6 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkCode.h
@@ -15,6 +15,7 @@
#include <string>
#include <vector>
+namespace llvm {
namespace exegesis {
// A collection of instructions that are to be assembled, executed and measured.
@@ -35,5 +36,6 @@ struct BenchmarkCode {
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKCODE_H
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index 5d4912ea407..4b91c6c3b3c 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
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
index 961c07b99dd..773a2e50abc 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
@@ -28,6 +28,7 @@
#include <unordered_map>
#include <vector>
+namespace llvm {
namespace exegesis {
struct InstructionBenchmarkKey {
@@ -111,5 +112,6 @@ private:
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKRESULT_H
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
index 4eb5f1e880c..0d372363927 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
@@ -22,6 +22,7 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Program.h"
+namespace llvm {
namespace exegesis {
BenchmarkFailure::BenchmarkFailure(const llvm::Twine &S)
@@ -173,3 +174,4 @@ BenchmarkRunner::writeObjectFile(const BenchmarkCode &BC,
BenchmarkRunner::FunctionExecutor::~FunctionExecutor() {}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
index 517155dbdfb..4f77f492ab4 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
@@ -27,6 +27,7 @@
#include <memory>
#include <vector>
+namespace llvm {
namespace exegesis {
// A class representing failures that happened during Benchmark, they are used
@@ -90,5 +91,6 @@ private:
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_BENCHMARKRUNNER_H
diff --git a/llvm/tools/llvm-exegesis/lib/Clustering.cpp b/llvm/tools/llvm-exegesis/lib/Clustering.cpp
index b63afec945f..761629167bb 100644
--- a/llvm/tools/llvm-exegesis/lib/Clustering.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Clustering.cpp
@@ -11,6 +11,7 @@
#include <string>
#include <unordered_set>
+namespace llvm {
namespace exegesis {
// The clustering problem has the following characteristics:
@@ -170,3 +171,4 @@ InstructionBenchmarkClustering::create(
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/Clustering.h b/llvm/tools/llvm-exegesis/lib/Clustering.h
index c811020e0fe..9dc0adffb1e 100644
--- a/llvm/tools/llvm-exegesis/lib/Clustering.h
+++ b/llvm/tools/llvm-exegesis/lib/Clustering.h
@@ -19,6 +19,7 @@
#include "llvm/Support/Error.h"
#include <vector>
+namespace llvm {
namespace exegesis {
class InstructionBenchmarkClustering {
@@ -109,5 +110,6 @@ private:
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_CLUSTERING_H
diff --git a/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp b/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
index 614d4749b1f..e159b000755 100644
--- a/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
+++ b/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
@@ -9,6 +9,7 @@
#include "CodeTemplate.h"
+namespace llvm {
namespace exegesis {
CodeTemplate::CodeTemplate(CodeTemplate &&) = default;
@@ -115,3 +116,4 @@ getExecutionModeBits(ExecutionMode Execution) {
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/CodeTemplate.h b/llvm/tools/llvm-exegesis/lib/CodeTemplate.h
index 734992f0afa..4c55487f3d1 100644
--- a/llvm/tools/llvm-exegesis/lib/CodeTemplate.h
+++ b/llvm/tools/llvm-exegesis/lib/CodeTemplate.h
@@ -19,6 +19,7 @@
#include "MCInstrDescView.h"
#include "llvm/ADT/BitmaskEnum.h"
+namespace llvm {
namespace exegesis {
// A template for an Instruction holding values for each of its Variables.
@@ -125,5 +126,6 @@ struct CodeTemplate {
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_CODETEMPLATE_H
diff --git a/llvm/tools/llvm-exegesis/lib/Latency.cpp b/llvm/tools/llvm-exegesis/lib/Latency.cpp
index 7d68d60c48b..ec92d936de3 100644
--- a/llvm/tools/llvm-exegesis/lib/Latency.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Latency.cpp
@@ -17,6 +17,7 @@
#include "llvm/MC/MCInstBuilder.h"
#include "llvm/Support/FormatVariadic.h"
+namespace llvm {
namespace exegesis {
struct ExecutionClass {
@@ -200,3 +201,4 @@ LatencyBenchmarkRunner::runMeasurements(
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/Latency.h b/llvm/tools/llvm-exegesis/lib/Latency.h
index cb55f340a5a..fef72cde5a6 100644
--- a/llvm/tools/llvm-exegesis/lib/Latency.h
+++ b/llvm/tools/llvm-exegesis/lib/Latency.h
@@ -19,6 +19,7 @@
#include "MCInstrDescView.h"
#include "SnippetGenerator.h"
+namespace llvm {
namespace exegesis {
class LatencySnippetGenerator : public SnippetGenerator {
@@ -43,5 +44,6 @@ private:
virtual const char *getCounterName() const;
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_LATENCY_H
diff --git a/llvm/tools/llvm-exegesis/lib/LlvmState.cpp b/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
index 279792e9031..ba786cc97ce 100644
--- a/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
+++ b/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
@@ -19,6 +19,7 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
+namespace llvm {
namespace exegesis {
LLVMState::LLVMState(const std::string &Triple, const std::string &CpuName) {
@@ -71,3 +72,4 @@ bool LLVMState::canAssemble(const llvm::MCInst &Inst) const {
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/LlvmState.h b/llvm/tools/llvm-exegesis/lib/LlvmState.h
index aa7705a36a6..f8ef8665f44 100644
--- a/llvm/tools/llvm-exegesis/lib/LlvmState.h
+++ b/llvm/tools/llvm-exegesis/lib/LlvmState.h
@@ -25,6 +25,7 @@
#include <memory>
#include <string>
+namespace llvm {
namespace exegesis {
class ExegesisTarget;
@@ -64,5 +65,6 @@ private:
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_LLVMSTATE_H
diff --git a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
index 6fdb5a68419..2b4624b9b64 100644
--- a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
+++ b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
@@ -15,6 +15,7 @@
#include "llvm/ADT/STLExtras.h"
+namespace llvm {
namespace exegesis {
unsigned Variable::getIndex() const {
@@ -343,3 +344,4 @@ void DumpMCInst(const llvm::MCRegisterInfo &MCRegisterInfo,
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h
index 17f3e2b930d..4e8278ba2b5 100644
--- a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h
+++ b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h
@@ -29,6 +29,7 @@
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCInstrInfo.h"
+namespace llvm {
namespace exegesis {
// A variable represents the value associated to an Operand or a set of Operands
@@ -191,5 +192,6 @@ void DumpMCInst(const llvm::MCRegisterInfo &MCRegisterInfo,
const llvm::MCInst &MCInst, llvm::raw_ostream &OS);
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_MCINSTRDESCVIEW_H
diff --git a/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp b/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
index c145ea8404b..c1c242ca88f 100644
--- a/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
+++ b/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
@@ -17,6 +17,7 @@
#endif
#include <cassert>
+namespace llvm {
namespace exegesis {
namespace pfm {
@@ -136,3 +137,4 @@ int64_t Counter::read() const { return 42; }
} // namespace pfm
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/PerfHelper.h b/llvm/tools/llvm-exegesis/lib/PerfHelper.h
index 8c3f13e6c5c..2d081084660 100644
--- a/llvm/tools/llvm-exegesis/lib/PerfHelper.h
+++ b/llvm/tools/llvm-exegesis/lib/PerfHelper.h
@@ -23,6 +23,7 @@
struct perf_event_attr;
+namespace llvm {
namespace exegesis {
namespace pfm {
@@ -102,5 +103,6 @@ void Measure(
} // namespace pfm
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_PERFHELPER_H
diff --git a/llvm/tools/llvm-exegesis/lib/RegisterAliasing.cpp b/llvm/tools/llvm-exegesis/lib/RegisterAliasing.cpp
index 039f78db985..54041ca30aa 100644
--- a/llvm/tools/llvm-exegesis/lib/RegisterAliasing.cpp
+++ b/llvm/tools/llvm-exegesis/lib/RegisterAliasing.cpp
@@ -9,6 +9,7 @@
#include "RegisterAliasing.h"
+namespace llvm {
namespace exegesis {
llvm::BitVector getAliasedBits(const llvm::MCRegisterInfo &RegInfo,
@@ -81,3 +82,4 @@ RegisterAliasingTrackerCache::getRegisterClass(unsigned RegClassIndex) const {
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/RegisterAliasing.h b/llvm/tools/llvm-exegesis/lib/RegisterAliasing.h
index 064d9333beb..94a2eb07f49 100644
--- a/llvm/tools/llvm-exegesis/lib/RegisterAliasing.h
+++ b/llvm/tools/llvm-exegesis/lib/RegisterAliasing.h
@@ -22,6 +22,7 @@
#include "llvm/ADT/PackedVector.h"
#include "llvm/MC/MCRegisterInfo.h"
+namespace llvm {
namespace exegesis {
// Returns the registers that are aliased by the ones set in SourceBits.
@@ -104,5 +105,6 @@ private:
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_ALIASINGTRACKER_H
diff --git a/llvm/tools/llvm-exegesis/lib/RegisterValue.cpp b/llvm/tools/llvm-exegesis/lib/RegisterValue.cpp
index 1982a6c53b2..2bf996cead4 100644
--- a/llvm/tools/llvm-exegesis/lib/RegisterValue.cpp
+++ b/llvm/tools/llvm-exegesis/lib/RegisterValue.cpp
@@ -10,6 +10,7 @@
#include "RegisterValue.h"
#include "llvm/ADT/APFloat.h"
+namespace llvm {
namespace exegesis {
static llvm::APFloat getFloatValue(const llvm::fltSemantics &FltSemantics,
@@ -47,3 +48,4 @@ llvm::APInt bitcastFloatValue(const llvm::fltSemantics &FltSemantics,
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/RegisterValue.h b/llvm/tools/llvm-exegesis/lib/RegisterValue.h
index a4ef8e0ba1e..51ea30ac8eb 100644
--- a/llvm/tools/llvm-exegesis/lib/RegisterValue.h
+++ b/llvm/tools/llvm-exegesis/lib/RegisterValue.h
@@ -17,6 +17,7 @@
#include <llvm/ADT/APFloat.h>
#include <llvm/ADT/APInt.h>
+namespace llvm {
namespace exegesis {
// A simple object storing the value for a particular register.
@@ -43,3 +44,4 @@ llvm::APInt bitcastFloatValue(const llvm::fltSemantics &FltSemantics,
PredefinedValues Value);
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp
index cdf54a32e4f..eb6a8577b57 100644
--- a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp
+++ b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp
@@ -20,6 +20,7 @@
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Program.h"
+namespace llvm {
namespace exegesis {
std::vector<CodeTemplate> getSingleton(CodeTemplate &&CT) {
@@ -222,3 +223,4 @@ void randomizeUnsetVariables(const llvm::BitVector &ForbiddenRegs,
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h
index 4b307fd75ac..967b273182b 100644
--- a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h
+++ b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h
@@ -28,6 +28,7 @@
#include <memory>
#include <vector>
+namespace llvm {
namespace exegesis {
std::vector<CodeTemplate> getSingleton(CodeTemplate &&CT);
@@ -92,5 +93,6 @@ void randomizeUnsetVariables(const llvm::BitVector &ForbiddenRegs,
InstructionTemplate &IT);
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_SNIPPETGENERATOR_H
diff --git a/llvm/tools/llvm-exegesis/lib/Target.cpp b/llvm/tools/llvm-exegesis/lib/Target.cpp
index 8baa8499c92..b7828a13da0 100644
--- a/llvm/tools/llvm-exegesis/lib/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Target.cpp
@@ -11,6 +11,7 @@
#include "Latency.h"
#include "Uops.h"
+namespace llvm {
namespace exegesis {
ExegesisTarget::~ExegesisTarget() {} // anchor.
@@ -109,3 +110,4 @@ const ExegesisTarget &ExegesisTarget::getDefault() {
}
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/Target.h b/llvm/tools/llvm-exegesis/lib/Target.h
index dd778d35b72..2e94727d78d 100644
--- a/llvm/tools/llvm-exegesis/lib/Target.h
+++ b/llvm/tools/llvm-exegesis/lib/Target.h
@@ -28,6 +28,7 @@
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCRegisterInfo.h"
+namespace llvm {
namespace exegesis {
class ExegesisTarget {
@@ -100,5 +101,6 @@ private:
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_TARGET_H
diff --git a/llvm/tools/llvm-exegesis/lib/Uops.cpp b/llvm/tools/llvm-exegesis/lib/Uops.cpp
index 50be707feb2..5aa726218c7 100644
--- a/llvm/tools/llvm-exegesis/lib/Uops.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Uops.cpp
@@ -78,6 +78,7 @@
// In that case we just use a greedy register assignment and hope for the
// best.
+namespace llvm {
namespace exegesis {
static llvm::SmallVector<const Variable *, 8>
@@ -252,3 +253,4 @@ UopsBenchmarkRunner::runMeasurements(const FunctionExecutor &Executor) const {
constexpr const size_t UopsSnippetGenerator::kMinNumDifferentAddresses;
} // namespace exegesis
+} // namespace llvm
diff --git a/llvm/tools/llvm-exegesis/lib/Uops.h b/llvm/tools/llvm-exegesis/lib/Uops.h
index f75f2edd552..b2a5ea177f4 100644
--- a/llvm/tools/llvm-exegesis/lib/Uops.h
+++ b/llvm/tools/llvm-exegesis/lib/Uops.h
@@ -18,6 +18,7 @@
#include "BenchmarkRunner.h"
#include "SnippetGenerator.h"
+namespace llvm {
namespace exegesis {
class UopsSnippetGenerator : public SnippetGenerator {
@@ -73,5 +74,6 @@ private:
};
} // namespace exegesis
+} // namespace llvm
#endif // LLVM_TOOLS_LLVM_EXEGESIS_UOPS_H
diff --git a/llvm/tools/llvm-exegesis/lib/X86/Target.cpp b/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
index db1a23b74cc..69804849e62 100644
--- a/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -17,6 +17,7 @@
#include "X86Subtarget.h"
#include "llvm/MC/MCInstBuilder.h"
+namespace llvm {
namespace exegesis {
namespace {
@@ -423,3 +424,4 @@ void InitializeX86ExegesisTarget() {
}
} // namespace exegesis
+} // namespace llvm
OpenPOWER on IntegriCloud