text: """Provides the repository macro to import LLVM."""
  
  load("//third_party:repo.bzl", "tf_http_archive")
  
  def repo(name):
      """Imports LLVM."""
      LLVM_COMMIT = "4504e1134c9118f3c322685f8a90129e09bab92c"
      LLVM_SHA256 = "2b1d7a96ff37600cae12d2ed51b9f0554b1bbc6511ffe51ac7525928b29bab44"
  
      tf_http_archive(
          name = name,
          sha256 = LLVM_SHA256,
          strip_prefix = "llvm-project-" + 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),
          ],
          link_files = {
              "//third_party/llvm:llvm.autogenerated.BUILD": "llvm/BUILD",
              "//third_party/mlir:BUILD": "mlir/BUILD",
              "//third_party/mlir:build_defs.bzl": "mlir/build_defs.bzl",
              "//third_party/mlir:linalggen.bzl": "mlir/linalggen.bzl",
              "//third_party/mlir:tblgen.bzl": "mlir/tblgen.bzl",
              "//third_party/mlir:test.BUILD": "mlir/test/BUILD",
          },
      )
  