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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "d42122cd5db021e6b14a90a98ad1dd09412efb4c"
    LLVM_SHA256 = "ef356aae5f3fccfdec09673622538e73a3ca940e82981a2cd9019252d3115ba6"

    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"},
    )

@@ -161,132 +161,132 @@
 = %22d
-42122cd5db021e6b14a90a98ad1dd09412efb4c%22%0A    LLVM_SHA256 = %22ef356aae5f3fccfdec09673622538e73a3ca940e82981a2cd9019252d3115ba6
+8c09b7bbc09ca5c08299edbf7d32631d3e5bcb8%22%0A    LLVM_SHA256 = %229e4172006dc503beab1a16ba3a438509b10707452ef569a95f8b6ead1dc9d3af
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@d8c09b7bbc09