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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "40d85f16c45e09c1e280bcb8e63342392036f1eb"
    LLVM_SHA256 = "18ab1503bfc9a032ce566f4b4a43b2ccf9a73602b15b2e0e26ba42904d5ad6fa"

    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:BUILD.bazel",
        patch_file = "//third_party/llvm:macos_build_fix.patch",
        link_files = {"//third_party/llvm:run_lit.sh": "mlir/run_lit.sh"},
    )

@@ -160,133 +160,133 @@
  = %22
-40d85f16c45e09c1e280bcb8e63342392036f1eb%22%0A    LLVM_SHA256 = %2218ab1503bfc9a032ce566f4b4a43b2ccf9a73602b15b2e0e26ba42904d5ad6fa
+564e082d0954e0beebfff994ac03471d926cd1d1%22%0A    LLVM_SHA256 = %227480a29ae37e692c3c7851750fdd137c10eb711b069e8f51cfd75672e44f40f6
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@564e082d0954