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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "4348cd42c385e71b63e5da7e492172cff6a79d7b"
    LLVM_SHA256 = "52e110f9d1a196b596c235393739bb6967ecdb1bda5ffc90d0fa700d599b2c59"

    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:macos_build_fix.patch",
        link_files = {"//third_party/llvm:run_lit.sh": "mlir/run_lit.sh"},
    )

@@ -160,132 +160,132 @@
  = %22
-4348cd42c385e71b63e5da7e492172cff6a79d7b%22%0A    LLVM_SHA256 = %2252e110f9d1a196b596c235393739bb6967ecdb1bda5ffc90d0fa700d599b2c5
+7aafe467d2aa6307d34c5762b8c3bf843d713737%22%0A    LLVM_SHA256 = %22d2554c28a57dc6c5fdfe6f96e57c6416a47a92e359f420df7637cdc125a932a
 9%22%0A%0A

Integrate LLVM at llvm/llvm-project@7aafe467d2aa