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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "ef110a491f702e84d3f97e7cde6dacea99fd238d"
    LLVM_SHA256 = "dc22fde6e215b60b760c9b8508da779c459446481b81204934dc9bbd354f15fe"

    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
-ef110a491f702e84d3f97e7cde6dacea99fd238d%22%0A    LLVM_SHA256 = %22dc22fde6e215b60b760c9b8508da779c459446481b81204934dc9bbd354f15fe
+7ff0ca1a4df85155863dcb15c8f38337d73451e2%22%0A    LLVM_SHA256 = %2262b9b5e43194362949e3bc975215fe1b9f8e985303475e8d586e7b7a156ebb44
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@7ff0ca1a4df8