Updates LLVM usage to match
[86e604c4d685](https://github.com/llvm/llvm-project/commit/86e604c4d685)

PiperOrigin-RevId: 352105071
Change-Id: Iad5575215003f82d8d38c578fec3191e942e84bd
This commit is contained in:
A. Unique TensorFlower 2021-01-15 16:24:05 -08:00 committed by TensorFlower Gardener
parent 8cc7e7b21c
commit 458f5732b3
2 changed files with 108 additions and 4 deletions
tensorflow
third_party/mlir

View File

@ -685,8 +685,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
)
# Check out LLVM and MLIR from llvm-project.
LLVM_COMMIT = "104a9f99ccab9d6dbc07a70f569246c23feaf4c1"
LLVM_SHA256 = "7e1dde466fca679524d5f5152f36a292b00d23bb351f71c1f8143f32c59a1acb"
LLVM_COMMIT = "86e604c4d68528478333a8901d7c79c09ca16fa8"
LLVM_SHA256 = "4ea45bfb8e09240427bf9bff8f023b3181498d46573722f87e4070d7583eb1f4"
LLVM_URLS = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),
"https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),

108
third_party/mlir/BUILD vendored
View File

@ -292,6 +292,13 @@ filegroup(
],
)
filegroup(
name = "VectorInterfacesTdFiles",
srcs = [
"include/mlir/Interfaces/VectorInterfaces.td",
],
)
##---------------------------------------------------------------------------##
# Affine dialect.
##---------------------------------------------------------------------------##
@ -1025,10 +1032,10 @@ filegroup(
"include/mlir/IR/SymbolInterfaces.td",
"include/mlir/Interfaces/CallInterfaces.td",
"include/mlir/Interfaces/ControlFlowInterfaces.td",
"include/mlir/Interfaces/VectorInterfaces.td",
"include/mlir/Interfaces/ViewLikeInterface.td",
":OpBaseTdFiles",
":SideEffectTdFiles",
":VectorInterfacesTdFiles",
],
)
@ -1258,6 +1265,7 @@ cc_library(
":AffineToStandard",
":ArmNeonToLLVM",
":AsyncToLLVM",
":ComplexToLLVM",
":ConversionPassIncGen",
":GPUToGPURuntimeTransforms",
":GPUToNVVMTransforms",
@ -3971,6 +3979,8 @@ cc_library(
":AsyncPassIncGen",
":AsyncToLLVM",
":AsyncTransforms",
":ComplexDialect",
":ComplexToLLVM",
":ConversionPasses",
":GPUDialect",
":GPUPassIncGen",
@ -4933,10 +4943,10 @@ filegroup(
name = "VectorOpsTdFiles",
srcs = [
"include/mlir/Dialect/Vector/VectorOps.td",
"include/mlir/Interfaces/VectorInterfaces.td",
"include/mlir/Interfaces/ViewLikeInterface.td",
":AffineOpsTdFiles",
":OpBaseTdFiles",
":VectorInterfacesTdFiles",
],
)
@ -5173,6 +5183,100 @@ cc_library(
],
)
filegroup(
name = "ComplexOpsTdFiles",
srcs = [
"include/mlir/Dialect/Complex/IR/ComplexBase.td",
"include/mlir/Dialect/Complex/IR/ComplexOps.td",
":OpBaseTdFiles",
":SideEffectTdFiles",
":VectorInterfacesTdFiles",
],
)
gentbl(
name = "ComplexBaseIncGen",
strip_include_prefix = "include",
tbl_outs = [
(
"-gen-dialect-decls -dialect=complex",
"include/mlir/Dialect/Complex/IR/ComplexOpsDialect.h.inc",
),
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/Complex/IR/ComplexBase.td",
td_srcs = [
":ComplexOpsTdFiles",
],
)
gentbl(
name = "ComplexOpsIncGen",
strip_include_prefix = "include",
tbl_outs = [
(
"-gen-op-decls",
"include/mlir/Dialect/Complex/IR/ComplexOps.h.inc",
),
(
"-gen-op-defs",
"include/mlir/Dialect/Complex/IR/ComplexOps.cpp.inc",
),
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/Complex/IR/ComplexOps.td",
td_srcs = [
":ComplexOpsTdFiles",
],
)
cc_library(
name = "ComplexDialect",
srcs = glob(
[
"lib/Dialect/Complex/IR/*.cpp",
"lib/Dialect/Complex/IR/*.h",
],
),
hdrs = [
"include/mlir/Dialect/Complex/IR/Complex.h",
],
includes = ["include"],
deps = [
":ComplexBaseIncGen",
":ComplexOpsIncGen",
":IR",
":SideEffectInterfaces",
":Support",
":VectorInterfaces",
"@llvm-project//llvm:Support",
],
)
cc_library(
name = "ComplexToLLVM",
srcs = glob([
"lib/Conversion/ComplexToLLVM/*.cpp",
"lib/Conversion/ComplexToLLVM/*.h",
]) + ["lib/Conversion/PassDetail.h"],
hdrs = glob([
"include/mlir/Conversion/ComplexToLLVM/*.h",
]),
includes = ["include"],
deps = [
":ComplexDialect",
":ConversionPassIncGen",
":IR",
":LLVMDialect",
":Pass",
":StandardToLLVM",
":Support",
":Transforms",
"@llvm-project//llvm:Core",
"@llvm-project//llvm:Support",
],
)
exports_files(
[
"include/mlir/Bindings/Python/Attributes.td",