[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / utils / gn / secondary / llvm / unittests / BUILD.gn
blob3ad8f6a50f08f68903b0943c0529e68e560b147a
1 import("//llvm/lib/Target/targets.gni")
3 group("unittests") {
4   deps = [
5     "ADT:ADTTests",
6     "Analysis:AnalysisTests",
7     "AsmParser:AsmParserTests",
8     "BinaryFormat:BinaryFormatTests",
9     "Bitcode:BitcodeTests",
10     "Bitstream:BitstreamTests",
11     "CodeGen:CodeGenTests",
12     "CodeGen/GlobalISel:GlobalISelTests",
13     "DebugInfo/CodeView:DebugInfoCodeViewTests",
14     "DebugInfo/DWARF:DebugInfoDWARFTests",
15     "DebugInfo/GSYM:DebugInfoGSYMTests",
16     "DebugInfo/MSF:DebugInfoMSFTests",
17     "DebugInfo/PDB:DebugInfoPDBTests",
18     "Demangle:DemangleTests",
19     "ExecutionEngine:ExecutionEngineTests",
20     "ExecutionEngine/JITLink:JITLinkTests",
21     "ExecutionEngine/MCJIT:MCJITTests",
22     "ExecutionEngine/Orc:OrcJITTests",
23     "FuzzMutate:FuzzMutateTests",
24     "IR:IRTests",
25     "LineEditor:LineEditorTests",
26     "Linker:LinkerTests",
27     "MC:MCTests",
28     "MI:MITests",
29     "Object:ObjectTests",
30     "ObjectYAML:ObjectYAMLTests",
31     "Option:OptionTests",
32     "Passes:PluginsTests",
33     "ProfileData:ProfileDataTests",
34     "Remarks:RemarksTests",
35     "Support:SupportTests",
36     "Support/DynamicLibrary:DynamicLibraryTests",
37     "TableGen:TableGenTests",
38     "TextAPI:TextAPITests",
39     "Transforms/IPO:IPOTests",
40     "Transforms/Scalar:ScalarTests",
41     "Transforms/Utils:UtilsTests",
42     "Transforms/Vectorize:VectorizeTests",
43     "XRay:XRayTests",
44     "tools/llvm-cfi-verify:CFIVerifyTests",
45     "tools/llvm-exegesis:LLVMExegesisTests",
46   ]
48   # Target-dependent unit tests.
49   # FIXME: This matches how they are set up in the cmake build,
50   # but if we disable an arch after building with it on, this
51   # setup leaves behind stale executables.
52   if (llvm_build_AArch64) {
53     deps += [
54       "Target/AArch64:AArch64Tests",
55       "tools/llvm-exegesis/AArch64:LLVMExegesisAArch64Tests",
56     ]
57   }
58   if (llvm_build_ARM) {
59     deps += [
60       "Target/ARM:ARMTests",
61       "tools/llvm-exegesis/ARM:LLVMExegesisARMTests",
62     ]
63   }
64   if (llvm_build_Mips) {
65     deps += [ "tools/llvm-exegesis/Mips:LLVMExegesisMipsTests" ]
66   }
67   if (llvm_build_PowerPC) {
68     deps += [ "tools/llvm-exegesis/PowerPC:LLVMExegesisPowerPCTests" ]
69   }
70   if (llvm_build_WebAssembly) {
71     deps += [ "Target/WebAssembly:WebAssemblyTests" ]
72   }
73   if (llvm_build_X86) {
74     deps += [ "tools/llvm-exegesis/X86:LLVMExegesisX86Tests" ]
75   }
77   testonly = true