| """Provides the repository macro to import LLVM.""" |
| |
| load("//third_party:repo.bzl", "tf_http_archive") |
| |
| def repo(name): |
| """Imports LLVM.""" |
| LLVM_COMMIT = "494e77138c2e53961c43fe6957142d4f90034f98" |
| LLVM_SHA256 = "a1fb353141d25de395741ae8a5b8481a321dff6d17070dff72d286b8e901041a" |
| |
| 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:test.BUILD": "mlir/test/BUILD", |
| }, |
| ) |