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

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

def repo(name):
    """Imports LLVM."""
    LLVM_COMMIT = "277f86d6106999ddbe3f2eb146f736c7feaab943"
    LLVM_SHA256 = "b1c7998ee68167ff685b069fbe43023f09b28e882ef9c85c8e6cce10f96dbad2"

    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:macos_build_fix.patch",
        link_files = {"//third_party/llvm:run_lit.sh": "mlir/run_lit.sh"},
    )

@@ -160,133 +160,133 @@
  = %22
-277f86d6106999ddbe3f2eb146f736c7feaab943%22%0A    LLVM_SHA256 = %22b1c7998ee68167ff685b069fbe43023f09b28e882ef9c85c8e6cce10f96dbad2
+def8b952ebc00b0ad0fa4196ae27b11a385087ad%22%0A    LLVM_SHA256 = %223cb23e8a980199a964750537aa9284aa45eeb875076ea365436218515d57baa1
 %22%0A%0A 

Integrate LLVM at llvm/llvm-project@def8b952ebc0