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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "aa58b7b1e30fbbd9c8c2bf6ba291f1742f53afed"
    LLVM_SHA256 = "06b852838ad07aade4a3365c656b59c5d63ddd2f52a787b45c3bc23121d1fd5c"

    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"},
    )

@@ -160,133 +160,133 @@
  = %22
-aa58b7b1e30fbbd9c8c2bf6ba291f1742f53afed%22%0A    LLVM_SHA256 = %2206b852838ad07aade4a3365c656b59c5d63ddd2f52a787b45c3bc23121d1fd5c
+e9fa18637d6f9d1d40ff1cb48f802d6da23b3b8e%22%0A    LLVM_SHA256 = %22d1c9f975d31167f649fa21655449389d9ea7e90f57459509b0d5957b5da39591
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@e9fa18637d6f