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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "5527139302d9b0416b9fa7f1b84760d6acacda12"
    LLVM_SHA256 = "e27f90aaf40b10a4e8f2e4264084994bd06ebea56211550433908b29d143df92"

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

@@ -160,133 +160,133 @@
  = %22
-5527139302d9b0416b9fa7f1b84760d6acacda12%22%0A    LLVM_SHA256 = %22e27f90aaf40b10a4e8f2e4264084994bd06ebea56211550433908b29d143df92
+127d955441649e97411cc1299f39d37aa743c073%22%0A    LLVM_SHA256 = %22adbd26af850c5a28a04fa421d6c9e16684ab6dc2d6c6af9d7523cf8aab8035b7
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@127d95544164