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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "6706a4720ffc229eb0b606728b26e988a98c6262"
    LLVM_SHA256 = "ecd21ba9aa0fcde7f6cf38175eef2893e4a840341de08c6604e7d1615c775f59"

    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:BUILD.bazel",
        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
-6706a4720ffc229eb0b606728b26e988a98c6262%22%0A    LLVM_SHA256 = %22ecd21ba9aa0fcde7f6cf38175eef2893e4a840341de08c6604e7d1615c775f59
+3bdf738d1b7e22921137dc4492f09064d683f8a2%22%0A    LLVM_SHA256 = %2281db81a043dc67a56cf2d53000b305c0759349e42680337670e1f07485c46b32
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@3bdf738d1b7e