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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "1ea7b9c6ee6420dd6e87489534f44b92e1b6f220"
    LLVM_SHA256 = "22317ef1d2dce046911f4eef3ac96d54fb5475054abe82126578c4f6ab56dad6"

    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
-1ea7b9c6ee6420dd6e87489534f44b92e1b6f220%22%0A    LLVM_SHA256 = %2222317ef1d2dce046911f4eef3ac96d54fb5475054abe82126578c4f6ab56dad6
+0538e5431afdb1fa05bdcedf70ee502ccfcd112a%22%0A    LLVM_SHA256 = %2201f168b1a8798e652a04f1faecc3d3c631ff12828b89c65503f39b0a0d6ad048
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@0538e5431afd