Home | History | Annotate | Download | only in llc
      1 //===---------------------------------------------------------------===
      2 // llc command line tool (common)
      3 //===---------------------------------------------------------------===
      4 
      5 llvm_llc_mips_STATIC_LIBRARIES = [
      6     "libLLVMMipsAsmParser",
      7     "libLLVMMipsInfo",
      8     "libLLVMMipsCodeGen",
      9     "libLLVMMipsDesc",
     10     "libLLVMMipsAsmPrinter",
     11 ]
     12 
     13 llvm_llc_x86_STATIC_LIBRARIES = [
     14     "libLLVMX86Info",
     15     "libLLVMX86AsmParser",
     16     "libLLVMX86CodeGen",
     17     "libLLVMX86Disassembler",
     18     "libLLVMX86Desc",
     19     "libLLVMX86AsmPrinter",
     20     "libLLVMX86Utils",
     21 ]
     22 
     23 llvm_llc_arm_STATIC_LIBRARIES = [
     24     "libLLVMARMCodeGen",
     25     "libLLVMARMDisassembler",
     26     "libLLVMARMAsmParser",
     27     "libLLVMARMAsmPrinter",
     28     "libLLVMARMDesc",
     29     "libLLVMARMInfo",
     30 ]
     31 
     32 llvm_llc_aarch64_STATIC_LIBRARIES = [
     33     "libLLVMAArch64Info",
     34     "libLLVMAArch64AsmParser",
     35     "libLLVMAArch64CodeGen",
     36     "libLLVMAArch64Disassembler",
     37     "libLLVMAArch64Desc",
     38     "libLLVMAArch64AsmPrinter",
     39     "libLLVMAArch64Utils",
     40 ]
     41 
     42 //===---------------------------------------------------------------===
     43 // llc command line tool
     44 //===---------------------------------------------------------------===
     45 
     46 cc_binary_host {
     47     name: "llc",
     48     defaults: ["llvm-defaults"],
     49     srcs: ["llc.cpp"],
     50     static_libs: [
     51         "libLLVMGlobalISel",
     52         "libLLVMAsmPrinter",
     53         "libLLVMDebugInfoCodeView",
     54         "libLLVMIRReader",
     55         "libLLVMAsmParser",
     56         "libLLVMBitReader",
     57         "libLLVMBitWriter",
     58         "libLLVMSelectionDAG",
     59         "libLLVMInstCombine",
     60         "libLLVMCodeGen",
     61         "libLLVMProfileData",
     62         "libLLVMInstrumentation",
     63         "libLLVMObject",
     64         "libLLVMipo",
     65         "libLLVMLinker",
     66         "libLLVMMCDisassembler",
     67         "libLLVMMC",
     68         "libLLVMMIRParser",
     69         "libLLVMMCParser",
     70         "libLLVMScalarOpts",
     71         "libLLVMTransformUtils",
     72         "libLLVMVectorize",
     73         "libLLVMAnalysis",
     74         "libLLVMTarget",
     75         "libLLVMCore",
     76         "libLLVMSupport",
     77         "libLLVMObject",
     78     ],
     79     target: {
     80         host: {
     81             static_libs: llvm_llc_arm_STATIC_LIBRARIES +
     82                 llvm_llc_mips_STATIC_LIBRARIES +
     83                 llvm_llc_x86_STATIC_LIBRARIES +
     84                 llvm_llc_aarch64_STATIC_LIBRARIES,
     85         },
     86         android_arm: {
     87             static_libs: llvm_llc_arm_STATIC_LIBRARIES,
     88         },
     89         android_arm64: {
     90             static_libs: llvm_llc_aarch64_STATIC_LIBRARIES + llvm_llc_arm_STATIC_LIBRARIES,
     91         },
     92         android_mips: {
     93             static_libs: llvm_llc_mips_STATIC_LIBRARIES,
     94         },
     95         android_mips64: {
     96             static_libs: llvm_llc_mips_STATIC_LIBRARIES,
     97         },
     98         android_x86: {
     99             static_libs: llvm_llc_x86_STATIC_LIBRARIES,
    100         },
    101         android_x86_64: {
    102             static_libs: llvm_llc_x86_STATIC_LIBRARIES,
    103         },
    104     },
    105 }
    106