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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "8ae9cf550b60f25be8d7bb21ee61af2fce5e317b"
    LLVM_SHA256 = "21e8371ba788287e4ad8b6253f70201b0b7623ab19ab802bf3fb870026c8a22d"

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

@@ -160,133 +160,133 @@
  = %22
-8ae9cf550b60f25be8d7bb21ee61af2fce5e317b%22%0A    LLVM_SHA256 = %2221e8371ba788287e4ad8b6253f70201b0b7623ab19ab802bf3fb870026c8a22d
+62c19284371c3b90fc818b883ab4ef771e6aa362%22%0A    LLVM_SHA256 = %224994219ae41f3d80a7119d23c2885430362e4e407db52abbf4e4c90ec378d183
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@62c19284371c