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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "73919a87e9a6f8cfa619e297c0c52e0e68f6c532"
    LLVM_SHA256 = "0537b8a3a2d90e4023ca1abf0d89f3fa9dd728fb0f69e0c610e65ed34bb2b668"

    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
-73919a87e9a6f8cfa619e297c0c52e0e68f6c532%22%0A    LLVM_SHA256 = %220537b8a3a2d90e4023ca1abf0d89f3fa9dd728fb0f69e0c610e65ed34bb2b668
+026fac2a14cdf0b904ec83044d1f271e1ba2c5f9%22%0A    LLVM_SHA256 = %225ad28384c54fa6acfe4e624bd0bf9cf173bec7c542c416db08e7917f03ab1fc1
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@026fac2a14cd