From c29aa443ec41201094db2dae1a86dee19f62b4d5 Mon Sep 17 00:00:00 2001
From: "A. Unique TensorFlower" <gardener@tensorflow.org>
Date: Mon, 8 Feb 2021 16:48:41 -0800
Subject: [PATCH] Integrate LLVM at llvm/llvm-project@2fa4186d4e1c

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

PiperOrigin-RevId: 356383544
Change-Id: Ie6e1f60198b8aa62a279e755e0234ee00854868d
---
 tensorflow/workspace.bzl | 4 ++--
 third_party/mlir/BUILD   | 7 ++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index 11ba91ba8d9..4a205a403cb 100755
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -685,8 +685,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
     )
 
     # Check out LLVM and MLIR from llvm-project.
-    LLVM_COMMIT = "f89f6d1e5d7d9cefd9e1d4c7a17afb53245a1fa8"
-    LLVM_SHA256 = "dcc663ea8f53345c709ad36bd71fc67102bac7590357dc7a46260074317759cc"
+    LLVM_COMMIT = "2fa4186d4e1c0c5ce05efb4275f94bb7c2538dda"
+    LLVM_SHA256 = "44d53acbed53c73cffd41281e053f86850ad7032ccf3ea68f238a010767b7260"
     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),
diff --git a/third_party/mlir/BUILD b/third_party/mlir/BUILD
index d2c9129703d..a6841229fac 100644
--- a/third_party/mlir/BUILD
+++ b/third_party/mlir/BUILD
@@ -2810,7 +2810,12 @@ cc_library(
 
 cc_library(
     name = "SPIRVSerialization",
-    srcs = ["lib/Target/SPIRV/Serialization/Serialization.cpp"],
+    srcs = [
+        "lib/Target/SPIRV/Serialization/Serialization.cpp",
+        "lib/Target/SPIRV/Serialization/SerializeOps.cpp",
+        "lib/Target/SPIRV/Serialization/Serializer.cpp",
+        "lib/Target/SPIRV/Serialization/Serializer.h",
+    ],
     hdrs = ["include/mlir/Target/SPIRV/Serialization.h"],
     includes = ["include"],
     deps = [