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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "1f06398e96d4508d22f42b760f70eb5d4e7b1dc9"
    LLVM_SHA256 = "84bd02a75966a1af45bf4556484817f9c4621a045686f7d1f32b034dc1c784c0"

    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:infer_type.patch",  # TODO(b/231285230): remove once resolved
            "//third_party/llvm:macos_build_fix.patch",
        ],
        link_files = {"//third_party/llvm:run_lit.sh": "mlir/run_lit.sh"},
    )

@@ -160,133 +160,133 @@
  = %22
-1f06398e96d4508d22f42b760f70eb5d4e7b1dc9%22%0A    LLVM_SHA256 = %2284bd02a75966a1af45bf4556484817f9c4621a045686f7d1f32b034dc1c784c0
+b7c8c4d8cf07d2e9e8cd157bccc8bd9e7c76415a%22%0A    LLVM_SHA256 = %22e8882afe1aad217eb8727fdc5492463adac8eae175872b7760236dafe0f19d3c
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@b7c8c4d8cf07