14aeb2e60SGeoffrey Martin-Noble# This file is licensed under the Apache License v2.0 with LLVM Exceptions. 24aeb2e60SGeoffrey Martin-Noble# See https://llvm.org/LICENSE.txt for license information. 34aeb2e60SGeoffrey Martin-Noble# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 44aeb2e60SGeoffrey Martin-Noble 54aeb2e60SGeoffrey Martin-Nobleload("//llvm:tblgen.bzl", "gentbl") 64aeb2e60SGeoffrey Martin-Noble 7c8f5f975SFangrui Songpackage( 8c8f5f975SFangrui Song default_visibility = ["//visibility:public"], 9c8f5f975SFangrui Song features = ["layering_check"], 10c8f5f975SFangrui Song) 1169778121SChristian Sigg 1269778121SChristian Sigglicenses(["notice"]) 134aeb2e60SGeoffrey Martin-Noble 144aeb2e60SGeoffrey Martin-Noblecc_test( 154aeb2e60SGeoffrey Martin-Noble name = "adt_tests", 164aeb2e60SGeoffrey Martin-Noble size = "medium", 174aeb2e60SGeoffrey Martin-Noble srcs = glob( 184aeb2e60SGeoffrey Martin-Noble [ 194aeb2e60SGeoffrey Martin-Noble "ADT/*.cpp", 204aeb2e60SGeoffrey Martin-Noble "ADT/*.h", 214aeb2e60SGeoffrey Martin-Noble ], 224aeb2e60SGeoffrey Martin-Noble allow_empty = False, 234aeb2e60SGeoffrey Martin-Noble ), 244aeb2e60SGeoffrey Martin-Noble shard_count = 20, 254aeb2e60SGeoffrey Martin-Noble deps = [ 264aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 274aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 284aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 292fc5649cSBenjamin Kramer "//llvm:config", 3045692873SFangrui Song "//third-party/unittest:gmock", 31f57557deSJordan Rupprecht "//third-party/unittest:gtest", 32f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 334aeb2e60SGeoffrey Martin-Noble ], 344aeb2e60SGeoffrey Martin-Noble) 354aeb2e60SGeoffrey Martin-Noble 364aeb2e60SGeoffrey Martin-Noblecc_test( 374aeb2e60SGeoffrey Martin-Noble name = "analysis_tests", 384aeb2e60SGeoffrey Martin-Noble size = "small", 394aeb2e60SGeoffrey Martin-Noble srcs = glob( 404aeb2e60SGeoffrey Martin-Noble ["Analysis/*.cpp"], 414aeb2e60SGeoffrey Martin-Noble allow_empty = False, 424aeb2e60SGeoffrey Martin-Noble exclude = [ 434aeb2e60SGeoffrey Martin-Noble # TODO: Add this file to the build. 448371cdcaSPranav Kant "Analysis/ConstraintSystemTest.cpp", 454aeb2e60SGeoffrey Martin-Noble "Analysis/TFUtilsTest.cpp", 46bc32896eSAdrian Kuegel "Analysis/TrainingLoggerTest.cpp", 47ce2a3452SMircea Trofin "Analysis/MLModelRunnerTest.cpp", 484aeb2e60SGeoffrey Martin-Noble ], 494aeb2e60SGeoffrey Martin-Noble ), 504aeb2e60SGeoffrey Martin-Noble deps = [ 514aeb2e60SGeoffrey Martin-Noble "//llvm:Analysis", 524aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 53076eb4c7SDmitry Chernenkov "//llvm:CodeGen", 544aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 55019e1a3aSBenjamin Kramer "//llvm:Instrumentation", 563c31c68cSReid Kleckner "//llvm:Passes", 574aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 58aa661a12SGuillaume Chatelet "//llvm:TargetParser", 594aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 604aeb2e60SGeoffrey Martin-Noble "//llvm:TransformUtils", 6145692873SFangrui Song "//llvm:attributes_gen", 6245692873SFangrui Song "//llvm:config", 63019e1a3aSBenjamin Kramer "//third-party/unittest:gmock", 64f57557deSJordan Rupprecht "//third-party/unittest:gtest", 65f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 664aeb2e60SGeoffrey Martin-Noble ], 674aeb2e60SGeoffrey Martin-Noble) 684aeb2e60SGeoffrey Martin-Noble 694aeb2e60SGeoffrey Martin-Noblecc_test( 704aeb2e60SGeoffrey Martin-Noble name = "asm_parser_tests", 714aeb2e60SGeoffrey Martin-Noble size = "small", 724aeb2e60SGeoffrey Martin-Noble srcs = glob( 734aeb2e60SGeoffrey Martin-Noble ["AsmParser/*.cpp"], 744aeb2e60SGeoffrey Martin-Noble allow_empty = False, 754aeb2e60SGeoffrey Martin-Noble ), 764aeb2e60SGeoffrey Martin-Noble deps = [ 774aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 784aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 794aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 80f57557deSJordan Rupprecht "//third-party/unittest:gtest", 81f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 824aeb2e60SGeoffrey Martin-Noble ], 834aeb2e60SGeoffrey Martin-Noble) 844aeb2e60SGeoffrey Martin-Noble 854aeb2e60SGeoffrey Martin-Noblecc_test( 864aeb2e60SGeoffrey Martin-Noble name = "bitcode_tests", 874aeb2e60SGeoffrey Martin-Noble size = "small", 884aeb2e60SGeoffrey Martin-Noble srcs = glob( 89cb544010SBenjamin Kramer [ 90cb544010SBenjamin Kramer "Bitcode/*.cpp", 91cb544010SBenjamin Kramer "Bitcode/*.h", 92cb544010SBenjamin Kramer ], 934aeb2e60SGeoffrey Martin-Noble allow_empty = False, 944aeb2e60SGeoffrey Martin-Noble ), 954aeb2e60SGeoffrey Martin-Noble deps = [ 964aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 974aeb2e60SGeoffrey Martin-Noble "//llvm:BitReader", 984aeb2e60SGeoffrey Martin-Noble "//llvm:BitWriter", 994aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 1004aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 101f57557deSJordan Rupprecht "//third-party/unittest:gtest", 102f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 1034aeb2e60SGeoffrey Martin-Noble ], 1044aeb2e60SGeoffrey Martin-Noble) 1054aeb2e60SGeoffrey Martin-Noble 1064aeb2e60SGeoffrey Martin-Noblecc_test( 1074aeb2e60SGeoffrey Martin-Noble name = "bitstream_tests", 1084aeb2e60SGeoffrey Martin-Noble size = "small", 1094aeb2e60SGeoffrey Martin-Noble srcs = glob( 1104aeb2e60SGeoffrey Martin-Noble ["Bitstream/*.cpp"], 1114aeb2e60SGeoffrey Martin-Noble allow_empty = False, 1124aeb2e60SGeoffrey Martin-Noble ), 1134aeb2e60SGeoffrey Martin-Noble deps = [ 1144aeb2e60SGeoffrey Martin-Noble "//llvm:BitstreamReader", 1154aeb2e60SGeoffrey Martin-Noble "//llvm:BitstreamWriter", 1164aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 117d471860fSKeith Smiley "//llvm:TestingSupport", 118d471860fSKeith Smiley "//third-party/unittest:gmock", 119f57557deSJordan Rupprecht "//third-party/unittest:gtest", 120f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 1214aeb2e60SGeoffrey Martin-Noble ], 1224aeb2e60SGeoffrey Martin-Noble) 1234aeb2e60SGeoffrey Martin-Noble 124feeb6aa3SJordan Rupprechtcc_test( 125feeb6aa3SJordan Rupprecht name = "cgdata_tests", 126feeb6aa3SJordan Rupprecht size = "small", 127feeb6aa3SJordan Rupprecht srcs = glob( 128feeb6aa3SJordan Rupprecht ["CGData/*.cpp"], 129feeb6aa3SJordan Rupprecht allow_empty = False, 130feeb6aa3SJordan Rupprecht ), 131feeb6aa3SJordan Rupprecht deps = [ 132feeb6aa3SJordan Rupprecht "//llvm:CGData", 133feeb6aa3SJordan Rupprecht "//llvm:CodeGen", 134feeb6aa3SJordan Rupprecht "//llvm:Core", 135feeb6aa3SJordan Rupprecht "//llvm:Support", 136feeb6aa3SJordan Rupprecht "//third-party/unittest:gmock", 137feeb6aa3SJordan Rupprecht "//third-party/unittest:gtest", 138feeb6aa3SJordan Rupprecht "//third-party/unittest:gtest_main", 139feeb6aa3SJordan Rupprecht ], 140feeb6aa3SJordan Rupprecht) 141feeb6aa3SJordan Rupprecht 1424aeb2e60SGeoffrey Martin-Noblecc_library( 1434aeb2e60SGeoffrey Martin-Noble name = "codegen_tests_includes", 1444aeb2e60SGeoffrey Martin-Noble textual_hdrs = glob( 1454aeb2e60SGeoffrey Martin-Noble ["CodeGen/*.inc"], 1464aeb2e60SGeoffrey Martin-Noble allow_empty = False, 1474aeb2e60SGeoffrey Martin-Noble ), 1484aeb2e60SGeoffrey Martin-Noble) 1494aeb2e60SGeoffrey Martin-Noble 1504aeb2e60SGeoffrey Martin-Noblecc_test( 1514aeb2e60SGeoffrey Martin-Noble name = "codegen_tests", 152112dc160SChandler Carruth size = "medium", 1534aeb2e60SGeoffrey Martin-Noble srcs = glob( 1544aeb2e60SGeoffrey Martin-Noble [ 1554aeb2e60SGeoffrey Martin-Noble "CodeGen/*.cpp", 1564aeb2e60SGeoffrey Martin-Noble "CodeGen/*.h", 1574aeb2e60SGeoffrey Martin-Noble ], 1584aeb2e60SGeoffrey Martin-Noble allow_empty = False, 1594aeb2e60SGeoffrey Martin-Noble ), 16045692873SFangrui Song features = ["-layering_check"], # #include "../lib/CodeGen/AllocationOrder.h" 1614aeb2e60SGeoffrey Martin-Noble deps = [ 1624aeb2e60SGeoffrey Martin-Noble ":codegen_tests_includes", 1634aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsAsmParsers", 1644aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 1654aeb2e60SGeoffrey Martin-Noble "//llvm:Analysis", 1664aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 1674aeb2e60SGeoffrey Martin-Noble "//llvm:BinaryFormat", 1684aeb2e60SGeoffrey Martin-Noble "//llvm:CodeGen", 1695d71ec6eSNAKAMURA Takumi "//llvm:CodeGenTypes", 1704aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 1714aeb2e60SGeoffrey Martin-Noble "//llvm:MC", 1724aeb2e60SGeoffrey Martin-Noble "//llvm:Passes", 1734aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 1744aeb2e60SGeoffrey Martin-Noble "//llvm:Target", 1754aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 176f57557deSJordan Rupprecht "//third-party/unittest:gtest", 177f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 1784aeb2e60SGeoffrey Martin-Noble ], 1794aeb2e60SGeoffrey Martin-Noble) 1804aeb2e60SGeoffrey Martin-Noble 1814aeb2e60SGeoffrey Martin-Noblecc_test( 1824aeb2e60SGeoffrey Martin-Noble name = "codegen_globalisel_tests", 1834aeb2e60SGeoffrey Martin-Noble size = "small", 1844aeb2e60SGeoffrey Martin-Noble srcs = glob( 1854aeb2e60SGeoffrey Martin-Noble [ 1864aeb2e60SGeoffrey Martin-Noble "CodeGen/GlobalISel/*.cpp", 1874aeb2e60SGeoffrey Martin-Noble "CodeGen/GlobalISel/*.h", 1884aeb2e60SGeoffrey Martin-Noble ], 1894aeb2e60SGeoffrey Martin-Noble allow_empty = False, 1904aeb2e60SGeoffrey Martin-Noble ), 1914aeb2e60SGeoffrey Martin-Noble copts = [ 1924aeb2e60SGeoffrey Martin-Noble "$(STACK_FRAME_UNLIMITED)", 1934aeb2e60SGeoffrey Martin-Noble ], 1944aeb2e60SGeoffrey Martin-Noble deps = [ 1954aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsAsmParsers", 1964aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 197c63eaddbSKeith Smiley "//llvm:AsmParser", 1984aeb2e60SGeoffrey Martin-Noble "//llvm:CodeGen", 1995d71ec6eSNAKAMURA Takumi "//llvm:CodeGenTypes", 2004aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 2014aeb2e60SGeoffrey Martin-Noble "//llvm:FileCheckLib", 20245692873SFangrui Song "//llvm:MC", 2034aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 2044aeb2e60SGeoffrey Martin-Noble "//llvm:Target", 205f57557deSJordan Rupprecht "//third-party/unittest:gtest", 206f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 2074aeb2e60SGeoffrey Martin-Noble ], 2084aeb2e60SGeoffrey Martin-Noble) 2094aeb2e60SGeoffrey Martin-Noble 2104aeb2e60SGeoffrey Martin-Noblecc_test( 2114aeb2e60SGeoffrey Martin-Noble name = "debuginfo_tests", 212112dc160SChandler Carruth size = "medium", 2134aeb2e60SGeoffrey Martin-Noble srcs = glob( 2144aeb2e60SGeoffrey Martin-Noble [ 2154aeb2e60SGeoffrey Martin-Noble "DebugInfo/DWARF/*.cpp", 2164aeb2e60SGeoffrey Martin-Noble "DebugInfo/DWARF/*.h", 2174aeb2e60SGeoffrey Martin-Noble # TODO: Re-enable these when they stop crashing. 2184aeb2e60SGeoffrey Martin-Noble #"DebugInfo/PDB/*.cpp", 2194aeb2e60SGeoffrey Martin-Noble #"DebugInfo/PDB/*.h", 2204aeb2e60SGeoffrey Martin-Noble ], 2214aeb2e60SGeoffrey Martin-Noble allow_empty = False, 2224aeb2e60SGeoffrey Martin-Noble ), 2234aeb2e60SGeoffrey Martin-Noble args = [ 2244aeb2e60SGeoffrey Martin-Noble # Skip a test that relies on reading files in a way that doesn't easily 2254aeb2e60SGeoffrey Martin-Noble # work with Bazel. 2264aeb2e60SGeoffrey Martin-Noble "--gtest_filter=-NativeSymbolReuseTest.*", 2274aeb2e60SGeoffrey Martin-Noble ], 22845692873SFangrui Song features = ["-layering_check"], # #include "../lib/CodeGen/AsmPrinter/DwarfStringPool.h" 2294aeb2e60SGeoffrey Martin-Noble deps = [ 2304aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsAsmParsers", 2314aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 23245692873SFangrui Song "//llvm:BinaryFormat", 2335d71ec6eSNAKAMURA Takumi "//llvm:CodeGenTypes", 2344aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 23545692873SFangrui Song "//llvm:DebugInfo", 2364aeb2e60SGeoffrey Martin-Noble "//llvm:DebugInfoDWARF", 2374aeb2e60SGeoffrey Martin-Noble "//llvm:DebugInfoPDB", 23845692873SFangrui Song "//llvm:MC", 23945692873SFangrui Song "//llvm:Object", 2404aeb2e60SGeoffrey Martin-Noble "//llvm:ObjectYAML", 2414aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 24245692873SFangrui Song "//llvm:Target", 2434aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 24445692873SFangrui Song "//llvm:config", 245f57557deSJordan Rupprecht "//third-party/unittest:gtest", 246f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 2474aeb2e60SGeoffrey Martin-Noble ], 2484aeb2e60SGeoffrey Martin-Noble) 2494aeb2e60SGeoffrey Martin-Noble 2504aeb2e60SGeoffrey Martin-Noblecc_test( 25112d42653SBenjamin Kramer name = "debuginfod_tests", 25212d42653SBenjamin Kramer srcs = glob(["Debuginfod/*.cpp"]), 25312d42653SBenjamin Kramer deps = [ 25412d42653SBenjamin Kramer "//llvm:Debuginfod", 25545692873SFangrui Song "//llvm:Support", 25612d42653SBenjamin Kramer "//llvm:TestingSupport", 25745692873SFangrui Song "//third-party/unittest:gmock", 258f57557deSJordan Rupprecht "//third-party/unittest:gtest", 259f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 26012d42653SBenjamin Kramer ], 26112d42653SBenjamin Kramer) 26212d42653SBenjamin Kramer 26312d42653SBenjamin Kramercc_test( 2644aeb2e60SGeoffrey Martin-Noble name = "execution_engine_tests", 2654aeb2e60SGeoffrey Martin-Noble size = "small", 2664aeb2e60SGeoffrey Martin-Noble srcs = glob( 2674aeb2e60SGeoffrey Martin-Noble ["ExecutionEngine/*.cpp"], 2684aeb2e60SGeoffrey Martin-Noble allow_empty = False, 2694aeb2e60SGeoffrey Martin-Noble ), 2704aeb2e60SGeoffrey Martin-Noble deps = [ 2714aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 2724aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 2734aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 2744aeb2e60SGeoffrey Martin-Noble "//llvm:ExecutionEngine", 2754aeb2e60SGeoffrey Martin-Noble "//llvm:Interpreter", 2764aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 277f57557deSJordan Rupprecht "//third-party/unittest:gtest", 278f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 2794aeb2e60SGeoffrey Martin-Noble ], 2804aeb2e60SGeoffrey Martin-Noble) 2814aeb2e60SGeoffrey Martin-Noble 2824aeb2e60SGeoffrey Martin-Noblecc_test( 2834aeb2e60SGeoffrey Martin-Noble name = "execution_engine_mcjit_tests", 284112dc160SChandler Carruth size = "medium", 2854aeb2e60SGeoffrey Martin-Noble srcs = glob( 2864aeb2e60SGeoffrey Martin-Noble [ 2874aeb2e60SGeoffrey Martin-Noble "ExecutionEngine/MCJIT/*.cpp", 2884aeb2e60SGeoffrey Martin-Noble "ExecutionEngine/MCJIT/*.h", 2894aeb2e60SGeoffrey Martin-Noble ], 2904aeb2e60SGeoffrey Martin-Noble allow_empty = False, 2914aeb2e60SGeoffrey Martin-Noble ), 2924aeb2e60SGeoffrey Martin-Noble copts = [ 2934aeb2e60SGeoffrey Martin-Noble "$(STACK_FRAME_UNLIMITED)", 2944aeb2e60SGeoffrey Martin-Noble ], 2954aeb2e60SGeoffrey Martin-Noble deps = [ 2964aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 29745692873SFangrui Song "//llvm:Analysis", 2984aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 2994aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 3004aeb2e60SGeoffrey Martin-Noble "//llvm:ExecutionEngine", 30145692873SFangrui Song "//llvm:MC", 3024aeb2e60SGeoffrey Martin-Noble "//llvm:MCJIT", 3034aeb2e60SGeoffrey Martin-Noble "//llvm:Passes", 3044aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 30545692873SFangrui Song "//llvm:Target", 306268249f4SFangrui Song "//llvm:TargetParser", 30745692873SFangrui Song "//llvm:config", 308f57557deSJordan Rupprecht "//third-party/unittest:gtest", 309f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 3104aeb2e60SGeoffrey Martin-Noble ], 3114aeb2e60SGeoffrey Martin-Noble) 3124aeb2e60SGeoffrey Martin-Noble 3134aeb2e60SGeoffrey Martin-Noblecc_test( 3144aeb2e60SGeoffrey Martin-Noble name = "execution_engine_orc_tests", 315112dc160SChandler Carruth size = "medium", 3164aeb2e60SGeoffrey Martin-Noble srcs = glob( 3174aeb2e60SGeoffrey Martin-Noble [ 3184aeb2e60SGeoffrey Martin-Noble "ExecutionEngine/Orc/*.cpp", 3194aeb2e60SGeoffrey Martin-Noble "ExecutionEngine/Orc/*.h", 3204aeb2e60SGeoffrey Martin-Noble ], 3214aeb2e60SGeoffrey Martin-Noble allow_empty = False, 3224aeb2e60SGeoffrey Martin-Noble ), 3234d4ed5b2SKrasimir Georgiev args = [ 3244d4ed5b2SKrasimir Georgiev # keep one-per-line 3254d4ed5b2SKrasimir Georgiev "--gtest_filter=-ObjectLinkingLayerTest.TestSetProcessAllSections", 3264d4ed5b2SKrasimir Georgiev ], 327fa131ae3SFangrui Song linkopts = select({ 328fa131ae3SFangrui Song "@platforms//os:macos": [], 329fa131ae3SFangrui Song "@platforms//os:windows": [], 330fa131ae3SFangrui Song "//conditions:default": [ 331fa131ae3SFangrui Song "-Wl,--export-dynamic-symbol=llvm_orc_registerJITLoaderGDBWrapper", 332fa131ae3SFangrui Song ], 333fa131ae3SFangrui Song }), 3344aeb2e60SGeoffrey Martin-Noble deps = [ 3354aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsAsmParsers", 3364aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 337c8221359SPranav Kant "//llvm:Analysis", 3384aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 3392ad97066SJordan Rupprecht "//llvm:BinaryFormat", 3404aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 3414aeb2e60SGeoffrey Martin-Noble "//llvm:ExecutionEngine", 34245692873SFangrui Song "//llvm:IRReader", 34345692873SFangrui Song "//llvm:JITLink", 34445692873SFangrui Song "//llvm:MC", 34545692873SFangrui Song "//llvm:Object", 3466e761f3aSFangrui Song "//llvm:OrcDebugging", 3474aeb2e60SGeoffrey Martin-Noble "//llvm:OrcJIT", 34845692873SFangrui Song "//llvm:OrcShared", 34945692873SFangrui Song "//llvm:OrcTargetProcess", 3504aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 351aa661a12SGuillaume Chatelet "//llvm:TargetParser", 3524aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 35345692873SFangrui Song "//llvm:config", 354f57557deSJordan Rupprecht "//third-party/unittest:gtest", 355f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 3564aeb2e60SGeoffrey Martin-Noble ], 3574aeb2e60SGeoffrey Martin-Noble) 3584aeb2e60SGeoffrey Martin-Noble 3594aeb2e60SGeoffrey Martin-Noblecc_test( 3604aeb2e60SGeoffrey Martin-Noble name = "filecheck_tests", 3614aeb2e60SGeoffrey Martin-Noble size = "small", 3624aeb2e60SGeoffrey Martin-Noble srcs = glob( 3634aeb2e60SGeoffrey Martin-Noble ["FileCheck/*.cpp"], 3644aeb2e60SGeoffrey Martin-Noble allow_empty = False, 3654aeb2e60SGeoffrey Martin-Noble ), 36645692873SFangrui Song features = ["-layering_check"], # #include "../lib/FileCheck/FileCheckImpl.h" 3674aeb2e60SGeoffrey Martin-Noble deps = [ 3684aeb2e60SGeoffrey Martin-Noble "//llvm:FileCheckLib", 3694aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 3704aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 371f57557deSJordan Rupprecht "//third-party/unittest:gtest", 372f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 3734aeb2e60SGeoffrey Martin-Noble ], 3744aeb2e60SGeoffrey Martin-Noble) 3754aeb2e60SGeoffrey Martin-Noble 3764aeb2e60SGeoffrey Martin-Noblecc_test( 3774aeb2e60SGeoffrey Martin-Noble name = "ir_tests", 37826720942STres Popp size = "medium", 37926720942STres Popp timeout = "long", # ConstantRangeTest cases may take several seconds each. 3804aeb2e60SGeoffrey Martin-Noble srcs = glob( 3814aeb2e60SGeoffrey Martin-Noble [ 3824aeb2e60SGeoffrey Martin-Noble "IR/*.cpp", 3834aeb2e60SGeoffrey Martin-Noble "IR/*.h", 3844aeb2e60SGeoffrey Martin-Noble ], 3854aeb2e60SGeoffrey Martin-Noble allow_empty = False, 386f530eee4SKeith Smiley ) + [ 387f530eee4SKeith Smiley "Support/KnownBitsTest.h", 388f530eee4SKeith Smiley ], 389e8cda376SChristian Sigg features = ["-layering_check"], 3904aeb2e60SGeoffrey Martin-Noble shard_count = 20, 3914aeb2e60SGeoffrey Martin-Noble deps = [ 3924aeb2e60SGeoffrey Martin-Noble "//llvm:Analysis", 3934aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 3944aeb2e60SGeoffrey Martin-Noble "//llvm:BinaryFormat", 39545692873SFangrui Song "//llvm:CodeGen", 3964aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 3974aeb2e60SGeoffrey Martin-Noble "//llvm:Passes", 3984aeb2e60SGeoffrey Martin-Noble "//llvm:Scalar", 3994aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 4008aa8604dSHaojian Wu "//llvm:TargetParser", 4014aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 40245692873SFangrui Song "//llvm:TransformUtils", 4034aeb2e60SGeoffrey Martin-Noble "//llvm:config", 40445692873SFangrui Song "//third-party/unittest:gmock", 405f57557deSJordan Rupprecht "//third-party/unittest:gtest", 406f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 4074aeb2e60SGeoffrey Martin-Noble ], 4084aeb2e60SGeoffrey Martin-Noble) 4094aeb2e60SGeoffrey Martin-Noble 4104aeb2e60SGeoffrey Martin-Noblecc_test( 4114aeb2e60SGeoffrey Martin-Noble name = "line_editor_tests", 4124aeb2e60SGeoffrey Martin-Noble size = "small", 4134aeb2e60SGeoffrey Martin-Noble srcs = glob( 4144aeb2e60SGeoffrey Martin-Noble ["LineEditor/*.cpp"], 4154aeb2e60SGeoffrey Martin-Noble allow_empty = False, 4164aeb2e60SGeoffrey Martin-Noble ), 4174aeb2e60SGeoffrey Martin-Noble deps = [ 4184aeb2e60SGeoffrey Martin-Noble "//llvm:LineEditor", 4194aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 420f57557deSJordan Rupprecht "//third-party/unittest:gtest", 421f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 4224aeb2e60SGeoffrey Martin-Noble ], 4234aeb2e60SGeoffrey Martin-Noble) 4244aeb2e60SGeoffrey Martin-Noble 4254aeb2e60SGeoffrey Martin-Noblecc_test( 4264aeb2e60SGeoffrey Martin-Noble name = "frontend_tests", 4274aeb2e60SGeoffrey Martin-Noble size = "small", 4284aeb2e60SGeoffrey Martin-Noble srcs = glob( 4294aeb2e60SGeoffrey Martin-Noble ["Frontend/*.cpp"], 4304aeb2e60SGeoffrey Martin-Noble allow_empty = False, 4314aeb2e60SGeoffrey Martin-Noble ), 4324aeb2e60SGeoffrey Martin-Noble deps = [ 4334aeb2e60SGeoffrey Martin-Noble "//llvm:Analysis", 43445692873SFangrui Song "//llvm:Core", 4354aeb2e60SGeoffrey Martin-Noble "//llvm:FrontendOpenACC", 4364aeb2e60SGeoffrey Martin-Noble "//llvm:FrontendOpenMP", 4374aeb2e60SGeoffrey Martin-Noble "//llvm:Passes", 4384aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 439aa661a12SGuillaume Chatelet "//llvm:TargetParser", 440c3d1a50dSBenjamin Kramer "//llvm:TestingSupport", 44145692873SFangrui Song "//llvm:TransformUtils", 442163268adSHaojian Wu "//third-party/unittest:gmock", 443f57557deSJordan Rupprecht "//third-party/unittest:gtest", 444f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 4454aeb2e60SGeoffrey Martin-Noble ], 4464aeb2e60SGeoffrey Martin-Noble) 4474aeb2e60SGeoffrey Martin-Noble 4484aeb2e60SGeoffrey Martin-Noblecc_test( 4494aeb2e60SGeoffrey Martin-Noble name = "linker_tests", 4504aeb2e60SGeoffrey Martin-Noble size = "small", 4514aeb2e60SGeoffrey Martin-Noble srcs = glob( 4524aeb2e60SGeoffrey Martin-Noble ["Linker/*.cpp"], 4534aeb2e60SGeoffrey Martin-Noble allow_empty = False, 4544aeb2e60SGeoffrey Martin-Noble ), 4554aeb2e60SGeoffrey Martin-Noble deps = [ 4564aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 4574aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 4584aeb2e60SGeoffrey Martin-Noble "//llvm:Linker", 4594aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 460f57557deSJordan Rupprecht "//third-party/unittest:gtest", 461f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 4624aeb2e60SGeoffrey Martin-Noble ], 4634aeb2e60SGeoffrey Martin-Noble) 4644aeb2e60SGeoffrey Martin-Noble 4654aeb2e60SGeoffrey Martin-Noblecc_test( 4664aeb2e60SGeoffrey Martin-Noble name = "mc_tests", 4674aeb2e60SGeoffrey Martin-Noble size = "small", 4684aeb2e60SGeoffrey Martin-Noble srcs = glob( 4694aeb2e60SGeoffrey Martin-Noble ["MC/*.cpp"], 4704aeb2e60SGeoffrey Martin-Noble allow_empty = False, 4714aeb2e60SGeoffrey Martin-Noble ), 4724aeb2e60SGeoffrey Martin-Noble deps = [ 4734aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 4744aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsDisassemblers", 47545692873SFangrui Song "//llvm:BinaryFormat", 4764aeb2e60SGeoffrey Martin-Noble "//llvm:MC", 4774aeb2e60SGeoffrey Martin-Noble "//llvm:MCDisassembler", 47845692873SFangrui Song "//llvm:Object", 4794aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 48045692873SFangrui Song "//llvm:Target", 481f57557deSJordan Rupprecht "//third-party/unittest:gtest", 482f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 4834aeb2e60SGeoffrey Martin-Noble ], 4844aeb2e60SGeoffrey Martin-Noble) 4854aeb2e60SGeoffrey Martin-Noble 4864aeb2e60SGeoffrey Martin-Noblecc_test( 4874aeb2e60SGeoffrey Martin-Noble name = "mi_tests", 488112dc160SChandler Carruth size = "medium", 4894aeb2e60SGeoffrey Martin-Noble srcs = glob( 4904aeb2e60SGeoffrey Martin-Noble ["MI/*.cpp"], 4914aeb2e60SGeoffrey Martin-Noble allow_empty = False, 4924aeb2e60SGeoffrey Martin-Noble ), 493b28614c4SMikhail Goncharov features = ["-layering_check"], # #include "../lib/CodeGen/RegisterCoalescer.h" 4944aeb2e60SGeoffrey Martin-Noble deps = [ 4954aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsAsmParsers", 4964aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 4974aeb2e60SGeoffrey Martin-Noble "//llvm:CodeGen", 4985d71ec6eSNAKAMURA Takumi "//llvm:CodeGenTypes", 4994aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 50045692873SFangrui Song "//llvm:MC", 5014aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 5024aeb2e60SGeoffrey Martin-Noble "//llvm:Target", 503f57557deSJordan Rupprecht "//third-party/unittest:gtest", 504f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 5054aeb2e60SGeoffrey Martin-Noble ], 5064aeb2e60SGeoffrey Martin-Noble) 5074aeb2e60SGeoffrey Martin-Noble 5084aeb2e60SGeoffrey Martin-Noblecc_test( 509e7d65fcaSAdrian Kuegel name = "objcopy_tests", 510e7d65fcaSAdrian Kuegel srcs = glob( 511e7d65fcaSAdrian Kuegel ["ObjCopy/*.cpp"], 512e7d65fcaSAdrian Kuegel allow_empty = False, 513e7d65fcaSAdrian Kuegel ), 514e7d65fcaSAdrian Kuegel deps = [ 515e7d65fcaSAdrian Kuegel "//llvm:ObjCopy", 516e7d65fcaSAdrian Kuegel "//llvm:Object", 517e7d65fcaSAdrian Kuegel "//llvm:ObjectYAML", 51845692873SFangrui Song "//llvm:Support", 519e7d65fcaSAdrian Kuegel "//llvm:TestingSupport", 520f57557deSJordan Rupprecht "//third-party/unittest:gtest", 521f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 522e7d65fcaSAdrian Kuegel ], 523e7d65fcaSAdrian Kuegel) 524e7d65fcaSAdrian Kuegel 525e7d65fcaSAdrian Kuegelcc_test( 5264aeb2e60SGeoffrey Martin-Noble name = "object_tests", 5274aeb2e60SGeoffrey Martin-Noble size = "small", 5284aeb2e60SGeoffrey Martin-Noble srcs = glob( 5294aeb2e60SGeoffrey Martin-Noble ["Object/*.cpp"], 5304aeb2e60SGeoffrey Martin-Noble allow_empty = False, 5314aeb2e60SGeoffrey Martin-Noble ), 5324aeb2e60SGeoffrey Martin-Noble deps = [ 53345692873SFangrui Song "//llvm:BinaryFormat", 5344aeb2e60SGeoffrey Martin-Noble "//llvm:Object", 5354aeb2e60SGeoffrey Martin-Noble "//llvm:ObjectYAML", 53645692873SFangrui Song "//llvm:Support", 5371842b588SGuillaume Chatelet "//llvm:TargetParser", 5384aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 539*b108fbe6SJorge Gorbe Moya "//third-party/unittest:gmock", 540f57557deSJordan Rupprecht "//third-party/unittest:gtest", 541f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 5424aeb2e60SGeoffrey Martin-Noble ], 5434aeb2e60SGeoffrey Martin-Noble) 5444aeb2e60SGeoffrey Martin-Noble 5454aeb2e60SGeoffrey Martin-Noblecc_test( 5464aeb2e60SGeoffrey Martin-Noble name = "object_yaml_tests", 5474aeb2e60SGeoffrey Martin-Noble size = "small", 5484aeb2e60SGeoffrey Martin-Noble srcs = glob( 5494aeb2e60SGeoffrey Martin-Noble ["ObjectYAML/*.cpp"], 5504aeb2e60SGeoffrey Martin-Noble allow_empty = False, 5514aeb2e60SGeoffrey Martin-Noble ), 5524aeb2e60SGeoffrey Martin-Noble deps = [ 5534aeb2e60SGeoffrey Martin-Noble "//llvm:DebugInfoCodeView", 5544aeb2e60SGeoffrey Martin-Noble "//llvm:Object", 5554aeb2e60SGeoffrey Martin-Noble "//llvm:ObjectYAML", 5564aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 5574aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 558f57557deSJordan Rupprecht "//third-party/unittest:gtest", 559f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 5604aeb2e60SGeoffrey Martin-Noble ], 5614aeb2e60SGeoffrey Martin-Noble) 5624aeb2e60SGeoffrey Martin-Noble 5634aeb2e60SGeoffrey Martin-Noblegentbl( 5644aeb2e60SGeoffrey Martin-Noble name = "option_tests_gen", 5654aeb2e60SGeoffrey Martin-Noble strip_include_prefix = "Option", 5664aeb2e60SGeoffrey Martin-Noble tbl_outs = [( 5674aeb2e60SGeoffrey Martin-Noble "-gen-opt-parser-defs", 5684aeb2e60SGeoffrey Martin-Noble "Option/Opts.inc", 5694aeb2e60SGeoffrey Martin-Noble )], 5704aeb2e60SGeoffrey Martin-Noble tblgen = "//llvm:llvm-tblgen", 5714aeb2e60SGeoffrey Martin-Noble td_file = "Option/Opts.td", 5724aeb2e60SGeoffrey Martin-Noble td_srcs = [ 5734aeb2e60SGeoffrey Martin-Noble "//llvm:include/llvm/Option/OptParser.td", 5744aeb2e60SGeoffrey Martin-Noble ], 5754aeb2e60SGeoffrey Martin-Noble) 5764aeb2e60SGeoffrey Martin-Noble 5774aeb2e60SGeoffrey Martin-Noblegentbl( 5784aeb2e60SGeoffrey Martin-Noble name = "automata_automata_gen", 5794aeb2e60SGeoffrey Martin-Noble strip_include_prefix = "TableGen", 5804aeb2e60SGeoffrey Martin-Noble tbl_outs = [( 5814aeb2e60SGeoffrey Martin-Noble "-gen-automata", 5824aeb2e60SGeoffrey Martin-Noble "TableGen/AutomataAutomata.inc", 5834aeb2e60SGeoffrey Martin-Noble )], 5844aeb2e60SGeoffrey Martin-Noble tblgen = "//llvm:llvm-tblgen", 5854aeb2e60SGeoffrey Martin-Noble td_file = "TableGen/Automata.td", 5864aeb2e60SGeoffrey Martin-Noble td_srcs = ["//llvm:common_target_td_sources"] + [ 5874aeb2e60SGeoffrey Martin-Noble "TableGen/Automata.td", 5884aeb2e60SGeoffrey Martin-Noble ], 5894aeb2e60SGeoffrey Martin-Noble) 5904aeb2e60SGeoffrey Martin-Noble 5914aeb2e60SGeoffrey Martin-Noblegentbl( 5924aeb2e60SGeoffrey Martin-Noble name = "automata_tables_gen", 5934aeb2e60SGeoffrey Martin-Noble strip_include_prefix = "TableGen", 5944aeb2e60SGeoffrey Martin-Noble tbl_outs = [( 5954aeb2e60SGeoffrey Martin-Noble "-gen-searchable-tables", 5964aeb2e60SGeoffrey Martin-Noble "TableGen/AutomataTables.inc", 5974aeb2e60SGeoffrey Martin-Noble )], 5984aeb2e60SGeoffrey Martin-Noble tblgen = "//llvm:llvm-tblgen", 5994aeb2e60SGeoffrey Martin-Noble td_file = "TableGen/Automata.td", 6004aeb2e60SGeoffrey Martin-Noble td_srcs = ["//llvm:common_target_td_sources"] + [ 6014aeb2e60SGeoffrey Martin-Noble "TableGen/Automata.td", 6024aeb2e60SGeoffrey Martin-Noble ], 6034aeb2e60SGeoffrey Martin-Noble) 6044aeb2e60SGeoffrey Martin-Noble 6054aeb2e60SGeoffrey Martin-Noblecc_test( 6064aeb2e60SGeoffrey Martin-Noble name = "option_tests", 6074aeb2e60SGeoffrey Martin-Noble size = "small", 6084aeb2e60SGeoffrey Martin-Noble srcs = glob( 6094aeb2e60SGeoffrey Martin-Noble ["Option/*.cpp"], 6104aeb2e60SGeoffrey Martin-Noble allow_empty = False, 6114aeb2e60SGeoffrey Martin-Noble ), 6124aeb2e60SGeoffrey Martin-Noble deps = [ 6134aeb2e60SGeoffrey Martin-Noble ":option_tests_gen", 6144aeb2e60SGeoffrey Martin-Noble "//llvm:Option", 6154aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 616f57557deSJordan Rupprecht "//third-party/unittest:gtest", 617f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 6184aeb2e60SGeoffrey Martin-Noble ], 6194aeb2e60SGeoffrey Martin-Noble) 6204aeb2e60SGeoffrey Martin-Noble 6214aeb2e60SGeoffrey Martin-Noblecc_test( 6224aeb2e60SGeoffrey Martin-Noble name = "remarks_tests", 6234aeb2e60SGeoffrey Martin-Noble size = "small", 6244aeb2e60SGeoffrey Martin-Noble srcs = glob( 6254aeb2e60SGeoffrey Martin-Noble ["Remarks/*.cpp"], 6264aeb2e60SGeoffrey Martin-Noble allow_empty = False, 6274aeb2e60SGeoffrey Martin-Noble ), 6284aeb2e60SGeoffrey Martin-Noble deps = [ 6294aeb2e60SGeoffrey Martin-Noble "//llvm:BitReader", 6304aeb2e60SGeoffrey Martin-Noble "//llvm:Remarks", 6314aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 6324aeb2e60SGeoffrey Martin-Noble "//llvm:remark_linker", 633f57557deSJordan Rupprecht "//third-party/unittest:gtest", 634f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 6354aeb2e60SGeoffrey Martin-Noble ], 6364aeb2e60SGeoffrey Martin-Noble) 6374aeb2e60SGeoffrey Martin-Noble 6384aeb2e60SGeoffrey Martin-Noblecc_test( 639a82fd981SJorge Gorbe Moya name = "sandboxir_tests", 640a82fd981SJorge Gorbe Moya size = "small", 641a82fd981SJorge Gorbe Moya srcs = glob( 642a82fd981SJorge Gorbe Moya ["SandboxIR/*.cpp"], 643a82fd981SJorge Gorbe Moya allow_empty = False, 644a82fd981SJorge Gorbe Moya ), 645a82fd981SJorge Gorbe Moya deps = [ 6468cd2f751SKeith Smiley "//llvm:Analysis", 647a82fd981SJorge Gorbe Moya "//llvm:AsmParser", 648a82fd981SJorge Gorbe Moya "//llvm:Core", 649a82fd981SJorge Gorbe Moya "//llvm:SandboxIR", 650a82fd981SJorge Gorbe Moya "//llvm:Support", 651a82fd981SJorge Gorbe Moya "//third-party/unittest:gmock", 652a82fd981SJorge Gorbe Moya "//third-party/unittest:gtest", 653a82fd981SJorge Gorbe Moya ], 654a82fd981SJorge Gorbe Moya) 655a82fd981SJorge Gorbe Moya 656a82fd981SJorge Gorbe Moyacc_test( 6574aeb2e60SGeoffrey Martin-Noble name = "profile_data_tests", 6584aeb2e60SGeoffrey Martin-Noble size = "small", 6594aeb2e60SGeoffrey Martin-Noble srcs = glob( 6604aeb2e60SGeoffrey Martin-Noble ["ProfileData/*.cpp"], 6614aeb2e60SGeoffrey Martin-Noble allow_empty = False, 6624aeb2e60SGeoffrey Martin-Noble ), 6634aeb2e60SGeoffrey Martin-Noble deps = [ 6641c409105SKeith Smiley "//llvm:BitReader", 6654aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 6664aeb2e60SGeoffrey Martin-Noble "//llvm:Coverage", 66745692873SFangrui Song "//llvm:DebugInfo", 66845692873SFangrui Song "//llvm:Object", 6694aeb2e60SGeoffrey Martin-Noble "//llvm:ProfileData", 6704aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 67145692873SFangrui Song "//llvm:Symbolize", 6724aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 67345692873SFangrui Song "//third-party/unittest:gmock", 674f57557deSJordan Rupprecht "//third-party/unittest:gtest", 675f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 6764aeb2e60SGeoffrey Martin-Noble ], 6774aeb2e60SGeoffrey Martin-Noble) 6784aeb2e60SGeoffrey Martin-Noble 679112dc160SChandler Carruth# Note that the name of this test is important as it is used in the test itself. 6804aeb2e60SGeoffrey Martin-Noblecc_test( 681112dc160SChandler Carruth name = "SupportTests", 682112dc160SChandler Carruth size = "medium", 6834aeb2e60SGeoffrey Martin-Noble srcs = glob( 6844aeb2e60SGeoffrey Martin-Noble [ 6854aeb2e60SGeoffrey Martin-Noble "Support/*.cpp", 6864aeb2e60SGeoffrey Martin-Noble "Support/*.h", 6874aeb2e60SGeoffrey Martin-Noble ], 6884aeb2e60SGeoffrey Martin-Noble allow_empty = False, 6894aeb2e60SGeoffrey Martin-Noble exclude = [ 6904aeb2e60SGeoffrey Martin-Noble "Support/ParallelTest.cpp", 6914aeb2e60SGeoffrey Martin-Noble ], 6924aeb2e60SGeoffrey Martin-Noble ), 6934d4ed5b2SKrasimir Georgiev args = [ 6944d4ed5b2SKrasimir Georgiev # keep one-per-line 6954d4ed5b2SKrasimir Georgiev "--gtest_filter=-ProgramTest.CreateProcessTrailingSlash", 6964d4ed5b2SKrasimir Georgiev ], 6974aeb2e60SGeoffrey Martin-Noble copts = [ 6984aeb2e60SGeoffrey Martin-Noble "$(STACK_FRAME_UNLIMITED)", 6994aeb2e60SGeoffrey Martin-Noble ], 7004aeb2e60SGeoffrey Martin-Noble linkstatic = 1, 7014aeb2e60SGeoffrey Martin-Noble tags = [ 702bca92b12SAngus Lees "no-sandbox", # FileSystemTest.permissions not compatible with the sandbox on MacOS 7034aeb2e60SGeoffrey Martin-Noble ], 7044aeb2e60SGeoffrey Martin-Noble deps = [ 7054aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 7064aeb2e60SGeoffrey Martin-Noble "//llvm:BinaryFormat", 7074aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 708ba8c0bf3SBenjamin Kramer "//llvm:ProfileData", 7094aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 710aa661a12SGuillaume Chatelet "//llvm:TargetParser", 7114aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 7124aeb2e60SGeoffrey Martin-Noble "//llvm:config", 71345692873SFangrui Song "//third-party/unittest:gmock", 714f57557deSJordan Rupprecht "//third-party/unittest:gtest", 715f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 7164aeb2e60SGeoffrey Martin-Noble ], 7174aeb2e60SGeoffrey Martin-Noble) 7184aeb2e60SGeoffrey Martin-Noble 7194aeb2e60SGeoffrey Martin-Noblecc_test( 7204aeb2e60SGeoffrey Martin-Noble name = "support_parallel_tests", 7214aeb2e60SGeoffrey Martin-Noble size = "small", 7224aeb2e60SGeoffrey Martin-Noble srcs = ["Support/ParallelTest.cpp"], 7234aeb2e60SGeoffrey Martin-Noble copts = [ 7244aeb2e60SGeoffrey Martin-Noble "$(STACK_FRAME_UNLIMITED)", 7254aeb2e60SGeoffrey Martin-Noble ], 7264aeb2e60SGeoffrey Martin-Noble linkstatic = 1, 7274aeb2e60SGeoffrey Martin-Noble deps = [ 7284aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 7294aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 7304aeb2e60SGeoffrey Martin-Noble "//llvm:config", 731f57557deSJordan Rupprecht "//third-party/unittest:gtest", 732f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 7334aeb2e60SGeoffrey Martin-Noble ], 7344aeb2e60SGeoffrey Martin-Noble) 7354aeb2e60SGeoffrey Martin-Noble 7364aeb2e60SGeoffrey Martin-Noblecc_test( 7374aeb2e60SGeoffrey Martin-Noble name = "tablegen_tests", 7384aeb2e60SGeoffrey Martin-Noble size = "small", 7394aeb2e60SGeoffrey Martin-Noble srcs = glob( 7404aeb2e60SGeoffrey Martin-Noble [ 7414aeb2e60SGeoffrey Martin-Noble "TableGen/*.cpp", 7424aeb2e60SGeoffrey Martin-Noble ], 7434aeb2e60SGeoffrey Martin-Noble allow_empty = False, 7444aeb2e60SGeoffrey Martin-Noble ), 7454aeb2e60SGeoffrey Martin-Noble deps = [ 7464aeb2e60SGeoffrey Martin-Noble ":automata_automata_gen", 7474aeb2e60SGeoffrey Martin-Noble ":automata_tables_gen", 7484aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 7494aeb2e60SGeoffrey Martin-Noble "//llvm:TableGen", 750d01641b5SNAKAMURA Takumi "//llvm:TableGenGlobalISel", 75145692873SFangrui Song "//third-party/unittest:gmock", 752f57557deSJordan Rupprecht "//third-party/unittest:gtest", 753f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 7544aeb2e60SGeoffrey Martin-Noble ], 7554aeb2e60SGeoffrey Martin-Noble) 7564aeb2e60SGeoffrey Martin-Noble 7574aeb2e60SGeoffrey Martin-Noblecc_test( 7584aeb2e60SGeoffrey Martin-Noble name = "target_aarch64_tests", 7594aeb2e60SGeoffrey Martin-Noble size = "small", 7604aeb2e60SGeoffrey Martin-Noble srcs = glob( 7614aeb2e60SGeoffrey Martin-Noble ["Target/AArch64/*.cpp"], 7624aeb2e60SGeoffrey Martin-Noble allow_empty = False, 7634aeb2e60SGeoffrey Martin-Noble ), 7644aeb2e60SGeoffrey Martin-Noble copts = [ 7654aeb2e60SGeoffrey Martin-Noble "$(STACK_FRAME_UNLIMITED)", 7664aeb2e60SGeoffrey Martin-Noble ], 767f586faceSBenjamin Kramer features = ["-layering_check"], # #include "AArch64GenInstrInfo.inc" 7684aeb2e60SGeoffrey Martin-Noble deps = [ 7694aeb2e60SGeoffrey Martin-Noble "//llvm:AArch64CodeGen", 77045692873SFangrui Song "//llvm:AArch64UtilsAndDesc", 77145692873SFangrui Song "//llvm:AsmParser", 77245692873SFangrui Song "//llvm:CodeGen", 7735d71ec6eSNAKAMURA Takumi "//llvm:CodeGenTypes", 77445692873SFangrui Song "//llvm:Core", 77545692873SFangrui Song "//llvm:MC", 77645692873SFangrui Song "//llvm:Support", 7779846b9e2SBenjamin Kramer "//llvm:Target", 778f57557deSJordan Rupprecht "//third-party/unittest:gtest", 779f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 7804aeb2e60SGeoffrey Martin-Noble ], 7814aeb2e60SGeoffrey Martin-Noble) 7824aeb2e60SGeoffrey Martin-Noble 7834aeb2e60SGeoffrey Martin-Noblecc_test( 784d45c04daSWei Yi Tee name = "testing_adt_tests", 785d45c04daSWei Yi Tee size = "small", 786d45c04daSWei Yi Tee srcs = glob( 787d45c04daSWei Yi Tee [ 788d45c04daSWei Yi Tee "Testing/ADT/*.cpp", 789d45c04daSWei Yi Tee ], 790d45c04daSWei Yi Tee allow_empty = False, 791d45c04daSWei Yi Tee ), 792d45c04daSWei Yi Tee deps = [ 793d45c04daSWei Yi Tee "//llvm:Support", 794d45c04daSWei Yi Tee "//llvm:TestingADT", 795f57557deSJordan Rupprecht "//third-party/unittest:gtest", 796f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 797d45c04daSWei Yi Tee ], 798d45c04daSWei Yi Tee) 799d45c04daSWei Yi Tee 800d45c04daSWei Yi Teecc_test( 8014aeb2e60SGeoffrey Martin-Noble name = "transforms_tests", 8024aeb2e60SGeoffrey Martin-Noble size = "small", 8034aeb2e60SGeoffrey Martin-Noble srcs = glob( 8044aeb2e60SGeoffrey Martin-Noble [ 8054aeb2e60SGeoffrey Martin-Noble "Transforms/IPO/*.cpp", 8064aeb2e60SGeoffrey Martin-Noble "Transforms/IPO/*.h", 8074aeb2e60SGeoffrey Martin-Noble "Transforms/Utils/*.cpp", 8084aeb2e60SGeoffrey Martin-Noble ], 8094aeb2e60SGeoffrey Martin-Noble allow_empty = False, 8104aeb2e60SGeoffrey Martin-Noble ), 8114aeb2e60SGeoffrey Martin-Noble deps = [ 8124aeb2e60SGeoffrey Martin-Noble "//llvm:Analysis", 8134aeb2e60SGeoffrey Martin-Noble "//llvm:AsmParser", 8144aeb2e60SGeoffrey Martin-Noble "//llvm:Core", 8154aeb2e60SGeoffrey Martin-Noble "//llvm:IPO", 81645692873SFangrui Song "//llvm:IRReader", 817fe113442SBenjamin Kramer "//llvm:Passes", 818c1a48960SJordan Rupprecht "//llvm:ProfileData", 8194aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 8204aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 8214aeb2e60SGeoffrey Martin-Noble "//llvm:TransformUtils", 82245692873SFangrui Song "//llvm:Vectorize", 8236bb4d9f9SHaojian Wu "//third-party/unittest:gmock", 824f57557deSJordan Rupprecht "//third-party/unittest:gtest", 825f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 8264aeb2e60SGeoffrey Martin-Noble ], 8274aeb2e60SGeoffrey Martin-Noble) 8284aeb2e60SGeoffrey Martin-Noble 8294aeb2e60SGeoffrey Martin-Noblecc_test( 8304aeb2e60SGeoffrey Martin-Noble name = "llvm_exegesis_tests", 8314aeb2e60SGeoffrey Martin-Noble size = "small", 8324aeb2e60SGeoffrey Martin-Noble srcs = glob( 8334aeb2e60SGeoffrey Martin-Noble [ 8344aeb2e60SGeoffrey Martin-Noble "tools/llvm-exegesis/*.cpp", 8354aeb2e60SGeoffrey Martin-Noble "tools/llvm-exegesis/X86/*.cpp", 8364aeb2e60SGeoffrey Martin-Noble "tools/llvm-exegesis/X86/*.h", 8374aeb2e60SGeoffrey Martin-Noble ], 8384aeb2e60SGeoffrey Martin-Noble allow_empty = False, 8394aeb2e60SGeoffrey Martin-Noble ) + [ 8404aeb2e60SGeoffrey Martin-Noble "tools/llvm-exegesis/Common/AssemblerUtils.h", 8414aeb2e60SGeoffrey Martin-Noble ], 84219e9b9b5SFangrui Song includes = ["tools/llvm-exegesis"], 8434aeb2e60SGeoffrey Martin-Noble deps = [ 8444aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsCodeGens", 8454aeb2e60SGeoffrey Martin-Noble "//llvm:AllTargetsDisassemblers", 846af202eaaSWenzhi Cui "//llvm:CodeGen", 8475d71ec6eSNAKAMURA Takumi "//llvm:CodeGenTypes", 8483b2e40c0SGeoffrey Martin-Noble "//llvm:Exegesis", 8494aeb2e60SGeoffrey Martin-Noble "//llvm:MC", 8504aeb2e60SGeoffrey Martin-Noble "//llvm:MCDisassembler", 8514aeb2e60SGeoffrey Martin-Noble "//llvm:Support", 8529e57a573SFangrui Song "//llvm:TargetParser", 8534aeb2e60SGeoffrey Martin-Noble "//llvm:TestingSupport", 85445692873SFangrui Song "//llvm:X86CodeGen", 85545692873SFangrui Song "//llvm:X86UtilsAndDesc", 85645692873SFangrui Song "//third-party/unittest:gmock", 857f57557deSJordan Rupprecht "//third-party/unittest:gtest", 858f57557deSJordan Rupprecht "//third-party/unittest:gtest_main", 8594aeb2e60SGeoffrey Martin-Noble ], 8604aeb2e60SGeoffrey Martin-Noble) 86190a959a8SAiden Grossman 86290a959a8SAiden Grossmancc_test( 86390a959a8SAiden Grossman name = "llvm_mca_tests", 86490a959a8SAiden Grossman size = "small", 86590a959a8SAiden Grossman srcs = glob( 86690a959a8SAiden Grossman [ 86790a959a8SAiden Grossman "tools/llvm-mca/*.cpp", 86890a959a8SAiden Grossman "tools/llvm-mca/*.h", 86990a959a8SAiden Grossman "tools/llvm-mca/X86/*.cpp", 87090a959a8SAiden Grossman "tools/llvm-mca/X86/*.h", 87190a959a8SAiden Grossman ], 87290a959a8SAiden Grossman allow_empty = False, 87390a959a8SAiden Grossman ), 87490a959a8SAiden Grossman includes = ["tools/llvm-mca"], 87590a959a8SAiden Grossman deps = [ 87690a959a8SAiden Grossman "//llvm:MC", 87790a959a8SAiden Grossman "//llvm:MCA", 87890a959a8SAiden Grossman "//llvm:MCAApplication", 87990a959a8SAiden Grossman "//llvm:Support", 88090a959a8SAiden Grossman "//llvm:TargetParser", 88190a959a8SAiden Grossman "//llvm:X86CodeGen", 88290a959a8SAiden Grossman "//llvm:X86UtilsAndDesc", 88390a959a8SAiden Grossman "//third-party/unittest:gtest", 88490a959a8SAiden Grossman "//third-party/unittest:gtest_main", 88590a959a8SAiden Grossman ], 88690a959a8SAiden Grossman) 887