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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "567a979ea8099b221af9dae08f1f4973c8c2f003"
    LLVM_SHA256 = "f016b755ea51d7df41f75d86fca3ee2e5d4e1f2f8f85df13189ea4f469bfb2a0"

    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
-567a979ea8099b221af9dae08f1f4973c8c2f003%22%0A    LLVM_SHA256 = %22f016b755ea51d7df41f75d86fca3ee2e5d4e1f2f8f85df13189ea4f469bfb2a0
+c50eec400c0edc73eec3c9e97b5c030492cb787f%22%0A    LLVM_SHA256 = %229b7c03fffcbca3e71484dc3bf1060291f187bf18250df9aa18484ab58cf2ccd4
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@c50eec400c0e