Updates LLVM usage to match [9b302513f6d8](https://github.com/llvm/llvm-project/commit/9b302513f6d8) PiperOrigin-RevId: 361120223 Change-Id: I118b5f9c1aef178ecc42f01e0f53524d55599a92
24 lines
931 B
Python
24 lines
931 B
Python
"""Provides the repository macro to import LLVM."""
|
|
|
|
load("//third_party:repo.bzl", "tf_http_archive")
|
|
|
|
def repo(name):
|
|
"""Imports LLVM."""
|
|
LLVM_COMMIT = "9b302513f6d82f0ca989b3bb1f5ffc592ed866b7"
|
|
LLVM_SHA256 = "ea883ecae163bee529ec3ca1a6d19679082eff74de01a3d8da66703a5efb6091"
|
|
|
|
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",
|
|
},
|
|
)
|