Integrate TF at tensorflow/tensorflow@74de89dccd6f
Updates TF to
[74de89dccd6f](https://github.com/tensorflow/tensorflow/commit/74de89dccd6f)
matching
[26750a1264b3](https://github.com/llvm/llvm-project/commit/26750a1264b3)
and copies over the LLVM BUILD files.
`./scripts/git/update_to_llvm_syncpoint.py --tensorflow_commit=LATEST_MATCH`
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/iree/pull/3609 from GMNGeoffrey:tf-submodule-update 63a830697ead724bdbbce96bd1db71e2b751e2de
PiperOrigin-RevId: 339146653
diff --git a/SUBMODULE_VERSIONS b/SUBMODULE_VERSIONS
index 478ca9c..d146ee4 100644
--- a/SUBMODULE_VERSIONS
+++ b/SUBMODULE_VERSIONS
@@ -14,7 +14,7 @@
685f86471e9d26b3eb7676695a2e2cefb4551ae9 third_party/spirv_cross
f8bf11a0253a32375c32cad92c841237b96696c0 third_party/spirv_headers
57eb48aed36160c4876bc8310d9ca84d42ee9e2a third_party/swiftshader
-547bd9c88b1a86f0543fff3460e2d4d1c8009cb4 third_party/tensorflow
+74de89dccd6f6aab212821fcc7672ce262ff10d0 third_party/tensorflow
a9a09ab0940408898fccfdcfe2bb8dc19b50f13c third_party/tracy
9bd3f561bcee3f01d22912de10bb07ce4e23d378 third_party/vulkan_headers
3528e2aed3e8808f33e1e7d63eeb1560456a605a third_party/vulkan_memory_allocator
diff --git a/build_tools/bazel/third_party_import/llvm-project/overlay/llvm/BUILD.bazel b/build_tools/bazel/third_party_import/llvm-project/overlay/llvm/BUILD.bazel
index 5790059..0e8286a 100644
--- a/build_tools/bazel/third_party_import/llvm-project/overlay/llvm/BUILD.bazel
+++ b/build_tools/bazel/third_party_import/llvm-project/overlay/llvm/BUILD.bazel
@@ -468,6 +468,7 @@
("-gen-global-isel", "lib/Target/AArch64/AArch64GenGlobalISel.inc"),
("-gen-global-isel-combiner -combiners=AArch64PreLegalizerCombinerHelper", "lib/Target/AArch64/AArch64GenPreLegalizeGICombiner.inc"),
("-gen-global-isel-combiner -combiners=AArch64PostLegalizerCombinerHelper", "lib/Target/AArch64/AArch64GenPostLegalizeGICombiner.inc"),
+ ("-gen-global-isel-combiner -combiners=AArch64PostLegalizerLoweringHelper", "lib/Target/AArch64/AArch64GenPostLegalizeGILowering.inc"),
("-gen-callingconv", "lib/Target/AArch64/AArch64GenCallingConv.inc"),
("-gen-subtarget", "lib/Target/AArch64/AArch64GenSubtargetInfo.inc"),
("-gen-disassembler", "lib/Target/AArch64/AArch64GenDisassemblerTables.inc"),
diff --git a/build_tools/bazel/third_party_import/llvm-project/overlay/mlir/BUILD.bazel b/build_tools/bazel/third_party_import/llvm-project/overlay/mlir/BUILD.bazel
index d129c47..04533ae 100644
--- a/build_tools/bazel/third_party_import/llvm-project/overlay/mlir/BUILD.bazel
+++ b/build_tools/bazel/third_party_import/llvm-project/overlay/mlir/BUILD.bazel
@@ -120,6 +120,7 @@
cc_library(
name = "CAPIIR",
srcs = [
+ "lib/CAPI/IR/AffineExpr.cpp",
"lib/CAPI/IR/AffineMap.cpp",
"lib/CAPI/IR/Diagnostics.cpp",
"lib/CAPI/IR/IR.cpp",
@@ -129,6 +130,7 @@
"lib/CAPI/Standard/StandardDialect.cpp",
],
hdrs = [
+ "include/mlir-c/AffineExpr.h",
"include/mlir-c/AffineMap.h",
"include/mlir-c/Diagnostics.h",
"include/mlir-c/IR.h",
@@ -136,6 +138,7 @@
"include/mlir-c/StandardDialect.h",
"include/mlir-c/StandardTypes.h",
"include/mlir-c/Support.h",
+ "include/mlir/CAPI/AffineExpr.h",
"include/mlir/CAPI/AffineMap.h",
"include/mlir/CAPI/Diagnostics.h",
"include/mlir/CAPI/IR.h",
@@ -583,6 +586,28 @@
)
cc_library(
+ name = "AsyncTransforms",
+ srcs = glob([
+ "lib/Dialect/Async/Transforms/*.cpp",
+ "lib/Dialect/Async/Transforms/*.h",
+ ]),
+ includes = ["include"],
+ deps = [
+ ":Async",
+ ":IR",
+ ":Pass",
+ ":SCFDialect",
+ ":StandardOps",
+ ":Support",
+ ":TransformUtils",
+ ":Transforms",
+ ":TransformsPassIncGen",
+ "@llvm-project//llvm:Core",
+ "@llvm-project//llvm:Support",
+ ],
+)
+
+cc_library(
name = "AffineUtils",
srcs = glob(
[
@@ -665,6 +690,7 @@
deps = [
":AVX512ToLLVM",
":AffineToStandard",
+ ":AsyncToLLVM",
":ConversionPassIncGen",
":GPUToGPURuntimeTransforms",
":GPUToNVVMTransforms",
@@ -689,6 +715,27 @@
)
cc_library(
+ name = "AsyncToLLVM",
+ srcs = glob([
+ "lib/Conversion/AsyncToLLVM/*.cpp",
+ "lib/Conversion/AsyncToLLVM/*.h",
+ ]) + ["lib/Conversion/PassDetail.h"],
+ hdrs = glob(["include/mlir/Conversion/AsyncToLLVM/*.h"]),
+ includes = ["include"],
+ deps = [
+ ":Async",
+ ":ConversionPassIncGen",
+ ":IR",
+ ":LLVMDialect",
+ ":Pass",
+ ":StandardOps",
+ ":Support",
+ ":Transforms",
+ "@llvm-project//llvm:Support",
+ ],
+)
+
+cc_library(
name = "AffineToStandard",
srcs = glob([
"lib/Conversion/AffineToStandard/*.cpp",
@@ -977,6 +1024,7 @@
":ControlFlowInterfaces",
":IR",
":Pass",
+ ":SCFDialect",
":StandardOps",
":StandardOpsTransformsPassIncGen",
":Support",
@@ -1659,6 +1707,7 @@
includes = ["include"],
deps = [
":ConversionPassIncGen",
+ ":GPUDialect",
":IR",
":LLVMDialect",
":Pass",
@@ -2805,11 +2854,13 @@
deps = [
":Affine",
":CallOpInterfaces",
+ ":ControlFlowInterfaces",
":IR",
":LinalgOps",
":SCFDialect",
":StandardOps",
":Support",
+ ":ViewLikeInterface",
"@llvm-project//llvm:Support",
],
)
@@ -2972,6 +3023,7 @@
deps = [
"@llvm-project//llvm:Analysis",
"@llvm-project//llvm:Core",
+ "@llvm-project//llvm:Coroutines",
"@llvm-project//llvm:IPO",
"@llvm-project//llvm:Support",
"@llvm-project//llvm:Target",
@@ -3073,6 +3125,8 @@
":AffineToStandard",
":AffineTransforms",
":Async",
+ ":AsyncToLLVM",
+ ":AsyncTransforms",
":ConversionPasses",
":GPUDialect",
":GPUPassIncGen",
@@ -3202,6 +3256,17 @@
)
cc_library(
+ name = "mlir_async_runtime",
+ srcs = [
+ "lib/ExecutionEngine/AsyncRuntime.cpp",
+ ],
+ hdrs = [
+ "include/mlir/ExecutionEngine/AsyncRuntime.h",
+ ],
+ includes = ["include"],
+)
+
+cc_library(
name = "mlir_runner_utils",
srcs = [
"lib/ExecutionEngine/RunnerUtils.cpp",