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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "625796f408cc733f64aadd76171f13390217c201"
    LLVM_SHA256 = "5ade1521fc3a4f025644707e25aaee7055b4ffdf95bbef5094c2cf624f7479bd"

    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
-625796f408cc733f64aadd76171f13390217c201%22%0A    LLVM_SHA256 = %225ade1521fc3a4f025644707e25aaee7055b4ffdf95bbef5094c2cf624f7479bd
+e07a7040d9c6dbdd71e55d1153bfe1357079e511%22%0A    LLVM_SHA256 = %22004147901d4725b45eaa724b2cb511989eb2d031146f876ba1b4327b5a5e053f
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@e07a7040d9c6