[llvm] r350413 - [gn build] Add even more build files for LLVM unittests
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 4 09:16:21 PST 2019
Author: nico
Date: Fri Jan 4 09:16:21 2019
New Revision: 350413
URL: http://llvm.org/viewvc/llvm-project?rev=350413&view=rev
Log:
[gn build] Add even more build files for LLVM unittests
Another random assortment of easy build files.
Differential Revision: https://reviews.llvm.org/D56217
Added:
llvm/trunk/utils/gn/secondary/llvm/unittests/OptRemarks/
llvm/trunk/utils/gn/secondary/llvm/unittests/OptRemarks/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/Support/
llvm/trunk/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/TextAPI/
llvm/trunk/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/IPO/
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/IPO/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Scalar/
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Scalar/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Utils/
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Utils/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Vectorize/
llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Vectorize/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/tools/
llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/
llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/X86/
llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/X86/BUILD.gn
Modified:
llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn
Modified: llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn?rev=350413&r1=350412&r2=350413&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -33,25 +33,26 @@ group("unittests") {
#"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.
@@ -69,8 +70,7 @@ group("unittests") {
#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
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/OptRemarks/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/OptRemarks/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/OptRemarks/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/OptRemarks/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,11 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("OptRemarksTests") {
+ deps = [
+ "//llvm/lib/OptRemarks",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "OptRemarksParsingTest.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/Support/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/Support/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/Support/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,83 @@
+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",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,11 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("TextAPITests") {
+ deps = [
+ "//llvm/lib/Testing/Support",
+ "//llvm/lib/TextAPI",
+ ]
+ sources = [
+ "ELFYAMLTest.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/IPO/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/IPO/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/IPO/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/IPO/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,13 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("IPOTests") {
+ deps = [
+ "//llvm/lib/IR",
+ "//llvm/lib/Support",
+ "//llvm/lib/Transforms/IPO",
+ ]
+ sources = [
+ "LowerTypeTests.cpp",
+ "WholeProgramDevirt.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Scalar/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Scalar/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Scalar/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Scalar/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,15 @@
+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",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Utils/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Utils/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Utils/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Utils/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,23 @@
+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",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Vectorize/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Vectorize/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Vectorize/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/Transforms/Vectorize/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,17 @@
+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",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,19 @@
+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",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/X86/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/X86/BUILD.gn?rev=350413&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/X86/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/tools/llvm-exegesis/X86/BUILD.gn Fri Jan 4 09:16:21 2019
@@ -0,0 +1,31 @@
+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",
+ ]
+}
More information about the llvm-commits
mailing list