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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "88a48999d249a5478d813596d1cfac6ba82126dc"
    LLVM_SHA256 = "b94a0c9f7bb201f5248fa2f303221f082a511a474a2acaf086d45c9c464bf4d1"

    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
-88a48999d249a5478d813596d1cfac6ba82126dc%22%0A    LLVM_SHA256 = %22b94a0c9f7bb201f5248fa2f303221f082a511a474a2acaf086d45c9c464bf4d
+df47368d406aa4b9aaa7dd49026a0eff9763e6ca%22%0A    LLVM_SHA256 = %22b46f7a7cd25026ae8e26777473104ac0b6a1e99c318312d98093708d6547032
 1%22%0A%0A

Integrate LLVM at llvm/llvm-project@df47368d406a