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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "2c3ca3b684bb2b188d977d47548e79dc559fb8ad"
    LLVM_SHA256 = "fd0d1909fac0b6fdeb6a600c7fba447993695bf87eb0d3763196571dbdd11003"

    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
-2c3ca3b684bb2b188d977d47548e79dc559fb8ad%22%0A    LLVM_SHA256 = %22fd0d1909fac0b6fdeb6a600c7fba447993695bf87eb0d3763196571dbdd11003
+3f2f23cca9abb3f8642e4c7199765de5898decd1%22%0A    LLVM_SHA256 = %22218818747b255bc00fb8121655220e29a6d778837d84fd89938aacdb17579d11
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@3f2f23cca9ab