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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "235fb602ed99c59f2a741533906c19280d791e18"
    LLVM_SHA256 = "3b239b1e5f6d928e2de27466760083623adb6a4794d47142a01af116fbb76bda"

    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
-235fb602ed99c59f2
+0
 a7
-4
 15
-339
+c1146868
 06
-c
 19
-280d791e18%22%0A    LLVM_SHA256 = %223b239b1e5f6d928e2de27466760083623adb6a4794d47142a01af116fbb76bda
+3878e876ed3d50144138263%22%0A    LLVM_SHA256 = %22b7c468b570cf079b22cc05bd248008cdf732936598efbc5893b583a7c508e9dc
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@0a715c114686