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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "4947ecf4e994fb72e90b8bf8d6ba110f7a862e1a"
    LLVM_SHA256 = "0f911122075012881eaee2189dacad8e02313bb26f3f69b8f3e340391fb846ed"

    tfrt_http_archive(
        name = name,
        sha256 = LLVM_SHA256,
        strip_prefix = "llvm-project-" + 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),
        ],
        link_files = {
            "//third_party/llvm:llvm.autogenerated.BUILD": "llvm/BUILD",
            "//third_party/mlir:BUILD": "mlir/BUILD",
            "//third_party/mlir:test.BUILD": "mlir/test/BUILD",
        },
    )

@@ -162,132 +162,132 @@
  = %22
-4947ecf4e994fb72e90b8bf8d6ba110f7a862e1a%22%0A    LLVM_SHA256 = %220f911122075012881eaee2189dacad8e02313bb26f3f69b8f3e340391fb846e
+321c2ea91cb1aed5dfbbdbb868d525ff64972398%22%0A    LLVM_SHA256 = %22fbd247a26cb339b6a7c9679ce1128bcc452a557590f1419546bc44ee554170d
 d%22%0A%0A

Integrate LLVM at llvm/llvm-project@321c2ea91cb1