Update XLA LLVM to r308712

PiperOrigin-RevId: 162743186
This commit is contained in:
A. Unique TensorFlower 2017-07-21 08:23:40 -07:00 committed by TensorFlower Gardener
parent 1483328a27
commit 1afeafe016
2 changed files with 34 additions and 5 deletions

View File

@ -495,11 +495,11 @@ def tf_workspace(path_prefix="", tf_repo_name=""):
temp_workaround_http_archive( temp_workaround_http_archive(
name = "llvm", name = "llvm",
urls = [ urls = [
"http://mirror.bazel.build/github.com/llvm-mirror/llvm/archive/9889fe2290766430b99a2d4fadbc5ba92f8004b6.tar.gz", "http://mirror.bazel.build/github.com/llvm-mirror/llvm/archive/4d98985c94c36b9eb4396c91fe0a72a0c5f707b2.tar.gz",
"https://github.com/llvm-mirror/llvm/archive/9889fe2290766430b99a2d4fadbc5ba92f8004b6.tar.gz", "https://github.com/llvm-mirror/llvm/archive/4d98985c94c36b9eb4396c91fe0a72a0c5f707b2.tar.gz",
], ],
sha256 = "00fb4a83a4dd1c046b19730a80e2183acc647715b7a8dcc8e808d49ea5530ca8", sha256 = "1a085c995522fa19900568c03eb595b425df53842c7f281e3ab79aaa04affffa",
strip_prefix = "llvm-9889fe2290766430b99a2d4fadbc5ba92f8004b6", strip_prefix = "llvm-4d98985c94c36b9eb4396c91fe0a72a0c5f707b2",
build_file = str(Label("//third_party/llvm:llvm.BUILD")), build_file = str(Label("//third_party/llvm:llvm.BUILD")),
repository = tf_repo_name, repository = tf_repo_name,
) )

View File

@ -386,6 +386,7 @@ llvm_target_list = [
"tbl_outs": [ "tbl_outs": [
("-gen-register-bank", "lib/Target/ARM/ARMGenRegisterBank.inc"), ("-gen-register-bank", "lib/Target/ARM/ARMGenRegisterBank.inc"),
("-gen-register-info", "lib/Target/ARM/ARMGenRegisterInfo.inc"), ("-gen-register-info", "lib/Target/ARM/ARMGenRegisterInfo.inc"),
("-gen-searchable-tables", "lib/Target/ARM/ARMGenSystemRegister.inc"),
("-gen-instr-info", "lib/Target/ARM/ARMGenInstrInfo.inc"), ("-gen-instr-info", "lib/Target/ARM/ARMGenInstrInfo.inc"),
("-gen-emitter", "lib/Target/ARM/ARMGenMCCodeEmitter.inc"), ("-gen-emitter", "lib/Target/ARM/ARMGenMCCodeEmitter.inc"),
("-gen-pseudo-lowering", "lib/Target/ARM/ARMGenMCPseudoLowering.inc"), ("-gen-pseudo-lowering", "lib/Target/ARM/ARMGenMCPseudoLowering.inc"),
@ -879,6 +880,7 @@ cc_library(
deps = [ deps = [
":arm_desc", ":arm_desc",
":arm_info", ":arm_info",
":arm_utils",
":config", ":config",
":mc", ":mc",
":mc_parser", ":mc_parser",
@ -903,6 +905,7 @@ cc_library(
deps = [ deps = [
":arm_info", ":arm_info",
":arm_target_gen", ":arm_target_gen",
":arm_utils",
":config", ":config",
":mc", ":mc",
":support", ":support",
@ -928,6 +931,7 @@ cc_library(
":arm_asm_printer", ":arm_asm_printer",
":arm_desc", ":arm_desc",
":arm_info", ":arm_info",
":arm_utils",
":asm_printer", ":asm_printer",
":code_gen", ":code_gen",
":config", ":config",
@ -1016,6 +1020,29 @@ cc_library(
], ],
) )
cc_library(
name = "arm_utils",
srcs = glob([
"lib/Target/ARM/Utils/*.c",
"lib/Target/ARM/Utils/*.cpp",
"lib/Target/ARM/Utils/*.inc",
"lib/Target/ARM/MCTargetDesc/*.h",
]),
hdrs = glob([
"include/llvm/Target/ARM/Utils/*.h",
"include/llvm/Target/ARM/Utils/*.def",
"include/llvm/Target/ARM/Utils/*.inc",
"lib/Target/ARM/Utils/*.h",
]),
copts = ["-Iexternal/llvm/lib/Target/ARM"],
deps = [
":arm_target_gen",
":config",
":mc",
":support",
],
)
cc_library( cc_library(
name = "asm_parser", name = "asm_parser",
srcs = glob([ srcs = glob([
@ -1129,6 +1156,7 @@ cc_library(
":config", ":config",
":core", ":core",
":mc", ":mc",
":object",
":support", ":support",
], ],
) )
@ -1182,7 +1210,7 @@ cc_library(
"include/llvm/IR/*.def", "include/llvm/IR/*.def",
"include/llvm/IR/*.inc", "include/llvm/IR/*.inc",
"include/llvm/*.h", "include/llvm/*.h",
]) + ["include/llvm/Support/VCSRevision.h"], ]),
deps = [ deps = [
":attributes_compat_gen", ":attributes_compat_gen",
":attributes_gen", ":attributes_gen",
@ -1950,6 +1978,7 @@ cc_library(
]) + [ ]) + [
"include/llvm/BinaryFormat/MachO.def", "include/llvm/BinaryFormat/MachO.def",
"include/llvm/Support/DataTypes.h", "include/llvm/Support/DataTypes.h",
"include/llvm/Support/VCSRevision.h",
"include/llvm/ExecutionEngine/ObjectMemoryBuffer.h", "include/llvm/ExecutionEngine/ObjectMemoryBuffer.h",
], ],
deps = [ deps = [