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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "4fedd4be385e6502a7806df87a3cdd02f99bbcba"
    LLVM_SHA256 = "6b55c38a376a65631c04e4d5fc70a60faa3f92d2de6fe5f58b75e19f62b3ce9a"

    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,133 +160,133 @@
  = %22
-4fedd4be385e6502a7806df87a3cdd02f99bbcba%22%0A    LLVM_SHA256 = %226b55c38a376a65631c04e4d5fc70a60faa3f92d2de6fe5f58b75e19f62b3ce9a
+6d702a1e6a069e22e4b7f679a408e95bcc7db66c%22%0A    LLVM_SHA256 = %2254e3f6c37876ea54d2a74aa769e7d213b8b18c254deb36906d89c8dc7d658f89
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@6d702a1e6a06