xref: /aosp_15_r20/external/llvm/lib/Target/AArch64/Android.bp (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workerpackage {
2*9880d681SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
3*9880d681SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
4*9880d681SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_llvm_license"
5*9880d681SAndroid Build Coastguard Worker    // to get the below license kinds:
6*9880d681SAndroid Build Coastguard Worker    //   SPDX-license-identifier-NCSA
7*9880d681SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_llvm_license"],
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workercc_library_static {
11*9880d681SAndroid Build Coastguard Worker    name: "libLLVMAArch64CodeGen",
12*9880d681SAndroid Build Coastguard Worker    defaults: [
13*9880d681SAndroid Build Coastguard Worker        "llvm-lib-defaults",
14*9880d681SAndroid Build Coastguard Worker        "llvm-aarch64-defaults",
15*9880d681SAndroid Build Coastguard Worker    ],
16*9880d681SAndroid Build Coastguard Worker    srcs: ["*.cpp"],
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker    // Global ISEL is an experimental feature.  If LLVM_BUILD_GLOBAL_ISEL is not
19*9880d681SAndroid Build Coastguard Worker    // set, these files fail compilation based on a macro check.
20*9880d681SAndroid Build Coastguard Worker    exclude_srcs: [
21*9880d681SAndroid Build Coastguard Worker        "AArch64CallLowering.cpp",
22*9880d681SAndroid Build Coastguard Worker        "AArch64RegisterBankInfo.cpp",
23*9880d681SAndroid Build Coastguard Worker    ],
24*9880d681SAndroid Build Coastguard Worker}
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Workercc_defaults {
27*9880d681SAndroid Build Coastguard Worker    name: "llvm-aarch64-defaults",
28*9880d681SAndroid Build Coastguard Worker    generated_headers: ["llvm-gen-aarch64"],
29*9880d681SAndroid Build Coastguard Worker    static_libs: ["llvm-aarch64-headers"],
30*9880d681SAndroid Build Coastguard Worker}
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Workercc_library_static {
33*9880d681SAndroid Build Coastguard Worker    name: "llvm-aarch64-headers",
34*9880d681SAndroid Build Coastguard Worker    vendor_available: true,
35*9880d681SAndroid Build Coastguard Worker    product_available: true,
36*9880d681SAndroid Build Coastguard Worker    host_supported: true,
37*9880d681SAndroid Build Coastguard Worker    // TODO(b/153609531): remove when no longer needed.
38*9880d681SAndroid Build Coastguard Worker    native_bridge_supported: true,
39*9880d681SAndroid Build Coastguard Worker    target: {
40*9880d681SAndroid Build Coastguard Worker        windows: {
41*9880d681SAndroid Build Coastguard Worker            enabled: true,
42*9880d681SAndroid Build Coastguard Worker        },
43*9880d681SAndroid Build Coastguard Worker    },
44*9880d681SAndroid Build Coastguard Worker    export_include_dirs: ["."],
45*9880d681SAndroid Build Coastguard Worker}
46*9880d681SAndroid Build Coastguard Worker
47*9880d681SAndroid Build Coastguard Workerllvm_tblgen {
48*9880d681SAndroid Build Coastguard Worker    name: "llvm-gen-aarch64",
49*9880d681SAndroid Build Coastguard Worker    in: "AArch64.td",
50*9880d681SAndroid Build Coastguard Worker    outs: [
51*9880d681SAndroid Build Coastguard Worker        "AArch64GenRegisterInfo.inc",
52*9880d681SAndroid Build Coastguard Worker        "AArch64GenInstrInfo.inc",
53*9880d681SAndroid Build Coastguard Worker        "AArch64GenAsmWriter.inc",
54*9880d681SAndroid Build Coastguard Worker        "AArch64GenAsmWriter1.inc",
55*9880d681SAndroid Build Coastguard Worker        "AArch64GenDAGISel.inc",
56*9880d681SAndroid Build Coastguard Worker        "AArch64GenCallingConv.inc",
57*9880d681SAndroid Build Coastguard Worker        "AArch64GenAsmMatcher.inc",
58*9880d681SAndroid Build Coastguard Worker        "AArch64GenSubtargetInfo.inc",
59*9880d681SAndroid Build Coastguard Worker        "AArch64GenMCCodeEmitter.inc",
60*9880d681SAndroid Build Coastguard Worker        "AArch64GenFastISel.inc",
61*9880d681SAndroid Build Coastguard Worker        "AArch64GenDisassemblerTables.inc",
62*9880d681SAndroid Build Coastguard Worker        "AArch64GenMCPseudoLowering.inc",
63*9880d681SAndroid Build Coastguard Worker        "AArch64GenSystemOperands.inc",
64*9880d681SAndroid Build Coastguard Worker    ],
65*9880d681SAndroid Build Coastguard Worker}
66*9880d681SAndroid Build Coastguard Worker
67*9880d681SAndroid Build Coastguard Workersubdirs = ["*"]
68