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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "7059a6c32cfad8f272fad47265e3890cd7a1a7e1"
    LLVM_SHA256 = "867868333acbd89d95f9a9fcfa640902de17bf9b80e24eeda88c50a409bcffa4"

    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:build.patch",
            "//third_party/llvm:mathextras.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
-7059a6c32cfad8f272fad47265e3890cd7a1a7e1%22%0A    LLVM_SHA256 = %22867868333acbd89d95f9a9fcfa640902de17bf9b80e24eeda88c50a409bcffa4
+9e088effae5f1db520f24403233b908d31e0695a%22%0A    LLVM_SHA256 = %2231849644712c05d3427a7d0528094080dc49a3ada621e78eb09911d22833d96c
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@9e088effae5f