Move Bazel code from iree/ into build_tools/bazel/. (#9149)
Progress on https://github.com/google/iree/issues/8955. After this, the `iree/` directory will only contain the `test/` subdirectory, with minimal supporting build/test system files.
* Move iree/build_defs.oss.bzl to build_tools/bazel/.
Also alphabetized load() statements and added copyright headers to files that were missing them.
* Move config_settings from iree/BUILD.bazel to build_tools/bazel/.
Also cleaned up some related Bazel files.
* Set Bazel's default lit.cfg.py from //iree to //iree/test.
Compiler/ overrides it as needed. Only iree/test/ relies on the default.
diff --git a/BUILD.bazel b/BUILD.bazel
index 5af10f2..2133da5 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -4,24 +4,6 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-# Note that project-wide, bazel repo aliases are used. Various scripts and helpers operate on the
-# following prefixes textually, so avoid doing any systematic construction that would break the
-# matching.
-#
-# "@absl_py//absl/"
-# "@bazel_skylib//"
-# "@com_google_benchmark//"
-# "@cpuinfo//"
-# "@cuda//"
-# "@com_github_dvidelabs_flatcc//"
-# "@com_google_googletest//"
-# "@llvm-project//"
-# "@mlir-hlo//"
-# "@iree_pybind11//"
-# "@spirv_cross//"
-# "@vulkan_headers//"
-# "@com_github_yaml_libyaml//"
-
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
diff --git a/build_tools/BUILD b/build_tools/BUILD
index 3481f91..6a09e7f 100644
--- a/build_tools/BUILD
+++ b/build_tools/BUILD
@@ -15,8 +15,8 @@
cc_library(
name = "default_linkopts",
linkopts = select({
- "//iree:iree_is_msvc": [],
- "//iree:iree_is_android": [
+ "//build_tools/bazel:iree_is_msvc": [],
+ "//build_tools/bazel:iree_is_android": [
# Android provides its own pthreads support with no linking required.
],
"//conditions:default": [
@@ -29,8 +29,8 @@
cc_library(
name = "dl",
linkopts = select({
- "//iree:iree_is_msvc": [],
- "//iree:iree_is_android": [
+ "//build_tools/bazel:iree_is_msvc": [],
+ "//build_tools/bazel:iree_is_android": [
"-ldl",
],
"//conditions:default": [
diff --git a/iree/BUILD.bazel b/build_tools/bazel/BUILD.bazel
similarity index 71%
rename from iree/BUILD.bazel
rename to build_tools/bazel/BUILD.bazel
index 1ce917f..cf866f6 100644
--- a/iree/BUILD.bazel
+++ b/build_tools/bazel/BUILD.bazel
@@ -4,30 +4,12 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-# Main IREE build file.
-
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-exports_files(["lit.cfg.py"])
-
-# Enables the debug service and other profiling features.
-# $ bazel build --define=IREE_DEBUG=1 :some_target
-config_setting(
- name = "debug",
- define_values = {"IREE_DEBUG": "1"},
-)
-
-config_setting(
- name = "enable_tensorflow",
- define_values = {
- "iree_tensorflow": "true",
- },
-)
-
# Note that the "proper" way to do this is via a query on @bazel_tools,
# but as with so many things bazel, it doesn't work reliably across versions,
# variants, etc. So we just define our own since we also own the config
diff --git a/iree/build_defs.oss.bzl b/build_tools/bazel/build_defs.oss.bzl
similarity index 100%
rename from iree/build_defs.oss.bzl
rename to build_tools/bazel/build_defs.oss.bzl
diff --git a/build_tools/bazel/iree_lit_test.bzl b/build_tools/bazel/iree_lit_test.bzl
index f71c887..f97acd0 100644
--- a/build_tools/bazel/iree_lit_test.bzl
+++ b/build_tools/bazel/iree_lit_test.bzl
@@ -10,7 +10,7 @@
def iree_lit_test(
name,
- cfg = "//iree:lit.cfg.py",
+ cfg = "//iree/test:lit.cfg.py",
tools = None,
env = None,
**kwargs):
@@ -54,7 +54,7 @@
def iree_lit_test_suite(
name,
- cfg = "//iree:lit.cfg.py",
+ cfg = "//iree/test:lit.cfg.py",
tools = None,
env = None,
**kwargs):
diff --git a/compiler/src/iree/compiler/API/BUILD b/compiler/src/iree/compiler/API/BUILD
index 94d8f17..7f68ecd 100644
--- a/compiler/src/iree/compiler/API/BUILD
+++ b/compiler/src/iree/compiler/API/BUILD
@@ -1,7 +1,10 @@
-# NOTE: This must be BUILD.bazel (not BUILD) because otherwise, you can't
-# build python packages in this directory (which creates "build" directories)
-# on case-inensitive file systems.
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+# Copyright 2022 The IREE Authors
+#
+# Licensed under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD b/compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD
index 0655be9..672d4f6 100644
--- a/compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD
index c20d9d5..b95ff85 100644
--- a/compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Codegen/BUILD b/compiler/src/iree/compiler/Codegen/BUILD
index 18d39cd..402bba6 100644
--- a/compiler/src/iree/compiler/Codegen/BUILD
+++ b/compiler/src/iree/compiler/Codegen/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Codegen/Common/BUILD b/compiler/src/iree/compiler/Codegen/Common/BUILD
index 15be983..768b34f 100644
--- a/compiler/src/iree/compiler/Codegen/Common/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Common/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Codegen/Dialect/BUILD b/compiler/src/iree/compiler/Codegen/Dialect/BUILD
index 9162139..e9d4a91 100644
--- a/compiler/src/iree/compiler/Codegen/Dialect/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Dialect/BUILD
@@ -5,8 +5,8 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Codegen/Interfaces/BUILD b/compiler/src/iree/compiler/Codegen/Interfaces/BUILD
index c8f2dce..6484fca 100644
--- a/compiler/src/iree/compiler/Codegen/Interfaces/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Interfaces/BUILD
@@ -5,8 +5,8 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD b/compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD
index d1f3863..abe0b51 100644
--- a/compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD
+++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD b/compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD
index 7fa2d42..7a7d979 100644
--- a/compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD
+++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Codegen/SPIRV/BUILD b/compiler/src/iree/compiler/Codegen/SPIRV/BUILD
index 71ce4dc..496f44f 100644
--- a/compiler/src/iree/compiler/Codegen/SPIRV/BUILD
+++ b/compiler/src/iree/compiler/Codegen/SPIRV/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Codegen/Sandbox/BUILD b/compiler/src/iree/compiler/Codegen/Sandbox/BUILD
index 68771f3..6a2ef29 100644
--- a/compiler/src/iree/compiler/Codegen/Sandbox/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Sandbox/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD
index f8e4090..89fec5b 100644
--- a/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD
+++ b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Codegen/Transforms/BUILD b/compiler/src/iree/compiler/Codegen/Transforms/BUILD
index ecdb2b2..b773f2f 100644
--- a/compiler/src/iree/compiler/Codegen/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Codegen/Utils/BUILD b/compiler/src/iree/compiler/Codegen/Utils/BUILD
index fc5018b..26d3ea6 100644
--- a/compiler/src/iree/compiler/Codegen/Utils/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Utils/BUILD
@@ -6,7 +6,7 @@
# Utilities for working with IREE MLIR types.
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/ConstEval/BUILD b/compiler/src/iree/compiler/ConstEval/BUILD
index fc9cc64..92b5c45 100644
--- a/compiler/src/iree/compiler/ConstEval/BUILD
+++ b/compiler/src/iree/compiler/ConstEval/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
index 1c4c335..ec4e072 100644
--- a/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Flow/IR/BUILD b/compiler/src/iree/compiler/Dialect/Flow/IR/BUILD
index 83d1ad9..fe15c13 100644
--- a/compiler/src/iree/compiler/Dialect/Flow/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/IR/BUILD
@@ -4,10 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD
index 1d4d098..e4452c8 100644
--- a/compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD
index 00f815a..f6e18bf 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD
index dab3e33..292353f 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
index d5297c6..f8b7b53 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
index f84bf37..8a658ef 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD
index 1b8698f..82e07fb 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
index f416de3..2d01620 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/IR/BUILD b/compiler/src/iree/compiler/Dialect/HAL/IR/BUILD
index 849f2b7..b696315 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/IR/BUILD
@@ -4,10 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/BUILD
index 95518de..16b6567 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/BUILD
index d4605e0..ffcc5b2 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library", "platform_trampoline_deps")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library", "platform_trampoline_deps")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
index f13471f..38705f6 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
index f2ce29d..f6232f4 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD
index bcb3e60..1d1ddcb 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/BUILD
index 475997e..67fb245 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD
index 64154da..82c1822 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD
index 61fdeb9..1929ec1 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD
index 4ba1496..b96282c 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD
index 42ea841..58f0315 100644
--- a/compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD
index df2bf36..ea2d9a0 100644
--- a/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD
index eb2efe5..33f6fbb 100644
--- a/compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD
@@ -4,10 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
index cb99b03..ac3b93d 100644
--- a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
index 12d079a..cedcbd8 100644
--- a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
index 33045df..a2518c3 100644
--- a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD
index e176e35..0603239 100644
--- a/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD
@@ -4,10 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
index 02fe125..f589085 100644
--- a/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD
index b13786a..51de3a4 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD
index a7c2fcf..a3f5730 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
index b5e1b00..3e4881a 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
index 487614d..d950761 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
index 2027a99..ef2359e 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
index 3774e88..8261761 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/IR/BUILD b/compiler/src/iree/compiler/Dialect/Stream/IR/BUILD
index bdca098..6a5764f 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/IR/BUILD
@@ -4,10 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD
index 5924f2f..6be0b6b 100644
--- a/compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
index 2335eeb..affc9e5 100644
--- a/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD
index 9839a19..569ae8c 100644
--- a/compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD
index d5aee20..532e06a 100644
--- a/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD
index 59e1b17..b6c7e63 100644
--- a/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD
index fe8fd36..9dbd5a5 100644
--- a/compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Util/IR/BUILD b/compiler/src/iree/compiler/Dialect/Util/IR/BUILD
index 48d058f..5b9b117 100644
--- a/compiler/src/iree/compiler/Dialect/Util/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/IR/BUILD
@@ -4,10 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD
index ef220c5..81535ef 100644
--- a/compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD
index 406c963..64265ec 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD
@@ -1,4 +1,10 @@
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+# Copyright 2021 The IREE Authors
+#
+# Licensed under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD
index 28c8fa8..8c338f4 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
index 3857302..dcd48d3 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
index 96aad48..938d927 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
index bc0b5d5..dd7898f 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
index e28d016..fbc2f6d 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD
index 27de393..cce458c 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
index 8670397..3be1ef5 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
@@ -4,9 +4,9 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
-load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
+load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/IR/BUILD b/compiler/src/iree/compiler/Dialect/VM/IR/BUILD
index 7bd1227..ebe6bbb 100644
--- a/compiler/src/iree/compiler/Dialect/VM/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/IR/BUILD
@@ -4,10 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library", "iree_tablegen_doc")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Target/BUILD b/compiler/src/iree/compiler/Dialect/VM/Target/BUILD
index 661873d..20b348f 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Target/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD
index f7db7a4..1cfa7f7 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD
@@ -1,4 +1,10 @@
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+# Copyright 2020 The IREE Authors
+#
+# Licensed under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD b/compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD
index c5dc755..95e36d2 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD
index 41c1f20..600167f 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/VM/Utils/BUILD b/compiler/src/iree/compiler/Dialect/VM/Utils/BUILD
index 94ff8b3..83140ab 100644
--- a/compiler/src/iree/compiler/Dialect/VM/Utils/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Utils/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD
index 85383de..4e8bab4 100644
--- a/compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD
@@ -5,8 +5,8 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("@llvm-project//mlir:tblgen.bzl", "td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD
index fbb0f21..5454646 100644
--- a/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
+load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD
index 5b7dbaa..cbbd06f 100644
--- a/compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD
index 3eeb01c..f0601c1 100644
--- a/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD
@@ -4,9 +4,9 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
-load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
+load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/InputConversion/Common/BUILD b/compiler/src/iree/compiler/InputConversion/Common/BUILD
index 7fb0807..6a30a3a 100644
--- a/compiler/src/iree/compiler/InputConversion/Common/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/Common/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/InputConversion/MHLO/BUILD b/compiler/src/iree/compiler/InputConversion/MHLO/BUILD
index 0ab5620..0cbe4c0 100644
--- a/compiler/src/iree/compiler/InputConversion/MHLO/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/MHLO/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/InputConversion/TMTensor/BUILD b/compiler/src/iree/compiler/InputConversion/TMTensor/BUILD
index f18b33f..4924b3d 100644
--- a/compiler/src/iree/compiler/InputConversion/TMTensor/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/TMTensor/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD b/compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD
index 3e6ae41..dbbb01a 100644
--- a/compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD
@@ -6,9 +6,9 @@
# Tests for common transforms.
-load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/InputConversion/TOSA/BUILD b/compiler/src/iree/compiler/InputConversion/TOSA/BUILD
index 626c435..a58c4e5 100644
--- a/compiler/src/iree/compiler/InputConversion/TOSA/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/TOSA/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
diff --git a/compiler/src/iree/compiler/Pipelines/BUILD b/compiler/src/iree/compiler/Pipelines/BUILD
index b7986d5..3cb83cb 100644
--- a/compiler/src/iree/compiler/Pipelines/BUILD
+++ b/compiler/src/iree/compiler/Pipelines/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Translation/BUILD b/compiler/src/iree/compiler/Translation/BUILD
index 71d156d..d664e0b 100644
--- a/compiler/src/iree/compiler/Translation/BUILD
+++ b/compiler/src/iree/compiler/Translation/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/compiler/src/iree/compiler/Utils/BUILD b/compiler/src/iree/compiler/Utils/BUILD
index fad1201..f277a2a 100644
--- a/compiler/src/iree/compiler/Utils/BUILD
+++ b/compiler/src/iree/compiler/Utils/BUILD
@@ -6,7 +6,7 @@
# Utilities for working with IREE MLIR types.
-load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/build_tools/bazel/BUILD b/iree/BUILD
similarity index 88%
rename from build_tools/bazel/BUILD
rename to iree/BUILD
index f0a1dbd..2133da5 100644
--- a/build_tools/bazel/BUILD
+++ b/iree/BUILD
@@ -9,5 +9,3 @@
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-
-exports_files(["bazel_toolchains.patch"])
diff --git a/iree/CMakeLists.txt b/iree/CMakeLists.txt
new file mode 100644
index 0000000..0e07628
--- /dev/null
+++ b/iree/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Copyright 2022 The IREE Authors
+#
+# Licensed under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+# Intentionally empty - the test/ directory is optionally included by the root.
diff --git a/iree/test/BUILD b/iree/test/BUILD
index 236a474..7b73871 100644
--- a/iree/test/BUILD
+++ b/iree/test/BUILD
@@ -9,3 +9,5 @@
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
+
+exports_files(["lit.cfg.py"])
diff --git a/iree/lit.cfg.py b/iree/test/lit.cfg.py
similarity index 91%
rename from iree/lit.cfg.py
rename to iree/test/lit.cfg.py
index 675e1db..77a0498 100644
--- a/iree/lit.cfg.py
+++ b/iree/test/lit.cfg.py
@@ -10,9 +10,6 @@
# runlit.site.cfg.py which in turn is evaluated by lit.py.
# pylint: disable=undefined-variable
-# NOTE: Each top-level which includes lit tests needs a copy of this file.
-# Please keep up to date.
-
import os
import tempfile
diff --git a/runtime/bindings/tflite/BUILD b/runtime/bindings/tflite/BUILD
index c393d74..1f137c9 100644
--- a/runtime/bindings/tflite/BUILD
+++ b/runtime/bindings/tflite/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/base/BUILD b/runtime/src/iree/base/BUILD
index b85f964..2b36066 100644
--- a/runtime/src/iree/base/BUILD
+++ b/runtime/src/iree/base/BUILD
@@ -6,7 +6,7 @@
# Common types and utilities used in the IREE codebase.
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
@@ -163,7 +163,7 @@
srcs = ["logging.cc"],
hdrs = ["logging.h"],
linkopts = select({
- "//iree:iree_is_android": [
+ "//build_tools/bazel:iree_is_android": [
"-llog",
],
"//conditions:default": [],
diff --git a/runtime/src/iree/base/internal/BUILD b/runtime/src/iree/base/internal/BUILD
index 657037c..9444764 100644
--- a/runtime/src/iree/base/internal/BUILD
+++ b/runtime/src/iree/base/internal/BUILD
@@ -8,9 +8,9 @@
# These are not part of the IREE API. Though they may be used by external
# projects their API may change at any time.
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
-load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
load("//build_tools/bazel:cc_binary_benchmark.bzl", "cc_binary_benchmark")
+load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/base/internal/flatcc/BUILD b/runtime/src/iree/base/internal/flatcc/BUILD
index c7a93dd..58349d7 100644
--- a/runtime/src/iree/base/internal/flatcc/BUILD
+++ b/runtime/src/iree/base/internal/flatcc/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
load("//build_tools/bazel:iree_flatcc.bzl", "iree_flatbuffer_c_library")
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/base/testing/BUILD b/runtime/src/iree/base/testing/BUILD
index abc160b..4f27a46 100644
--- a/runtime/src/iree/base/testing/BUILD
+++ b/runtime/src/iree/base/testing/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_test")
load("//build_tools/embed_data:build_defs.bzl", "c_embed_data")
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/builtins/device/BUILD b/runtime/src/iree/builtins/device/BUILD
index f670428..0aba13c 100644
--- a/runtime/src/iree/builtins/device/BUILD
+++ b/runtime/src/iree/builtins/device/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/builtins/device/tools/BUILD b/runtime/src/iree/builtins/device/tools/BUILD
index de878d0..b1e4245 100644
--- a/runtime/src/iree/builtins/device/tools/BUILD
+++ b/runtime/src/iree/builtins/device/tools/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_test")
load("//build_tools/bazel:cc_binary_benchmark.bzl", "cc_binary_benchmark")
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/BUILD b/runtime/src/iree/hal/BUILD
index 97d9270..1bc04f2 100644
--- a/runtime/src/iree/hal/BUILD
+++ b/runtime/src/iree/hal/BUILD
@@ -8,7 +8,7 @@
# Subdirectories contain implementations for different hardware and
# software backends.
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/drivers/BUILD b/runtime/src/iree/hal/drivers/BUILD
index cdf2b78..8bd6bae 100644
--- a/runtime/src/iree/hal/drivers/BUILD
+++ b/runtime/src/iree/hal/drivers/BUILD
@@ -5,7 +5,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("@bazel_skylib//rules:common_settings.bzl", "string_list_flag")
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/dylib/registration/BUILD b/runtime/src/iree/hal/dylib/registration/BUILD
index 9524d46..d689b5b 100644
--- a/runtime/src/iree/hal/dylib/registration/BUILD
+++ b/runtime/src/iree/hal/dylib/registration/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/local/BUILD b/runtime/src/iree/hal/local/BUILD
index 9e2a56a..87f3d4c 100644
--- a/runtime/src/iree/hal/local/BUILD
+++ b/runtime/src/iree/hal/local/BUILD
@@ -7,7 +7,7 @@
# Default implementations for HAL types that use the host resources.
# These are generally just wrappers around host heap memory and host threads.
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
load("//build_tools/bazel:cc_binary_benchmark.bzl", "cc_binary_benchmark")
package(
diff --git a/runtime/src/iree/hal/local/elf/BUILD b/runtime/src/iree/hal/local/elf/BUILD
index f5400f9..6ff3912 100644
--- a/runtime/src/iree/hal/local/elf/BUILD
+++ b/runtime/src/iree/hal/local/elf/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
load("//build_tools/bazel:native_binary.bzl", "native_test")
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/local/loaders/BUILD b/runtime/src/iree/hal/local/loaders/BUILD
index 9fd6435..5172d95 100644
--- a/runtime/src/iree/hal/local/loaders/BUILD
+++ b/runtime/src/iree/hal/local/loaders/BUILD
@@ -7,7 +7,7 @@
# Default implementations for HAL types that use the host resources.
# These are generally just wrappers around host heap memory and host threads.
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/utils/BUILD b/runtime/src/iree/hal/utils/BUILD
index e01552a..7b3015b 100644
--- a/runtime/src/iree/hal/utils/BUILD
+++ b/runtime/src/iree/hal/utils/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
load("//build_tools/bazel:cc_binary_benchmark.bzl", "cc_binary_benchmark")
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/vmvx/registration/BUILD b/runtime/src/iree/hal/vmvx/registration/BUILD
index 7390db8..ff2410a 100644
--- a/runtime/src/iree/hal/vmvx/registration/BUILD
+++ b/runtime/src/iree/hal/vmvx/registration/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/vulkan/BUILD b/runtime/src/iree/hal/vulkan/BUILD
index 7c5d91a..88881ff 100644
--- a/runtime/src/iree/hal/vulkan/BUILD
+++ b/runtime/src/iree/hal/vulkan/BUILD
@@ -6,7 +6,7 @@
# HAL implementation using Vulkan and (likely) SPIR-V executables.
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/vulkan/registration/BUILD b/runtime/src/iree/hal/vulkan/registration/BUILD
index b2f95fd..f5cac96 100644
--- a/runtime/src/iree/hal/vulkan/registration/BUILD
+++ b/runtime/src/iree/hal/vulkan/registration/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/hal/vulkan/util/BUILD b/runtime/src/iree/hal/vulkan/util/BUILD
index c57de01..27337c1 100644
--- a/runtime/src/iree/hal/vulkan/util/BUILD
+++ b/runtime/src/iree/hal/vulkan/util/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/modules/check/BUILD b/runtime/src/iree/modules/check/BUILD
index d80f0de..d85bd1d 100644
--- a/runtime/src/iree/modules/check/BUILD
+++ b/runtime/src/iree/modules/check/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/modules/hal/BUILD b/runtime/src/iree/modules/hal/BUILD
index 9afa643..62cadbe 100644
--- a/runtime/src/iree/modules/hal/BUILD
+++ b/runtime/src/iree/modules/hal/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/modules/vmvx/BUILD b/runtime/src/iree/modules/vmvx/BUILD
index 1a49b24..3f20c4a 100644
--- a/runtime/src/iree/modules/vmvx/BUILD
+++ b/runtime/src/iree/modules/vmvx/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/runtime/BUILD.bazel b/runtime/src/iree/runtime/BUILD.bazel
index 2c435fb..1c9443b 100644
--- a/runtime/src/iree/runtime/BUILD.bazel
+++ b/runtime/src/iree/runtime/BUILD.bazel
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/runtime/demo/BUILD b/runtime/src/iree/runtime/demo/BUILD
index a28d747..48f0c70 100644
--- a/runtime/src/iree/runtime/demo/BUILD
+++ b/runtime/src/iree/runtime/demo/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:native_binary.bzl", "native_test")
package(
diff --git a/runtime/src/iree/runtime/testdata/BUILD b/runtime/src/iree/runtime/testdata/BUILD
index 0b88c0f..e0f1ec4 100644
--- a/runtime/src/iree/runtime/testdata/BUILD
+++ b/runtime/src/iree/runtime/testdata/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:iree_bytecode_module.bzl", "iree_bytecode_module")
package(
diff --git a/runtime/src/iree/schemas/BUILD b/runtime/src/iree/schemas/BUILD
index 80acb67..6be10e7 100644
--- a/runtime/src/iree/schemas/BUILD
+++ b/runtime/src/iree/schemas/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_build_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_build_test")
load("//build_tools/bazel:iree_flatcc.bzl", "iree_flatbuffer_c_library")
package(
diff --git a/runtime/src/iree/task/BUILD b/runtime/src/iree/task/BUILD
index 37c5783..d8e8400 100644
--- a/runtime/src/iree/task/BUILD
+++ b/runtime/src/iree/task/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/task/testing/BUILD b/runtime/src/iree/task/testing/BUILD
index c355f6b..0868a4c 100644
--- a/runtime/src/iree/task/testing/BUILD
+++ b/runtime/src/iree/task/testing/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/testing/BUILD b/runtime/src/iree/testing/BUILD
index 31be851..fcbaeb1 100644
--- a/runtime/src/iree/testing/BUILD
+++ b/runtime/src/iree/testing/BUILD
@@ -6,7 +6,7 @@
# Testing utilities for IREE.
-load("//iree:build_defs.oss.bzl", "iree_runtime_cc_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_runtime_cc_library")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/tools/utils/BUILD b/runtime/src/iree/tools/utils/BUILD
index 21c9640..450d418 100644
--- a/runtime/src/iree/tools/utils/BUILD
+++ b/runtime/src/iree/tools/utils/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
package(
default_visibility = ["//visibility:public"],
diff --git a/runtime/src/iree/vm/BUILD b/runtime/src/iree/vm/BUILD
index b789875..9fade44 100644
--- a/runtime/src/iree/vm/BUILD
+++ b/runtime/src/iree/vm/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_runtime_cc_library", "iree_runtime_cc_test")
load("//build_tools/bazel:iree_bytecode_module.bzl", "iree_bytecode_module")
load("//build_tools/bazel:cc_binary_benchmark.bzl", "cc_binary_benchmark")
# load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
diff --git a/runtime/src/iree/vm/test/BUILD b/runtime/src/iree/vm/test/BUILD
index df4cc57..c0e3029 100644
--- a/runtime/src/iree/vm/test/BUILD
+++ b/runtime/src/iree/vm/test/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:iree_bytecode_module.bzl", "iree_bytecode_module")
load("//build_tools/embed_data:build_defs.bzl", "c_embed_data")
diff --git a/samples/custom_modules/BUILD b/samples/custom_modules/BUILD
index bb1c284..303c910 100644
--- a/samples/custom_modules/BUILD
+++ b/samples/custom_modules/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:iree_bytecode_module.bzl", "iree_bytecode_module")
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
package(
default_visibility = ["//visibility:public"],
diff --git a/samples/simple_embedding/BUILD b/samples/simple_embedding/BUILD
index 0bef44c..f648e34 100644
--- a/samples/simple_embedding/BUILD
+++ b/samples/simple_embedding/BUILD
@@ -4,7 +4,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content")
load("//build_tools/bazel:iree_bytecode_module.bzl", "iree_bytecode_module")
load("//build_tools/bazel:native_binary.bzl", "native_test")