Geoffrey Martin-Noble | 552d3f8 | 2021-05-25 17:56:09 -0700 | [diff] [blame] | 1 | # Copyright 2019 The IREE Authors |
Geoffrey Martin-Noble | 15545b4 | 2019-11-09 16:40:38 -0800 | [diff] [blame] | 2 | # |
Geoffrey Martin-Noble | 552d3f8 | 2021-05-25 17:56:09 -0700 | [diff] [blame] | 3 | # Licensed under the Apache License v2.0 with LLVM Exceptions. |
| 4 | # See https://llvm.org/LICENSE.txt for license information. |
| 5 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Geoffrey Martin-Noble | 15545b4 | 2019-11-09 16:40:38 -0800 | [diff] [blame] | 6 | |
Stella Laurenzo | 1128d50 | 2019-10-07 14:34:41 -0700 | [diff] [blame] | 7 | # Workspace file for the IREE project. |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 8 | # buildozer: disable=positional-args |
| 9 | |
| 10 | workspace(name = "iree_core") |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 11 | |
| 12 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
Scott Todd | 69655bc | 2020-11-30 16:28:52 -0800 | [diff] [blame] | 13 | load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 14 | |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 15 | ############################################################################### |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 16 | # Skylib |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 17 | http_archive( |
| 18 | name = "bazel_skylib", |
Lei Zhang | b8bc9c9 | 2022-09-28 00:19:11 -0400 | [diff] [blame] | 19 | sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 20 | urls = [ |
Lei Zhang | b8bc9c9 | 2022-09-28 00:19:11 -0400 | [diff] [blame] | 21 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
| 22 | "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 23 | ], |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 24 | ) |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 25 | |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 26 | load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 27 | |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 28 | bazel_skylib_workspace() |
| 29 | ############################################################################### |
| 30 | |
| 31 | ############################################################################### |
Stella Laurenzo | 15d8ae4 | 2020-01-03 13:52:12 -0800 | [diff] [blame] | 32 | # llvm-project |
Geoffrey Martin-Noble | 10b3e1e | 2020-10-27 10:04:35 -0700 | [diff] [blame] | 33 | |
Geoffrey Martin-Noble | 7728573 | 2021-08-18 18:18:34 -0700 | [diff] [blame] | 34 | new_local_repository( |
| 35 | name = "llvm-raw", |
| 36 | build_file_content = "# empty", |
| 37 | path = "third_party/llvm-project", |
Geoffrey Martin-Noble | 10b3e1e | 2020-10-27 10:04:35 -0700 | [diff] [blame] | 38 | ) |
| 39 | |
Manish Gupta | d367741 | 2023-05-25 08:24:08 -0700 | [diff] [blame] | 40 | load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure") |
Geoffrey Martin-Noble | 10b3e1e | 2020-10-27 10:04:35 -0700 | [diff] [blame] | 41 | |
Scott Todd | 0636abd | 2024-09-18 18:58:34 -0700 | [diff] [blame] | 42 | llvm_configure( |
| 43 | name = "llvm-project", |
| 44 | # Keep this in sync with the targets in iree_llvm.cmake. |
| 45 | targets = [ |
| 46 | "AArch64", |
| 47 | "ARM", |
| 48 | "RISCV", |
| 49 | "X86", |
| 50 | "NVPTX", |
| 51 | "AMDGPU", |
| 52 | "WebAssembly", |
| 53 | ], |
| 54 | ) |
Geoffrey Martin-Noble | 10b3e1e | 2020-10-27 10:04:35 -0700 | [diff] [blame] | 55 | |
Stella Laurenzo | 15d8ae4 | 2020-01-03 13:52:12 -0800 | [diff] [blame] | 56 | ############################################################################### |
| 57 | |
| 58 | ############################################################################### |
Geoffrey Martin-Noble | f5b323e | 2021-01-12 18:32:08 -0800 | [diff] [blame] | 59 | # All other IREE submodule dependencies |
Scott Todd | 0d41620 | 2019-11-12 16:22:05 -0800 | [diff] [blame] | 60 | |
Stella Laurenzo | a9d23f6 | 2022-12-27 17:28:58 -0800 | [diff] [blame] | 61 | load("//build_tools/bazel:workspace.bzl", "configure_iree_cuda_deps", "configure_iree_submodule_deps") |
Geoffrey Martin-Noble | f5b323e | 2021-01-12 18:32:08 -0800 | [diff] [blame] | 62 | |
| 63 | configure_iree_submodule_deps() |
Scott Todd | 5404ad7 | 2024-06-06 09:58:23 -0700 | [diff] [blame] | 64 | |
Stella Laurenzo | a9d23f6 | 2022-12-27 17:28:58 -0800 | [diff] [blame] | 65 | configure_iree_cuda_deps() |
Nicolas Vasilache | 90baf39 | 2023-03-30 19:23:05 +0200 | [diff] [blame] | 66 | |
| 67 | ############################################################################### |
| 68 | maybe( |
| 69 | http_archive, |
Manish Gupta | d367741 | 2023-05-25 08:24:08 -0700 | [diff] [blame] | 70 | name = "llvm_zlib", |
| 71 | build_file = "@llvm-raw//utils/bazel/third_party_build:zlib-ng.BUILD", |
| 72 | sha256 = "e36bb346c00472a1f9ff2a0a4643e590a254be6379da7cddd9daeb9a7f296731", |
| 73 | strip_prefix = "zlib-ng-2.0.7", |
| 74 | urls = [ |
| 75 | "https://github.com/zlib-ng/zlib-ng/archive/refs/tags/2.0.7.zip", |
| 76 | ], |
| 77 | ) |
| 78 | |
| 79 | ############################################################################### |
| 80 | maybe( |
| 81 | http_archive, |
Nicolas Vasilache | 90baf39 | 2023-03-30 19:23:05 +0200 | [diff] [blame] | 82 | name = "llvm_zstd", |
| 83 | build_file = "@llvm-raw//utils/bazel/third_party_build:zstd.BUILD", |
| 84 | sha256 = "7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0", |
| 85 | strip_prefix = "zstd-1.5.2", |
| 86 | urls = [ |
Scott Todd | 5404ad7 | 2024-06-06 09:58:23 -0700 | [diff] [blame] | 87 | "https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz", |
Nicolas Vasilache | 90baf39 | 2023-03-30 19:23:05 +0200 | [diff] [blame] | 88 | ], |
| 89 | ) |