#"MI:MITests",
"Object:ObjectTests",
"ObjectYAML:ObjectYAMLTests",
+ "OptRemarks:OptRemarksTests",
"Option:OptionTests",
- # FIXME: Add more:
- #"OptRemarks:OptRemarksTests",
+ # FIXME: Add.
#"Passes:PluginsTests",
-
"ProfileData:ProfileDataTests",
+ "Support:SupportTests",
- # FIXME: Add more:
- #"Support:SupportTests",
+ # FIXME: Add.
#"Support/DynamicLibrary:DynamicLibraryTests",
- #"Transforms/IPO:IPOTests",
- #"Transforms/Scalar:ScalarTests",
- #"Transforms/Utils:UtilsTests",
+ "TextAPI:TextAPITests",
+ "Transforms/IPO:IPOTests",
+ "Transforms/Scalar:ScalarTests",
+ "Transforms/Utils:UtilsTests",
+ "Transforms/Vectorize:VectorizeTests",
"XRay:XRayTests",
# FIXME: Add more:
#"tools/llvm-cfi-verify:CFIVerifyTests",
- #"tools/llvm-exegesis:LLVMExegesisTests",
+ "tools/llvm-exegesis:LLVMExegesisTests",
]
# Target-dependend unit tests.
#deps += [ "tools/llvm-exegesis/ARM:LLVMExegesisARMTests" ]
#}
if (llvm_build_X86) {
- # FIXME: Add:
- #deps += [ "tools/llvm-exegesis/X86:LLVMExegesisX86Tests" ]
+ deps += [ "tools/llvm-exegesis/X86:LLVMExegesisX86Tests" ]
}
testonly = true
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("OptRemarksTests") {
+ deps = [
+ "//llvm/lib/OptRemarks",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "OptRemarksParsingTest.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("SupportTests") {
+ deps = [
+ "//llvm/lib/Support",
+ "//llvm/lib/Testing/Support",
+ ]
+ sources = [
+ "ARMAttributeParser.cpp",
+ "AlignOfTest.cpp",
+ "AllocatorTest.cpp",
+ "ArrayRecyclerTest.cpp",
+ "BinaryStreamTest.cpp",
+ "BlockFrequencyTest.cpp",
+ "BranchProbabilityTest.cpp",
+ "CachePruningTest.cpp",
+ "Casting.cpp",
+ "CheckedArithmeticTest.cpp",
+ "Chrono.cpp",
+ "CommandLineTest.cpp",
+ "CompressionTest.cpp",
+ "ConvertUTFTest.cpp",
+ "CrashRecoveryTest.cpp",
+ "DJBTest.cpp",
+ "DataExtractorTest.cpp",
+ "DebugCounterTest.cpp",
+ "DebugTest.cpp",
+ "EndianStreamTest.cpp",
+ "EndianTest.cpp",
+ "ErrnoTest.cpp",
+ "ErrorOrTest.cpp",
+ "ErrorTest.cpp",
+ "FileOutputBufferTest.cpp",
+ "FormatVariadicTest.cpp",
+ "GlobPatternTest.cpp",
+ "Host.cpp",
+ "ItaniumManglingCanonicalizerTest.cpp",
+ "JSONTest.cpp",
+ "LEB128Test.cpp",
+ "LineIteratorTest.cpp",
+ "LockFileManagerTest.cpp",
+ "MD5Test.cpp",
+ "ManagedStatic.cpp",
+ "MathExtrasTest.cpp",
+ "MemoryBufferTest.cpp",
+ "MemoryTest.cpp",
+ "NativeFormatTests.cpp",
+ "ParallelTest.cpp",
+ "Path.cpp",
+ "ProcessTest.cpp",
+ "ProgramTest.cpp",
+ "RegexTest.cpp",
+ "ReplaceFileTest.cpp",
+ "ReverseIterationTest.cpp",
+ "ScaledNumberTest.cpp",
+ "SourceMgrTest.cpp",
+ "SpecialCaseListTest.cpp",
+ "StringPool.cpp",
+ "SwapByteOrderTest.cpp",
+ "SymbolRemappingReaderTest.cpp",
+ "TarWriterTest.cpp",
+ "TargetParserTest.cpp",
+ "TaskQueueTest.cpp",
+ "ThreadLocalTest.cpp",
+ "ThreadPool.cpp",
+ "Threading.cpp",
+ "TimerTest.cpp",
+ "TrailingObjectsTest.cpp",
+ "TrigramIndexTest.cpp",
+ "TypeNameTest.cpp",
+ "TypeTraitsTest.cpp",
+ "UnicodeTest.cpp",
+ "VersionTupleTest.cpp",
+ "VirtualFileSystemTest.cpp",
+ "YAMLIOTest.cpp",
+ "YAMLParserTest.cpp",
+ "formatted_raw_ostream_test.cpp",
+ "raw_ostream_test.cpp",
+ "raw_pwrite_stream_test.cpp",
+ "raw_sha1_ostream_test.cpp",
+ "xxhashTest.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("TextAPITests") {
+ deps = [
+ "//llvm/lib/Testing/Support",
+ "//llvm/lib/TextAPI",
+ ]
+ sources = [
+ "ELFYAMLTest.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("IPOTests") {
+ deps = [
+ "//llvm/lib/IR",
+ "//llvm/lib/Support",
+ "//llvm/lib/Transforms/IPO",
+ ]
+ sources = [
+ "LowerTypeTests.cpp",
+ "WholeProgramDevirt.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("ScalarTests") {
+ deps = [
+ "//llvm/lib/Analysis",
+ "//llvm/lib/AsmParser",
+ "//llvm/lib/IR",
+ "//llvm/lib/Support",
+ "//llvm/lib/Transforms/Scalar",
+ "//llvm/lib/Transforms/Utils",
+ ]
+ sources = [
+ "LoopPassManagerTest.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("UtilsTests") {
+ deps = [
+ "//llvm/lib/Analysis",
+ "//llvm/lib/AsmParser",
+ "//llvm/lib/IR",
+ "//llvm/lib/Support",
+ "//llvm/lib/Transforms/Utils",
+ ]
+ sources = [
+ "ASanStackFrameLayoutTest.cpp",
+ "BasicBlockUtilsTest.cpp",
+ "CloningTest.cpp",
+ "CodeExtractorTest.cpp",
+ "FunctionComparatorTest.cpp",
+ "IntegerDivisionTest.cpp",
+ "LocalTest.cpp",
+ "SSAUpdaterBulkTest.cpp",
+ "UnrollLoopTest.cpp",
+ "ValueMapperTest.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("VectorizeTests") {
+ deps = [
+ "//llvm/lib/Analysis",
+ "//llvm/lib/AsmParser",
+ "//llvm/lib/IR",
+ "//llvm/lib/Transforms/Vectorize",
+ ]
+ sources = [
+ "VPlanDominatorTreeTest.cpp",
+ "VPlanHCFGTest.cpp",
+ "VPlanLoopInfoTest.cpp",
+ "VPlanSlpTest.cpp",
+ "VPlanTest.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("LLVMExegesisTests") {
+ deps = [
+ "//llvm/lib/DebugInfo/Symbolize",
+ "//llvm/lib/MC",
+ "//llvm/lib/MC/MCParser",
+ "//llvm/lib/Object",
+ "//llvm/lib/Support",
+ "//llvm/tools/llvm-exegesis/lib",
+ ]
+ include_dirs = [ "../../../tools/llvm-exegesis/lib" ]
+ sources = [
+ "BenchmarkRunnerTest.cpp",
+ "ClusteringTest.cpp",
+ "PerfHelperTest.cpp",
+ "RegisterValueTest.cpp",
+ ]
+}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("LLVMExegesisX86Tests") {
+ deps = [
+ "//llvm/lib/DebugInfo/Symbolize",
+ "//llvm/lib/MC",
+ "//llvm/lib/MC/MCParser",
+ "//llvm/lib/Object",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target/X86",
+
+ # Exegesis reaches inside the Target/X86 tablegen internals and must
+ # depend on this Target/X86-internal build target -- and so must its
+ # unittests.
+ "//llvm/lib/Target/X86/MCTargetDesc",
+ "//llvm/tools/llvm-exegesis/lib",
+ "//llvm/tools/llvm-exegesis/lib/X86",
+ ]
+ include_dirs = [
+ "//llvm/lib/Target/X86",
+ "//llvm/tools/llvm-exegesis/lib",
+ ]
+ sources = [
+ "AnalysisTest.cpp",
+ "AssemblerTest.cpp",
+ "BenchmarkResultTest.cpp",
+ "RegisterAliasingTest.cpp",
+ "SnippetGeneratorTest.cpp",
+ "TargetTest.cpp",
+ ]
+}