"""Provides the repository macro to import LLVM."""

load("//third_party:repo.bzl", "tf_http_archive")

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "d8c09b7bbc09ca5c08299edbf7d32631d3e5bcb8"
    LLVM_SHA256 = "9e4172006dc503beab1a16ba3a438509b10707452ef569a95f8b6ead1dc9d3af"

    tf_http_archive(
        name = name,
        sha256 = LLVM_SHA256,
        strip_prefix = "llvm-project-{commit}".format(commit = LLVM_COMMIT),
        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),
        ],
        build_file = "//third_party/llvm:llvm.BUILD",
        patch_file = [
            "//third_party/llvm:infer_type.patch",  # TODO(b/231285230): remove once resolved
            "//third_party/llvm:build.patch",
            "//third_party/llvm:toolchains.patch",
            "//third_party/llvm:temporary.patch",  # Cherry-picks and temporary reverts. Do not remove even if temporary.patch is empty.
        ],
        link_files = {"//third_party/llvm:run_lit.sh": "mlir/run_lit.sh"},
    )

@@ -160,133 +160,133 @@
  = %22
-d8c09b7bbc09ca5c08299edbf7d32631d3e5bcb8%22%0A    LLVM_SHA256 = %229e4172006dc503beab1a16ba3a438509b10707452ef569a95f8b6ead1dc9d3af
+55e1441f7b5d01a37fc46eb1711f03ee69845316%22%0A    LLVM_SHA256 = %22ecfb62058d98050ee2368a35cbb578a2ea6351307de5df7afe477480dd3569a1
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@55e1441f7b5d