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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "8aff88fd3a5f6f974f4ce62923981764fafbb820"
    LLVM_SHA256 = "e6885bef9e1cd6432d7684d35ce0181477f84269e2eedb94bad3c12e76198f5e"

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

@@ -161,132 +161,132 @@
 = %228
-aff88fd3a5f6f974f4ce62923981764fafbb820%22%0A    LLVM_SHA256 = %22e6885bef9e1cd6432d7684d35ce0181477f84269e2eedb94bad3c12e76198f5e
+353403f0833716098c71bebe74b619723cefb3f%22%0A    LLVM_SHA256 = %222c0de277485d55e7d0af8aac76c6949905c5152b49f61e888469190fca10ea13
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@8353403f0833