1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "external_llvm_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-NCSA
7    default_applicable_licenses: ["external_llvm_license"],
8}
9
10cc_library_static {
11    name: "libLLVMX86CodeGen",
12    defaults: [
13        "llvm-lib-defaults",
14        "llvm-x86-defaults",
15    ],
16    srcs: ["*.cpp"],
17
18    // b/31559947, b/31938382 clang-tidy segmentation fault.
19    tidy_checks: [
20        "-clang-analyzer-*",
21        "-readability-*",
22        "-google-readability-*",
23    ],
24}
25
26cc_defaults {
27    name: "llvm-x86-defaults",
28    generated_headers: ["llvm-gen-x86"],
29    static_libs: ["llvm-x86-headers"],
30}
31
32cc_library_static {
33    name: "llvm-x86-headers",
34    vendor_available: true,
35    product_available: true,
36    host_supported: true,
37    // TODO(b/153609531): remove when no longer needed.
38    native_bridge_supported: true,
39    target: {
40        windows: {
41            enabled: true,
42        },
43    },
44    export_include_dirs: ["."],
45}
46
47llvm_tblgen {
48    name: "llvm-gen-x86",
49    in: "X86.td",
50    outs: [
51        "X86GenAsmMatcher.inc",
52        "X86GenAsmWriter.inc",
53        "X86GenAsmWriter1.inc",
54        "X86GenDisassemblerTables.inc",
55        "X86GenRegisterInfo.inc",
56        "X86GenInstrInfo.inc",
57        "X86GenDAGISel.inc",
58        "X86GenFastISel.inc",
59        "X86GenSubtargetInfo.inc",
60        "X86GenCallingConv.inc",
61    ],
62}
63
64subdirs = ["*"]
65