aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/llvm/llvm.autogenerated.BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/llvm/llvm.autogenerated.BUILD')
-rw-r--r--third_party/llvm/llvm.autogenerated.BUILD262
1 files changed, 105 insertions, 157 deletions
diff --git a/third_party/llvm/llvm.autogenerated.BUILD b/third_party/llvm/llvm.autogenerated.BUILD
index d931932d9d..c3b9ec4c25 100644
--- a/third_party/llvm/llvm.autogenerated.BUILD
+++ b/third_party/llvm/llvm.autogenerated.BUILD
@@ -8,13 +8,14 @@ exports_files(["LICENSE.TXT"])
load(
"@org_tensorflow//third_party/llvm:llvm.bzl",
- "LLVM_COPTS",
- "LLVM_DEFINES",
- "LLVM_LINKOPTS",
"cmake_var_string",
"expand_cmake_vars",
"gentbl",
"llvm_all_cmake_vars",
+ "llvm_copts",
+ "llvm_defines",
+ "llvm_linkopts",
+ "llvm_support_platform_specific_srcs_glob",
)
load(
"@org_tensorflow//third_party:common.bzl",
@@ -27,9 +28,7 @@ llvm_host_triple = "x86_64-unknown-linux_gnu"
llvm_targets = [
"AArch64",
- # Uncomment to enable the AMDGPU backend.
- # TODO(phawkins): use a configure-time test.
- # "AMDGPU",
+ "AMDGPU",
"ARM",
"NVPTX",
"PowerPC",
@@ -121,7 +120,7 @@ cc_library(
"include/llvm/Config/config.h",
"include/llvm/Config/llvm-config.h",
],
- defines = LLVM_DEFINES,
+ defines = llvm_defines,
includes = ["include"],
)
@@ -198,7 +197,8 @@ cc_binary(
"utils/TableGen/*.cpp",
"utils/TableGen/*.h",
]),
- linkopts = LLVM_LINKOPTS,
+ copts = llvm_copts,
+ linkopts = llvm_linkopts,
stamp = 0,
deps = [
":config",
@@ -214,7 +214,8 @@ cc_binary(
"utils/FileCheck/*.cpp",
"utils/FileCheck/*.h",
]),
- linkopts = LLVM_LINKOPTS,
+ copts = llvm_copts,
+ linkopts = llvm_linkopts,
stamp = 0,
deps = [":support"],
)
@@ -253,13 +254,31 @@ llvm_target_list = [
("-gen-dag-isel", "lib/Target/AMDGPU/AMDGPUGenDAGISel.inc"),
("-gen-callingconv", "lib/Target/AMDGPU/AMDGPUGenCallingConv.inc"),
("-gen-subtarget", "lib/Target/AMDGPU/AMDGPUGenSubtargetInfo.inc"),
- ("-gen-tgt-intrinsic", "lib/Target/AMDGPU/AMDGPUGenIntrinsics.inc"),
+ ("-gen-tgt-intrinsic-impl", "lib/Target/AMDGPU/AMDGPUGenIntrinsicImpl.inc"),
+ ("-gen-tgt-intrinsic-enums", "lib/Target/AMDGPU/AMDGPUGenIntrinsicEnums.inc"),
("-gen-emitter", "lib/Target/AMDGPU/AMDGPUGenMCCodeEmitter.inc"),
("-gen-dfa-packetizer", "lib/Target/AMDGPU/AMDGPUGenDFAPacketizer.inc"),
("-gen-asm-writer", "lib/Target/AMDGPU/AMDGPUGenAsmWriter.inc"),
("-gen-asm-matcher", "lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc"),
("-gen-disassembler", "lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc"),
("-gen-pseudo-lowering", "lib/Target/AMDGPU/AMDGPUGenMCPseudoLowering.inc"),
+ ("-gen-searchable-tables", "lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc"),
+ ("-gen-global-isel", "lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc"),
+ ],
+ },
+ {
+ "name": "AMDGPU",
+ "lower_name": "amdgpu_r600",
+ "short_name": "R600",
+ "tbl_outs": [
+ ("-gen-asm-writer", "lib/Target/AMDGPU/R600GenAsmWriter.inc"),
+ ("-gen-callingconv", "lib/Target/AMDGPU/R600GenCallingConv.inc"),
+ ("-gen-dag-isel", "lib/Target/AMDGPU/R600GenDAGISel.inc"),
+ ("-gen-dfa-packetizer", "lib/Target/AMDGPU/R600GenDFAPacketizer.inc"),
+ ("-gen-instr-info", "lib/Target/AMDGPU/R600GenInstrInfo.inc"),
+ ("-gen-emitter", "lib/Target/AMDGPU/R600GenMCCodeEmitter.inc"),
+ ("-gen-register-info", "lib/Target/AMDGPU/R600GenRegisterInfo.inc"),
+ ("-gen-subtarget", "lib/Target/AMDGPU/R600GenSubtargetInfo.inc"),
],
},
{
@@ -385,8 +404,7 @@ cc_library(
"include/llvm/Target/AArch64/AsmParser/*.inc",
"lib/Target/AArch64/AsmParser/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AArch64"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AArch64"],
deps = [
":aarch64_desc",
":aarch64_info",
@@ -411,8 +429,7 @@ cc_library(
"include/llvm/Target/AArch64/InstPrinter/*.inc",
"lib/Target/AArch64/InstPrinter/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AArch64"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AArch64"],
deps = [
":aarch64_target_gen",
":aarch64_utils",
@@ -435,8 +452,7 @@ cc_library(
"include/llvm/Target/AArch64/*.inc",
"lib/Target/AArch64/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AArch64"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AArch64"],
deps = [
":aarch64_asm_printer",
":aarch64_desc",
@@ -469,8 +485,7 @@ cc_library(
"include/llvm/Target/AArch64/MCTargetDesc/*.inc",
"lib/Target/AArch64/MCTargetDesc/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AArch64"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AArch64"],
deps = [
":aarch64_asm_printer",
":aarch64_info",
@@ -497,8 +512,7 @@ cc_library(
"include/llvm/Target/AArch64/Disassembler/*.inc",
"lib/Target/AArch64/Disassembler/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AArch64"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AArch64"],
deps = [
":aarch64_desc",
":aarch64_info",
@@ -526,8 +540,7 @@ cc_library(
"lib/Target/AArch64/AArch64*.h",
"lib/Target/AArch64/TargetInfo/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AArch64"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AArch64"],
deps = [
":code_gen",
":config",
@@ -550,8 +563,7 @@ cc_library(
"include/llvm/Target/AArch64/Utils/*.inc",
"lib/Target/AArch64/Utils/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AArch64"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AArch64"],
deps = [
":aarch64_target_gen",
":config",
@@ -573,8 +585,7 @@ cc_library(
"include/llvm/Transforms/AggressiveInstCombine/*.def",
"include/llvm/Transforms/AggressiveInstCombine/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -599,8 +610,7 @@ cc_library(
"include/llvm/Analysis/*.def",
"include/llvm/Analysis/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":binary_format",
":config",
@@ -624,8 +634,7 @@ cc_library(
"include/llvm/Target/AMDGPU/MCTargetDesc/*.inc",
"lib/Target/AMDGPU/MCTargetDesc/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AMDGPU"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AMDGPU"],
deps = [
":amdgpu_asm_printer",
":amdgpu_info",
@@ -650,8 +659,7 @@ cc_library(
"include/llvm/Target/AMDGPU/Disassembler/*.inc",
"lib/Target/AMDGPU/Disassembler/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AMDGPU"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AMDGPU"],
deps = [
":amdgpu_desc",
":amdgpu_info",
@@ -676,9 +684,9 @@ cc_library(
"include/llvm/Target/AMDGPU/TargetInfo/*.inc",
"lib/Target/AMDGPU/TargetInfo/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AMDGPU"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AMDGPU"],
deps = [
+ ":amdgpu_r600_target_gen",
":amdgpu_target_gen",
":config",
":core",
@@ -699,9 +707,9 @@ cc_library(
"include/llvm/Target/AMDGPU/Utils/*.inc",
"lib/Target/AMDGPU/Utils/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AMDGPU"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AMDGPU"],
deps = [
+ ":amdgpu_r600_target_gen",
":amdgpu_target_gen",
":config",
":core",
@@ -723,8 +731,7 @@ cc_library(
"include/llvm/Target/AMDGPU/AsmParser/*.inc",
"lib/Target/AMDGPU/AsmParser/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AMDGPU"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AMDGPU"],
deps = [
":amdgpu_desc",
":amdgpu_info",
@@ -749,8 +756,7 @@ cc_library(
"include/llvm/Target/AMDGPU/InstPrinter/*.inc",
"lib/Target/AMDGPU/InstPrinter/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AMDGPU"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AMDGPU"],
deps = [
":amdgpu_utils",
":config",
@@ -772,8 +778,7 @@ cc_library(
"include/llvm/Target/AMDGPU/*.inc",
"lib/Target/AMDGPU/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/AMDGPU"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/AMDGPU"],
deps = [
":amdgpu_asm_printer",
":amdgpu_desc",
@@ -809,8 +814,7 @@ cc_library(
"include/llvm/Target/ARM/AsmParser/*.inc",
"lib/Target/ARM/AsmParser/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/ARM"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":arm_desc",
":arm_info",
@@ -836,8 +840,7 @@ cc_library(
"lib/Target/ARM/*.h",
"lib/Target/ARM/InstPrinter/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/ARM"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":arm_info",
":arm_target_gen",
@@ -861,8 +864,7 @@ cc_library(
"include/llvm/Target/ARM/*.inc",
"lib/Target/ARM/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/ARM"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":analysis",
":arm_asm_printer",
@@ -879,6 +881,7 @@ cc_library(
":selection_dag",
":support",
":target",
+ ":transform_utils",
],
)
@@ -897,8 +900,7 @@ cc_library(
"include/llvm/Target/ARM/MCTargetDesc/*.inc",
"lib/Target/ARM/MCTargetDesc/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/ARM"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":arm_asm_printer",
":arm_info",
@@ -926,8 +928,7 @@ cc_library(
"include/llvm/Target/ARM/Disassembler/*.inc",
"lib/Target/ARM/Disassembler/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/ARM"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":arm_desc",
":arm_info",
@@ -952,8 +953,7 @@ cc_library(
"include/llvm/Target/ARM/TargetInfo/*.inc",
"lib/Target/ARM/TargetInfo/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/ARM"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":arm_target_gen",
":config",
@@ -976,8 +976,7 @@ cc_library(
"include/llvm/Target/ARM/Utils/*.inc",
"lib/Target/ARM/Utils/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/ARM"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":arm_target_gen",
":config",
@@ -999,8 +998,7 @@ cc_library(
"include/llvm/AsmParser/*.def",
"include/llvm/AsmParser/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":binary_format",
":config",
@@ -1023,8 +1021,7 @@ cc_library(
"include/llvm/CodeGen/AsmPrinter/*.inc",
"lib/CodeGen/AsmPrinter/*.def",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":binary_format",
@@ -1055,8 +1052,7 @@ cc_library(
"include/llvm/BinaryFormat/ELFRelocs/*.def",
"include/llvm/BinaryFormat/WasmRelocs/*.def",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":support",
@@ -1077,8 +1073,7 @@ cc_library(
"include/llvm/Bitcode/Reader/*.inc",
"include/llvm/Bitcode/BitstreamReader.h",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":core",
@@ -1102,8 +1097,7 @@ cc_library(
"include/llvm/Bitcode/BitcodeWriterPass.h",
"include/llvm/Bitcode/BitstreamWriter.h",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -1128,8 +1122,7 @@ cc_library(
"include/llvm/CodeGen/*.inc",
"include/llvm/CodeGen/**/*.h",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":bit_reader",
@@ -1167,8 +1160,7 @@ cc_library(
"include/llvm/*.h",
"include/llvm/Analysis/*.def",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":attributes_compat_gen",
":attributes_gen",
@@ -1193,8 +1185,7 @@ cc_library(
"include/llvm/DebugInfo/CodeView/*.def",
"include/llvm/DebugInfo/CodeView/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":binary_format",
":config",
@@ -1216,8 +1207,7 @@ cc_library(
"include/llvm/DebugInfo/MSF/*.def",
"include/llvm/DebugInfo/MSF/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":support",
@@ -1237,8 +1227,7 @@ cc_library(
"include/llvm/Demangle/*.def",
"include/llvm/Demangle/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [":config"],
)
@@ -1255,8 +1244,7 @@ cc_library(
"include/llvm/ExecutionEngine/*.def",
"include/llvm/ExecutionEngine/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":core",
@@ -1281,8 +1269,7 @@ cc_library(
"include/llvm/CodeGen/GlobalISel/*.def",
"include/llvm/CodeGen/GlobalISel/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":code_gen",
@@ -1312,8 +1299,7 @@ cc_library(
"include/llvm/Transforms/InstrProfiling.h",
"include/llvm/Transforms/PGOInstrumentation.h",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -1338,8 +1324,7 @@ cc_library(
"include/llvm/Transforms/InstCombine/*.def",
"include/llvm/Transforms/InstCombine/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -1366,8 +1351,7 @@ cc_library(
"include/llvm/Transforms/IPO/*.def",
"include/llvm/Transforms/IPO/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":aggressive_inst_combine",
":analysis",
@@ -1401,8 +1385,7 @@ cc_library(
"include/llvm/IRReader/*.def",
"include/llvm/IRReader/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":asm_parser",
":bit_reader",
@@ -1425,8 +1408,7 @@ cc_library(
"include/llvm/Linker/*.def",
"include/llvm/Linker/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":core",
@@ -1448,8 +1430,7 @@ cc_library(
"include/llvm/MC/*.def",
"include/llvm/MC/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":binary_format",
":config",
@@ -1471,8 +1452,7 @@ cc_library(
"include/llvm/MC/MCDisassembler/*.def",
"include/llvm/MC/MCDisassembler/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":mc",
@@ -1493,8 +1473,7 @@ cc_library(
"include/llvm/MC/MCParser/*.def",
"include/llvm/MC/MCParser/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":mc",
@@ -1515,8 +1494,7 @@ cc_library(
"include/llvm/Target/NVPTX/InstPrinter/*.inc",
"lib/Target/NVPTX/InstPrinter/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/NVPTX"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/NVPTX"],
deps = [
"nvptx_target_gen",
":attributes_gen",
@@ -1540,8 +1518,7 @@ cc_library(
"include/llvm/Target/NVPTX/*.inc",
"lib/Target/NVPTX/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/NVPTX"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/NVPTX"],
deps = [
":analysis",
":asm_printer",
@@ -1575,8 +1552,7 @@ cc_library(
"include/llvm/Target/NVPTX/MCTargetDesc/*.inc",
"lib/Target/NVPTX/MCTargetDesc/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/NVPTX"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/NVPTX"],
deps = [
"nvptx_target_gen",
":config",
@@ -1602,8 +1578,7 @@ cc_library(
"lib/Target/NVPTX/NVPTX.h",
"lib/Target/NVPTX/TargetInfo/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/NVPTX"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/NVPTX"],
deps = [
"nvptx_target_gen",
":attributes_gen",
@@ -1627,8 +1602,7 @@ cc_library(
"include/llvm/Object/*.def",
"include/llvm/Object/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":binary_format",
":bit_reader",
@@ -1654,8 +1628,7 @@ cc_library(
"include/llvm/Transforms/ObjCARC/*.def",
"include/llvm/Transforms/ObjCARC/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -1678,8 +1651,7 @@ cc_library(
"include/llvm/ExecutionEngine/Orc/*.def",
"include/llvm/ExecutionEngine/Orc/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":core",
@@ -1706,8 +1678,7 @@ cc_library(
"include/llvm/Target/PowerPC/AsmParser/*.inc",
"lib/Target/PowerPC/AsmParser/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/PowerPC"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/PowerPC"],
deps = [
":config",
":mc",
@@ -1731,8 +1702,7 @@ cc_library(
"include/llvm/Target/PowerPC/InstPrinter/*.inc",
"lib/Target/PowerPC/InstPrinter/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/PowerPC"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/PowerPC"],
deps = [
":attributes_gen",
":config",
@@ -1758,8 +1728,7 @@ cc_library(
"include/llvm/Target/PowerPC/*.inc",
"lib/Target/PowerPC/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/PowerPC"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/PowerPC"],
deps = [
":analysis",
":asm_printer",
@@ -1791,8 +1760,7 @@ cc_library(
"include/llvm/Target/PowerPC/MCTargetDesc/*.inc",
"lib/Target/PowerPC/MCTargetDesc/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/PowerPC"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/PowerPC"],
deps = [
":attributes_gen",
":config",
@@ -1819,8 +1787,7 @@ cc_library(
"include/llvm/Target/PowerPC/Disassembler/*.inc",
"lib/Target/PowerPC/Disassembler/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/PowerPC"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/PowerPC"],
deps = [
":config",
":mc_disassembler",
@@ -1844,8 +1811,7 @@ cc_library(
"lib/Target/PowerPC/PPC*.h",
"lib/Target/PowerPC/TargetInfo/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/PowerPC"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/PowerPC"],
deps = [
":attributes_gen",
":config",
@@ -1869,8 +1835,7 @@ cc_library(
"include/llvm/ProfileData/*.def",
"include/llvm/ProfileData/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":core",
@@ -1899,8 +1864,7 @@ cc_library(
"include/llvm/ExecutionEngine/RTDyldMemoryManager.h",
"include/llvm/ExecutionEngine/RuntimeDyld*.h",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":mc",
@@ -1928,8 +1892,7 @@ cc_library(
"include/llvm/Transforms/IPO.h",
"include/llvm/Transforms/IPO/SCCP.h",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":aggressive_inst_combine",
":analysis",
@@ -1955,8 +1918,7 @@ cc_library(
"include/llvm/CodeGen/SelectionDAG/*.def",
"include/llvm/CodeGen/SelectionDAG/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":code_gen",
@@ -1975,14 +1937,12 @@ cc_library(
"lib/Support/*.c",
"lib/Support/*.cpp",
"lib/Support/*.inc",
- "lib/Support/Unix/*.inc",
- "lib/Support/Unix/*.h",
"include/llvm-c/*.h",
"include/llvm/CodeGen/MachineValueType.h",
"include/llvm/BinaryFormat/COFF.h",
"include/llvm/BinaryFormat/MachO.h",
"lib/Support/*.h",
- ]),
+ ] + llvm_support_platform_specific_srcs_glob),
hdrs = glob([
"include/llvm/Support/*.h",
"include/llvm/Support/*.def",
@@ -1994,8 +1954,7 @@ cc_library(
"include/llvm/BinaryFormat/MachO.def",
"include/llvm/Support/VCSRevision.h",
],
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":demangle",
@@ -2018,8 +1977,7 @@ cc_library(
"include/llvm/TableGen/*.inc",
"include/llvm/Target/*.def",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":config",
":mc",
@@ -2045,8 +2003,7 @@ cc_library(
"include/llvm/CodeGen/*.def",
"include/llvm/CodeGen/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -2071,8 +2028,7 @@ cc_library(
"include/llvm/Transforms/Utils/*.def",
"include/llvm/Transforms/Utils/*.inc",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -2096,8 +2052,7 @@ cc_library(
"include/llvm/Transforms/Vectorize/*.inc",
"include/llvm/Transforms/Vectorize.h",
]),
- copts = LLVM_COPTS,
- defines = LLVM_DEFINES,
+ copts = llvm_copts,
deps = [
":analysis",
":config",
@@ -2121,8 +2076,7 @@ cc_library(
"include/llvm/Target/X86/AsmParser/*.inc",
"lib/Target/X86/AsmParser/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/X86"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/X86"],
deps = [
":config",
":mc",
@@ -2147,8 +2101,7 @@ cc_library(
"include/llvm/Target/X86/InstPrinter/*.inc",
"lib/Target/X86/InstPrinter/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/X86"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/X86"],
deps = [
":config",
":mc",
@@ -2172,8 +2125,7 @@ cc_library(
"include/llvm/Target/X86/*.inc",
"lib/Target/X86/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/X86"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/X86"],
deps = [
":analysis",
":asm_printer",
@@ -2206,8 +2158,7 @@ cc_library(
"include/llvm/Target/X86/MCTargetDesc/*.inc",
"lib/Target/X86/MCTargetDesc/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/X86"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/X86"],
deps = [
":config",
":mc",
@@ -2232,8 +2183,7 @@ cc_library(
"include/llvm/Target/X86/Disassembler/*.inc",
"lib/Target/X86/Disassembler/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/X86"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/X86"],
deps = [
":config",
":mc_disassembler",
@@ -2256,8 +2206,7 @@ cc_library(
"include/llvm/Target/X86/TargetInfo/*.inc",
"lib/Target/X86/TargetInfo/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/X86"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/X86"],
deps = [
":config",
":mc",
@@ -2279,8 +2228,7 @@ cc_library(
"include/llvm/Target/X86/Utils/*.inc",
"lib/Target/X86/Utils/*.h",
]),
- copts = LLVM_COPTS + ["-Iexternal/llvm/lib/Target/X86"],
- defines = LLVM_DEFINES,
+ copts = llvm_copts + ["-Iexternal/llvm/lib/Target/X86"],
deps = [
":code_gen",
":config",