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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "5af9e648ae10c50d94ab169f65907e12f210ec99"
    LLVM_SHA256 = "44417364e1c2b30d57f9e4c958637ec5a14ca9cc5f81b1d9f050a35498a564cc"

    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
-5af9e648ae10c50d94ab169f65907e12f210ec99%22%0A    LLVM_SHA256 = %2244417364e1c2b30d57f9e4c958637ec5a14ca9cc5f81b1d9f050a35498a564cc
+aee2a35ac4ab4fe62bb0ce4e314966ab9207efd1%22%0A    LLVM_SHA256 = %22348058d7034aac64d7f58ba7711b6fde5d5b3d1bff36f1099fabc9a5c507961e
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@aee2a35ac4ab