brintos

brintos / llvm-project-archived public Read only

0
0
Text · 23.0 KiB · 0ecd704 Raw
974 lines · plain
1# This file is licensed under the Apache License v2.0 with LLVM Exceptions.2# See https://llvm.org/LICENSE.txt for license information.3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception4 5load("@rules_cc//cc:defs.bzl", "cc_library", "cc_shared_library", "cc_test")6load("//mlir:tblgen.bzl", "gentbl_cc_library")7 8package(9    default_visibility = ["//visibility:public"],10    features = ["layering_check"],11)12 13licenses(["notice"])14 15cc_test(16    name = "adt_tests",17    size = "medium",18    srcs = glob(19        [20            "ADT/*.cpp",21            "ADT/*.h",22        ],23        allow_empty = False,24    ),25    shard_count = 20,26    deps = [27        "//llvm:Core",28        "//llvm:Support",29        "//llvm:TestingSupport",30        "//llvm:config",31        "//third-party/unittest:gmock",32        "//third-party/unittest:gtest",33        "//third-party/unittest:gtest_main",34    ],35)36 37cc_library(38    name = "inline_advisor_plugin",39    srcs = glob(["Analysis/InlineAdvisorPlugin/*.cpp"]),40    deps = [41        "//llvm:Analysis",42        "//llvm:Core",43        "//llvm:Passes",44        "//llvm:Support",45    ],46)47 48cc_shared_library(49    name = "inline_advisor_plugin_shared",50    shared_lib_name = "InlineAdvisorPlugin.so",51    deps = [":inline_advisor_plugin"],52)53 54cc_test(55    name = "plugin_inline_advisor_analysis_test",56    srcs = ["Analysis/PluginInlineAdvisorAnalysisTest.cpp"],57    data = [58        ":inline_advisor_plugin_shared",59    ],60    deps = [61        "//llvm:Analysis",62        "//llvm:AsmParser",63        "//llvm:Core",64        "//llvm:Passes",65        "//llvm:Support",66        "//llvm:TestingSupport",67        "//llvm:attributes_gen",68        "//llvm:config",69        "//third-party/unittest:gtest",70        "//third-party/unittest:gtest_main",71    ],72)73 74cc_library(75    name = "inline_order_plugin",76    srcs = glob(["Analysis/InlineOrderPlugin/*.cpp"]),77    deps = [78        "//llvm:Analysis",79        "//llvm:Core",80        "//llvm:Passes",81        "//llvm:Support",82    ],83)84 85cc_shared_library(86    name = "inline_order_plugin_shared",87    shared_lib_name = "InlineOrderPlugin.so",88    deps = [":inline_order_plugin"],89)90 91cc_test(92    name = "plugin_inline_order_analysis_test",93    srcs = ["Analysis/PluginInlineOrderAnalysisTest.cpp"],94    data = [95        ":inline_order_plugin_shared",96    ],97    deps = [98        "//llvm:Analysis",99        "//llvm:AsmParser",100        "//llvm:Core",101        "//llvm:Passes",102        "//llvm:Support",103        "//llvm:TestingSupport",104        "//llvm:attributes_gen",105        "//llvm:config",106        "//third-party/unittest:gtest",107        "//third-party/unittest:gtest_main",108    ],109)110 111cc_test(112    name = "analysis_tests",113    size = "small",114    srcs = glob(115        ["Analysis/*.cpp"],116        allow_empty = False,117        exclude = [118            # TODO: Add this file to the build.119            "Analysis/ConstraintSystemTest.cpp",120            "Analysis/TFUtilsTest.cpp",121            "Analysis/TrainingLoggerTest.cpp",122            "Analysis/MLModelRunnerTest.cpp",123            # These tests dynamically load Plugins which both pull in124            # llvm/lib/Analysis/ProfileSummaryInfo.cpp, which registers flags;125            # if built into the same cc_test target, those flags will be126            # registered twice and cause runtime failures.127            "Analysis/PluginInlineAdvisorAnalysisTest.cpp",128            "Analysis/PluginInlineOrderAnalysisTest.cpp",129        ],130    ),131    deps = [132        "//llvm:Analysis",133        "//llvm:AsmParser",134        "//llvm:CodeGen",135        "//llvm:Core",136        "//llvm:FrontendHLSL",137        "//llvm:Instrumentation",138        "//llvm:Passes",139        "//llvm:Support",140        "//llvm:TargetParser",141        "//llvm:TestingSupport",142        "//llvm:TransformUtils",143        "//llvm:attributes_gen",144        "//llvm:config",145        "//third-party/unittest:gmock",146        "//third-party/unittest:gtest",147        "//third-party/unittest:gtest_main",148    ],149)150 151cc_test(152    name = "asm_parser_tests",153    size = "small",154    srcs = glob(155        ["AsmParser/*.cpp"],156        allow_empty = False,157    ),158    deps = [159        "//llvm:AsmParser",160        "//llvm:Core",161        "//llvm:Support",162        "//third-party/unittest:gtest",163        "//third-party/unittest:gtest_main",164    ],165)166 167cc_test(168    name = "bitcode_tests",169    size = "small",170    srcs = glob(171        [172            "Bitcode/*.cpp",173            "Bitcode/*.h",174        ],175        allow_empty = False,176    ),177    deps = [178        "//llvm:AsmParser",179        "//llvm:BitReader",180        "//llvm:BitWriter",181        "//llvm:Core",182        "//llvm:Support",183        "//third-party/unittest:gtest",184        "//third-party/unittest:gtest_main",185    ],186)187 188cc_test(189    name = "bitstream_tests",190    size = "small",191    srcs = glob(192        ["Bitstream/*.cpp"],193        allow_empty = False,194    ),195    deps = [196        "//llvm:BitstreamReader",197        "//llvm:BitstreamWriter",198        "//llvm:Support",199        "//llvm:TestingSupport",200        "//third-party/unittest:gmock",201        "//third-party/unittest:gtest",202        "//third-party/unittest:gtest_main",203    ],204)205 206cc_test(207    name = "cgdata_tests",208    size = "small",209    srcs = glob(210        ["CGData/*.cpp"],211        allow_empty = False,212    ),213    deps = [214        "//llvm:CGData",215        "//llvm:CodeGen",216        "//llvm:Core",217        "//llvm:Support",218        "//third-party/unittest:gmock",219        "//third-party/unittest:gtest",220        "//third-party/unittest:gtest_main",221    ],222)223 224cc_library(225    name = "codegen_tests_includes",226    textual_hdrs = glob(227        ["CodeGen/*.inc"],228        allow_empty = False,229    ),230)231 232cc_test(233    name = "codegen_tests",234    size = "medium",235    srcs = glob(236        [237            "CodeGen/*.cpp",238            "CodeGen/*.h",239        ],240        allow_empty = False,241    ),242    features = ["-layering_check"],  # #include "../lib/CodeGen/AllocationOrder.h"243    deps = [244        ":codegen_tests_includes",245        "//llvm:AllTargetsAsmParsers",246        "//llvm:AllTargetsCodeGens",247        "//llvm:Analysis",248        "//llvm:AsmParser",249        "//llvm:BinaryFormat",250        "//llvm:CodeGen",251        "//llvm:CodeGenTypes",252        "//llvm:Core",253        "//llvm:MC",254        "//llvm:Passes",255        "//llvm:Support",256        "//llvm:Target",257        "//llvm:TestingSupport",258        "//third-party/unittest:gtest",259    ],260)261 262cc_test(263    name = "codegen_globalisel_tests",264    size = "small",265    srcs = glob(266        [267            "CodeGen/GlobalISel/*.cpp",268            "CodeGen/GlobalISel/*.h",269        ],270        allow_empty = False,271    ),272    copts = [273        "$(STACK_FRAME_UNLIMITED)",274    ],275    deps = [276        "//llvm:AllTargetsAsmParsers",277        "//llvm:AllTargetsCodeGens",278        "//llvm:AsmParser",279        "//llvm:CodeGen",280        "//llvm:CodeGenTypes",281        "//llvm:Core",282        "//llvm:FileCheckLib",283        "//llvm:MC",284        "//llvm:Support",285        "//llvm:Target",286        "//third-party/unittest:gtest",287    ],288)289 290cc_test(291    name = "debuginfo_tests",292    size = "medium",293    srcs = glob(294        [295            "DebugInfo/DWARF/*.cpp",296            "DebugInfo/DWARF/*.h",297            # TODO: Re-enable these when they stop crashing.298            #"DebugInfo/PDB/*.cpp",299            #"DebugInfo/PDB/*.h",300        ],301        allow_empty = False,302    ),303    args = [304        # Skip a test that relies on reading files in a way that doesn't easily305        # work with Bazel.306        "--gtest_filter=-NativeSymbolReuseTest.*",307    ],308    features = ["-layering_check"],  # #include "../lib/CodeGen/AsmPrinter/DwarfStringPool.h"309    deps = [310        "//llvm:AllTargetsAsmParsers",311        "//llvm:AllTargetsCodeGens",312        "//llvm:BinaryFormat",313        "//llvm:CodeGenTypes",314        "//llvm:Core",315        "//llvm:DebugInfo",316        "//llvm:DebugInfoDWARF",317        "//llvm:DebugInfoPDB",318        "//llvm:MC",319        "//llvm:Object",320        "//llvm:ObjectYAML",321        "//llvm:Support",322        "//llvm:Target",323        "//llvm:TestingSupport",324        "//llvm:config",325        "//third-party/unittest:gtest",326        "//third-party/unittest:gtest_main",327    ],328)329 330cc_test(331    name = "debuginfod_tests",332    srcs = glob(["Debuginfod/*.cpp"]),333    deps = [334        "//llvm:Debuginfod",335        "//llvm:Support",336        "//llvm:TestingSupport",337        "//third-party/unittest:gmock",338        "//third-party/unittest:gtest",339        "//third-party/unittest:gtest_main",340    ],341)342 343cc_test(344    name = "execution_engine_tests",345    size = "small",346    srcs = glob(347        ["ExecutionEngine/*.cpp"],348        allow_empty = False,349    ),350    deps = [351        "//llvm:AllTargetsCodeGens",352        "//llvm:AsmParser",353        "//llvm:Core",354        "//llvm:ExecutionEngine",355        "//llvm:Interpreter",356        "//llvm:Support",357        "//third-party/unittest:gtest",358        "//third-party/unittest:gtest_main",359    ],360)361 362cc_test(363    name = "execution_engine_mcjit_tests",364    size = "medium",365    srcs = glob(366        [367            "ExecutionEngine/MCJIT/*.cpp",368            "ExecutionEngine/MCJIT/*.h",369        ],370        allow_empty = False,371    ),372    copts = [373        "$(STACK_FRAME_UNLIMITED)",374    ],375    deps = [376        "//llvm:AllTargetsCodeGens",377        "//llvm:Analysis",378        "//llvm:AsmParser",379        "//llvm:Core",380        "//llvm:ExecutionEngine",381        "//llvm:MC",382        "//llvm:MCJIT",383        "//llvm:Passes",384        "//llvm:Support",385        "//llvm:Target",386        "//llvm:TargetParser",387        "//llvm:config",388        "//third-party/unittest:gtest",389        "//third-party/unittest:gtest_main",390    ],391)392 393cc_test(394    name = "execution_engine_orc_tests",395    size = "medium",396    srcs = glob(397        [398            "ExecutionEngine/Orc/*.cpp",399            "ExecutionEngine/Orc/*.h",400        ],401        allow_empty = False,402    ),403    args = [404        # keep one-per-line405        "--gtest_filter=-ObjectLinkingLayerTest.TestSetProcessAllSections",406    ],407    linkopts = select({408        "@platforms//os:macos": [],409        "@platforms//os:windows": [],410        "//conditions:default": [411            "-Wl,--export-dynamic-symbol=llvm_orc_registerJITLoaderGDBAllocAction",412        ],413    }),414    deps = [415        "//llvm:AllTargetsAsmParsers",416        "//llvm:AllTargetsCodeGens",417        "//llvm:Analysis",418        "//llvm:AsmParser",419        "//llvm:BinaryFormat",420        "//llvm:Core",421        "//llvm:ExecutionEngine",422        "//llvm:IRReader",423        "//llvm:JITLink",424        "//llvm:MC",425        "//llvm:Object",426        "//llvm:ObjectYAML",427        "//llvm:OrcDebugging",428        "//llvm:OrcJIT",429        "//llvm:OrcShared",430        "//llvm:OrcTargetProcess",431        "//llvm:Support",432        "//llvm:TargetParser",433        "//llvm:TestingSupport",434        "//llvm:config",435        "//third-party/unittest:gtest",436        "//third-party/unittest:gtest_main",437    ],438)439 440cc_test(441    name = "filecheck_tests",442    size = "small",443    srcs = glob(444        ["FileCheck/*.cpp"],445        allow_empty = False,446    ),447    features = ["-layering_check"],  # #include "../lib/FileCheck/FileCheckImpl.h"448    deps = [449        "//llvm:FileCheckLib",450        "//llvm:Support",451        "//llvm:TestingSupport",452        "//third-party/unittest:gtest",453        "//third-party/unittest:gtest_main",454    ],455)456 457cc_test(458    name = "ir_tests",459    size = "medium",460    timeout = "long",  # ConstantRangeTest cases may take several seconds each.461    srcs = glob(462        [463            "IR/*.cpp",464            "IR/*.h",465        ],466        allow_empty = False,467    ) + [468        "Support/KnownBitsTest.h",469    ],470    features = ["-layering_check"],471    shard_count = 20,472    deps = [473        "//llvm:Analysis",474        "//llvm:AsmParser",475        "//llvm:BinaryFormat",476        "//llvm:CodeGen",477        "//llvm:Core",478        "//llvm:Passes",479        "//llvm:Scalar",480        "//llvm:Support",481        "//llvm:TargetParser",482        "//llvm:TestingSupport",483        "//llvm:TransformUtils",484        "//llvm:config",485        "//third-party/unittest:gmock",486        "//third-party/unittest:gtest",487        "//third-party/unittest:gtest_main",488    ],489)490 491cc_test(492    name = "line_editor_tests",493    size = "small",494    srcs = glob(495        ["LineEditor/*.cpp"],496        allow_empty = False,497    ),498    deps = [499        "//llvm:LineEditor",500        "//llvm:Support",501        "//third-party/unittest:gtest",502        "//third-party/unittest:gtest_main",503    ],504)505 506cc_test(507    name = "frontend_tests",508    size = "small",509    srcs = glob(510        ["Frontend/*.cpp"],511        allow_empty = False,512    ),513    deps = [514        "//llvm:Analysis",515        "//llvm:Core",516        "//llvm:FrontendHLSL",517        "//llvm:FrontendOffloading",518        "//llvm:FrontendOpenACC",519        "//llvm:FrontendOpenMP",520        "//llvm:Passes",521        "//llvm:Support",522        "//llvm:TargetParser",523        "//llvm:TestingSupport",524        "//llvm:TransformUtils",525        "//third-party/unittest:gmock",526        "//third-party/unittest:gtest",527        "//third-party/unittest:gtest_main",528    ],529)530 531cc_test(532    name = "linker_tests",533    size = "small",534    srcs = glob(535        ["Linker/*.cpp"],536        allow_empty = False,537    ),538    deps = [539        "//llvm:AsmParser",540        "//llvm:Core",541        "//llvm:Linker",542        "//llvm:Support",543        "//third-party/unittest:gtest",544        "//third-party/unittest:gtest_main",545    ],546)547 548cc_test(549    name = "mc_tests",550    size = "small",551    srcs = glob(552        ["MC/*.cpp"],553        allow_empty = False,554    ),555    deps = [556        "//llvm:AllTargetsCodeGens",557        "//llvm:AllTargetsDisassemblers",558        "//llvm:BinaryFormat",559        "//llvm:MC",560        "//llvm:MCDisassembler",561        "//llvm:Object",562        "//llvm:Support",563        "//llvm:Target",564        "//third-party/unittest:gtest",565        "//third-party/unittest:gtest_main",566    ],567)568 569cc_test(570    name = "mi_tests",571    size = "medium",572    srcs = glob(573        ["MI/*.cpp"],574        allow_empty = False,575    ),576    features = ["-layering_check"],  # #include "../lib/CodeGen/RegisterCoalescer.h"577    deps = [578        "//llvm:AllTargetsAsmParsers",579        "//llvm:AllTargetsCodeGens",580        "//llvm:CodeGen",581        "//llvm:CodeGenTypes",582        "//llvm:Core",583        "//llvm:MC",584        "//llvm:Support",585        "//llvm:Target",586        "//third-party/unittest:gtest",587    ],588)589 590cc_test(591    name = "objcopy_tests",592    srcs = glob(593        ["ObjCopy/*.cpp"],594        allow_empty = False,595    ),596    deps = [597        "//llvm:ObjCopy",598        "//llvm:Object",599        "//llvm:ObjectYAML",600        "//llvm:Support",601        "//llvm:TestingSupport",602        "//third-party/unittest:gtest",603        "//third-party/unittest:gtest_main",604    ],605)606 607cc_test(608    name = "object_tests",609    size = "small",610    srcs = glob(611        ["Object/*.cpp"],612        allow_empty = False,613    ),614    deps = [615        "//llvm:BinaryFormat",616        "//llvm:Object",617        "//llvm:ObjectYAML",618        "//llvm:Support",619        "//llvm:TargetParser",620        "//llvm:TestingSupport",621        "//third-party/unittest:gmock",622        "//third-party/unittest:gtest",623        "//third-party/unittest:gtest_main",624    ],625)626 627cc_test(628    name = "object_yaml_tests",629    size = "small",630    srcs = glob(631        ["ObjectYAML/*.cpp"],632        allow_empty = False,633    ),634    deps = [635        "//llvm:DebugInfoCodeView",636        "//llvm:Object",637        "//llvm:ObjectYAML",638        "//llvm:Support",639        "//llvm:TestingSupport",640        "//third-party/unittest:gtest",641        "//third-party/unittest:gtest_main",642    ],643)644 645gentbl_cc_library(646    name = "option_tests_gen",647    strip_include_prefix = "Option",648    tbl_outs = {"Option/Opts.inc": ["-gen-opt-parser-defs"]},649    tblgen = "//llvm:llvm-tblgen",650    td_file = "Option/Opts.td",651    deps = ["//llvm:OptParserTdFiles"],652)653 654gentbl_cc_library(655    name = "sub_command_opts_tests_gen",656    strip_include_prefix = "Option",657    tbl_outs = {"Option/SubCommandOpts.inc": ["-gen-opt-parser-defs"]},658    tblgen = "//llvm:llvm-tblgen",659    td_file = "Option/SubCommandOpts.td",660    deps = ["//llvm:OptParserTdFiles"],661)662 663gentbl_cc_library(664    name = "automata_gen",665    strip_include_prefix = "TableGen",666    tbl_outs = {667        "TableGen/AutomataAutomata.inc": ["-gen-automata"],668        "TableGen/AutomataTables.inc": ["-gen-searchable-tables"],669    },670    tblgen = "//llvm:llvm-tblgen",671    td_file = "TableGen/Automata.td",672    deps = ["//llvm:CommonTargetTdFiles"],673)674 675cc_test(676    name = "option_tests",677    size = "small",678    srcs = glob(679        ["Option/*.cpp"],680        allow_empty = False,681    ),682    deps = [683        ":option_tests_gen",684        ":sub_command_opts_tests_gen",685        "//llvm:Option",686        "//llvm:Support",687        "//third-party/unittest:gtest",688        "//third-party/unittest:gtest_main",689    ],690)691 692cc_test(693    name = "remarks_tests",694    size = "small",695    srcs = glob(696        ["Remarks/*.cpp"],697        allow_empty = False,698    ),699    deps = [700        "//llvm:BitReader",701        "//llvm:Remarks",702        "//llvm:Support",703        "//llvm:remark_linker",704        "//third-party/unittest:gtest",705        "//third-party/unittest:gtest_main",706    ],707)708 709cc_test(710    name = "sandboxir_tests",711    size = "small",712    srcs = glob(713        ["SandboxIR/*.cpp"],714        allow_empty = False,715    ),716    deps = [717        "//llvm:Analysis",718        "//llvm:AsmParser",719        "//llvm:Core",720        "//llvm:SandboxIR",721        "//llvm:Support",722        "//third-party/unittest:gmock",723        "//third-party/unittest:gtest",724    ],725)726 727cc_test(728    name = "profile_data_tests",729    size = "small",730    srcs = glob(731        ["ProfileData/*.cpp"],732        allow_empty = False,733    ),734    deps = [735        "//llvm:BitReader",736        "//llvm:Core",737        "//llvm:Coverage",738        "//llvm:DebugInfo",739        "//llvm:Object",740        "//llvm:ProfileData",741        "//llvm:Support",742        "//llvm:Symbolize",743        "//llvm:TestingSupport",744        "//third-party/unittest:gmock",745        "//third-party/unittest:gtest",746        "//third-party/unittest:gtest_main",747    ],748)749 750# Note that the name of this test is important as it is used in the test itself.751cc_test(752    name = "SupportTests",753    size = "medium",754    srcs = glob(755        [756            "Support/*.cpp",757            "Support/*.h",758        ],759        allow_empty = False,760        exclude = [761            "Support/ParallelTest.cpp",762        ],763    ),764    args = [765        # keep one-per-line766        "--gtest_filter=-ProgramTest.CreateProcessTrailingSlash",767    ],768    copts = [769        "$(STACK_FRAME_UNLIMITED)",770    ],771    linkstatic = 1,772    tags = [773        "no-sandbox",  # FileSystemTest.permissions not compatible with the sandbox on MacOS774    ],775    deps = [776        "//llvm:AllTargetsCodeGens",777        "//llvm:BinaryFormat",778        "//llvm:Core",779        "//llvm:ProfileData",780        "//llvm:Support",781        "//llvm:TargetParser",782        "//llvm:TestingSupport",783        "//llvm:config",784        "//third-party/unittest:gmock",785        "//third-party/unittest:gtest",786        "//third-party/unittest:gtest_main",787    ],788)789 790cc_test(791    name = "support_parallel_tests",792    size = "small",793    srcs = ["Support/ParallelTest.cpp"],794    copts = [795        "$(STACK_FRAME_UNLIMITED)",796    ],797    linkstatic = 1,798    deps = [799        "//llvm:AllTargetsCodeGens",800        "//llvm:Support",801        "//llvm:config",802        "//third-party/unittest:gtest",803        "//third-party/unittest:gtest_main",804    ],805)806 807cc_test(808    name = "SupportLSPTests",809    size = "small",810    srcs = glob(["Support/LSP/*.cpp"]),811    copts = [812        "$(STACK_FRAME_UNLIMITED)",813    ],814    linkstatic = 1,815    deps = [816        "//llvm:Support",817        "//llvm:config",818        "//third-party/unittest:gmock",819        "//third-party/unittest:gtest",820        "//third-party/unittest:gtest_main",821    ],822)823 824cc_test(825    name = "tablegen_tests",826    size = "small",827    srcs = glob(828        [829            "TableGen/*.cpp",830        ],831        allow_empty = False,832    ),833    deps = [834        ":automata_gen",835        "//llvm:Support",836        "//llvm:TableGen",837        "//llvm:TableGenGlobalISel",838        "//third-party/unittest:gmock",839        "//third-party/unittest:gtest",840        "//third-party/unittest:gtest_main",841    ],842)843 844cc_test(845    name = "target_aarch64_tests",846    size = "small",847    srcs = glob(848        ["Target/AArch64/*.cpp"],849        allow_empty = False,850    ),851    copts = [852        "$(STACK_FRAME_UNLIMITED)",853    ],854    features = ["-layering_check"],  # #include "AArch64GenInstrInfo.inc"855    deps = [856        "//llvm:AArch64CodeGen",857        "//llvm:AArch64UtilsAndDesc",858        "//llvm:AsmParser",859        "//llvm:CodeGen",860        "//llvm:CodeGenTypes",861        "//llvm:Core",862        "//llvm:MC",863        "//llvm:Support",864        "//llvm:Target",865        "//third-party/unittest:gtest",866        "//third-party/unittest:gtest_main",867    ],868)869 870cc_test(871    name = "testing_adt_tests",872    size = "small",873    srcs = glob(874        [875            "Testing/ADT/*.cpp",876        ],877        allow_empty = False,878    ),879    deps = [880        "//llvm:Support",881        "//llvm:TestingADT",882        "//third-party/unittest:gtest",883        "//third-party/unittest:gtest_main",884    ],885)886 887cc_test(888    name = "transforms_tests",889    size = "small",890    srcs = glob(891        [892            "Transforms/IPO/*.cpp",893            "Transforms/IPO/*.h",894            "Transforms/Utils/*.cpp",895        ],896        allow_empty = False,897    ),898    deps = [899        "//llvm:Analysis",900        "//llvm:AsmParser",901        "//llvm:Core",902        "//llvm:IPO",903        "//llvm:IRReader",904        "//llvm:Passes",905        "//llvm:ProfileData",906        "//llvm:Support",907        "//llvm:TestingSupport",908        "//llvm:TransformUtils",909        "//llvm:Vectorize",910        "//third-party/unittest:gmock",911        "//third-party/unittest:gtest",912        "//third-party/unittest:gtest_main",913    ],914)915 916cc_test(917    name = "llvm_exegesis_tests",918    size = "small",919    srcs = glob(920        [921            "tools/llvm-exegesis/*.cpp",922            "tools/llvm-exegesis/X86/*.cpp",923            "tools/llvm-exegesis/X86/*.h",924        ],925        allow_empty = False,926    ) + [927        "tools/llvm-exegesis/Common/AssemblerUtils.h",928    ],929    includes = ["tools/llvm-exegesis"],930    deps = [931        "//llvm:AllTargetsCodeGens",932        "//llvm:AllTargetsDisassemblers",933        "//llvm:CodeGen",934        "//llvm:CodeGenTypes",935        "//llvm:Exegesis",936        "//llvm:MC",937        "//llvm:MCDisassembler",938        "//llvm:Support",939        "//llvm:TargetParser",940        "//llvm:TestingSupport",941        "//llvm:X86CodeGen",942        "//llvm:X86UtilsAndDesc",943        "//third-party/unittest:gmock",944        "//third-party/unittest:gtest",945        "//third-party/unittest:gtest_main",946    ],947)948 949cc_test(950    name = "llvm_mca_tests",951    size = "small",952    srcs = glob(953        [954            "tools/llvm-mca/*.cpp",955            "tools/llvm-mca/*.h",956            "tools/llvm-mca/X86/*.cpp",957            "tools/llvm-mca/X86/*.h",958        ],959        allow_empty = False,960    ),961    includes = ["tools/llvm-mca"],962    deps = [963        "//llvm:MC",964        "//llvm:MCA",965        "//llvm:MCAApplication",966        "//llvm:Support",967        "//llvm:TargetParser",968        "//llvm:X86CodeGen",969        "//llvm:X86UtilsAndDesc",970        "//third-party/unittest:gtest",971        "//third-party/unittest:gtest_main",972    ],973)974