Move iree/compiler to top-level compiler/. (#9022)
* Source files are clean renames (no changes).
* CMake files should be mostly clean renames (just a changed comment about the file path in each).
* Several bazel fixes. Mainly introducing trampoline macros iree_compiler_cc_library, iree_gentbl_cc_library, iree_td_library that inject appropriate includes and deps. And platform_trampoline_deps now takes a repo relative package (vs an //iree relative).
* Uses the CMake "defs" library as done in samples. This is a bit different/better than what was done for runtime/, so I also fixed that one to be the same. So we now have implicit iree::compiler::defs, iree::runtime::defs and iree::samples::defs targets that do the right thing if depended on.
* Re-rigs some absolute paths in the iree-compiler python package build and gets that working in the new layout.
* All deep BUILD files (below iree/compiler/src) were updated with just a combination of sed commands followed by a buildifier fix to clean everything up. I didn't manually tweak any of them (with the exception of the platform_trampoline_deps change mentioned above, in one place).
* Also removes some obsolete "non_darwin" bazelrc thing. I'm not sure why it started yelling at me now (about some bad flag/packages). Folks may need to manually remove those lines from their configured.bazelrc or rerun configure_bazel.py.
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 0aac245..b101f0d 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -60,17 +60,17 @@
/iree/ @benvanik
# Compiler
-/iree/compiler/Codegen/ @MaheshRavishankar
-/iree/compiler/Codegen/LLVMCPU/ @hanhanW @MaheshRavishankar
-/iree/compiler/Codegen/LLVMGPU/ @MaheshRavishankar @ThomasRaoux
-/iree/compiler/Codegen/Sandbox/ @hanhanW @MaheshRavishankar
-/iree/compiler/Codegen/SPIRV/ @antiagainst @MaheshRavishankar
-/iree/compiler/ConstEval/ @stellaraccident
-/iree/compiler/Dialect/Flow/ @MaheshRavishankar
-/iree/compiler/Dialect/Vulkan/ @antiagainst
-/iree/compiler/InputConversion/ @MaheshRavishankar @stellaraccident
-/iree/compiler/InputConversion/MHLO @hanhanW @MaheshRavishankar @rsuderman
-/iree/compiler/InputConversion/TOSA @MaheshRavishankar @rsuderman
+/compiler/Codegen/ @MaheshRavishankar
+/compiler/Codegen/LLVMCPU/ @hanhanW @MaheshRavishankar
+/compiler/Codegen/LLVMGPU/ @MaheshRavishankar @ThomasRaoux
+/compiler/Codegen/Sandbox/ @hanhanW @MaheshRavishankar
+/compiler/Codegen/SPIRV/ @antiagainst @MaheshRavishankar
+/compiler/ConstEval/ @stellaraccident
+/compiler/Dialect/Flow/ @MaheshRavishankar
+/compiler/Dialect/Vulkan/ @antiagainst
+/compiler/InputConversion/ @MaheshRavishankar @stellaraccident
+/compiler/InputConversion/MHLO @hanhanW @MaheshRavishankar @rsuderman
+/compiler/InputConversion/TOSA @MaheshRavishankar @rsuderman
# Runtime
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1cb12b4..b7747b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -632,7 +632,7 @@
endif()
if(IREE_BUILD_COMPILER)
- add_subdirectory(iree/compiler)
+ add_subdirectory(compiler)
endif()
add_subdirectory(iree/tools)
@@ -653,7 +653,7 @@
# Write out a .env file to make IDEs and developers happy.
# Yes, we are writing this to the source dir. It is only for IDEs and if
# it gets clobbered, it is fine.
- set(_PYTHONPATH_ENV "PYTHONPATH=$<SHELL_PATH:${CMAKE_CURRENT_BINARY_DIR}/iree/compiler/python;${CMAKE_CURRENT_BINARY_DIR}/runtime/bindings/python>\n")
+ set(_PYTHONPATH_ENV "PYTHONPATH=$<SHELL_PATH:${CMAKE_CURRENT_BINARY_DIR}/compiler/bindings/python;${CMAKE_CURRENT_BINARY_DIR}/runtime/bindings/python>\n")
file(GENERATE OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/.env"
CONTENT "${_PYTHONPATH_ENV}"
)
diff --git a/build_tools/bazel/build_core.sh b/build_tools/bazel/build_core.sh
index ddc3e9d..a3101a3 100755
--- a/build_tools/bazel/build_core.sh
+++ b/build_tools/bazel/build_core.sh
@@ -82,7 +82,6 @@
--noworkspace_rc \
--bazelrc=build_tools/bazel/iree.bazelrc \
query \
- --config=non_darwin \
//iree/... + //runtime/... + //samples/... + //build_tools/... + \
//llvm-external-projects/iree-dialects/... | \
xargs --max-args 1000000 --max-chars 1000000 --exit \
@@ -93,7 +92,6 @@
--color=yes \
${test_env_args[@]} \
--config=generic_clang \
- --config=non_darwin \
--build_tag_filters="${BUILD_TAG_FILTERS?}" \
--test_tag_filters="${TEST_TAG_FILTERS?}" \
--keep_going \
diff --git a/build_tools/bazel/iree.bazelrc b/build_tools/bazel/iree.bazelrc
index af5a32b..8cea1b0 100644
--- a/build_tools/bazel/iree.bazelrc
+++ b/build_tools/bazel/iree.bazelrc
@@ -363,10 +363,3 @@
# Assume the newer version and alias to --config=windows
build:msvc --config=msvc2019
build:windows --config=msvc
-
-###############################################################################
-# disable metal stuff for non Darwin platforms
-###############################################################################
-common:non_darwin --deleted_packages=//iree/hal/metal,//iree/hal/metal/registration
-build:non_darwin --test_tag_filters="-driver=metal"
-###############################################################################
diff --git a/build_tools/bazel/iree_tablegen.bzl b/build_tools/bazel/iree_tablegen.bzl
new file mode 100644
index 0000000..fab6562
--- /dev/null
+++ b/build_tools/bazel/iree_tablegen.bzl
@@ -0,0 +1,32 @@
+# 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("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "gentbl_filegroup", "td_library")
+
+def iree_tablegen_doc(includes = [], **kwargs):
+ """iree_tablegen_doc() generates documentation from a table definition file.
+
+ This is a simple wrapper over gentbl() so we can differentiate between
+ documentation and others. See gentbl() for details regarding arguments.
+ """
+
+ gentbl_filegroup(includes = includes + [
+ "/compiler/src",
+ ], **kwargs)
+
+def iree_gentbl_cc_library(includes = [], **kwargs):
+ """IREE version of gentbl_cc_library which sets up includes properly."""
+
+ gentbl_cc_library(includes = includes + [
+ "/compiler/src",
+ ], **kwargs)
+
+def iree_td_library(includes = [], **kwargs):
+ """IREE version of td_library."""
+
+ td_library(includes = includes + [
+ "/compiler/src",
+ ], **kwargs)
diff --git a/build_tools/bazel/iree_tablegen_doc.bzl b/build_tools/bazel/iree_tablegen_doc.bzl
deleted file mode 100644
index 6a414d2..0000000
--- a/build_tools/bazel/iree_tablegen_doc.bzl
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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("@llvm-project//mlir:tblgen.bzl", "gentbl_filegroup")
-
-def iree_tablegen_doc(*args, **kwargs):
- """iree_tablegen_doc() generates documentation from a table definition file.
-
- This is a simple wrapper over gentbl() so we can differentiate between
- documentation and others. See gentbl() for details regarding arguments.
- """
-
- gentbl_filegroup(*args, **kwargs)
diff --git a/build_tools/bazel_to_cmake/bazel_to_cmake.py b/build_tools/bazel_to_cmake/bazel_to_cmake.py
index a9acae9..217934d 100755
--- a/build_tools/bazel_to_cmake/bazel_to_cmake.py
+++ b/build_tools/bazel_to_cmake/bazel_to_cmake.py
@@ -81,7 +81,7 @@
nargs="+",
help=
"Converts all BUILD files under a root directory (defaults to iree, runtime)",
- default=["iree", "runtime", "samples"])
+ default=["compiler", "iree", "runtime", "samples"])
args = parser.parse_args()
diff --git a/build_tools/bazel_to_cmake/bazel_to_cmake_converter.py b/build_tools/bazel_to_cmake/bazel_to_cmake_converter.py
index 93d485b..d2e5ff6 100644
--- a/build_tools/bazel_to_cmake/bazel_to_cmake_converter.py
+++ b/build_tools/bazel_to_cmake/bazel_to_cmake_converter.py
@@ -289,7 +289,7 @@
# TODO(gcmn) implement these types of functions in a less hard-coded way
def platform_trampoline_deps(self, basename, path="base"):
- return [f"//iree/{path}/internal:{basename}_internal"]
+ return [f"//{path}/internal:{basename}_internal"]
def select(self, d):
self._convert_unimplemented_function("select", str(d))
@@ -333,6 +333,9 @@
f"{testonly_block}"
f" PUBLIC\n)\n\n")
+ def iree_compiler_cc_library(self, deps=[], **kwargs):
+ self.cc_library(deps=deps + ["//compiler/src:defs"], **kwargs)
+
def iree_runtime_cc_library(self, deps=[], **kwargs):
self.cc_library(deps=deps + ["//runtime/src:runtime_defines"], **kwargs)
@@ -507,6 +510,11 @@
f"{tblgen_block}"
f")\n\n")
+ def iree_gentbl_cc_library(self, **kwargs):
+ # The bazel version of this rule adds some include directories and defs
+ # that are implicitly handled by the cmake version.
+ self.gentbl_cc_library(**kwargs)
+
def iree_tablegen_doc(self,
name,
tblgen,
diff --git a/build_tools/bazel_to_cmake/bazel_to_cmake_targets.py b/build_tools/bazel_to_cmake/bazel_to_cmake_targets.py
index 32a572a..f49a0a4 100644
--- a/build_tools/bazel_to_cmake/bazel_to_cmake_targets.py
+++ b/build_tools/bazel_to_cmake/bazel_to_cmake_targets.py
@@ -13,6 +13,7 @@
# Internal utilities to emulate various binary/library options.
"//build_tools:default_linkopts": [],
"//build_tools:dl": ["${CMAKE_DL_LIBS}"],
+ "//compiler/src:defs": [],
"//runtime/src:runtime_defines": [],
# IREE llvm-external-projects
@@ -234,6 +235,12 @@
# IREE root paths map to package names based on explicit rules.
# If changing these, make the corresponding change in iree_macros.cmake
# (iree_package_ns function).
+
+ # Map //compiler/src/iree/(.*) -> iree::\1 (i.e. iree::compiler::\1)
+ m = re.match("^//compiler/src/iree/(.+)", target)
+ if m:
+ return ["iree::" + _convert_bazel_path(m.group(1))]
+
# Map //runtime/src/iree/(.*) -> iree::\1
m = re.match("^//runtime/src/iree/(.+)", target)
if m:
diff --git a/build_tools/cmake/iree_c_module.cmake b/build_tools/cmake/iree_c_module.cmake
index feaadf6..f57ca45 100644
--- a/build_tools/cmake/iree_c_module.cmake
+++ b/build_tools/cmake/iree_c_module.cmake
@@ -75,7 +75,7 @@
"${_TESTONLY_ARG}"
DEPS
# Include paths and options for the runtime sources.
- iree_defs_runtime
+ iree::runtime::defs
)
set(_GEN_TARGET "${_NAME}_gen")
diff --git a/build_tools/cmake/iree_macros.cmake b/build_tools/cmake/iree_macros.cmake
index c205279..debe853 100644
--- a/build_tools/cmake/iree_macros.cmake
+++ b/build_tools/cmake/iree_macros.cmake
@@ -64,9 +64,18 @@
# the corresponding rule in:
# build_tools/bazel_to_cmake/bazel_to_cmake_targets.py
# Some sub-trees form their own roots for package purposes. Rewrite them.
- if(_RELATIVE_PATH MATCHES "^runtime/src/(.*)")
+ if(_RELATIVE_PATH MATCHES "^compiler/src/(.*)")
+ # compiler/src/iree/compiler -> iree/compiler
+ set(_PACKAGE "${CMAKE_MATCH_1}")
+ elseif(_RELATIVE_PATH MATCHES "^compiler/src$")
+ # compiler/src (defs) -> iree::compiler::defs
+ set(_PACKAGE "iree::compiler")
+ elseif(_RELATIVE_PATH MATCHES "^runtime/src/(.*)")
# runtime/src/iree/base -> iree/base
set(_PACKAGE "${CMAKE_MATCH_1}")
+ elseif(_RELATIVE_PATH MATCHES "^runtime/src$")
+ # runtime/src (defs) -> iree::runtime::defs
+ set(_PACKAGE "iree::runtime")
elseif(_RELATIVE_PATH MATCHES "^samples/(.*)")
set(_PACKAGE "iree::samples::${CMAKE_MATCH_1}")
elseif(_RELATIVE_PATH MATCHES "^samples$")
diff --git a/build_tools/cmake/iree_python.cmake b/build_tools/cmake/iree_python.cmake
index 0dc833b..26ee287 100644
--- a/build_tools/cmake/iree_python.cmake
+++ b/build_tools/cmake/iree_python.cmake
@@ -339,7 +339,7 @@
LABELS
${_RULE_LABELS}
PACKAGE_DIRS
- "${IREE_BINARY_DIR}/iree/compiler/python"
+ "${IREE_BINARY_DIR}/compiler/bindings/python"
"${IREE_BINARY_DIR}/runtime/bindings/python"
GENERATED_IN_BINARY_DIR
"${_RULE_GENERATED_IN_BINARY_DIR}"
diff --git a/build_tools/cmake/iree_tablegen_doc.cmake b/build_tools/cmake/iree_tablegen_doc.cmake
index 8099475..b8e6373 100644
--- a/build_tools/cmake/iree_tablegen_doc.cmake
+++ b/build_tools/cmake/iree_tablegen_doc.cmake
@@ -47,7 +47,8 @@
set(_INCLUDE_DIRS
"${MLIR_INCLUDE_DIRS}"
- "${IREE_SOURCE_DIR}"
+ "${IREE_SOURCE_DIR}/compiler/src"
+ "${IREE_BINARY_DIR}/compiler/src"
)
list(APPEND _INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
list(TRANSFORM _INCLUDE_DIRS PREPEND "-I")
diff --git a/build_tools/cmake/iree_tablegen_library.cmake b/build_tools/cmake/iree_tablegen_library.cmake
index bd728f8..a621530 100644
--- a/build_tools/cmake/iree_tablegen_library.cmake
+++ b/build_tools/cmake/iree_tablegen_library.cmake
@@ -35,7 +35,8 @@
set(LLVM_TARGET_DEFINITIONS ${_RULE_TD_FILE})
set(_INCLUDE_DIRS
"${MLIR_INCLUDE_DIRS}"
- "${IREE_SOURCE_DIR}"
+ "${IREE_SOURCE_DIR}/compiler/src"
+ "${IREE_BINARY_DIR}/compiler/src"
)
list(APPEND _INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
list(TRANSFORM _INCLUDE_DIRS PREPEND "-I")
diff --git a/build_tools/python_deploy/build_linux_packages.sh b/build_tools/python_deploy/build_linux_packages.sh
index 33dcbad..be5096f 100755
--- a/build_tools/python_deploy/build_linux_packages.sh
+++ b/build_tools/python_deploy/build_linux_packages.sh
@@ -32,7 +32,7 @@
#
# Note that this script is meant to be run on CI and it will pollute both the
# output directory and in-tree build/ directories (under runtime/ and
-# iree/compiler/) with docker created, root owned builds. Sorry - there is
+# compiler/) with docker created, root owned builds. Sorry - there is
# no good way around it.
#
# It can be run on a workstation but recommend using a git worktree dedicated
@@ -126,7 +126,7 @@
function build_iree_compiler() {
IREE_TARGET_BACKEND_CUDA=ON \
- python -m pip wheel -v -w /wheelhouse /main_checkout/iree/iree/compiler/
+ python -m pip wheel -v -w /wheelhouse /main_checkout/iree/compiler/
}
function run_audit_wheel() {
diff --git a/build_tools/python_deploy/build_macos_packages.sh b/build_tools/python_deploy/build_macos_packages.sh
index 8204470..d9af801 100755
--- a/build_tools/python_deploy/build_macos_packages.sh
+++ b/build_tools/python_deploy/build_macos_packages.sh
@@ -94,7 +94,7 @@
}
function build_iree_compiler() {
- python3 -m pip wheel -v -w $output_dir $repo_root/iree/compiler/
+ python3 -m pip wheel -v -w $output_dir $repo_root/compiler/
}
function clean_wheels() {
diff --git a/compiler/BUILD.bazel b/compiler/BUILD.bazel
new file mode 100644
index 0000000..9da145a
--- /dev/null
+++ b/compiler/BUILD.bazel
@@ -0,0 +1,13 @@
+# 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
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+exports_files(["lit.cfg.py"])
diff --git a/iree/compiler/CMakeLists.txt b/compiler/CMakeLists.txt
similarity index 93%
rename from iree/compiler/CMakeLists.txt
rename to compiler/CMakeLists.txt
index 30987f3..c7db44a 100644
--- a/iree/compiler/CMakeLists.txt
+++ b/compiler/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/BUILD #
+# compiler/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/compiler/README.md b/compiler/README.md
new file mode 100644
index 0000000..0acc18a
--- /dev/null
+++ b/compiler/README.md
@@ -0,0 +1,45 @@
+# IREE Compiler
+
+This directory contains the IREE compiler sources.
+
+## Standalone Python Builds
+
+The included `setup.py` file can be used to build Python binaries or directly
+install the IREE compiler API. Do note that the compiler is quite heavy and
+unless you are developing it and on a significant machine, you will want to
+use released binaries.
+
+There are two ways to build/install Python packages:
+
+* Directly from the source tree (this is how official releases are done).
+* From the build directory while developing.
+
+It is recommended to use your favorite method for managing
+[virtual environemnts](https://docs.python.org/3/library/venv.html) instead
+of modifying the system installation.
+
+Only relatively recent versions of `pip` are supported. Always use the latest
+via `pip install --upgrade pip`.
+
+You can build either from the source or build tree (assumes that CMake has
+been configured and the project built). The latter is typically used by
+project developers who are already setup for development and want to
+incrementally generate Python packages without rebuilding.
+
+To build a wheel that can be installed on the same Python version and OS:
+
+```
+python -m pip wheel compiler/
+```
+
+To directly install:
+
+```
+python -m pip install compiler/
+```
+
+In order to sanity check once the package is installed:
+
+```
+python compiler/src/iree/compiler/API/python/test/transforms/ireec/compile_sample_module.py
+```
diff --git a/compiler/lit.cfg.py b/compiler/lit.cfg.py
new file mode 100644
index 0000000..77a0498
--- /dev/null
+++ b/compiler/lit.cfg.py
@@ -0,0 +1,32 @@
+# 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
+"""Lit config for IREE."""
+
+# Lint for undefined variables is disabled as config is not defined inside this
+# file, instead config is injected by way of evaluating runlit.cfg.py from
+# runlit.site.cfg.py which in turn is evaluated by lit.py.
+# pylint: disable=undefined-variable
+
+import os
+import tempfile
+
+import lit.formats
+
+config.name = "IREE"
+config.suffixes = [".mlir", ".txt"]
+config.test_format = lit.formats.ShTest(execute_external=True)
+# Forward all IREE environment variables
+passthrough_env_vars = ["VK_ICD_FILENAMES"]
+config.environment.update({
+ k: v
+ for k, v in os.environ.items()
+ if k.startswith("IREE_") or k in passthrough_env_vars
+})
+
+# Use the most preferred temp directory.
+config.test_exec_root = (os.environ.get("TEST_UNDECLARED_OUTPUTS_DIR") or
+ os.environ.get("TEST_TMPDIR") or
+ os.path.join(tempfile.gettempdir(), "lit"))
diff --git a/iree/compiler/pyproject.toml b/compiler/pyproject.toml
similarity index 100%
rename from iree/compiler/pyproject.toml
rename to compiler/pyproject.toml
diff --git a/iree/compiler/setup.py b/compiler/setup.py
similarity index 97%
rename from iree/compiler/setup.py
rename to compiler/setup.py
index a0e0851..602994a 100644
--- a/iree/compiler/setup.py
+++ b/compiler/setup.py
@@ -88,7 +88,7 @@
f"BINARY_DIR = {IREE_BINARY_DIR}",
file=sys.stderr)
else:
- IREE_SOURCE_DIR = os.path.join(SETUPPY_DIR, "..", "..")
+ IREE_SOURCE_DIR = os.path.join(SETUPPY_DIR, "..")
IREE_BINARY_DIR = os.getenv("IREE_COMPILER_API_CMAKE_BUILD_DIR")
if not IREE_BINARY_DIR:
# Note that setuptools always builds into a "build" directory that
@@ -251,14 +251,16 @@
print(f"Not re-configuring (already configured)", file=sys.stderr)
# Build.
- subprocess.check_call(
- ["cmake", "--build", ".", "--target", "iree/compiler/API/python/all"],
- cwd=IREE_BINARY_DIR)
+ subprocess.check_call([
+ "cmake", "--build", ".", "--target",
+ "compiler/src/iree/compiler/API/python/all"
+ ],
+ cwd=IREE_BINARY_DIR)
print("Build complete.", file=sys.stderr)
# Install the directory we care about.
- install_subdirectory = os.path.join(IREE_BINARY_DIR, "iree", "compiler",
- "API", "python")
+ install_subdirectory = os.path.join(IREE_BINARY_DIR, "compiler", "src",
+ "iree", "compiler", "API", "python")
install_args = [
"-DCMAKE_INSTALL_DO_STRIP=ON",
f"-DCMAKE_INSTALL_PREFIX={CMAKE_INSTALL_DIR_ABS}",
diff --git a/compiler/src/BUILD b/compiler/src/BUILD
new file mode 100644
index 0000000..aa882c9
--- /dev/null
+++ b/compiler/src/BUILD
@@ -0,0 +1,18 @@
+# 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
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+cc_library(
+ name = "defs",
+ includes = [
+ ".",
+ ],
+)
diff --git a/compiler/src/CMakeLists.txt b/compiler/src/CMakeLists.txt
new file mode 100644
index 0000000..7ccabcd
--- /dev/null
+++ b/compiler/src/CMakeLists.txt
@@ -0,0 +1,19 @@
+# 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
+
+iree_cc_library(
+ NAME
+ defs
+ INCLUDES
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ PUBLIC
+)
+
+# Configures all iree_cc_* targets to take this implicit dep,
+# which provides common includes and copts for the tree.
+set(IREE_IMPLICIT_DEFS_CC_DEPS iree::compiler::defs)
+add_subdirectory(iree/compiler)
diff --git a/iree/compiler/API/BUILD b/compiler/src/iree/compiler/API/BUILD
similarity index 81%
rename from iree/compiler/API/BUILD
rename to compiler/src/iree/compiler/API/BUILD
index 7051778..94d8f17 100644
--- a/iree/compiler/API/BUILD
+++ b/compiler/src/iree/compiler/API/BUILD
@@ -1,6 +1,8 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
@@ -51,7 +53,7 @@
# CAPI
################################################################################
-cc_library(
+iree_compiler_cc_library(
name = "CAPI",
srcs = [
"Compiler.cpp",
@@ -63,13 +65,13 @@
"Tools.h",
],
deps = [
- "//iree/compiler/ConstEval",
- "//iree/compiler/Dialect/VM/IR",
- "//iree/compiler/Dialect/VM/Target/Bytecode",
- "//iree/compiler/InputConversion/MHLO",
- "//iree/compiler/InputConversion/TOSA",
- "//iree/compiler/Pipelines",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/ConstEval",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/InputConversion/MHLO",
+ "//compiler/src/iree/compiler/InputConversion/TOSA",
+ "//compiler/src/iree/compiler/Pipelines",
+ "//compiler/src/iree/compiler/Utils",
"//iree/tools:init_llvmir_translations",
"//iree/tools:init_passes_and_dialects",
"//iree/tools:init_targets",
diff --git a/iree/compiler/API/CMakeLists.txt b/compiler/src/iree/compiler/API/CMakeLists.txt
similarity index 100%
rename from iree/compiler/API/CMakeLists.txt
rename to compiler/src/iree/compiler/API/CMakeLists.txt
diff --git a/iree/compiler/API/Compiler.cpp b/compiler/src/iree/compiler/API/Compiler.cpp
similarity index 100%
rename from iree/compiler/API/Compiler.cpp
rename to compiler/src/iree/compiler/API/Compiler.cpp
diff --git a/iree/compiler/API/Compiler.h b/compiler/src/iree/compiler/API/Compiler.h
similarity index 100%
rename from iree/compiler/API/Compiler.h
rename to compiler/src/iree/compiler/API/Compiler.h
diff --git a/iree/compiler/API/Lld.cpp b/compiler/src/iree/compiler/API/Lld.cpp
similarity index 100%
rename from iree/compiler/API/Lld.cpp
rename to compiler/src/iree/compiler/API/Lld.cpp
diff --git a/iree/compiler/API/README.md b/compiler/src/iree/compiler/API/README.md
similarity index 100%
rename from iree/compiler/API/README.md
rename to compiler/src/iree/compiler/API/README.md
diff --git a/iree/compiler/API/Tools.cpp b/compiler/src/iree/compiler/API/Tools.cpp
similarity index 100%
rename from iree/compiler/API/Tools.cpp
rename to compiler/src/iree/compiler/API/Tools.cpp
diff --git a/iree/compiler/API/Tools.h b/compiler/src/iree/compiler/API/Tools.h
similarity index 100%
rename from iree/compiler/API/Tools.h
rename to compiler/src/iree/compiler/API/Tools.h
diff --git a/iree/compiler/API/python/CMakeLists.txt b/compiler/src/iree/compiler/API/python/CMakeLists.txt
similarity index 97%
rename from iree/compiler/API/python/CMakeLists.txt
rename to compiler/src/iree/compiler/API/python/CMakeLists.txt
index 2127c54..e2434b5 100644
--- a/iree/compiler/API/python/CMakeLists.txt
+++ b/compiler/src/iree/compiler/API/python/CMakeLists.txt
@@ -10,7 +10,7 @@
# TODO: Add an upstream cmake param for this vs having a global here.
add_compile_definitions("MLIR_PYTHON_PACKAGE_PREFIX=iree.compiler.")
-set(_PYTHON_BUILD_PREFIX "${IREE_BINARY_DIR}/iree/compiler/python")
+set(_PYTHON_BUILD_PREFIX "${IREE_BINARY_DIR}/compiler/bindings/python")
set(_PYTHON_INSTALL_PREFIX "python_packages/iree_compiler")
# HACK: This should not be necessary, but add_mlir_python_extension is
@@ -18,7 +18,7 @@
# when built in-tree it is somehow working based on that. This will need
# to be fixed to capture the correct include directories in that macro.
include_directories(
- "${IREE_SOURCE_DIR}"
+ "${IREE_SOURCE_DIR}/compiler/src"
"${IREE_SOURCE_DIR}/llvm-external-projects/iree-dialects/include"
"${IREE_SOURCE_DIR}/third_party/llvm-project/mlir/include"
"${IREE_SOURCE_DIR}/third_party/mlir-hlo/include"
diff --git a/iree/compiler/API/python/IREECTransforms.cpp b/compiler/src/iree/compiler/API/python/IREECTransforms.cpp
similarity index 100%
rename from iree/compiler/API/python/IREECTransforms.cpp
rename to compiler/src/iree/compiler/API/python/IREECTransforms.cpp
diff --git a/iree/compiler/API/python/IREECompileTool.c b/compiler/src/iree/compiler/API/python/IREECompileTool.c
similarity index 100%
rename from iree/compiler/API/python/IREECompileTool.c
rename to compiler/src/iree/compiler/API/python/IREECompileTool.c
diff --git a/iree/compiler/API/python/LldTool.c b/compiler/src/iree/compiler/API/python/LldTool.c
similarity index 100%
rename from iree/compiler/API/python/LldTool.c
rename to compiler/src/iree/compiler/API/python/LldTool.c
diff --git a/iree/compiler/API/python/iree/compiler/__init__.py b/compiler/src/iree/compiler/API/python/iree/compiler/__init__.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/__init__.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/__init__.py
diff --git a/iree/compiler/API/python/iree/compiler/tf.py b/compiler/src/iree/compiler/API/python/iree/compiler/tf.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tf.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tf.py
diff --git a/iree/compiler/API/python/iree/compiler/tflite.py b/compiler/src/iree/compiler/API/python/iree/compiler/tflite.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tflite.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tflite.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/__init__.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/__init__.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/__init__.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/__init__.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/binaries.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/binaries.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/binaries.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/binaries.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/core.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/core.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/core.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/core.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/debugging.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/debugging.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/debugging.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/debugging.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/scripts/__init__.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/scripts/__init__.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/scripts/__init__.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/scripts/__init__.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/scripts/ireec/__main__.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/scripts/ireec/__main__.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/scripts/ireec/__main__.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/scripts/ireec/__main__.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/tf.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/tf.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/tf.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/tf.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/tflite.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/tflite.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/tflite.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/tflite.py
diff --git a/iree/compiler/API/python/iree/compiler/tools/xla.py b/compiler/src/iree/compiler/API/python/iree/compiler/tools/xla.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/tools/xla.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/tools/xla.py
diff --git a/iree/compiler/API/python/iree/compiler/transforms/ireec.py b/compiler/src/iree/compiler/API/python/iree/compiler/transforms/ireec.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/transforms/ireec.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/transforms/ireec.py
diff --git a/iree/compiler/API/python/iree/compiler/xla.py b/compiler/src/iree/compiler/API/python/iree/compiler/xla.py
similarity index 100%
rename from iree/compiler/API/python/iree/compiler/xla.py
rename to compiler/src/iree/compiler/API/python/iree/compiler/xla.py
diff --git a/iree/compiler/API/python/test/CMakeLists.txt b/compiler/src/iree/compiler/API/python/test/CMakeLists.txt
similarity index 100%
rename from iree/compiler/API/python/test/CMakeLists.txt
rename to compiler/src/iree/compiler/API/python/test/CMakeLists.txt
diff --git a/iree/compiler/API/python/test/tools/CMakeLists.txt b/compiler/src/iree/compiler/API/python/test/tools/CMakeLists.txt
similarity index 100%
rename from iree/compiler/API/python/test/tools/CMakeLists.txt
rename to compiler/src/iree/compiler/API/python/test/tools/CMakeLists.txt
diff --git a/iree/compiler/API/python/test/tools/README.md b/compiler/src/iree/compiler/API/python/test/tools/README.md
similarity index 100%
rename from iree/compiler/API/python/test/tools/README.md
rename to compiler/src/iree/compiler/API/python/test/tools/README.md
diff --git a/iree/compiler/API/python/test/tools/compiler_core_test.py b/compiler/src/iree/compiler/API/python/test/tools/compiler_core_test.py
similarity index 100%
rename from iree/compiler/API/python/test/tools/compiler_core_test.py
rename to compiler/src/iree/compiler/API/python/test/tools/compiler_core_test.py
diff --git a/iree/compiler/API/python/test/tools/compiler_tf_test.py b/compiler/src/iree/compiler/API/python/test/tools/compiler_tf_test.py
similarity index 100%
rename from iree/compiler/API/python/test/tools/compiler_tf_test.py
rename to compiler/src/iree/compiler/API/python/test/tools/compiler_tf_test.py
diff --git a/iree/compiler/API/python/test/tools/compiler_tflite_test.py b/compiler/src/iree/compiler/API/python/test/tools/compiler_tflite_test.py
similarity index 100%
rename from iree/compiler/API/python/test/tools/compiler_tflite_test.py
rename to compiler/src/iree/compiler/API/python/test/tools/compiler_tflite_test.py
diff --git a/iree/compiler/API/python/test/tools/compiler_xla_test.py b/compiler/src/iree/compiler/API/python/test/tools/compiler_xla_test.py
similarity index 100%
rename from iree/compiler/API/python/test/tools/compiler_xla_test.py
rename to compiler/src/iree/compiler/API/python/test/tools/compiler_xla_test.py
diff --git a/iree/compiler/API/python/test/tools/testdata/generate_tflite.py b/compiler/src/iree/compiler/API/python/test/tools/testdata/generate_tflite.py
similarity index 100%
rename from iree/compiler/API/python/test/tools/testdata/generate_tflite.py
rename to compiler/src/iree/compiler/API/python/test/tools/testdata/generate_tflite.py
diff --git a/iree/compiler/API/python/test/tools/testdata/generate_xla.py b/compiler/src/iree/compiler/API/python/test/tools/testdata/generate_xla.py
similarity index 100%
rename from iree/compiler/API/python/test/tools/testdata/generate_xla.py
rename to compiler/src/iree/compiler/API/python/test/tools/testdata/generate_xla.py
diff --git a/iree/compiler/API/python/test/tools/testdata/tflite_sample.fb b/compiler/src/iree/compiler/API/python/test/tools/testdata/tflite_sample.fb
similarity index 100%
rename from iree/compiler/API/python/test/tools/testdata/tflite_sample.fb
rename to compiler/src/iree/compiler/API/python/test/tools/testdata/tflite_sample.fb
Binary files differ
diff --git a/iree/compiler/API/python/test/tools/testdata/xla_sample.hlo b/compiler/src/iree/compiler/API/python/test/tools/testdata/xla_sample.hlo
similarity index 100%
rename from iree/compiler/API/python/test/tools/testdata/xla_sample.hlo
rename to compiler/src/iree/compiler/API/python/test/tools/testdata/xla_sample.hlo
diff --git a/iree/compiler/API/python/test/tools/testdata/xla_sample.pb b/compiler/src/iree/compiler/API/python/test/tools/testdata/xla_sample.pb
similarity index 100%
rename from iree/compiler/API/python/test/tools/testdata/xla_sample.pb
rename to compiler/src/iree/compiler/API/python/test/tools/testdata/xla_sample.pb
Binary files differ
diff --git a/iree/compiler/API/python/test/transforms/CMakeLists.txt b/compiler/src/iree/compiler/API/python/test/transforms/CMakeLists.txt
similarity index 100%
rename from iree/compiler/API/python/test/transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/API/python/test/transforms/CMakeLists.txt
diff --git a/iree/compiler/API/python/test/transforms/ireec/CMakeLists.txt b/compiler/src/iree/compiler/API/python/test/transforms/ireec/CMakeLists.txt
similarity index 100%
rename from iree/compiler/API/python/test/transforms/ireec/CMakeLists.txt
rename to compiler/src/iree/compiler/API/python/test/transforms/ireec/CMakeLists.txt
diff --git a/iree/compiler/API/python/test/transforms/ireec/compile_sample_module.py b/compiler/src/iree/compiler/API/python/test/transforms/ireec/compile_sample_module.py
similarity index 100%
rename from iree/compiler/API/python/test/transforms/ireec/compile_sample_module.py
rename to compiler/src/iree/compiler/API/python/test/transforms/ireec/compile_sample_module.py
diff --git a/iree/compiler/API/python/test/transforms/ireec/compiler_options_test.py b/compiler/src/iree/compiler/API/python/test/transforms/ireec/compiler_options_test.py
similarity index 100%
rename from iree/compiler/API/python/test/transforms/ireec/compiler_options_test.py
rename to compiler/src/iree/compiler/API/python/test/transforms/ireec/compiler_options_test.py
diff --git a/iree/compiler/API/test/CMakeLists.txt b/compiler/src/iree/compiler/API/test/CMakeLists.txt
similarity index 100%
rename from iree/compiler/API/test/CMakeLists.txt
rename to compiler/src/iree/compiler/API/test/CMakeLists.txt
diff --git a/iree/compiler/API/test/compile-mhlo-test-main.c b/compiler/src/iree/compiler/API/test/compile-mhlo-test-main.c
similarity index 100%
rename from iree/compiler/API/test/compile-mhlo-test-main.c
rename to compiler/src/iree/compiler/API/test/compile-mhlo-test-main.c
diff --git a/iree/compiler/Bindings/BUILD b/compiler/src/iree/compiler/Bindings/BUILD
similarity index 100%
rename from iree/compiler/Bindings/BUILD
rename to compiler/src/iree/compiler/Bindings/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Bindings/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Bindings/CMakeLists.txt
index 24888ca..0db3728 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Bindings/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Bindings/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Bindings/Native/BUILD b/compiler/src/iree/compiler/Bindings/Native/BUILD
similarity index 100%
rename from iree/compiler/Bindings/Native/BUILD
rename to compiler/src/iree/compiler/Bindings/Native/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Bindings/Native/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Bindings/Native/CMakeLists.txt
index 24888ca..eb63289 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Bindings/Native/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Bindings/Native/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Bindings/Native/Transforms/BUILD b/compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD
similarity index 76%
rename from iree/compiler/Bindings/Native/Transforms/BUILD
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD
index 00d59ed..0655be9 100644
--- a/iree/compiler/Bindings/Native/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"Passes.cpp",
@@ -20,10 +22,10 @@
"Passes.h",
],
deps = [
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:AffineUtils",
"@llvm-project//mlir:FuncDialect",
diff --git a/iree/compiler/Bindings/Native/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Bindings/Native/Transforms/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Bindings/Native/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/CMakeLists.txt
index f64f353..176a5e1 100644
--- a/iree/compiler/Bindings/Native/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Bindings/Native/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/Native/Transforms/BUILD #
+# compiler/src/iree/compiler/Bindings/Native/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Bindings/Native/Transforms/Passes.cpp b/compiler/src/iree/compiler/Bindings/Native/Transforms/Passes.cpp
similarity index 100%
rename from iree/compiler/Bindings/Native/Transforms/Passes.cpp
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/Passes.cpp
diff --git a/iree/compiler/Bindings/Native/Transforms/Passes.h b/compiler/src/iree/compiler/Bindings/Native/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Bindings/Native/Transforms/Passes.h
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/Passes.h
diff --git a/iree/compiler/Bindings/Native/Transforms/WrapEntryPoints.cpp b/compiler/src/iree/compiler/Bindings/Native/Transforms/WrapEntryPoints.cpp
similarity index 100%
rename from iree/compiler/Bindings/Native/Transforms/WrapEntryPoints.cpp
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/WrapEntryPoints.cpp
diff --git a/iree/compiler/Bindings/Native/Transforms/test/BUILD b/compiler/src/iree/compiler/Bindings/Native/Transforms/test/BUILD
similarity index 95%
rename from iree/compiler/Bindings/Native/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/test/BUILD
index a043558..13368df 100644
--- a/iree/compiler/Bindings/Native/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Bindings/Native/Transforms/test/BUILD
@@ -21,6 +21,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Bindings/Native/Transforms/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/test/CMakeLists.txt
index 7de2644..0b1ef96 100644
--- a/iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Bindings/Native/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/TFLite/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Bindings/Native/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Bindings/Native/Transforms/test/wrap_entry_points.mlir b/compiler/src/iree/compiler/Bindings/Native/Transforms/test/wrap_entry_points.mlir
similarity index 100%
rename from iree/compiler/Bindings/Native/Transforms/test/wrap_entry_points.mlir
rename to compiler/src/iree/compiler/Bindings/Native/Transforms/test/wrap_entry_points.mlir
diff --git a/iree/compiler/Bindings/TFLite/BUILD b/compiler/src/iree/compiler/Bindings/TFLite/BUILD
similarity index 100%
rename from iree/compiler/Bindings/TFLite/BUILD
rename to compiler/src/iree/compiler/Bindings/TFLite/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Bindings/TFLite/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Bindings/TFLite/CMakeLists.txt
index 24888ca..68cbd8a 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Bindings/TFLite/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Bindings/TFLite/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Bindings/TFLite/Transforms/BUILD b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD
similarity index 73%
rename from iree/compiler/Bindings/TFLite/Transforms/BUILD
rename to compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD
index f48e476..c20d9d5 100644
--- a/iree/compiler/Bindings/TFLite/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"Passes.cpp",
@@ -20,11 +22,11 @@
"Passes.h",
],
deps = [
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:AffineUtils",
"@llvm-project//mlir:ControlFlowOps",
diff --git a/iree/compiler/Bindings/TFLite/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Bindings/TFLite/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Bindings/TFLite/Transforms/CMakeLists.txt
index 549559d..f1dfe00 100644
--- a/iree/compiler/Bindings/TFLite/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/TFLite/Transforms/BUILD #
+# compiler/src/iree/compiler/Bindings/TFLite/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Bindings/TFLite/Transforms/Passes.cpp b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/Passes.cpp
similarity index 100%
rename from iree/compiler/Bindings/TFLite/Transforms/Passes.cpp
rename to compiler/src/iree/compiler/Bindings/TFLite/Transforms/Passes.cpp
diff --git a/iree/compiler/Bindings/TFLite/Transforms/Passes.h b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Bindings/TFLite/Transforms/Passes.h
rename to compiler/src/iree/compiler/Bindings/TFLite/Transforms/Passes.h
diff --git a/iree/compiler/Bindings/TFLite/Transforms/WrapEntryPoints.cpp b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/WrapEntryPoints.cpp
similarity index 100%
rename from iree/compiler/Bindings/TFLite/Transforms/WrapEntryPoints.cpp
rename to compiler/src/iree/compiler/Bindings/TFLite/Transforms/WrapEntryPoints.cpp
diff --git a/iree/compiler/Bindings/TFLite/Transforms/test/BUILD b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/BUILD
similarity index 95%
rename from iree/compiler/Bindings/TFLite/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/BUILD
index ea1a218..11165a7 100644
--- a/iree/compiler/Bindings/TFLite/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/BUILD
@@ -21,6 +21,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt
copy to compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt
index 7de2644..a8a67ec 100644
--- a/iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/TFLite/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Bindings/TFLite/Transforms/test/wrap_entry_points.mlir b/compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/wrap_entry_points.mlir
similarity index 100%
rename from iree/compiler/Bindings/TFLite/Transforms/test/wrap_entry_points.mlir
rename to compiler/src/iree/compiler/Bindings/TFLite/Transforms/test/wrap_entry_points.mlir
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/CMakeLists.txt
index 24888ca..63535ef 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# iree/compiler/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/compiler/src/iree/compiler/Codegen/BUILD b/compiler/src/iree/compiler/Codegen/BUILD
new file mode 100644
index 0000000..83afce2
--- /dev/null
+++ b/compiler/src/iree/compiler/Codegen/BUILD
@@ -0,0 +1,62 @@
+# 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("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+iree_gentbl_cc_library(
+ name = "PassesIncGen",
+ tbl_outs = [
+ (
+ ["-gen-pass-decls"],
+ "Passes.h.inc",
+ ),
+ ],
+ tblgen = "@llvm-project//mlir:mlir-tblgen",
+ td_file = "Passes.td",
+ deps = ["@llvm-project//mlir:PassBaseTdFiles"],
+)
+
+iree_compiler_cc_library(
+ name = "PassHeaders",
+ hdrs = [
+ "PassDetail.h",
+ "Passes.h",
+ "Passes.h.inc",
+ ],
+ deps = [
+ ":PassesIncGen",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Utils",
+ "@llvm-project//mlir:LinalgTransforms",
+ "@llvm-project//mlir:Pass",
+ "@llvm-project//mlir:Transforms",
+ ],
+)
+
+iree_compiler_cc_library(
+ name = "Codegen",
+ srcs = [
+ "Passes.cpp",
+ ],
+ deps = [
+ ":PassHeaders",
+ ":PassesIncGen",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/LLVMCPU",
+ "//compiler/src/iree/compiler/Codegen/LLVMGPU",
+ "//compiler/src/iree/compiler/Codegen/SPIRV",
+ "//compiler/src/iree/compiler/Codegen/Sandbox",
+ ],
+)
diff --git a/iree/compiler/Codegen/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Codegen/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/CMakeLists.txt
index 7c91cf2..507ff3b 100644
--- a/iree/compiler/Codegen/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/BUILD #
+# compiler/src/iree/compiler/Codegen/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Common/BUILD b/compiler/src/iree/compiler/Codegen/Common/BUILD
similarity index 81%
rename from iree/compiler/Codegen/Common/BUILD
rename to compiler/src/iree/compiler/Codegen/Common/BUILD
index 85d6c2a..9766e08 100644
--- a/iree/compiler/Codegen/Common/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Common/BUILD
@@ -4,7 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -12,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "FoldTensorExtractOpIncGen",
tbl_outs = [
(
@@ -31,7 +32,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "Common",
srcs = [
"BufferizationAnalysis.cpp",
@@ -66,16 +67,16 @@
"Transforms.h",
],
deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common:FoldTensorExtractOpIncGen",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/Interfaces:BufferizationInterfaces",
- "//iree/compiler/Codegen/Transforms",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common:FoldTensorExtractOpIncGen",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/Interfaces:BufferizationInterfaces",
+ "//compiler/src/iree/compiler/Codegen/Transforms",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
"//llvm-external-projects/iree-dialects:IREELinalgExtTransforms",
diff --git a/iree/compiler/Codegen/Common/BufferizationAnalysis.cpp b/compiler/src/iree/compiler/Codegen/Common/BufferizationAnalysis.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/BufferizationAnalysis.cpp
rename to compiler/src/iree/compiler/Codegen/Common/BufferizationAnalysis.cpp
diff --git a/iree/compiler/Codegen/Common/BufferizationAnalysis.h b/compiler/src/iree/compiler/Codegen/Common/BufferizationAnalysis.h
similarity index 100%
rename from iree/compiler/Codegen/Common/BufferizationAnalysis.h
rename to compiler/src/iree/compiler/Codegen/Common/BufferizationAnalysis.h
diff --git a/iree/compiler/Codegen/Common/BufferizeCopyOnlyDispatchesPass.cpp b/compiler/src/iree/compiler/Codegen/Common/BufferizeCopyOnlyDispatchesPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/BufferizeCopyOnlyDispatchesPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/BufferizeCopyOnlyDispatchesPass.cpp
diff --git a/iree/compiler/Codegen/Common/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Codegen/Common/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt
index 68b4082..1e4f077 100644
--- a/iree/compiler/Codegen/Common/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Common/BUILD #
+# compiler/src/iree/compiler/Codegen/Common/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Common/CleanupBufferAllocViewPass.cpp b/compiler/src/iree/compiler/Codegen/Common/CleanupBufferAllocViewPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/CleanupBufferAllocViewPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/CleanupBufferAllocViewPass.cpp
diff --git a/iree/compiler/Codegen/Common/ConvertToDestinationPassingStylePass.cpp b/compiler/src/iree/compiler/Codegen/Common/ConvertToDestinationPassingStylePass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/ConvertToDestinationPassingStylePass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/ConvertToDestinationPassingStylePass.cpp
diff --git a/iree/compiler/Codegen/Common/DestructiveUpdateUtils.cpp b/compiler/src/iree/compiler/Codegen/Common/DestructiveUpdateUtils.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/DestructiveUpdateUtils.cpp
rename to compiler/src/iree/compiler/Codegen/Common/DestructiveUpdateUtils.cpp
diff --git a/iree/compiler/Codegen/Common/DestructiveUpdateUtils.h b/compiler/src/iree/compiler/Codegen/Common/DestructiveUpdateUtils.h
similarity index 100%
rename from iree/compiler/Codegen/Common/DestructiveUpdateUtils.h
rename to compiler/src/iree/compiler/Codegen/Common/DestructiveUpdateUtils.h
diff --git a/iree/compiler/Codegen/Common/FlattenMemRefSubspanPass.cpp b/compiler/src/iree/compiler/Codegen/Common/FlattenMemRefSubspanPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/FlattenMemRefSubspanPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/FlattenMemRefSubspanPass.cpp
diff --git a/iree/compiler/Codegen/Common/FoldAffineMinInDistributedLoops.cpp b/compiler/src/iree/compiler/Codegen/Common/FoldAffineMinInDistributedLoops.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/FoldAffineMinInDistributedLoops.cpp
rename to compiler/src/iree/compiler/Codegen/Common/FoldAffineMinInDistributedLoops.cpp
diff --git a/iree/compiler/Codegen/Common/FoldTensorExtractOp.td b/compiler/src/iree/compiler/Codegen/Common/FoldTensorExtractOp.td
similarity index 100%
rename from iree/compiler/Codegen/Common/FoldTensorExtractOp.td
rename to compiler/src/iree/compiler/Codegen/Common/FoldTensorExtractOp.td
diff --git a/iree/compiler/Codegen/Common/FoldTensorExtractOpPass.cpp b/compiler/src/iree/compiler/Codegen/Common/FoldTensorExtractOpPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/FoldTensorExtractOpPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/FoldTensorExtractOpPass.cpp
diff --git a/iree/compiler/Codegen/Common/ForOpCanonicalizationPass.cpp b/compiler/src/iree/compiler/Codegen/Common/ForOpCanonicalizationPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/ForOpCanonicalizationPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/ForOpCanonicalizationPass.cpp
diff --git a/iree/compiler/Codegen/Common/GPUDistributeSharedMemoryCopy.cpp b/compiler/src/iree/compiler/Codegen/Common/GPUDistributeSharedMemoryCopy.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/GPUDistributeSharedMemoryCopy.cpp
rename to compiler/src/iree/compiler/Codegen/Common/GPUDistributeSharedMemoryCopy.cpp
diff --git a/iree/compiler/Codegen/Common/GPUPipelining.cpp b/compiler/src/iree/compiler/Codegen/Common/GPUPipelining.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/GPUPipelining.cpp
rename to compiler/src/iree/compiler/Codegen/Common/GPUPipelining.cpp
diff --git a/iree/compiler/Codegen/Common/IREEComprehensiveBufferizePass.cpp b/compiler/src/iree/compiler/Codegen/Common/IREEComprehensiveBufferizePass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/IREEComprehensiveBufferizePass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/IREEComprehensiveBufferizePass.cpp
diff --git a/iree/compiler/Codegen/Common/InsertDistributionInfoPass.cpp b/compiler/src/iree/compiler/Codegen/Common/InsertDistributionInfoPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/InsertDistributionInfoPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/InsertDistributionInfoPass.cpp
diff --git a/iree/compiler/Codegen/Common/LinalgBufferizePass.cpp b/compiler/src/iree/compiler/Codegen/Common/LinalgBufferizePass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/LinalgBufferizePass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/LinalgBufferizePass.cpp
diff --git a/iree/compiler/Codegen/Common/MemrefCopyToLinalg.cpp b/compiler/src/iree/compiler/Codegen/Common/MemrefCopyToLinalg.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/MemrefCopyToLinalg.cpp
rename to compiler/src/iree/compiler/Codegen/Common/MemrefCopyToLinalg.cpp
diff --git a/iree/compiler/Codegen/Common/OptimizeVectorTransferPass.cpp b/compiler/src/iree/compiler/Codegen/Common/OptimizeVectorTransferPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/OptimizeVectorTransferPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/OptimizeVectorTransferPass.cpp
diff --git a/iree/compiler/Codegen/Common/PolynomialApproximationPass.cpp b/compiler/src/iree/compiler/Codegen/Common/PolynomialApproximationPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/PolynomialApproximationPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/PolynomialApproximationPass.cpp
diff --git a/iree/compiler/Codegen/Common/RemoveTrivialLoops.cpp b/compiler/src/iree/compiler/Codegen/Common/RemoveTrivialLoops.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/RemoveTrivialLoops.cpp
rename to compiler/src/iree/compiler/Codegen/Common/RemoveTrivialLoops.cpp
diff --git a/iree/compiler/Codegen/Common/RewriteLinalgDestructiveUpdatesPass.cpp b/compiler/src/iree/compiler/Codegen/Common/RewriteLinalgDestructiveUpdatesPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/RewriteLinalgDestructiveUpdatesPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/RewriteLinalgDestructiveUpdatesPass.cpp
diff --git a/iree/compiler/Codegen/Common/SetNumWorkgroupsPass.cpp b/compiler/src/iree/compiler/Codegen/Common/SetNumWorkgroupsPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/SetNumWorkgroupsPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/SetNumWorkgroupsPass.cpp
diff --git a/iree/compiler/Codegen/Common/TileAndDistributeToWorkgroupsPass.cpp b/compiler/src/iree/compiler/Codegen/Common/TileAndDistributeToWorkgroupsPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/TileAndDistributeToWorkgroupsPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/TileAndDistributeToWorkgroupsPass.cpp
diff --git a/iree/compiler/Codegen/Common/Transforms.h b/compiler/src/iree/compiler/Codegen/Common/Transforms.h
similarity index 100%
rename from iree/compiler/Codegen/Common/Transforms.h
rename to compiler/src/iree/compiler/Codegen/Common/Transforms.h
diff --git a/iree/compiler/Codegen/Common/TypePropagationPass.cpp b/compiler/src/iree/compiler/Codegen/Common/TypePropagationPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/TypePropagationPass.cpp
rename to compiler/src/iree/compiler/Codegen/Common/TypePropagationPass.cpp
diff --git a/iree/compiler/Codegen/Common/VectorizeConv.cpp b/compiler/src/iree/compiler/Codegen/Common/VectorizeConv.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/VectorizeConv.cpp
rename to compiler/src/iree/compiler/Codegen/Common/VectorizeConv.cpp
diff --git a/iree/compiler/Codegen/Common/VectorizeMMT4d.cpp b/compiler/src/iree/compiler/Codegen/Common/VectorizeMMT4d.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/VectorizeMMT4d.cpp
rename to compiler/src/iree/compiler/Codegen/Common/VectorizeMMT4d.cpp
diff --git a/iree/compiler/Codegen/Common/WorkGroupSwizzle.cpp b/compiler/src/iree/compiler/Codegen/Common/WorkGroupSwizzle.cpp
similarity index 100%
rename from iree/compiler/Codegen/Common/WorkGroupSwizzle.cpp
rename to compiler/src/iree/compiler/Codegen/Common/WorkGroupSwizzle.cpp
diff --git a/iree/compiler/Codegen/Common/test/BUILD b/compiler/src/iree/compiler/Codegen/Common/test/BUILD
similarity index 97%
rename from iree/compiler/Codegen/Common/test/BUILD
rename to compiler/src/iree/compiler/Codegen/Common/test/BUILD
index b78d822..af8b15d 100644
--- a/iree/compiler/Codegen/Common/test/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Common/test/BUILD
@@ -44,6 +44,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Codegen/Common/test/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Common/test/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Codegen/Common/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Common/test/CMakeLists.txt
index 7e9b53b..4699dd3 100644
--- a/iree/compiler/Codegen/Common/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Common/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Common/test/BUILD #
+# compiler/src/iree/compiler/Codegen/Common/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Common/test/affinemin_canonicalization.mlir b/compiler/src/iree/compiler/Codegen/Common/test/affinemin_canonicalization.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/affinemin_canonicalization.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/affinemin_canonicalization.mlir
diff --git a/iree/compiler/Codegen/Common/test/bufferize_copy_only_dispatches.mlir b/compiler/src/iree/compiler/Codegen/Common/test/bufferize_copy_only_dispatches.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/bufferize_copy_only_dispatches.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/bufferize_copy_only_dispatches.mlir
diff --git a/iree/compiler/Codegen/Common/test/canonicalize_interface_load_store.mlir b/compiler/src/iree/compiler/Codegen/Common/test/canonicalize_interface_load_store.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/canonicalize_interface_load_store.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/canonicalize_interface_load_store.mlir
diff --git a/iree/compiler/Codegen/Common/test/convert_to_destination_passing_style.mlir b/compiler/src/iree/compiler/Codegen/Common/test/convert_to_destination_passing_style.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/convert_to_destination_passing_style.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/convert_to_destination_passing_style.mlir
diff --git a/iree/compiler/Codegen/Common/test/dead_alloc.mlir b/compiler/src/iree/compiler/Codegen/Common/test/dead_alloc.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/dead_alloc.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/dead_alloc.mlir
diff --git a/iree/compiler/Codegen/Common/test/distribute_gpu_shared_memory.mlir b/compiler/src/iree/compiler/Codegen/Common/test/distribute_gpu_shared_memory.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/distribute_gpu_shared_memory.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/distribute_gpu_shared_memory.mlir
diff --git a/iree/compiler/Codegen/Common/test/flatten_memref_subspan.mlir b/compiler/src/iree/compiler/Codegen/Common/test/flatten_memref_subspan.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/flatten_memref_subspan.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/flatten_memref_subspan.mlir
diff --git a/iree/compiler/Codegen/Common/test/fold_affine_min_in_distributed_loops.mlir b/compiler/src/iree/compiler/Codegen/Common/test/fold_affine_min_in_distributed_loops.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/fold_affine_min_in_distributed_loops.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/fold_affine_min_in_distributed_loops.mlir
diff --git a/iree/compiler/Codegen/Common/test/fold_tensor_extract_op.mlir b/compiler/src/iree/compiler/Codegen/Common/test/fold_tensor_extract_op.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/fold_tensor_extract_op.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/fold_tensor_extract_op.mlir
diff --git a/iree/compiler/Codegen/Common/test/forop_canonicalization.mlir b/compiler/src/iree/compiler/Codegen/Common/test/forop_canonicalization.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/forop_canonicalization.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/forop_canonicalization.mlir
diff --git a/iree/compiler/Codegen/Common/test/insert_distribution_info.mlir b/compiler/src/iree/compiler/Codegen/Common/test/insert_distribution_info.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/insert_distribution_info.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/insert_distribution_info.mlir
diff --git a/iree/compiler/Codegen/Common/test/iree_comprehensive_bufferize.mlir b/compiler/src/iree/compiler/Codegen/Common/test/iree_comprehensive_bufferize.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/iree_comprehensive_bufferize.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/iree_comprehensive_bufferize.mlir
diff --git a/iree/compiler/Codegen/Common/test/linalg_bufferize.mlir b/compiler/src/iree/compiler/Codegen/Common/test/linalg_bufferize.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/linalg_bufferize.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/linalg_bufferize.mlir
diff --git a/iree/compiler/Codegen/Common/test/remove_dead_allocs.mlir b/compiler/src/iree/compiler/Codegen/Common/test/remove_dead_allocs.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/remove_dead_allocs.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/remove_dead_allocs.mlir
diff --git a/iree/compiler/Codegen/Common/test/remove_trivial_loops.mlir b/compiler/src/iree/compiler/Codegen/Common/test/remove_trivial_loops.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/remove_trivial_loops.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/remove_trivial_loops.mlir
diff --git a/iree/compiler/Codegen/Common/test/rewrite_linalg_destructive_updates.mlir b/compiler/src/iree/compiler/Codegen/Common/test/rewrite_linalg_destructive_updates.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/rewrite_linalg_destructive_updates.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/rewrite_linalg_destructive_updates.mlir
diff --git a/iree/compiler/Codegen/Common/test/swizzle_workgroup.mlir b/compiler/src/iree/compiler/Codegen/Common/test/swizzle_workgroup.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/swizzle_workgroup.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/swizzle_workgroup.mlir
diff --git a/iree/compiler/Codegen/Common/test/tile_and_distribute_to_workgroups.mlir b/compiler/src/iree/compiler/Codegen/Common/test/tile_and_distribute_to_workgroups.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/tile_and_distribute_to_workgroups.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/tile_and_distribute_to_workgroups.mlir
diff --git a/iree/compiler/Codegen/Common/test/transpose_canonicalization.mlir b/compiler/src/iree/compiler/Codegen/Common/test/transpose_canonicalization.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/transpose_canonicalization.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/transpose_canonicalization.mlir
diff --git a/iree/compiler/Codegen/Common/test/type_propagation.mlir b/compiler/src/iree/compiler/Codegen/Common/test/type_propagation.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/type_propagation.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/type_propagation.mlir
diff --git a/iree/compiler/Codegen/Common/test/vectorize_linalg_conv.mlir b/compiler/src/iree/compiler/Codegen/Common/test/vectorize_linalg_conv.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/vectorize_linalg_conv.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/vectorize_linalg_conv.mlir
diff --git a/iree/compiler/Codegen/Common/test/vectorize_linalg_mmt4d.mlir b/compiler/src/iree/compiler/Codegen/Common/test/vectorize_linalg_mmt4d.mlir
similarity index 100%
rename from iree/compiler/Codegen/Common/test/vectorize_linalg_mmt4d.mlir
rename to compiler/src/iree/compiler/Codegen/Common/test/vectorize_linalg_mmt4d.mlir
diff --git a/iree/compiler/Codegen/Dialect/BUILD b/compiler/src/iree/compiler/Codegen/Dialect/BUILD
similarity index 88%
rename from iree/compiler/Codegen/Dialect/BUILD
rename to compiler/src/iree/compiler/Codegen/Dialect/BUILD
index f47e32e..65a4f9f 100644
--- a/iree/compiler/Codegen/Dialect/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Dialect/BUILD
@@ -4,8 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+load("@llvm-project//mlir:tblgen.bzl", "td_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(
default_visibility = ["//visibility:public"],
@@ -34,7 +36,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IREECodegenDialect",
srcs = [
"IREECodegenDialect.cpp",
@@ -55,7 +57,7 @@
deps = [
":IREECodegenDialectGen",
":LoweringConfigGen",
- "//iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Codegen/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:DialectUtils",
@@ -65,7 +67,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "IREECodegenDialectGen",
tbl_outs = [
(
@@ -82,7 +84,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "LoweringConfigGen",
tbl_outs = [
(
diff --git a/iree/compiler/Codegen/Dialect/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Dialect/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Codegen/Dialect/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Dialect/CMakeLists.txt
index 8fb4530..9fd17fc 100644
--- a/iree/compiler/Codegen/Dialect/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Dialect/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Dialect/BUILD #
+# compiler/src/iree/compiler/Codegen/Dialect/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Dialect/IREECodegenAttributes.td b/compiler/src/iree/compiler/Codegen/Dialect/IREECodegenAttributes.td
similarity index 100%
rename from iree/compiler/Codegen/Dialect/IREECodegenAttributes.td
rename to compiler/src/iree/compiler/Codegen/Dialect/IREECodegenAttributes.td
diff --git a/iree/compiler/Codegen/Dialect/IREECodegenDialect.cpp b/compiler/src/iree/compiler/Codegen/Dialect/IREECodegenDialect.cpp
similarity index 100%
rename from iree/compiler/Codegen/Dialect/IREECodegenDialect.cpp
rename to compiler/src/iree/compiler/Codegen/Dialect/IREECodegenDialect.cpp
diff --git a/iree/compiler/Codegen/Dialect/IREECodegenDialect.h b/compiler/src/iree/compiler/Codegen/Dialect/IREECodegenDialect.h
similarity index 100%
rename from iree/compiler/Codegen/Dialect/IREECodegenDialect.h
rename to compiler/src/iree/compiler/Codegen/Dialect/IREECodegenDialect.h
diff --git a/iree/compiler/Codegen/Dialect/IREECodegenDialect.td b/compiler/src/iree/compiler/Codegen/Dialect/IREECodegenDialect.td
similarity index 100%
rename from iree/compiler/Codegen/Dialect/IREECodegenDialect.td
rename to compiler/src/iree/compiler/Codegen/Dialect/IREECodegenDialect.td
diff --git a/iree/compiler/Codegen/Dialect/LoweringConfig.cpp b/compiler/src/iree/compiler/Codegen/Dialect/LoweringConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/Dialect/LoweringConfig.cpp
rename to compiler/src/iree/compiler/Codegen/Dialect/LoweringConfig.cpp
diff --git a/iree/compiler/Codegen/Dialect/LoweringConfig.h b/compiler/src/iree/compiler/Codegen/Dialect/LoweringConfig.h
similarity index 100%
rename from iree/compiler/Codegen/Dialect/LoweringConfig.h
rename to compiler/src/iree/compiler/Codegen/Dialect/LoweringConfig.h
diff --git a/iree/compiler/Codegen/Dialect/LoweringConfig.td b/compiler/src/iree/compiler/Codegen/Dialect/LoweringConfig.td
similarity index 100%
rename from iree/compiler/Codegen/Dialect/LoweringConfig.td
rename to compiler/src/iree/compiler/Codegen/Dialect/LoweringConfig.td
diff --git a/iree/compiler/Codegen/Dialect/test/BUILD b/compiler/src/iree/compiler/Codegen/Dialect/test/BUILD
similarity index 95%
rename from iree/compiler/Codegen/Dialect/test/BUILD
rename to compiler/src/iree/compiler/Codegen/Dialect/test/BUILD
index 22b576f..71b440e 100644
--- a/iree/compiler/Codegen/Dialect/test/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Dialect/test/BUILD
@@ -23,6 +23,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Codegen/Dialect/test/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Dialect/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Codegen/Dialect/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Dialect/test/CMakeLists.txt
index 976a43b..425fc66 100644
--- a/iree/compiler/Codegen/Dialect/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Dialect/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Dialect/test/BUILD #
+# compiler/src/iree/compiler/Codegen/Dialect/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Dialect/test/lowering_config_attr.mlir b/compiler/src/iree/compiler/Codegen/Dialect/test/lowering_config_attr.mlir
similarity index 100%
rename from iree/compiler/Codegen/Dialect/test/lowering_config_attr.mlir
rename to compiler/src/iree/compiler/Codegen/Dialect/test/lowering_config_attr.mlir
diff --git a/iree/compiler/Codegen/Interfaces/BUILD b/compiler/src/iree/compiler/Codegen/Interfaces/BUILD
similarity index 82%
rename from iree/compiler/Codegen/Interfaces/BUILD
rename to compiler/src/iree/compiler/Codegen/Interfaces/BUILD
index 1dd1126..6f7c1aa 100644
--- a/iree/compiler/Codegen/Interfaces/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Interfaces/BUILD
@@ -4,8 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+load("@llvm-project//mlir:tblgen.bzl", "td_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(
default_visibility = ["//visibility:public"],
@@ -30,7 +32,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "Interfaces",
srcs = [
"Interfaces.cpp",
@@ -43,11 +45,11 @@
":ProcessorOpInterfaces",
# TODO: Remove this dependency once the transform dialect extensions
# have a better registration mechanism.
- "//iree/compiler/Codegen/TransformDialectExtensions",
+ "//compiler/src/iree/compiler/Codegen/TransformDialectExtensions",
],
)
-cc_library(
+iree_compiler_cc_library(
name = "BufferizationInterfaces",
srcs = [
"BufferizationInterfaces.cpp",
@@ -56,8 +58,8 @@
"BufferizationInterfaces.h",
],
deps = [
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"@llvm-project//mlir:ArithmeticTransforms",
"@llvm-project//mlir:BufferizationDialect",
@@ -72,7 +74,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "ProcessorOpInterfaces",
srcs = [
"ProcessorOpInterfaces.cpp",
@@ -86,13 +88,13 @@
],
deps = [
":ProcessorOpInterfaceGen",
- "//iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
"@llvm-project//mlir:GPUDialect",
"@llvm-project//mlir:IR",
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "ProcessorOpInterfaceGen",
tbl_outs = [
(
diff --git a/iree/compiler/Codegen/Interfaces/BufferizationInterfaces.cpp b/compiler/src/iree/compiler/Codegen/Interfaces/BufferizationInterfaces.cpp
similarity index 100%
rename from iree/compiler/Codegen/Interfaces/BufferizationInterfaces.cpp
rename to compiler/src/iree/compiler/Codegen/Interfaces/BufferizationInterfaces.cpp
diff --git a/iree/compiler/Codegen/Interfaces/BufferizationInterfaces.h b/compiler/src/iree/compiler/Codegen/Interfaces/BufferizationInterfaces.h
similarity index 100%
rename from iree/compiler/Codegen/Interfaces/BufferizationInterfaces.h
rename to compiler/src/iree/compiler/Codegen/Interfaces/BufferizationInterfaces.h
diff --git a/iree/compiler/Codegen/Interfaces/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Interfaces/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Codegen/Interfaces/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Interfaces/CMakeLists.txt
index 7e197ec..01691e8 100644
--- a/iree/compiler/Codegen/Interfaces/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Interfaces/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Interfaces/BUILD #
+# compiler/src/iree/compiler/Codegen/Interfaces/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Interfaces/Interfaces.cpp b/compiler/src/iree/compiler/Codegen/Interfaces/Interfaces.cpp
similarity index 100%
rename from iree/compiler/Codegen/Interfaces/Interfaces.cpp
rename to compiler/src/iree/compiler/Codegen/Interfaces/Interfaces.cpp
diff --git a/iree/compiler/Codegen/Interfaces/Interfaces.h b/compiler/src/iree/compiler/Codegen/Interfaces/Interfaces.h
similarity index 100%
rename from iree/compiler/Codegen/Interfaces/Interfaces.h
rename to compiler/src/iree/compiler/Codegen/Interfaces/Interfaces.h
diff --git a/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.cpp b/compiler/src/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.cpp
similarity index 100%
rename from iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.cpp
rename to compiler/src/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.cpp
diff --git a/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.h b/compiler/src/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.h
similarity index 100%
rename from iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.h
rename to compiler/src/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.h
diff --git a/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.td b/compiler/src/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.td
similarity index 100%
rename from iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.td
rename to compiler/src/iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.td
diff --git a/iree/compiler/Codegen/LLVMCPU/BUILD b/compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD
similarity index 77%
rename from iree/compiler/Codegen/LLVMCPU/BUILD
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD
index 01e020d..adf5343 100644
--- a/iree/compiler/Codegen/LLVMCPU/BUILD
+++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "LLVMCPU",
srcs = [
"ConvertToLLVM.cpp",
@@ -28,19 +30,19 @@
"KernelDispatch.h",
],
deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/Sandbox",
- "//iree/compiler/Codegen/Transforms",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/HAL/Utils",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/Sandbox",
+ "//compiler/src/iree/compiler/Codegen/Transforms",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/HAL/Utils",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Utils",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
"//llvm-external-projects/iree-dialects:IREELinalgTransformDialect",
diff --git a/iree/compiler/Codegen/LLVMCPU/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/LLVMCPU/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Codegen/LLVMCPU/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/CMakeLists.txt
index 163455a..ecf1038 100644
--- a/iree/compiler/Codegen/LLVMCPU/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/LLVMCPU/BUILD #
+# compiler/src/iree/compiler/Codegen/LLVMCPU/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/LLVMCPU/ConvertToLLVM.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/ConvertToLLVM.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/ConvertToLLVM.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/ConvertToLLVM.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/KernelDispatch.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/KernelDispatch.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/KernelDispatch.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/KernelDispatch.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/KernelDispatch.h b/compiler/src/iree/compiler/Codegen/LLVMCPU/KernelDispatch.h
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/KernelDispatch.h
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/KernelDispatch.h
diff --git a/iree/compiler/Codegen/LLVMCPU/LLVMCPUCheckIRBeforeLLVMConversion.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUCheckIRBeforeLLVMConversion.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/LLVMCPUCheckIRBeforeLLVMConversion.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUCheckIRBeforeLLVMConversion.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/LLVMCPULowerExecutableTarget.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPULowerExecutableTarget.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/LLVMCPULowerExecutableTarget.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPULowerExecutableTarget.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/LLVMCPUSynchronizeSymbolVisibility.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUSynchronizeSymbolVisibility.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/LLVMCPUSynchronizeSymbolVisibility.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUSynchronizeSymbolVisibility.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/LLVMCPUTileFuseAndVectorizeLinalgTensorOps.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUTileFuseAndVectorizeLinalgTensorOps.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/LLVMCPUTileFuseAndVectorizeLinalgTensorOps.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUTileFuseAndVectorizeLinalgTensorOps.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/LLVMCPUUnfuseFMAOps.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUUnfuseFMAOps.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/LLVMCPUUnfuseFMAOps.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUUnfuseFMAOps.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/Passes.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/Passes.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/Passes.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/Passes.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/VerifyLinalgTransformLegality.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/VerifyLinalgTransformLegality.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/VerifyLinalgTransformLegality.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/VerifyLinalgTransformLegality.cpp
diff --git a/iree/compiler/Codegen/LLVMCPU/test/BUILD b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/BUILD
similarity index 97%
rename from iree/compiler/Codegen/LLVMCPU/test/BUILD
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/BUILD
index 446338e..aff5fc3 100644
--- a/iree/compiler/Codegen/LLVMCPU/test/BUILD
+++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/BUILD
@@ -44,6 +44,7 @@
# transformation, it needs to be included as data.
exclude = ["linalg_transform_spec.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
data = ["linalg_transform_spec.mlir"],
tools = [
"//iree/tools:iree-compile",
diff --git a/iree/compiler/Codegen/LLVMCPU/test/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Codegen/LLVMCPU/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/CMakeLists.txt
index 8035201..4d1c1dd 100644
--- a/iree/compiler/Codegen/LLVMCPU/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/LLVMCPU/test/BUILD #
+# compiler/src/iree/compiler/Codegen/LLVMCPU/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/LLVMCPU/test/check_ir_before_llvm_conversion.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/check_ir_before_llvm_conversion.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/check_ir_before_llvm_conversion.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/check_ir_before_llvm_conversion.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/hal_interface_bindings.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/hal_interface_bindings.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/hal_interface_bindings.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/hal_interface_bindings.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/hal_interface_constants.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/hal_interface_constants.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/hal_interface_constants.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/hal_interface_constants.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/hal_interface_workgroup_info.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/hal_interface_workgroup_info.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/hal_interface_workgroup_info.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/hal_interface_workgroup_info.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/illegal_configuration.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/illegal_configuration.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/illegal_configuration.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/illegal_configuration.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/linalg_transform.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/linalg_transform.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/linalg_transform.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/linalg_transform.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/linalg_transform_spec.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/linalg_transform_spec.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/linalg_transform_spec.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/linalg_transform_spec.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/materialize_aarch64_launch_configuration.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/materialize_aarch64_launch_configuration.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/materialize_aarch64_launch_configuration.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/materialize_aarch64_launch_configuration.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/materialize_riscv_launch_configuration.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/materialize_riscv_launch_configuration.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/materialize_riscv_launch_configuration.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/materialize_riscv_launch_configuration.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/materialize_x86_64_launch_configuration.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/materialize_x86_64_launch_configuration.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/materialize_x86_64_launch_configuration.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/materialize_x86_64_launch_configuration.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/pipeline_tests.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/pipeline_tests.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/pipeline_tests.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/pipeline_tests.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/synchronize_symbol_visibility.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/synchronize_symbol_visibility.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/synchronize_symbol_visibility.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/synchronize_symbol_visibility.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/test_config_mmt4d.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/test_config_mmt4d.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/test_config_mmt4d.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/test_config_mmt4d.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/tile_fuse_and_vectorize.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/tile_fuse_and_vectorize.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/tile_fuse_and_vectorize.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/tile_fuse_and_vectorize.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/transpose_avx2_lowering.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/transpose_avx2_lowering.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/transpose_avx2_lowering.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/transpose_avx2_lowering.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/unfused_fma.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/unfused_fma.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/unfused_fma.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/unfused_fma.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_asm.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_asm.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_asm.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_asm.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_intrinsics.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_intrinsics.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_intrinsics.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/vector_contract_to_arm_intrinsics.mlir
diff --git a/iree/compiler/Codegen/LLVMCPU/test/verify_linalg_transform_legality.mlir b/compiler/src/iree/compiler/Codegen/LLVMCPU/test/verify_linalg_transform_legality.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMCPU/test/verify_linalg_transform_legality.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMCPU/test/verify_linalg_transform_legality.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/BUILD b/compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD
similarity index 82%
rename from iree/compiler/Codegen/LLVMGPU/BUILD
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD
index 9a4b826..53f0e6b 100644
--- a/iree/compiler/Codegen/LLVMGPU/BUILD
+++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "LLVMGPU",
srcs = [
"ConvertToLLVM.cpp",
@@ -33,14 +35,14 @@
"KernelConfig.h",
],
deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/Transforms",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/Transforms",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
"@llvm-project//llvm:Support",
diff --git a/iree/compiler/Codegen/LLVMGPU/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/LLVMGPU/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Codegen/LLVMGPU/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/CMakeLists.txt
index e2830b1..527af53 100644
--- a/iree/compiler/Codegen/LLVMGPU/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/LLVMGPU/BUILD #
+# compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.h b/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.h
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.h
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.h
diff --git a/iree/compiler/Codegen/LLVMGPU/ConvertToNVVM.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToNVVM.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/ConvertToNVVM.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToNVVM.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToROCDL.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/KernelConfig.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/KernelConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/KernelConfig.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/KernelConfig.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/KernelConfig.h b/compiler/src/iree/compiler/Codegen/LLVMGPU/KernelConfig.h
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/KernelConfig.h
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/KernelConfig.h
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPULowerExecutableTarget.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPULowerExecutableTarget.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPULowerExecutableTarget.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPULowerExecutableTarget.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPUMultiBuffering.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUMultiBuffering.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPUMultiBuffering.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUMultiBuffering.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPUReduceBankConflicts.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUReduceBankConflicts.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPUReduceBankConflicts.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUReduceBankConflicts.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPUTensorCoreVectorization.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUTensorCoreVectorization.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPUTensorCoreVectorization.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUTensorCoreVectorization.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPUTileAndDistribute.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUTileAndDistribute.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPUTileAndDistribute.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUTileAndDistribute.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorLowering.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorLowering.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorLowering.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorLowering.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorToGPU.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorToGPU.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorToGPU.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorToGPU.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorization.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorization.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorization.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorization.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/Passes.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/Passes.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/Passes.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/Passes.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/Verifiers.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/Verifiers.cpp
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/Verifiers.cpp
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/Verifiers.cpp
diff --git a/iree/compiler/Codegen/LLVMGPU/test/BUILD b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD
similarity index 96%
rename from iree/compiler/Codegen/LLVMGPU/test/BUILD
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD
index 36d1d95..d961a14 100644
--- a/iree/compiler/Codegen/LLVMGPU/test/BUILD
+++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD
@@ -34,6 +34,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt
index 547de8a..1f7ba1f 100644
--- a/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/LLVMGPU/test/BUILD #
+# compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/LLVMGPU/test/convert_to_nvvm.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_nvvm.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/convert_to_nvvm.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_nvvm.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_rocdl.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/distribute_to_thread.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/distribute_to_thread.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/distribute_to_thread.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/distribute_to_thread.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/gpu_set_num_workgroups.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/gpu_set_num_workgroups.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/gpu_set_num_workgroups.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/gpu_set_num_workgroups.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/illegal_configuration.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/illegal_configuration.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/illegal_configuration.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/illegal_configuration.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/legalize.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/legalize.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/legalize.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/legalize.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/nvvm_pipeline_test.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/nvvm_pipeline_test.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/nvvm_pipeline_test.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/nvvm_pipeline_test.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/reduce_bank_conflicts.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/reduce_bank_conflicts.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/reduce_bank_conflicts.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/reduce_bank_conflicts.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/rocdl_pipeline_test.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/rocdl_pipeline_test.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/rocdl_pipeline_test.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/rocdl_pipeline_test.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/tensorcore_vectorization.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/tensorcore_vectorization.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/tensorcore_vectorization.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/tensorcore_vectorization.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/vector_to_gpu.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/vector_to_gpu.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/vector_to_gpu.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/vector_to_gpu.mlir
diff --git a/iree/compiler/Codegen/LLVMGPU/test/vectorization.mlir b/compiler/src/iree/compiler/Codegen/LLVMGPU/test/vectorization.mlir
similarity index 100%
rename from iree/compiler/Codegen/LLVMGPU/test/vectorization.mlir
rename to compiler/src/iree/compiler/Codegen/LLVMGPU/test/vectorization.mlir
diff --git a/iree/compiler/Codegen/PassDetail.h b/compiler/src/iree/compiler/Codegen/PassDetail.h
similarity index 100%
rename from iree/compiler/Codegen/PassDetail.h
rename to compiler/src/iree/compiler/Codegen/PassDetail.h
diff --git a/iree/compiler/Codegen/Passes.cpp b/compiler/src/iree/compiler/Codegen/Passes.cpp
similarity index 100%
rename from iree/compiler/Codegen/Passes.cpp
rename to compiler/src/iree/compiler/Codegen/Passes.cpp
diff --git a/iree/compiler/Codegen/Passes.h b/compiler/src/iree/compiler/Codegen/Passes.h
similarity index 100%
rename from iree/compiler/Codegen/Passes.h
rename to compiler/src/iree/compiler/Codegen/Passes.h
diff --git a/iree/compiler/Codegen/Passes.td b/compiler/src/iree/compiler/Codegen/Passes.td
similarity index 100%
rename from iree/compiler/Codegen/Passes.td
rename to compiler/src/iree/compiler/Codegen/Passes.td
diff --git a/iree/compiler/Codegen/SPIRV/AMDConfig.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/AMDConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/AMDConfig.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/AMDConfig.cpp
diff --git a/iree/compiler/Codegen/SPIRV/AdrenoConfig.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/AdrenoConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/AdrenoConfig.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/AdrenoConfig.cpp
diff --git a/iree/compiler/Codegen/SPIRV/AppleConfig.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/AppleConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/AppleConfig.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/AppleConfig.cpp
diff --git a/iree/compiler/Codegen/SPIRV/BUILD b/compiler/src/iree/compiler/Codegen/SPIRV/BUILD
similarity index 84%
rename from iree/compiler/Codegen/SPIRV/BUILD
rename to compiler/src/iree/compiler/Codegen/SPIRV/BUILD
index 0ed0914..1a9db49 100644
--- a/iree/compiler/Codegen/SPIRV/BUILD
+++ b/compiler/src/iree/compiler/Codegen/SPIRV/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "SPIRV",
srcs = [
"AMDConfig.cpp",
@@ -41,15 +43,15 @@
"Utils.h",
],
deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/Transforms",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/Transforms",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
"@llvm-project//llvm:Support",
diff --git a/iree/compiler/Codegen/SPIRV/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/SPIRV/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Codegen/SPIRV/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/SPIRV/CMakeLists.txt
index 4c4a94c..06dcad0 100644
--- a/iree/compiler/Codegen/SPIRV/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/SPIRV/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/SPIRV/BUILD #
+# compiler/src/iree/compiler/Codegen/SPIRV/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/ConvertToSPIRVPass.cpp
diff --git a/iree/compiler/Codegen/SPIRV/KernelConfig.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/KernelConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/KernelConfig.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/KernelConfig.cpp
diff --git a/iree/compiler/Codegen/SPIRV/KernelConfig.h b/compiler/src/iree/compiler/Codegen/SPIRV/KernelConfig.h
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/KernelConfig.h
rename to compiler/src/iree/compiler/Codegen/SPIRV/KernelConfig.h
diff --git a/iree/compiler/Codegen/SPIRV/MaliConfig.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/MaliConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/MaliConfig.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/MaliConfig.cpp
diff --git a/iree/compiler/Codegen/SPIRV/MemorySpace.h b/compiler/src/iree/compiler/Codegen/SPIRV/MemorySpace.h
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/MemorySpace.h
rename to compiler/src/iree/compiler/Codegen/SPIRV/MemorySpace.h
diff --git a/iree/compiler/Codegen/SPIRV/NVIDIAConfig.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/NVIDIAConfig.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/NVIDIAConfig.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/NVIDIAConfig.cpp
diff --git a/iree/compiler/Codegen/SPIRV/Passes.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/Passes.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/Passes.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/Passes.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVCreateFastSlowPath.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVCreateFastSlowPath.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVCreateFastSlowPath.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVCreateFastSlowPath.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVDistribute.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVDistribute.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVDistribute.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVDistribute.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVFuseTensorPadWithConsumer.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVFuseTensorPadWithConsumer.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVFuseTensorPadWithConsumer.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVFuseTensorPadWithConsumer.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVLowerExecutableTargetPass.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVLowerExecutableTargetPass.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVLowerExecutableTargetPass.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVLowerExecutableTargetPass.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVTile.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTile.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVTile.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTile.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVTileAndDistribute.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTileAndDistribute.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVTileAndDistribute.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTileAndDistribute.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVTileAndPromote.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTileAndPromote.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVTileAndPromote.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTileAndPromote.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVTileAndVectorizeToCooperativeOps.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTileAndVectorizeToCooperativeOps.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVTileAndVectorizeToCooperativeOps.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTileAndVectorizeToCooperativeOps.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVVectorToCooperativeOps.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorToCooperativeOps.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVVectorToCooperativeOps.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorToCooperativeOps.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVVectorize.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorize.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVVectorize.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorize.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVVectorizeLoadStore.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorizeLoadStore.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVVectorizeLoadStore.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorizeLoadStore.cpp
diff --git a/iree/compiler/Codegen/SPIRV/SPIRVVectorizePad.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorizePad.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/SPIRVVectorizePad.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/SPIRVVectorizePad.cpp
diff --git a/iree/compiler/Codegen/SPIRV/Utils.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/Utils.cpp
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/Utils.cpp
rename to compiler/src/iree/compiler/Codegen/SPIRV/Utils.cpp
diff --git a/iree/compiler/Codegen/SPIRV/Utils.h b/compiler/src/iree/compiler/Codegen/SPIRV/Utils.h
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/Utils.h
rename to compiler/src/iree/compiler/Codegen/SPIRV/Utils.h
diff --git a/iree/compiler/Codegen/SPIRV/test/BUILD b/compiler/src/iree/compiler/Codegen/SPIRV/test/BUILD
similarity index 97%
rename from iree/compiler/Codegen/SPIRV/test/BUILD
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/BUILD
index 7016e86..c7baf06 100644
--- a/iree/compiler/Codegen/SPIRV/test/BUILD
+++ b/compiler/src/iree/compiler/Codegen/SPIRV/test/BUILD
@@ -50,6 +50,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Codegen/SPIRV/test/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/SPIRV/test/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Codegen/SPIRV/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/CMakeLists.txt
index 9ee9691..d6809d0 100644
--- a/iree/compiler/Codegen/SPIRV/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/SPIRV/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/SPIRV/test/BUILD #
+# compiler/src/iree/compiler/Codegen/SPIRV/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/SPIRV/test/config_adreno_conv.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_adreno_conv.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_adreno_conv.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_adreno_conv.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_adreno_matmul.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_adreno_matmul.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_adreno_matmul.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_adreno_matmul.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_default_conv.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_conv.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_default_conv.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_conv.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_default_linalg_ext_ops.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_linalg_ext_ops.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_default_linalg_ext_ops.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_linalg_ext_ops.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_default_linalg_ops.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_linalg_ops.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_default_linalg_ops.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_linalg_ops.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_default_matmul.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_matmul.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_default_matmul.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_default_matmul.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_mali_conv.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_mali_conv.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_mali_conv.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_mali_conv.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_mali_matmul.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_mali_matmul.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_mali_matmul.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_mali_matmul.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/config_nvidia_matmul_cooperative_ops.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/config_nvidia_matmul_cooperative_ops.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/config_nvidia_matmul_cooperative_ops.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/config_nvidia_matmul_cooperative_ops.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/convert_to_spirv.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/convert_to_spirv.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/convert_to_spirv.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/convert_to_spirv.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/create_fast_slow_path.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/create_fast_slow_path.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/create_fast_slow_path.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/create_fast_slow_path.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/distribute_to_invocations.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/distribute_to_invocations.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/distribute_to_invocations.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/distribute_to_invocations.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_cooperative_ops.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_cooperative_ops.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/pipeline_matmul_cooperative_ops.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_cooperative_ops.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_promotion.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_promotion.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/pipeline_matmul_promotion.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_promotion.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_vectorization.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_vectorization.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/pipeline_matmul_vectorization.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/pipeline_matmul_vectorization.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_distribute.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_distribute.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_distribute.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_distribute.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_distribute_scatter.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_distribute_scatter.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_distribute_scatter.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_distribute_scatter.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_distribute_sort.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_distribute_sort.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_distribute_sort.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_distribute_sort.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_promote_matmul.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_promote_matmul.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_promote_matmul.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_promote_matmul.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_batch_matmul.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_batch_matmul.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_batch_matmul.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_batch_matmul.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_conv.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_conv.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_conv.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_conv.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_matmul.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_matmul.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_matmul.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_matmul.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_to_cooperative_ops.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_to_cooperative_ops.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_to_cooperative_ops.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/tile_and_vectorize_to_cooperative_ops.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/vector_to_cooperative_matrix.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/vector_to_cooperative_matrix.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/vector_to_cooperative_matrix.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/vector_to_cooperative_matrix.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/vectorize_elementwise_ops.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_elementwise_ops.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/vectorize_elementwise_ops.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_elementwise_ops.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/vectorize_load_store.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_load_store.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/vectorize_load_store.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_load_store.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/vectorize_matmul.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_matmul.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/vectorize_matmul.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_matmul.mlir
diff --git a/iree/compiler/Codegen/SPIRV/test/vectorize_tensor_pad.mlir b/compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_tensor_pad.mlir
similarity index 100%
rename from iree/compiler/Codegen/SPIRV/test/vectorize_tensor_pad.mlir
rename to compiler/src/iree/compiler/Codegen/SPIRV/test/vectorize_tensor_pad.mlir
diff --git a/iree/compiler/Codegen/Sandbox/BUILD b/compiler/src/iree/compiler/Codegen/Sandbox/BUILD
similarity index 84%
rename from iree/compiler/Codegen/Sandbox/BUILD
rename to compiler/src/iree/compiler/Codegen/Sandbox/BUILD
index 8d12ba8..54a187c 100644
--- a/iree/compiler/Codegen/Sandbox/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Sandbox/BUILD
@@ -4,7 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -12,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
@@ -25,7 +26,7 @@
deps = ["@llvm-project//mlir:PassBaseTdFiles"],
)
-cc_library(
+iree_compiler_cc_library(
name = "PassHeaders",
hdrs = [
"PassDetail.h",
@@ -40,7 +41,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "Sandbox",
srcs = [
"LinalgTensorCodegenDriver.cpp",
@@ -52,8 +53,8 @@
deps = [
":PassHeaders",
":PassesIncGen",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:ArithmeticDialect",
diff --git a/iree/compiler/Codegen/Sandbox/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Sandbox/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Codegen/Sandbox/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Sandbox/CMakeLists.txt
index 64b2659..cfeda0b 100644
--- a/iree/compiler/Codegen/Sandbox/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Sandbox/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Sandbox/BUILD #
+# compiler/src/iree/compiler/Codegen/Sandbox/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Sandbox/LinalgTensorCodegenDriver.cpp b/compiler/src/iree/compiler/Codegen/Sandbox/LinalgTensorCodegenDriver.cpp
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/LinalgTensorCodegenDriver.cpp
rename to compiler/src/iree/compiler/Codegen/Sandbox/LinalgTensorCodegenDriver.cpp
diff --git a/iree/compiler/Codegen/Sandbox/PassDetail.h b/compiler/src/iree/compiler/Codegen/Sandbox/PassDetail.h
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/PassDetail.h
rename to compiler/src/iree/compiler/Codegen/Sandbox/PassDetail.h
diff --git a/iree/compiler/Codegen/Sandbox/Passes.h b/compiler/src/iree/compiler/Codegen/Sandbox/Passes.h
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/Passes.h
rename to compiler/src/iree/compiler/Codegen/Sandbox/Passes.h
diff --git a/iree/compiler/Codegen/Sandbox/Passes.td b/compiler/src/iree/compiler/Codegen/Sandbox/Passes.td
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/Passes.td
rename to compiler/src/iree/compiler/Codegen/Sandbox/Passes.td
diff --git a/iree/compiler/Codegen/Sandbox/test/BUILD b/compiler/src/iree/compiler/Codegen/Sandbox/test/BUILD
similarity index 95%
rename from iree/compiler/Codegen/Sandbox/test/BUILD
rename to compiler/src/iree/compiler/Codegen/Sandbox/test/BUILD
index 55f3025..9ce3255 100644
--- a/iree/compiler/Codegen/Sandbox/test/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Sandbox/test/BUILD
@@ -26,6 +26,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Codegen/Sandbox/test/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Sandbox/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Codegen/Sandbox/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Sandbox/test/CMakeLists.txt
index 5c3e835..951f63b 100644
--- a/iree/compiler/Codegen/Sandbox/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Sandbox/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Sandbox/test/BUILD #
+# compiler/src/iree/compiler/Codegen/Sandbox/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Sandbox/test/fusion_expert.mlir b/compiler/src/iree/compiler/Codegen/Sandbox/test/fusion_expert.mlir
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/test/fusion_expert.mlir
rename to compiler/src/iree/compiler/Codegen/Sandbox/test/fusion_expert.mlir
diff --git a/iree/compiler/Codegen/Sandbox/test/outline_one_parent_loop.mlir b/compiler/src/iree/compiler/Codegen/Sandbox/test/outline_one_parent_loop.mlir
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/test/outline_one_parent_loop.mlir
rename to compiler/src/iree/compiler/Codegen/Sandbox/test/outline_one_parent_loop.mlir
diff --git a/iree/compiler/Codegen/Sandbox/test/single_tiling_expert.mlir b/compiler/src/iree/compiler/Codegen/Sandbox/test/single_tiling_expert.mlir
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/test/single_tiling_expert.mlir
rename to compiler/src/iree/compiler/Codegen/Sandbox/test/single_tiling_expert.mlir
diff --git a/iree/compiler/Codegen/Sandbox/test/unroll_one_vector_op.mlir b/compiler/src/iree/compiler/Codegen/Sandbox/test/unroll_one_vector_op.mlir
similarity index 100%
rename from iree/compiler/Codegen/Sandbox/test/unroll_one_vector_op.mlir
rename to compiler/src/iree/compiler/Codegen/Sandbox/test/unroll_one_vector_op.mlir
diff --git a/iree/compiler/Codegen/TransformDialectExtensions/BUILD b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD
similarity index 76%
rename from iree/compiler/Codegen/TransformDialectExtensions/BUILD
rename to compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD
index dad1ffa..edfe023 100644
--- a/iree/compiler/Codegen/TransformDialectExtensions/BUILD
+++ b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "TransformDialectExtensions",
srcs = [
"TransformDialectExtensions.cpp",
@@ -19,12 +21,12 @@
"TransformDialectExtensions.h",
],
deps = [
- "//iree/compiler/Codegen",
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Interfaces:BufferizationInterfaces",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Codegen",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Interfaces:BufferizationInterfaces",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
"//llvm-external-projects/iree-dialects:IREEDialectsTransforms",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtTransforms",
diff --git a/iree/compiler/Codegen/TransformDialectExtensions/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Codegen/TransformDialectExtensions/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/TransformDialectExtensions/CMakeLists.txt
index 788fa1c..6e25226 100644
--- a/iree/compiler/Codegen/TransformDialectExtensions/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/TransformDialectExtensions/BUILD #
+# compiler/src/iree/compiler/Codegen/TransformDialectExtensions/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.cpp b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.cpp
similarity index 100%
rename from iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.cpp
rename to compiler/src/iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.cpp
diff --git a/iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.h b/compiler/src/iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.h
similarity index 100%
rename from iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.h
rename to compiler/src/iree/compiler/Codegen/TransformDialectExtensions/TransformDialectExtensions.h
diff --git a/iree/compiler/Codegen/Transforms/AffineMinDistributedSCFCanonicalization.cpp b/compiler/src/iree/compiler/Codegen/Transforms/AffineMinDistributedSCFCanonicalization.cpp
similarity index 100%
rename from iree/compiler/Codegen/Transforms/AffineMinDistributedSCFCanonicalization.cpp
rename to compiler/src/iree/compiler/Codegen/Transforms/AffineMinDistributedSCFCanonicalization.cpp
diff --git a/iree/compiler/Codegen/Transforms/BUILD b/compiler/src/iree/compiler/Codegen/Transforms/BUILD
similarity index 84%
rename from iree/compiler/Codegen/Transforms/BUILD
rename to compiler/src/iree/compiler/Codegen/Transforms/BUILD
index fadcdbe..ecdb2b2 100644
--- a/iree/compiler/Codegen/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Transforms/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"AffineMinDistributedSCFCanonicalization.cpp",
@@ -21,8 +23,8 @@
"Transforms.h",
],
deps = [
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:AffineUtils",
diff --git a/iree/compiler/Codegen/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Transforms/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Codegen/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Transforms/CMakeLists.txt
index c7f9ecd..c0be13e 100644
--- a/iree/compiler/Codegen/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Transforms/BUILD #
+# compiler/src/iree/compiler/Codegen/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Transforms/RemoveSingleIterationLoop.cpp b/compiler/src/iree/compiler/Codegen/Transforms/RemoveSingleIterationLoop.cpp
similarity index 100%
rename from iree/compiler/Codegen/Transforms/RemoveSingleIterationLoop.cpp
rename to compiler/src/iree/compiler/Codegen/Transforms/RemoveSingleIterationLoop.cpp
diff --git a/iree/compiler/Codegen/Transforms/Transforms.cpp b/compiler/src/iree/compiler/Codegen/Transforms/Transforms.cpp
similarity index 100%
rename from iree/compiler/Codegen/Transforms/Transforms.cpp
rename to compiler/src/iree/compiler/Codegen/Transforms/Transforms.cpp
diff --git a/iree/compiler/Codegen/Transforms/Transforms.h b/compiler/src/iree/compiler/Codegen/Transforms/Transforms.h
similarity index 100%
rename from iree/compiler/Codegen/Transforms/Transforms.h
rename to compiler/src/iree/compiler/Codegen/Transforms/Transforms.h
diff --git a/iree/compiler/Codegen/Utils/BUILD b/compiler/src/iree/compiler/Codegen/Utils/BUILD
similarity index 75%
rename from iree/compiler/Codegen/Utils/BUILD
rename to compiler/src/iree/compiler/Codegen/Utils/BUILD
index 6ae7b55..fc5018b 100644
--- a/iree/compiler/Codegen/Utils/BUILD
+++ b/compiler/src/iree/compiler/Codegen/Utils/BUILD
@@ -6,13 +6,15 @@
# Utilities for working with IREE MLIR types.
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Utils",
srcs = [
"GPUUtils.cpp",
@@ -25,10 +27,10 @@
"Utils.h",
],
deps = [
- "//iree/compiler/Codegen/Interfaces:ProcessorOpInterfaces",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
- "//iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Codegen/Interfaces:ProcessorOpInterfaces",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Affine",
diff --git a/iree/compiler/Codegen/Utils/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Utils/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Codegen/Utils/CMakeLists.txt
rename to compiler/src/iree/compiler/Codegen/Utils/CMakeLists.txt
index 8d43e0c..e006ba5 100644
--- a/iree/compiler/Codegen/Utils/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Utils/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Codegen/Utils/BUILD #
+# compiler/src/iree/compiler/Codegen/Utils/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Codegen/Utils/GPUUtils.cpp b/compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp
similarity index 100%
rename from iree/compiler/Codegen/Utils/GPUUtils.cpp
rename to compiler/src/iree/compiler/Codegen/Utils/GPUUtils.cpp
diff --git a/iree/compiler/Codegen/Utils/GPUUtils.h b/compiler/src/iree/compiler/Codegen/Utils/GPUUtils.h
similarity index 100%
rename from iree/compiler/Codegen/Utils/GPUUtils.h
rename to compiler/src/iree/compiler/Codegen/Utils/GPUUtils.h
diff --git a/iree/compiler/Codegen/Utils/MarkerUtils.cpp b/compiler/src/iree/compiler/Codegen/Utils/MarkerUtils.cpp
similarity index 100%
rename from iree/compiler/Codegen/Utils/MarkerUtils.cpp
rename to compiler/src/iree/compiler/Codegen/Utils/MarkerUtils.cpp
diff --git a/iree/compiler/Codegen/Utils/MarkerUtils.h b/compiler/src/iree/compiler/Codegen/Utils/MarkerUtils.h
similarity index 100%
rename from iree/compiler/Codegen/Utils/MarkerUtils.h
rename to compiler/src/iree/compiler/Codegen/Utils/MarkerUtils.h
diff --git a/iree/compiler/Codegen/Utils/Utils.cpp b/compiler/src/iree/compiler/Codegen/Utils/Utils.cpp
similarity index 100%
rename from iree/compiler/Codegen/Utils/Utils.cpp
rename to compiler/src/iree/compiler/Codegen/Utils/Utils.cpp
diff --git a/iree/compiler/Codegen/Utils/Utils.h b/compiler/src/iree/compiler/Codegen/Utils/Utils.h
similarity index 100%
rename from iree/compiler/Codegen/Utils/Utils.h
rename to compiler/src/iree/compiler/Codegen/Utils/Utils.h
diff --git a/iree/compiler/ConstEval/BUILD b/compiler/src/iree/compiler/ConstEval/BUILD
similarity index 80%
rename from iree/compiler/ConstEval/BUILD
rename to compiler/src/iree/compiler/ConstEval/BUILD
index 63b1e2f..40bfa3d 100644
--- a/iree/compiler/ConstEval/BUILD
+++ b/compiler/src/iree/compiler/ConstEval/BUILD
@@ -4,7 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -12,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
@@ -27,7 +28,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "PassHeaders",
hdrs = [
"PassDetail.h",
@@ -41,7 +42,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "ConstEval",
srcs = [
"JitGlobals.cpp",
@@ -54,8 +55,8 @@
":PassHeaders",
":PassesIncGen",
":Runtime",
- "//iree/compiler/Pipelines",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Pipelines",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
@@ -63,7 +64,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "Runtime",
srcs = [
"Runtime.cpp",
@@ -72,7 +73,7 @@
"Runtime.h",
],
deps = [
- "//iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
"//iree/tools/utils:vm_util",
"//runtime/src/iree/hal",
"//runtime/src/iree/hal/vmvx/registration",
diff --git a/iree/compiler/ConstEval/CMakeLists.txt b/compiler/src/iree/compiler/ConstEval/CMakeLists.txt
similarity index 95%
rename from iree/compiler/ConstEval/CMakeLists.txt
rename to compiler/src/iree/compiler/ConstEval/CMakeLists.txt
index 4fe7503..b19ab65 100644
--- a/iree/compiler/ConstEval/CMakeLists.txt
+++ b/compiler/src/iree/compiler/ConstEval/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/ConstEval/BUILD #
+# compiler/src/iree/compiler/ConstEval/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/ConstEval/JitGlobals.cpp b/compiler/src/iree/compiler/ConstEval/JitGlobals.cpp
similarity index 100%
rename from iree/compiler/ConstEval/JitGlobals.cpp
rename to compiler/src/iree/compiler/ConstEval/JitGlobals.cpp
diff --git a/iree/compiler/ConstEval/PassDetail.h b/compiler/src/iree/compiler/ConstEval/PassDetail.h
similarity index 100%
rename from iree/compiler/ConstEval/PassDetail.h
rename to compiler/src/iree/compiler/ConstEval/PassDetail.h
diff --git a/iree/compiler/ConstEval/Passes.cpp b/compiler/src/iree/compiler/ConstEval/Passes.cpp
similarity index 100%
rename from iree/compiler/ConstEval/Passes.cpp
rename to compiler/src/iree/compiler/ConstEval/Passes.cpp
diff --git a/iree/compiler/ConstEval/Passes.h b/compiler/src/iree/compiler/ConstEval/Passes.h
similarity index 100%
rename from iree/compiler/ConstEval/Passes.h
rename to compiler/src/iree/compiler/ConstEval/Passes.h
diff --git a/iree/compiler/ConstEval/Passes.td b/compiler/src/iree/compiler/ConstEval/Passes.td
similarity index 100%
rename from iree/compiler/ConstEval/Passes.td
rename to compiler/src/iree/compiler/ConstEval/Passes.td
diff --git a/iree/compiler/ConstEval/README.md b/compiler/src/iree/compiler/ConstEval/README.md
similarity index 100%
rename from iree/compiler/ConstEval/README.md
rename to compiler/src/iree/compiler/ConstEval/README.md
diff --git a/iree/compiler/ConstEval/Runtime.cpp b/compiler/src/iree/compiler/ConstEval/Runtime.cpp
similarity index 100%
rename from iree/compiler/ConstEval/Runtime.cpp
rename to compiler/src/iree/compiler/ConstEval/Runtime.cpp
diff --git a/iree/compiler/ConstEval/Runtime.h b/compiler/src/iree/compiler/ConstEval/Runtime.h
similarity index 100%
rename from iree/compiler/ConstEval/Runtime.h
rename to compiler/src/iree/compiler/ConstEval/Runtime.h
diff --git a/iree/compiler/ConstEval/test/BUILD b/compiler/src/iree/compiler/ConstEval/test/BUILD
similarity index 95%
rename from iree/compiler/ConstEval/test/BUILD
rename to compiler/src/iree/compiler/ConstEval/test/BUILD
index 4b7046b..a6d0586 100644
--- a/iree/compiler/ConstEval/test/BUILD
+++ b/compiler/src/iree/compiler/ConstEval/test/BUILD
@@ -21,6 +21,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/ConstEval/test/CMakeLists.txt b/compiler/src/iree/compiler/ConstEval/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/ConstEval/test/CMakeLists.txt
rename to compiler/src/iree/compiler/ConstEval/test/CMakeLists.txt
index 3fe0d66..692278b 100644
--- a/iree/compiler/ConstEval/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/ConstEval/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/ConstEval/test/BUILD #
+# compiler/src/iree/compiler/ConstEval/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/ConstEval/test/jit_globals.mlir b/compiler/src/iree/compiler/ConstEval/test/jit_globals.mlir
similarity index 100%
rename from iree/compiler/ConstEval/test/jit_globals.mlir
rename to compiler/src/iree/compiler/ConstEval/test/jit_globals.mlir
diff --git a/iree/compiler/Dialect/BUILD b/compiler/src/iree/compiler/Dialect/BUILD
similarity index 100%
rename from iree/compiler/Dialect/BUILD
rename to compiler/src/iree/compiler/Dialect/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/CMakeLists.txt
index 24888ca..5210321 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/BUILD b/compiler/src/iree/compiler/Dialect/Flow/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Flow/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Flow/CMakeLists.txt
index 24888ca..c45d45a 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Flow/Conversion/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/Conversion/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Flow/Conversion/CMakeLists.txt
index 24888ca..29f8297 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/Conversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/Conversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
similarity index 84%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
index 47b985e..1c4c335 100644
--- a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "TensorToFlow",
srcs = [
"ConvertTensorToFlow.cpp",
@@ -19,7 +21,7 @@
"ConvertTensorToFlow.h",
],
deps = [
- "//iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/CMakeLists.txt
index 7840339..f27e9a1 100644
--- a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.cpp b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.cpp
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.h b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.h
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/ConvertTensorToFlow.h
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD
index 0a51107..9b2acc3 100644
--- a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD
@@ -27,6 +27,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/CMakeLists.txt
index ef8ebad..ae0fe33 100644
--- a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/cast.mlir b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/cast.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/cast.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/cast.mlir
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract.mlir b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract.mlir
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract_slice.mlir b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract_slice.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract_slice.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/extract_slice.mlir
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/fill.mlir b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/fill.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/fill.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/fill.mlir
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/from_elements.mlir b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/from_elements.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/from_elements.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/from_elements.mlir
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/insert_slice.mlir b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/insert_slice.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/insert_slice.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/insert_slice.mlir
diff --git a/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/reshape.mlir b/compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/reshape.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/reshape.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/test/reshape.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/BUILD b/compiler/src/iree/compiler/Dialect/Flow/IR/BUILD
similarity index 91%
rename from iree/compiler/Dialect/Flow/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/IR/BUILD
index 0694588..8913f2360 100644
--- a/iree/compiler/Dialect/Flow/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/IR/BUILD
@@ -4,9 +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_doc.bzl", "iree_tablegen_doc")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+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:enforce_glob.bzl", "enforce_glob")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -26,7 +27,7 @@
exclude = ["PartitionableLoopsInterface.td"],
),
deps = [
- "//iree/compiler/Dialect/Util/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/Util/IR:td_files",
"@llvm-project//mlir:ControlFlowInterfacesTdFiles",
"@llvm-project//mlir:InferTypeOpInterfaceTdFiles",
"@llvm-project//mlir:OpBaseTdFiles",
@@ -36,7 +37,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"FlowDialect.cpp",
@@ -64,7 +65,7 @@
":FlowInterfacesGen",
":FlowOpsGen",
":FlowTypesGen",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:Analysis",
@@ -83,7 +84,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "FlowEnumsGen",
tbl_outs = [
(
@@ -100,7 +101,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "FlowInterfacesGen",
tbl_outs = [
(
@@ -125,7 +126,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "FlowOpsGen",
tbl_outs = [
(
@@ -142,7 +143,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "FlowTypesGen",
tbl_outs = [
(
@@ -180,7 +181,7 @@
deps = [":td_files"],
)
-cc_library(
+iree_compiler_cc_library(
name = "PartitionableLoopsInterface",
srcs = [
"PartitionableLoopsInterface.cpp",
@@ -203,7 +204,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PartitionableLoopsInterfaceGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/Flow/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/IR/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/Flow/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Flow/IR/CMakeLists.txt
index f32a1e5..03a26fc 100644
--- a/iree/compiler/Dialect/Flow/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/IR/FlowBase.td b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowBase.td
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowBase.td
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowBase.td
diff --git a/iree/compiler/Dialect/Flow/IR/FlowDialect.cpp b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowDialect.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowDialect.cpp
diff --git a/iree/compiler/Dialect/Flow/IR/FlowDialect.h b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowDialect.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowDialect.h
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowDialect.h
diff --git a/iree/compiler/Dialect/Flow/IR/FlowInterfaces.td b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowInterfaces.td
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowInterfaces.td
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowInterfaces.td
diff --git a/iree/compiler/Dialect/Flow/IR/FlowOpFolders.cpp b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowOpFolders.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowOpFolders.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowOpFolders.cpp
diff --git a/iree/compiler/Dialect/Flow/IR/FlowOps.cpp b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowOps.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowOps.cpp
diff --git a/iree/compiler/Dialect/Flow/IR/FlowOps.h b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowOps.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowOps.h
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowOps.h
diff --git a/iree/compiler/Dialect/Flow/IR/FlowOps.td b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowOps.td
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowOps.td
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowOps.td
diff --git a/iree/compiler/Dialect/Flow/IR/FlowTypes.cpp b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowTypes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowTypes.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowTypes.cpp
diff --git a/iree/compiler/Dialect/Flow/IR/FlowTypes.h b/compiler/src/iree/compiler/Dialect/Flow/IR/FlowTypes.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/FlowTypes.h
rename to compiler/src/iree/compiler/Dialect/Flow/IR/FlowTypes.h
diff --git a/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.cpp b/compiler/src/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.cpp
diff --git a/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.h b/compiler/src/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.h
rename to compiler/src/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.h
diff --git a/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.td b/compiler/src/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.td
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.td
rename to compiler/src/iree/compiler/Dialect/Flow/IR/PartitionableLoopsInterface.td
diff --git a/iree/compiler/Dialect/Flow/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/Flow/IR/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/Flow/IR/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/BUILD
index 0cb0f17..f539d7c 100644
--- a/iree/compiler/Dialect/Flow/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/IR/test/BUILD
@@ -28,6 +28,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Flow/IR/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/IR/test/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/Flow/IR/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/CMakeLists.txt
index 9cbe808..45d93f9 100644
--- a/iree/compiler/Dialect/Flow/IR/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/IR/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/IR/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/IR/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/IR/test/dispatch_ops.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/dispatch_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_ops.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/test/dispatch_tensor_folding.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_tensor_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/dispatch_tensor_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_tensor_folding.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups_folding.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/dispatch_workgroups_folding.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/test/executable_ops.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/executable_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/executable_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/executable_ops.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/test/tensor_folding.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/tensor_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/tensor_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/tensor_folding.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/test/tensor_ops.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/tensor_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/tensor_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/tensor_ops.mlir
diff --git a/iree/compiler/Dialect/Flow/IR/test/types.mlir b/compiler/src/iree/compiler/Dialect/Flow/IR/test/types.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/IR/test/types.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/IR/test/types.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD
similarity index 79%
rename from iree/compiler/Dialect/Flow/Transforms/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD
index efb3ff7..4a45700 100644
--- a/iree/compiler/Dialect/Flow/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -13,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
@@ -28,7 +28,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"CaptureDispatchDynamicDims.cpp",
@@ -66,16 +66,16 @@
],
deps = [
":PassesIncGen",
- "//iree/compiler/Dialect/Flow/Conversion/TensorToFlow",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Util/Analysis",
- "//iree/compiler/Dialect/Util/Analysis/Attributes",
- "//iree/compiler/Dialect/Util/Analysis/DFX",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR:PartitionableLoopsInterface",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/DFX",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Utils",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
"@llvm-project//llvm:Support",
diff --git a/iree/compiler/Dialect/Flow/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/Transforms/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/Flow/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/CMakeLists.txt
index e67be92..2e80bd9 100644
--- a/iree/compiler/Dialect/Flow/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/Transforms/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/Transforms/CaptureDispatchDynamicDims.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/CaptureDispatchDynamicDims.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/CaptureDispatchDynamicDims.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/CaptureDispatchDynamicDims.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/CleanupNumericNarrowing.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/CleanupNumericNarrowing.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/CleanupNumericNarrowing.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/CleanupNumericNarrowing.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/CleanupTensorShapes.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/CleanupTensorShapes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/CleanupTensorShapes.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/CleanupTensorShapes.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/ConvertConv2D1x1ToMatmulPass.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertConv2D1x1ToMatmulPass.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/ConvertConv2D1x1ToMatmulPass.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertConv2D1x1ToMatmulPass.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/ConvertConv2DToImg2ColPass.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertConv2DToImg2ColPass.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/ConvertConv2DToImg2ColPass.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertConv2DToImg2ColPass.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/ConvertLinalgMatmulToMmt4D.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertLinalgMatmulToMmt4D.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/ConvertLinalgMatmulToMmt4D.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertLinalgMatmulToMmt4D.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/ConvertLinalgTensorOps.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertLinalgTensorOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/ConvertLinalgTensorOps.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/ConvertLinalgTensorOps.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/DeduplicateExecutables.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/DeduplicateExecutables.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/DeduplicateExecutables.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/DeduplicateExecutables.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/DispatchLinalgOnTensors.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/DispatchLinalgOnTensors.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/DispatchLinalgOnTensors.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/DispatchLinalgOnTensors.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/ExpandTensorShapes.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/ExpandTensorShapes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/ExpandTensorShapes.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/ExpandTensorShapes.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/ExportBenchmarkFuncs.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/ExportBenchmarkFuncs.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/ExportBenchmarkFuncs.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/ExportBenchmarkFuncs.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/FusionOfTensorOps.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/FusionOfTensorOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/FusionOfTensorOps.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/FusionOfTensorOps.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/FusionUtils.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/FusionUtils.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/FusionUtils.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/FusionUtils.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/FusionUtils.h b/compiler/src/iree/compiler/Dialect/Flow/Transforms/FusionUtils.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/FusionUtils.h
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/FusionUtils.h
diff --git a/iree/compiler/Dialect/Flow/Transforms/InferNumericNarrowing.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/InferNumericNarrowing.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/InferNumericNarrowing.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/InferNumericNarrowing.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/InitializeEmptyTensors.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/InitializeEmptyTensors.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/InitializeEmptyTensors.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/InitializeEmptyTensors.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/InjectDispatchTracing.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/InjectDispatchTracing.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/InjectDispatchTracing.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/InjectDispatchTracing.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/InterchangeGenericOps.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/InterchangeGenericOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/InterchangeGenericOps.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/InterchangeGenericOps.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/OptimizeNumerics.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/OptimizeNumerics.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/OptimizeNumerics.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/OptimizeNumerics.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/OutlineDispatchRegions.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/OutlineDispatchRegions.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/OutlineDispatchRegions.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/OutlineDispatchRegions.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/PadLinalgOps.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/PadLinalgOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/PadLinalgOps.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/PadLinalgOps.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/PadTensorToSubTensorInsert.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/PadTensorToSubTensorInsert.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/PadTensorToSubTensorInsert.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/PadTensorToSubTensorInsert.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/PassDetail.h b/compiler/src/iree/compiler/Dialect/Flow/Transforms/PassDetail.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/PassDetail.h
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/PassDetail.h
diff --git a/iree/compiler/Dialect/Flow/Transforms/Passes.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/Passes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/Passes.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/Passes.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/Passes.h b/compiler/src/iree/compiler/Dialect/Flow/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/Passes.h
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/Passes.h
diff --git a/iree/compiler/Dialect/Flow/Transforms/Passes.td b/compiler/src/iree/compiler/Dialect/Flow/Transforms/Passes.td
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/Passes.td
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/Passes.td
diff --git a/iree/compiler/Dialect/Flow/Transforms/PromoteTensorLoads.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/PromoteTensorLoads.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/PromoteTensorLoads.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/PromoteTensorLoads.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/SplitReduction.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/SplitReduction.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/SplitReduction.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/SplitReduction.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/StripAndSplatConstantVariables.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/StripAndSplatConstantVariables.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/StripAndSplatConstantVariables.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/StripAndSplatConstantVariables.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/StripSignednessPass.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/StripSignednessPass.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/StripSignednessPass.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/StripSignednessPass.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/TestPartitionableLoopsInterface.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/TestPartitionableLoopsInterface.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/TestPartitionableLoopsInterface.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/TestPartitionableLoopsInterface.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/VerifyInputLegality.cpp b/compiler/src/iree/compiler/Dialect/Flow/Transforms/VerifyInputLegality.cpp
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/VerifyInputLegality.cpp
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/VerifyInputLegality.cpp
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/BUILD b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/BUILD
similarity index 97%
rename from iree/compiler/Dialect/Flow/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/BUILD
index 9af4b99..8191b5b 100644
--- a/iree/compiler/Dialect/Flow/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/BUILD
@@ -44,6 +44,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Dialect/Flow/Transforms/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/CMakeLists.txt
index 4dfd7a1..a2c9883 100644
--- a/iree/compiler/Dialect/Flow/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Flow/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/capture_dispatch_dynamic_dims.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/capture_dispatch_dynamic_dims.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/capture_dispatch_dynamic_dims.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/capture_dispatch_dynamic_dims.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/cleanup_numeric_narrowing.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/cleanup_numeric_narrowing.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/cleanup_numeric_narrowing.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/cleanup_numeric_narrowing.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/cleanup_tensor_shapes.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/cleanup_tensor_shapes.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/cleanup_tensor_shapes.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/cleanup_tensor_shapes.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/conv1x1_to_matmul.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/conv1x1_to_matmul.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/conv1x1_to_matmul.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/conv1x1_to_matmul.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/conv2d_to_img2col.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/conv2d_to_img2col.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/conv2d_to_img2col.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/conv2d_to_img2col.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/deduplicate_executables.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/deduplicate_executables.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/deduplicate_executables.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/deduplicate_executables.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors_fusion.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors_fusion.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors_fusion.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/dispatch_linalg_on_tensors_fusion.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/expand_tensor_shapes.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/expand_tensor_shapes.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/expand_tensor_shapes.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/expand_tensor_shapes.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/export_benchmark_funcs.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/export_benchmark_funcs.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/export_benchmark_funcs.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/export_benchmark_funcs.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/infer_numeric_narrowing.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/infer_numeric_narrowing.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/infer_numeric_narrowing.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/infer_numeric_narrowing.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/initialize_empty_tensor.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/initialize_empty_tensor.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/initialize_empty_tensor.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/initialize_empty_tensor.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/inject_dispatch_tracing.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/inject_dispatch_tracing.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/inject_dispatch_tracing.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/inject_dispatch_tracing.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/interchange_generic_ops.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/interchange_generic_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/interchange_generic_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/interchange_generic_ops.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/matmul_to_mmt4d.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/matmul_to_mmt4d.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/matmul_to_mmt4d.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/matmul_to_mmt4d.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/optimize_numerics.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/optimize_numerics.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/optimize_numerics.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/optimize_numerics.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/outline_dispatch_regions.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/outline_dispatch_regions.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/outline_dispatch_regions.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/outline_dispatch_regions.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/pad_linalg_ops.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/pad_linalg_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/pad_linalg_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/pad_linalg_ops.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/pad_tensor_to_tensor.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/pad_tensor_to_tensor.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/pad_tensor_to_tensor.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/pad_tensor_to_tensor.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/strip_and_splat_constant_variables.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/strip_and_splat_constant_variables.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/strip_and_splat_constant_variables.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/strip_and_splat_constant_variables.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/strip_signedness.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/strip_signedness.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/strip_signedness.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/strip_signedness.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/test_partitionable_loops_interface.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/test_partitionable_loops_interface.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/test_partitionable_loops_interface.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/test_partitionable_loops_interface.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/transformation.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/transformation.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/transformation.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/transformation.mlir
diff --git a/iree/compiler/Dialect/Flow/Transforms/test/verify_input_ir.mlir b/compiler/src/iree/compiler/Dialect/Flow/Transforms/test/verify_input_ir.mlir
similarity index 100%
rename from iree/compiler/Dialect/Flow/Transforms/test/verify_input_ir.mlir
rename to compiler/src/iree/compiler/Dialect/Flow/Transforms/test/verify_input_ir.mlir
diff --git a/iree/compiler/Dialect/HAL/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD
similarity index 72%
rename from iree/compiler/Dialect/HAL/Analysis/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD
index 2c18ff9..00f815a 100644
--- a/iree/compiler/Dialect/HAL/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Analysis",
srcs = [
"BindingLayout.cpp",
@@ -19,9 +21,9 @@
"BindingLayout.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Stream/IR",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Analysis",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/HAL/Analysis/BindingLayout.cpp b/compiler/src/iree/compiler/Dialect/HAL/Analysis/BindingLayout.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Analysis/BindingLayout.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Analysis/BindingLayout.cpp
diff --git a/iree/compiler/Dialect/HAL/Analysis/BindingLayout.h b/compiler/src/iree/compiler/Dialect/HAL/Analysis/BindingLayout.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Analysis/BindingLayout.h
rename to compiler/src/iree/compiler/Dialect/HAL/Analysis/BindingLayout.h
diff --git a/iree/compiler/Dialect/HAL/Analysis/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Analysis/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/HAL/Analysis/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Analysis/CMakeLists.txt
index 2ae3713..cbe4da3 100644
--- a/iree/compiler/Dialect/HAL/Analysis/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Analysis/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Analysis/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Analysis/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/BUILD b/compiler/src/iree/compiler/Dialect/HAL/BUILD
similarity index 100%
rename from iree/compiler/Dialect/HAL/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/BUILD
diff --git a/iree/compiler/Dialect/HAL/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/HAL/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/CMakeLists.txt
index 293e5de..ce275d3 100644
--- a/iree/compiler/Dialect/HAL/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD
similarity index 71%
rename from iree/compiler/Dialect/HAL/Conversion/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD
index dab7003..dab3e33 100644
--- a/iree/compiler/Dialect/HAL/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Conversion",
srcs = [
"ConversionTarget.cpp",
@@ -22,9 +24,9 @@
"TypeConverter.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/Utils",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/Utils",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:MemRefDialect",
@@ -32,13 +34,13 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "Passes",
hdrs = [
"Passes.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/Conversion/HALToVM",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM",
"@llvm-project//mlir:Pass",
],
)
diff --git a/iree/compiler/Dialect/HAL/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/HAL/Conversion/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/CMakeLists.txt
index cf1f3e5..7707b01 100644
--- a/iree/compiler/Dialect/HAL/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/ConversionDialectInterface.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/ConversionDialectInterface.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/ConversionDialectInterface.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/ConversionDialectInterface.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/ConversionTarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/ConversionTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/ConversionTarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/ConversionTarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/ConversionTarget.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/ConversionTarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/ConversionTarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/ConversionTarget.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
similarity index 63%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
index 89c5017..d5297c6 100644
--- a/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "HALToVM",
srcs = [
"ConvertAllocatorOps.cpp",
@@ -27,14 +29,14 @@
"ConvertHALToVM.h",
],
deps = [
- "//iree/compiler/Dialect/HAL:hal_imports",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/Utils",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/Conversion/StandardToVM",
- "//iree/compiler/Dialect/VM/Conversion/UtilToVM",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL:hal_imports",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/Utils",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/CMakeLists.txt
index 1945458..449cdbb 100644
--- a/iree/compiler/Dialect/HAL/Conversion/HALToVM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertAllocatorOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertAllocatorOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertAllocatorOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertAllocatorOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferViewOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferViewOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferViewOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertBufferViewOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertCommandBufferOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertCommandBufferOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertCommandBufferOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertCommandBufferOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertDeviceOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertDeviceOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertDeviceOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertDeviceOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExecutableOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExecutableOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExecutableOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExecutableOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExperimentalOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExperimentalOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExperimentalOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertExperimentalOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertHALToVM.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertSemaphoreOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertSemaphoreOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertSemaphoreOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertSemaphoreOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD
index cadeba5..3990651 100644
--- a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD
@@ -26,6 +26,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/CMakeLists.txt
index d2f2948..cb32978 100644
--- a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/allocator_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/allocator_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/allocator_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/allocator_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_view_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_view_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_view_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/buffer_view_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/command_buffer_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/command_buffer_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/command_buffer_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/command_buffer_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/device_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/device_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/device_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/device_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/executable_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/executable_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/HALToVM/test/executable_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/executable_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/Passes.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/Passes.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/Passes.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/Passes.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
similarity index 71%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
index 1f4eaea..f84bf37 100644
--- a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "StandardToHAL",
srcs = [
"ConvertShapeOps.cpp",
@@ -21,11 +23,11 @@
"ConvertStandardToHAL.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/Conversion",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/Util/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/Util/Conversion",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:ControlFlowOps",
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/CMakeLists.txt
index 07d0717..d32b92c 100644
--- a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertShapeOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertShapeOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertShapeOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertShapeOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStandardToHAL.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStructuralOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStructuralOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStructuralOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/ConvertStructuralOps.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD
index 98830ed..bbc5501 100644
--- a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD
@@ -22,6 +22,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/CMakeLists.txt
index cb81022..a98e462 100644
--- a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/shape_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/shape_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/shape_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/shape_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/structural_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/structural_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/structural_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL/test/structural_ops.mlir
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD
new file mode 100644
index 0000000..1b8698f
--- /dev/null
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD
@@ -0,0 +1,38 @@
+# 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("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+iree_compiler_cc_library(
+ name = "StreamToHAL",
+ srcs = [
+ "ConvertStreamToHAL.cpp",
+ ],
+ hdrs = [
+ "ConvertStreamToHAL.h",
+ ],
+ deps = [
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/HAL/Utils",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "@llvm-project//llvm:Support",
+ "@llvm-project//mlir:ArithmeticDialect",
+ "@llvm-project//mlir:FuncDialect",
+ "@llvm-project//mlir:IR",
+ "@llvm-project//mlir:Pass",
+ "@llvm-project//mlir:Transforms",
+ ],
+)
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/CMakeLists.txt
index b1d0f14..e932f22 100644
--- a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/ConvertStreamToHAL.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD
index d6b4b9f..f360613 100644
--- a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD
@@ -24,6 +24,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/CMakeLists.txt
index c13e868..b2ef2cd 100644
--- a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/cmd_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/cmd_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/cmd_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/cmd_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/resource_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/resource_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/resource_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/resource_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/timepoint_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/timepoint_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/timepoint_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/timepoint_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/transfer_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/transfer_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/transfer_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/test/transfer_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Conversion/TypeConverter.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/TypeConverter.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/TypeConverter.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/TypeConverter.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/TypeConverter.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/TypeConverter.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/TypeConverter.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/TypeConverter.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
similarity index 70%
rename from iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
index d5bc780..f416de3 100644
--- a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "UtilToHAL",
srcs = [
"ConvertUtilToHAL.cpp",
@@ -19,9 +21,9 @@
"ConvertUtilToHAL.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Util/Conversion",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Transforms",
diff --git a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/HAL/Conversion/UtilToHAL/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/CMakeLists.txt
index 519ba33..0b9233e 100644
--- a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.cpp b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.cpp
diff --git a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.h b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.h
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/ConvertUtilToHAL.h
diff --git a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD
index 772543f..9030265 100644
--- a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD
@@ -19,6 +19,7 @@
["global_ops.mlir"],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/CMakeLists.txt
index 2d95202..3286697 100644
--- a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/global_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/global_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/global_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL/test/global_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/BUILD b/compiler/src/iree/compiler/Dialect/HAL/IR/BUILD
similarity index 86%
rename from iree/compiler/Dialect/HAL/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/IR/BUILD
index 8784971..5dacc43 100644
--- a/iree/compiler/Dialect/HAL/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/IR/BUILD
@@ -4,9 +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_doc.bzl", "iree_tablegen_doc")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+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:enforce_glob.bzl", "enforce_glob")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -31,14 +32,14 @@
include = ["*.td"],
),
deps = [
- "//iree/compiler/Dialect/Util/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/Util/IR:td_files",
"@llvm-project//mlir:OpBaseTdFiles",
"@llvm-project//mlir:StdOpsTdFiles",
"@llvm-project//mlir:ViewLikeInterfaceTdFiles",
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"HALOpFolders.cpp",
@@ -72,7 +73,7 @@
":HALOpsGen",
":HALStructsGen",
":HALTypesGen",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
@@ -86,16 +87,16 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "HALDialect",
srcs = ["HALDialect.cpp"],
hdrs = ["HALDialect.h"],
deps = [
":IR",
- "//iree/compiler/Dialect/HAL:hal_imports",
- "//iree/compiler/Dialect/HAL/Conversion/HALToVM",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL:hal_imports",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
@@ -106,7 +107,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "HALInterfacesGen",
tbl_outs = [
(
@@ -139,7 +140,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "HALOpsGen",
tbl_outs = [
(
@@ -156,7 +157,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "HALStructsGen",
tbl_outs = [
(
@@ -173,7 +174,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "HALTypesGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/HAL/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/IR/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/HAL/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/IR/CMakeLists.txt
index 26da911..93b0050 100644
--- a/iree/compiler/Dialect/HAL/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/IR/HALBase.td b/compiler/src/iree/compiler/Dialect/HAL/IR/HALBase.td
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALBase.td
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALBase.td
diff --git a/iree/compiler/Dialect/HAL/IR/HALDialect.cpp b/compiler/src/iree/compiler/Dialect/HAL/IR/HALDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALDialect.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALDialect.cpp
diff --git a/iree/compiler/Dialect/HAL/IR/HALDialect.h b/compiler/src/iree/compiler/Dialect/HAL/IR/HALDialect.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALDialect.h
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALDialect.h
diff --git a/iree/compiler/Dialect/HAL/IR/HALDialect.td b/compiler/src/iree/compiler/Dialect/HAL/IR/HALDialect.td
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALDialect.td
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALDialect.td
diff --git a/iree/compiler/Dialect/HAL/IR/HALInterfaces.td b/compiler/src/iree/compiler/Dialect/HAL/IR/HALInterfaces.td
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALInterfaces.td
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALInterfaces.td
diff --git a/iree/compiler/Dialect/HAL/IR/HALOpFolders.cpp b/compiler/src/iree/compiler/Dialect/HAL/IR/HALOpFolders.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALOpFolders.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALOpFolders.cpp
diff --git a/iree/compiler/Dialect/HAL/IR/HALOps.cpp b/compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALOps.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.cpp
diff --git a/iree/compiler/Dialect/HAL/IR/HALOps.h b/compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALOps.h
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.h
diff --git a/iree/compiler/Dialect/HAL/IR/HALOps.td b/compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.td
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALOps.td
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.td
diff --git a/iree/compiler/Dialect/HAL/IR/HALTraits.h b/compiler/src/iree/compiler/Dialect/HAL/IR/HALTraits.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALTraits.h
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALTraits.h
diff --git a/iree/compiler/Dialect/HAL/IR/HALTypes.cpp b/compiler/src/iree/compiler/Dialect/HAL/IR/HALTypes.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALTypes.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALTypes.cpp
diff --git a/iree/compiler/Dialect/HAL/IR/HALTypes.h b/compiler/src/iree/compiler/Dialect/HAL/IR/HALTypes.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/HALTypes.h
rename to compiler/src/iree/compiler/Dialect/HAL/IR/HALTypes.h
diff --git a/iree/compiler/Dialect/HAL/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/IR/test/BUILD
similarity index 97%
rename from iree/compiler/Dialect/HAL/IR/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/BUILD
index d545a2a..d0d01e2 100644
--- a/iree/compiler/Dialect/HAL/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/IR/test/BUILD
@@ -37,6 +37,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/IR/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/IR/test/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/HAL/IR/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/CMakeLists.txt
index cf00bf9..a603ae1 100644
--- a/iree/compiler/Dialect/HAL/IR/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/IR/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/IR/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/IR/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/IR/test/allocator_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/allocator_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/allocator_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/allocator_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/attributes.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/attributes.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/attributes.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/attributes.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/buffer_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/buffer_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/buffer_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/buffer_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/buffer_view_folding.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/buffer_view_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/buffer_view_folding.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/buffer_view_folding.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/buffer_view_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/buffer_view_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/buffer_view_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/buffer_view_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/command_buffer_folding.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/command_buffer_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/command_buffer_folding.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/command_buffer_folding.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/command_buffer_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/command_buffer_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/command_buffer_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/command_buffer_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/descriptor_set_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/descriptor_set_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/descriptor_set_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/descriptor_set_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/device_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/device_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/device_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/device_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/executable_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/executable_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/executable_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/executable_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/executable_targets.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/executable_targets.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/executable_targets.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/executable_targets.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/experimental_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/experimental_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/experimental_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/experimental_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/interface_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/interface_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/interface_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/interface_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/invalid.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/invalid.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/invalid.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/invalid.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/semaphore_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/semaphore_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/semaphore_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/semaphore_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/tensor_op_folding.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/tensor_op_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/tensor_op_folding.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/tensor_op_folding.mlir
diff --git a/iree/compiler/Dialect/HAL/IR/test/tensor_ops.mlir b/compiler/src/iree/compiler/Dialect/HAL/IR/test/tensor_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/IR/test/tensor_ops.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/IR/test/tensor_ops.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/BUILD
similarity index 67%
rename from iree/compiler/Dialect/HAL/Target/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/BUILD
index 3cae4a0..95518de 100644
--- a/iree/compiler/Dialect/HAL/Target/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Target",
srcs = [
"TargetBackend.cpp",
@@ -21,11 +23,11 @@
"TargetRegistry.h",
],
deps = [
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/Utils",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/Utils",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
diff --git a/iree/compiler/Dialect/HAL/Target/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/HAL/Target/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CMakeLists.txt
index 658b678..d2845a2 100644
--- a/iree/compiler/Dialect/HAL/Target/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/BUILD
similarity index 82%
rename from iree/compiler/Dialect/HAL/Target/CUDA/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/BUILD
index 318861b..2aa6916 100644
--- a/iree/compiler/Dialect/HAL/Target/CUDA/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/BUILD
@@ -22,11 +22,11 @@
# "LLVMPasses.h",
# ],
# deps = [
-# "//iree/compiler/Codegen:PassHeaders",
-# "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
-# "//iree/compiler/Codegen/LLVMGPU",
-# "//iree/compiler/Dialect/HAL/Target",
-# "//iree/compiler/Utils",
+# "//compiler/src/iree/compiler/Codegen:PassHeaders",
+# "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+# "//compiler/src/iree/compiler/Codegen/LLVMGPU",
+# "//compiler/src/iree/compiler/Dialect/HAL/Target",
+# "//compiler/src/iree/compiler/Utils",
# "//runtime/src/iree/schemas:cuda_executable_def_c_fbs",
# "@llvm-project//llvm:Analysis",
# "@llvm-project//llvm:BitReader",
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/CMakeLists.txt
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/CUDA/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/CMakeLists.txt
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.h b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/CUDATarget.h
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/LLVMPasses.h b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/LLVMPasses.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/CUDA/LLVMPasses.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/LLVMPasses.h
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/NoLoopUnrollPass.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/NoLoopUnrollPass.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/CUDA/NoLoopUnrollPass.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/NoLoopUnrollPass.cpp
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/test/CMakeLists.txt
new file mode 100644
index 0000000..f9a5046
--- /dev/null
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/test/CMakeLists.txt
@@ -0,0 +1,17 @@
+# 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
+
+iree_add_all_subdirs()
+
+iree_lit_test_suite(
+ NAME
+ lit
+ SRCS
+ "smoketest.mlir"
+ TOOLS
+ FileCheck
+ iree::tools::iree-opt
+)
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/test/smoketest.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/test/smoketest.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/CUDA/test/smoketest.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/CUDA/test/smoketest.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/BUILD
similarity index 80%
rename from iree/compiler/Dialect/HAL/Target/LLVM/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/BUILD
index a1ad39f..7926c3e 100644
--- a/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", "platform_trampoline_deps")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library", "platform_trampoline_deps")
package(
default_visibility = ["//visibility:public"],
@@ -20,7 +20,7 @@
""",
)
-cc_library(
+iree_compiler_cc_library(
name = "LLVM",
srcs = [
"LLVMAOTTarget.cpp",
@@ -35,13 +35,13 @@
":LLVMTargetOptions",
":LinkerTool",
":StaticLibraryGenerator",
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/LLVMCPU",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/HAL/Target/LLVM/Builtins",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/LLVMCPU",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgTransformDialect",
"@llvm-project//llvm:AArch64AsmParser",
@@ -70,7 +70,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "LLVMIRPasses",
srcs = [
"LLVMIRPasses.cpp",
@@ -91,7 +91,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "LLVMTargetOptions",
srcs = [
"LLVMTargetOptions.cpp",
@@ -107,16 +107,16 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "LinkerTool",
srcs = ["LinkerTool.cpp"],
hdrs = ["LinkerTool.h"],
- deps = platform_trampoline_deps("LinkerTools", "compiler/Dialect/HAL/Target/LLVM") + [
+ deps = platform_trampoline_deps("LinkerTools", "compiler/src/iree/compiler/Dialect/HAL/Target/LLVM") + [
"@llvm-project//llvm:Support",
],
)
-cc_library(
+iree_compiler_cc_library(
name = "LinkerTool_hdrs",
hdrs = ["LinkerTool.h"],
deps = [
@@ -127,7 +127,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "StaticLibraryGenerator",
srcs = [
"StaticLibraryGenerator.cpp",
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
similarity index 90%
rename from iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
index 9e4f052..f13471f 100644
--- a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Builtins",
srcs = [
"Device.cpp",
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/HAL/Target/LLVM/Builtins/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/CMakeLists.txt
index 0406e27..91d7179 100644
--- a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Device.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/Builtins/Musl.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/HAL/Target/LLVM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/CMakeLists.txt
index e33170e..302aed1 100644
--- a/iree/compiler/Dialect/HAL/Target/LLVM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/LLVM/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMIRPasses.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LLVMTargetOptions.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/LinkerTool.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.h b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/StaticLibraryGenerator.h
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/AndroidLinkerTool.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/AndroidLinkerTool.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/AndroidLinkerTool.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/AndroidLinkerTool.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
similarity index 81%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
index 6ca1019..f2ce29d 100644
--- a/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "LinkerTools_internal",
srcs = [
"AndroidLinkerTool.cpp",
@@ -21,7 +23,7 @@
"WindowsLinkerTool.cpp",
],
deps = [
- "//iree/compiler/Dialect/HAL/Target/LLVM:LinkerTool_hdrs",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target/LLVM:LinkerTool_hdrs",
"@llvm-project//llvm:Core",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Support",
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/CMakeLists.txt
index 6df6d81..2c28fe7 100644
--- a/iree/compiler/Dialect/HAL/Target/LLVM/internal/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/EmbeddedLinkerTool.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/EmbeddedLinkerTool.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/EmbeddedLinkerTool.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/EmbeddedLinkerTool.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/LinkerTools.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/LinkerTools.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/LinkerTools.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/LinkerTools.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/UnixLinkerTool.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/UnixLinkerTool.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/UnixLinkerTool.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/UnixLinkerTool.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/WasmLinkerTool.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/WasmLinkerTool.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/WasmLinkerTool.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/WasmLinkerTool.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/internal/WindowsLinkerTool.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/WindowsLinkerTool.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/internal/WindowsLinkerTool.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/internal/WindowsLinkerTool.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD
index 3c27a43..cf1fe6e 100644
--- a/iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD
@@ -21,6 +21,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//lld",
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/HAL/Target/LLVM/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/CMakeLists.txt
index 23b72bf..6bc1f36 100644
--- a/iree/compiler/Dialect/HAL/Target/LLVM/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/LLVM/test/smoketest.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/smoketest.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/LLVM/test/smoketest.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/LLVM/test/smoketest.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD
similarity index 68%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD
index 347d22f..bcb3e60 100644
--- a/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")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -20,19 +20,19 @@
""",
)
-cc_library(
+iree_compiler_cc_library(
name = "MetalSPIRV",
srcs = ["MetalSPIRVTarget.cpp"],
hdrs = ["MetalSPIRVTarget.h"],
deps = [
":SPIRVToMSL",
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/SPIRV",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/SPIRV",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Utils",
"//runtime/src/iree/schemas:metal_executable_def_c_fbs",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:GPUDialect",
@@ -43,7 +43,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "SPIRVToMSL",
srcs = [
"SPIRVToMSL.cpp",
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/CMakeLists.txt
index 32bc715..4db0d19 100644
--- a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.h b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/MetalSPIRVTarget.h
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.h b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/SPIRVToMSL.h
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD
index 43a44f4..d8d6533 100644
--- a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD
@@ -19,6 +19,7 @@
["smoketest.mlir"],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/CMakeLists.txt
index 1cfab85..80041f5 100644
--- a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/smoketest.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/smoketest.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/smoketest.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV/test/smoketest.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/BUILD
similarity index 76%
rename from iree/compiler/Dialect/HAL/Target/ROCM/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/BUILD
index db5980b..475997e 100644
--- a/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")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -20,7 +20,7 @@
""",
)
-cc_library(
+iree_compiler_cc_library(
name = "ROCM",
srcs = [
"ROCMTarget.cpp",
@@ -30,11 +30,11 @@
"ROCMTarget.h",
],
deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/LLVMGPU",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/LLVMGPU",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Utils",
"//runtime/src/iree/schemas:rocm_executable_def_c_fbs",
"@llvm-project//llvm:AMDGPUCodeGen",
"@llvm-project//llvm:Core",
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/ROCM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/CMakeLists.txt
index 3f2fad1..9e2dceb 100644
--- a/iree/compiler/Dialect/HAL/Target/ROCM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/ROCM/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.h b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTarget.h
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTargetUtils.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTargetUtils.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/ROCM/ROCMTargetUtils.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/ROCMTargetUtils.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD
index 43a44f4..d8d6533 100644
--- a/iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD
@@ -19,6 +19,7 @@
["smoketest.mlir"],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/HAL/Target/ROCM/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/CMakeLists.txt
index 0870543..2932bd5 100644
--- a/iree/compiler/Dialect/HAL/Target/ROCM/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/ROCM/test/smoketest.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/smoketest.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/ROCM/test/smoketest.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/ROCM/test/smoketest.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/TargetBackend.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/TargetBackend.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/TargetBackend.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/TargetBackend.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/TargetBackend.h b/compiler/src/iree/compiler/Dialect/HAL/Target/TargetBackend.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/TargetBackend.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/TargetBackend.h
diff --git a/iree/compiler/Dialect/HAL/Target/TargetRegistry.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/TargetRegistry.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/TargetRegistry.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/TargetRegistry.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/TargetRegistry.h b/compiler/src/iree/compiler/Dialect/HAL/Target/TargetRegistry.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/TargetRegistry.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/TargetRegistry.h
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD
new file mode 100644
index 0000000..64154da
--- /dev/null
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD
@@ -0,0 +1,48 @@
+# 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("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+iree_cmake_extra_content(
+ content = """
+if(NOT IREE_TARGET_BACKEND_VMVX)
+ return()
+endif()
+""",
+)
+
+iree_compiler_cc_library(
+ name = "VMVX",
+ srcs = [
+ "VMVXTarget.cpp",
+ ],
+ hdrs = [
+ "VMVXTarget.h",
+ ],
+ deps = [
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/Dialect/VM/Transforms",
+ "//compiler/src/iree/compiler/Utils",
+ "@llvm-project//llvm:Support",
+ "@llvm-project//mlir:IR",
+ "@llvm-project//mlir:Pass",
+ "@llvm-project//mlir:Support",
+ ],
+)
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/VMVX/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/CMakeLists.txt
index e93003f..8dcbe95 100644
--- a/iree/compiler/Dialect/HAL/Target/VMVX/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/VMVX/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.h b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/VMVXTarget.h
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD
index d46c759..adedc33 100644
--- a/iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD
@@ -22,6 +22,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/HAL/Target/VMVX/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/CMakeLists.txt
index 4f8031d..3330509 100644
--- a/iree/compiler/Dialect/HAL/Target/VMVX/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/test/linking.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/linking.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VMVX/test/linking.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/linking.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/test/smoketest.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/smoketest.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VMVX/test/smoketest.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VMVX/test/smoketest.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD
similarity index 61%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD
index d5544ec..61fdeb9 100644
--- a/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")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -20,7 +20,7 @@
""",
)
-cc_library(
+iree_compiler_cc_library(
name = "VulkanSPIRV",
srcs = [
"VulkanSPIRVTarget.cpp",
@@ -29,15 +29,15 @@
"VulkanSPIRVTarget.h",
],
deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/SPIRV",
- "//iree/compiler/Codegen/Utils",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/Vulkan/IR",
- "//iree/compiler/Dialect/Vulkan/Utils",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/SPIRV",
+ "//compiler/src/iree/compiler/Codegen/Utils",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/Vulkan/IR",
+ "//compiler/src/iree/compiler/Dialect/Vulkan/Utils",
+ "//compiler/src/iree/compiler/Utils",
"//runtime/src/iree/schemas:spirv_executable_def_c_fbs",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:GPUDialect",
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/CMakeLists.txt
index 3633197..9de6ce2 100644
--- a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.h b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/VulkanSPIRVTarget.h
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD
index 134cd15..bd108b6 100644
--- a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD
@@ -22,6 +22,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/CMakeLists.txt
index c89053d..948a497 100644
--- a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/linking.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/linking.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/linking.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/linking.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/smoketest.mlir b/compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/smoketest.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/smoketest.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV/test/smoketest.mlir
diff --git a/iree/compiler/Dialect/HAL/Target/WebGPU/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/CMakeLists.txt
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/WebGPU/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/CMakeLists.txt
diff --git a/iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.h b/compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/SPIRVToWGSL.h
diff --git a/iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.cpp b/compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.cpp
diff --git a/iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.h b/compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.h
rename to compiler/src/iree/compiler/Dialect/HAL/Target/WebGPU/WebGPUTarget.h
diff --git a/iree/compiler/Dialect/HAL/Transforms/AssignTargetDevices.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/AssignTargetDevices.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/AssignTargetDevices.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/AssignTargetDevices.cpp
diff --git a/compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD
new file mode 100644
index 0000000..ab604ce
--- /dev/null
+++ b/compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD
@@ -0,0 +1,68 @@
+# Copyright 2019 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("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+iree_compiler_cc_library(
+ name = "Transforms",
+ srcs = [
+ "AssignTargetDevices.cpp",
+ "BenchmarkBatchDispatches.cpp",
+ "ConvertToHAL.cpp",
+ "DumpExecutableBenchmarks.cpp",
+ "DumpExecutableSources.cpp",
+ "ElideRedundantCommands.cpp",
+ "InlineDeviceSwitches.cpp",
+ "LinkExecutables.cpp",
+ "MaterializeInterfaces.cpp",
+ "MaterializeResourceCaches.cpp",
+ "MemoizeDeviceQueries.cpp",
+ "PackDispatchOperands.cpp",
+ "Passes.cpp",
+ "ResolveEntryPointOrdinals.cpp",
+ "SerializeExecutables.cpp",
+ "TranslateExecutables.cpp",
+ "VerifyTargetEnvironment.cpp",
+ ],
+ hdrs = [
+ "Passes.h",
+ ],
+ deps = [
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/Analysis",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion/StandardToHAL",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion/StreamToHAL",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion/UtilToHAL",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/HAL/Utils",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Util/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Utils",
+ "@llvm-project//llvm:Support",
+ "@llvm-project//mlir:AffineToStandard",
+ "@llvm-project//mlir:ArithmeticDialect",
+ "@llvm-project//mlir:BufferizationDialect",
+ "@llvm-project//mlir:ControlFlowOps",
+ "@llvm-project//mlir:FuncDialect",
+ "@llvm-project//mlir:IR",
+ "@llvm-project//mlir:Pass",
+ "@llvm-project//mlir:SCFDialect",
+ "@llvm-project//mlir:Support",
+ "@llvm-project//mlir:Transforms",
+ ],
+)
diff --git a/iree/compiler/Dialect/HAL/Transforms/BenchmarkBatchDispatches.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/BenchmarkBatchDispatches.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/BenchmarkBatchDispatches.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/BenchmarkBatchDispatches.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Transforms/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Dialect/HAL/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/CMakeLists.txt
index 35ce91e..9752486 100644
--- a/iree/compiler/Dialect/HAL/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Transforms/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Transforms/ConvertToHAL.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/ConvertToHAL.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/ConvertToHAL.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/ConvertToHAL.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/DumpExecutableBenchmarks.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/DumpExecutableBenchmarks.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/DumpExecutableBenchmarks.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/DumpExecutableBenchmarks.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/DumpExecutableSources.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/DumpExecutableSources.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/DumpExecutableSources.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/DumpExecutableSources.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/ElideRedundantCommands.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/ElideRedundantCommands.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/ElideRedundantCommands.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/ElideRedundantCommands.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/InlineDeviceSwitches.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/InlineDeviceSwitches.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/InlineDeviceSwitches.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/InlineDeviceSwitches.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/LinkExecutables.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/LinkExecutables.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/LinkExecutables.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/LinkExecutables.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/MaterializeInterfaces.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/MaterializeInterfaces.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/MaterializeInterfaces.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/MaterializeInterfaces.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/MaterializeResourceCaches.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/MaterializeResourceCaches.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/MaterializeResourceCaches.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/MaterializeResourceCaches.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/MemoizeDeviceQueries.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/MemoizeDeviceQueries.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/MemoizeDeviceQueries.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/MemoizeDeviceQueries.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/PackDispatchOperands.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/PackDispatchOperands.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/PackDispatchOperands.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/PackDispatchOperands.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/Passes.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/Passes.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/Passes.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/Passes.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/Passes.h b/compiler/src/iree/compiler/Dialect/HAL/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/Passes.h
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/Passes.h
diff --git a/iree/compiler/Dialect/HAL/Transforms/ResolveEntryPointOrdinals.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/ResolveEntryPointOrdinals.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/ResolveEntryPointOrdinals.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/ResolveEntryPointOrdinals.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/SerializeExecutables.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/SerializeExecutables.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/SerializeExecutables.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/SerializeExecutables.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/VerifyTargetEnvironment.cpp b/compiler/src/iree/compiler/Dialect/HAL/Transforms/VerifyTargetEnvironment.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/VerifyTargetEnvironment.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/VerifyTargetEnvironment.cpp
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/BUILD
similarity index 97%
rename from iree/compiler/Dialect/HAL/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/BUILD
index 475332d..5c4a76e 100644
--- a/iree/compiler/Dialect/HAL/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/BUILD
@@ -33,6 +33,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/HAL/Transforms/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/CMakeLists.txt
index f87d205..8e532c2 100644
--- a/iree/compiler/Dialect/HAL/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/assign_target_devices.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/assign_target_devices.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/assign_target_devices.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/assign_target_devices.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/benchmark_batch_dispatches.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/benchmark_batch_dispatches.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/benchmark_batch_dispatches.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/benchmark_batch_dispatches.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/convert_to_hal.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/convert_to_hal.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/convert_to_hal.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/convert_to_hal.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/dump_executable_benchmarks.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/dump_executable_benchmarks.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/dump_executable_benchmarks.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/dump_executable_benchmarks.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/dump_executable_sources.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/dump_executable_sources.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/dump_executable_sources.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/dump_executable_sources.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/elide_redundant_commands.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/elide_redundant_commands.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/elide_redundant_commands.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/elide_redundant_commands.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/inline_device_switches.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/inline_device_switches.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/inline_device_switches.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/inline_device_switches.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/materialize_interfaces.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/materialize_interfaces.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/materialize_interfaces.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/materialize_interfaces.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/materialize_resource_caches.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/materialize_resource_caches.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/materialize_resource_caches.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/materialize_resource_caches.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/memoize_device_queries.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/memoize_device_queries.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/memoize_device_queries.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/memoize_device_queries.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/pack_dispatch_operands.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/pack_dispatch_operands.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/pack_dispatch_operands.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/pack_dispatch_operands.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/resolve_entry_point_ordinals.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/resolve_entry_point_ordinals.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/resolve_entry_point_ordinals.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/resolve_entry_point_ordinals.mlir
diff --git a/iree/compiler/Dialect/HAL/Transforms/test/verify_target_environment.mlir b/compiler/src/iree/compiler/Dialect/HAL/Transforms/test/verify_target_environment.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/Transforms/test/verify_target_environment.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/Transforms/test/verify_target_environment.mlir
diff --git a/iree/compiler/Dialect/HAL/Utils/BUILD b/compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD
similarity index 80%
rename from iree/compiler/Dialect/HAL/Utils/BUILD
rename to compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD
index 15677a5..42ea841 100644
--- a/iree/compiler/Dialect/HAL/Utils/BUILD
+++ b/compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Utils",
srcs = [
"InferCustomKernelsTargetInfoFromParent.cpp",
@@ -20,8 +22,8 @@
"InferCustomKernelsTargetInfoFromParent.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/HAL/Utils/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/HAL/Utils/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/HAL/Utils/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/HAL/Utils/CMakeLists.txt
index 52d4b59..94eac8d 100644
--- a/iree/compiler/Dialect/HAL/Utils/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/HAL/Utils/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/HAL/Utils/BUILD #
+# compiler/src/iree/compiler/Dialect/HAL/Utils/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/HAL/Utils/DeviceSwitchBuilder.h b/compiler/src/iree/compiler/Dialect/HAL/Utils/DeviceSwitchBuilder.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Utils/DeviceSwitchBuilder.h
rename to compiler/src/iree/compiler/Dialect/HAL/Utils/DeviceSwitchBuilder.h
diff --git a/iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.cpp b/compiler/src/iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.cpp
similarity index 100%
rename from iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.cpp
rename to compiler/src/iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.cpp
diff --git a/iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.h b/compiler/src/iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.h
similarity index 100%
rename from iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.h
rename to compiler/src/iree/compiler/Dialect/HAL/Utils/InferCustomKernelsTargetInfoFromParent.h
diff --git a/iree/compiler/Dialect/HAL/hal.imports.mlir b/compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir
similarity index 100%
rename from iree/compiler/Dialect/HAL/hal.imports.mlir
rename to compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir
diff --git a/iree/compiler/Dialect/Modules/BUILD b/compiler/src/iree/compiler/Dialect/Modules/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Modules/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Modules/CMakeLists.txt
index 24888ca..3ef312e 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/Check/BUILD b/compiler/src/iree/compiler/Dialect/Modules/Check/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/Check/BUILD
diff --git a/iree/compiler/Dialect/Modules/Check/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/Check/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Modules/Check/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/Check/CMakeLists.txt
index a3efc1c..6920b52 100644
--- a/iree/compiler/Dialect/Modules/Check/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/Check/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/Check/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/Check/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD
similarity index 67%
rename from iree/compiler/Dialect/Modules/Check/Conversion/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD
index 101ff67..df2bf36 100644
--- a/iree/compiler/Dialect/Modules/Check/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Conversion",
srcs = [
"ConversionPatterns.cpp",
@@ -19,9 +21,9 @@
"ConversionPatterns.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/Conversion",
- "//iree/compiler/Dialect/Modules/Check/IR",
- "//iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Modules/Check/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Transforms",
],
diff --git a/iree/compiler/Dialect/Modules/Check/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Modules/Check/Conversion/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/CMakeLists.txt
index 23fe388..d558207 100644
--- a/iree/compiler/Dialect/Modules/Check/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/Check/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.cpp b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.cpp
diff --git a/iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.h b/compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.h
rename to compiler/src/iree/compiler/Dialect/Modules/Check/Conversion/ConversionPatterns.h
diff --git a/iree/compiler/Dialect/Modules/Check/IR/BUILD b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD
similarity index 71%
rename from iree/compiler/Dialect/Modules/Check/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD
index afdc2de..50a73c4 100644
--- a/iree/compiler/Dialect/Modules/Check/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD
@@ -4,9 +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_doc.bzl", "iree_tablegen_doc")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+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:enforce_glob.bzl", "enforce_glob")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -21,13 +22,13 @@
include = ["*.td"],
),
deps = [
- "//iree/compiler/Dialect/HAL/IR:td_files",
- "//iree/compiler/Dialect/Util/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/Util/IR:td_files",
"@llvm-project//mlir:OpBaseTdFiles",
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"CheckOps.cpp",
@@ -39,14 +40,14 @@
],
deps = [
":check_ops_gen",
- "//iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
],
)
-cc_library(
+iree_compiler_cc_library(
name = "CheckDialect",
srcs = [
"CheckDialect.cpp",
@@ -57,17 +58,17 @@
deps = [
":IR",
":check_ops_gen",
- "//iree/compiler/Dialect/HAL/Conversion",
- "//iree/compiler/Dialect/Modules/Check:check_imports",
- "//iree/compiler/Dialect/Modules/Check/Conversion",
- "//iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Modules/Check:check_imports",
+ "//compiler/src/iree/compiler/Dialect/Modules/Check/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Parser",
"@llvm-project//mlir:Transforms",
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "check_ops_gen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/Modules/Check/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Dialect/Modules/Check/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/Check/IR/CMakeLists.txt
index 91989c3..352fe01 100644
--- a/iree/compiler/Dialect/Modules/Check/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/Check/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/Check/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/Check/IR/CheckDialect.cpp b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/IR/CheckDialect.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckDialect.cpp
diff --git a/iree/compiler/Dialect/Modules/Check/IR/CheckDialect.h b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckDialect.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/IR/CheckDialect.h
rename to compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckDialect.h
diff --git a/iree/compiler/Dialect/Modules/Check/IR/CheckOps.cpp b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/IR/CheckOps.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckOps.cpp
diff --git a/iree/compiler/Dialect/Modules/Check/IR/CheckOps.h b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckOps.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/IR/CheckOps.h
rename to compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckOps.h
diff --git a/iree/compiler/Dialect/Modules/Check/IR/CheckOps.td b/compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckOps.td
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/IR/CheckOps.td
rename to compiler/src/iree/compiler/Dialect/Modules/Check/IR/CheckOps.td
diff --git a/iree/compiler/Dialect/Modules/Check/check.imports.mlir b/compiler/src/iree/compiler/Dialect/Modules/Check/check.imports.mlir
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/check.imports.mlir
rename to compiler/src/iree/compiler/Dialect/Modules/Check/check.imports.mlir
diff --git a/iree/compiler/Dialect/Modules/Check/test/BUILD b/compiler/src/iree/compiler/Dialect/Modules/Check/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Modules/Check/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/Check/test/BUILD
index 370f60a..9a34a48 100644
--- a/iree/compiler/Dialect/Modules/Check/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/test/BUILD
@@ -22,6 +22,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Modules/Check/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/Check/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Modules/Check/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/Check/test/CMakeLists.txt
index ff3a7e2..12bb0a1 100644
--- a/iree/compiler/Dialect/Modules/Check/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/Check/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/Check/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/Check/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/Check/test/canonicalize.mlir b/compiler/src/iree/compiler/Dialect/Modules/Check/test/canonicalize.mlir
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/test/canonicalize.mlir
rename to compiler/src/iree/compiler/Dialect/Modules/Check/test/canonicalize.mlir
diff --git a/iree/compiler/Dialect/Modules/Check/test/ops.mlir b/compiler/src/iree/compiler/Dialect/Modules/Check/test/ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Modules/Check/test/ops.mlir
rename to compiler/src/iree/compiler/Dialect/Modules/Check/test/ops.mlir
diff --git a/iree/compiler/Dialect/Modules/README.md b/compiler/src/iree/compiler/Dialect/Modules/README.md
similarity index 100%
rename from iree/compiler/Dialect/Modules/README.md
rename to compiler/src/iree/compiler/Dialect/Modules/README.md
diff --git a/iree/compiler/Dialect/Modules/VMVX/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Modules/VMVX/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/CMakeLists.txt
index b131461..bdc3e33 100644
--- a/iree/compiler/Dialect/Modules/VMVX/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
similarity index 89%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
index 24888ca..4a458f2 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
similarity index 68%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
index d6c64c3..cb99b03 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "HALToVMVX",
srcs = [
"ConvertHALToVMVX.cpp",
@@ -19,10 +21,10 @@
"ConvertHALToVMVX.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Modules/VMVX/IR",
- "//iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/CMakeLists.txt
index f0945ae..0c79654 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.h b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.h
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/ConvertHALToVMVX.h
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD
index 987f2e5..f2fea6b 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD
@@ -19,6 +19,7 @@
["interface_ops.mlir"],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/CMakeLists.txt
similarity index 90%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/CMakeLists.txt
index a19685f..13bae78 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/BUILD#
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/interface_ops.mlir b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/interface_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/interface_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX/test/interface_ops.mlir
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
similarity index 75%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
index 646414e..12d079a 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "StandardToVMVX",
srcs = [
"ConvertStandardToVMVX.cpp",
@@ -19,9 +21,9 @@
"ConvertStandardToVMVX.h",
],
deps = [
- "//iree/compiler/Dialect/Modules/VMVX/IR",
- "//iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/CMakeLists.txt
index fa103bf..ca90b70 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/BUILD#
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.h b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.h
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/ConvertStandardToVMVX.h
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD
index 1f317c9..13ee77b 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD
@@ -20,6 +20,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
similarity index 90%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
index 958d5cb..4665519 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD#
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
similarity index 62%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
index 70f01aa..33045df 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "VMVXToVM",
srcs = [
"ConvertVMVXToVM.cpp",
@@ -19,11 +21,11 @@
"ConvertVMVXToVM.h",
],
deps = [
- "//iree/compiler/Dialect/Modules/VMVX/IR",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/Conversion/StandardToVM",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/CMakeLists.txt
index 3ae796d..f5c1318 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.h b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.h
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/ConvertVMVXToVM.h
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD
index 1f317c9..13ee77b 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD
@@ -20,6 +20,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/CMakeLists.txt
similarity index 90%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/CMakeLists.txt
index 958d5cb..92a7315 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD#
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD
similarity index 80%
rename from iree/compiler/Dialect/Modules/VMVX/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD
index f6196f3..91d0b3f 100644
--- a/iree/compiler/Dialect/Modules/VMVX/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD
@@ -4,9 +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_doc.bzl", "iree_tablegen_doc")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+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:enforce_glob.bzl", "enforce_glob")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -26,13 +27,13 @@
include = ["*.td"],
),
deps = [
- "//iree/compiler/Dialect/Util/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/Util/IR:td_files",
"@llvm-project//mlir:OpBaseTdFiles",
"@llvm-project//mlir:StdOpsTdFiles",
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"VMVXEnums.cpp.inc",
@@ -54,8 +55,8 @@
":VMVXEnumsGen",
":VMVXOpInterfaceGen",
":VMVXOpsGen",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
@@ -66,15 +67,15 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "VMVXDialect",
srcs = ["VMVXDialect.cpp"],
hdrs = ["VMVXDialect.h"],
deps = [
":IR",
- "//iree/compiler/Dialect/Modules/VMVX:vmvx_imports",
- "//iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM",
- "//iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX:vmvx_imports",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
@@ -84,7 +85,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMVXEnumsGen",
tbl_outs = [
(
@@ -101,7 +102,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMVXOpsGen",
tbl_outs = [
(
@@ -118,7 +119,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMVXOpInterfaceGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/Modules/VMVX/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/CMakeLists.txt
index 7be8df3..fdcafe8 100644
--- a/iree/compiler/Dialect/Modules/VMVX/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXBase.td b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXBase.td
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXBase.td
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXBase.td
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.h b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.h
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXDialect.h
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.h b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.h
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.h
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.td b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.td
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.td
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXOps.td
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.h b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.h
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.h
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD
index 1f317c9..13ee77b 100644
--- a/iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD
@@ -20,6 +20,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Modules/VMVX/Transforms/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/test/CMakeLists.txt
index 67c465b..d42d125 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/README.md b/compiler/src/iree/compiler/Dialect/Modules/VMVX/README.md
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/README.md
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/README.md
diff --git a/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
similarity index 65%
rename from iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
index 94e6655..02fe125 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"Conversion.cpp",
@@ -20,18 +22,18 @@
"Passes.h",
],
deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/LLVMCPU",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/HAL/Transforms",
- "//iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX",
- "//iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX",
- "//iree/compiler/Dialect/Modules/VMVX/IR",
- "//iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Codegen:PassHeaders",
+ "//compiler/src/iree/compiler/Codegen/Common",
+ "//compiler/src/iree/compiler/Codegen/LLVMCPU",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/HAL/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/HALToVMVX",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Affine",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/Modules/VMVX/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/CMakeLists.txt
index c214ce1..e8dab53 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/Transforms/Conversion.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/Conversion.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Transforms/Conversion.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/Conversion.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.cpp b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.cpp
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.cpp
diff --git a/iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.h b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.h
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/Passes.h
diff --git a/iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD
index 1f317c9..13ee77b 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD
@@ -20,6 +20,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/test/CMakeLists.txt
similarity index 90%
rename from iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/test/CMakeLists.txt
index 958d5cb..fede7d9 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/StandardToVMVX/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Modules/VMVX/vmvx.imports.mlir b/compiler/src/iree/compiler/Dialect/Modules/VMVX/vmvx.imports.mlir
similarity index 100%
rename from iree/compiler/Dialect/Modules/VMVX/vmvx.imports.mlir
rename to compiler/src/iree/compiler/Dialect/Modules/VMVX/vmvx.imports.mlir
diff --git a/iree/compiler/Dialect/Stream/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD
similarity index 72%
rename from iree/compiler/Dialect/Stream/Analysis/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD
index bf77fc2..b13786a 100644
--- a/iree/compiler/Dialect/Stream/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Analysis",
srcs = [
"Partitioning.cpp",
@@ -22,10 +24,10 @@
"ResourceUsage.h",
],
deps = [
- "//iree/compiler/Dialect/Stream/IR",
- "//iree/compiler/Dialect/Util/Analysis",
- "//iree/compiler/Dialect/Util/Analysis/DFX",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/DFX",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Analysis",
"@llvm-project//mlir:ArithmeticDialect",
diff --git a/iree/compiler/Dialect/Stream/Analysis/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Analysis/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/Stream/Analysis/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Analysis/CMakeLists.txt
index 0ab88ed..9930543 100644
--- a/iree/compiler/Dialect/Stream/Analysis/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Analysis/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Analysis/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Analysis/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Analysis/Partitioning.cpp b/compiler/src/iree/compiler/Dialect/Stream/Analysis/Partitioning.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Analysis/Partitioning.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Analysis/Partitioning.cpp
diff --git a/iree/compiler/Dialect/Stream/Analysis/Partitioning.h b/compiler/src/iree/compiler/Dialect/Stream/Analysis/Partitioning.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Analysis/Partitioning.h
rename to compiler/src/iree/compiler/Dialect/Stream/Analysis/Partitioning.h
diff --git a/iree/compiler/Dialect/Stream/Analysis/Partitioning/ReferencePartitioning.cpp b/compiler/src/iree/compiler/Dialect/Stream/Analysis/Partitioning/ReferencePartitioning.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Analysis/Partitioning/ReferencePartitioning.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Analysis/Partitioning/ReferencePartitioning.cpp
diff --git a/iree/compiler/Dialect/Stream/Analysis/ResourceUsage.cpp b/compiler/src/iree/compiler/Dialect/Stream/Analysis/ResourceUsage.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Analysis/ResourceUsage.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Analysis/ResourceUsage.cpp
diff --git a/iree/compiler/Dialect/Stream/Analysis/ResourceUsage.h b/compiler/src/iree/compiler/Dialect/Stream/Analysis/ResourceUsage.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Analysis/ResourceUsage.h
rename to compiler/src/iree/compiler/Dialect/Stream/Analysis/ResourceUsage.h
diff --git a/iree/compiler/Dialect/Stream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Stream/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/BUILD
diff --git a/iree/compiler/Dialect/Stream/Builtins/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Builtins/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Stream/Builtins/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Builtins/BUILD
diff --git a/iree/compiler/Dialect/Stream/Builtins/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Builtins/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Stream/Builtins/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Builtins/CMakeLists.txt
index d08779a..2489c67 100644
--- a/iree/compiler/Dialect/Stream/Builtins/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Builtins/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Builtins/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Builtins/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Builtins/fill_i64.mlir b/compiler/src/iree/compiler/Dialect/Stream/Builtins/fill_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Builtins/fill_i64.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Builtins/fill_i64.mlir
diff --git a/iree/compiler/Dialect/Stream/Builtins/splat_i64.mlir b/compiler/src/iree/compiler/Dialect/Stream/Builtins/splat_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Builtins/splat_i64.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Builtins/splat_i64.mlir
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Stream/CMakeLists.txt
index 24888ca..cb2d97f 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD
similarity index 80%
rename from iree/compiler/Dialect/Stream/Conversion/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD
index b832d7c..a7c2fcf 100644
--- a/iree/compiler/Dialect/Stream/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Conversion",
srcs = [
"PatternUtils.cpp",
@@ -19,7 +21,7 @@
"PatternUtils.h",
],
deps = [
- "//iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Transforms",
diff --git a/iree/compiler/Dialect/Stream/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Stream/Conversion/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/CMakeLists.txt
index 5028cc7..104efa0 100644
--- a/iree/compiler/Dialect/Stream/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
similarity index 71%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
index 15d9e2b..b5e1b00 100644
--- a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "FlowToStream",
srcs = [
"ConvertFlowToStream.cpp",
@@ -19,9 +21,9 @@
"ConvertFlowToStream.h",
],
deps = [
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/Stream/Conversion",
- "//iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/CMakeLists.txt
index 889e986..77b5cee 100644
--- a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.cpp b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.cpp
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.h b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.h
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/ConvertFlowToStream.h
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD
index fd6f12b..f0ce2d0 100644
--- a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD
@@ -23,6 +23,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/CMakeLists.txt
index 3e65a59..c5ac6b0 100644
--- a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/dispatch_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/dispatch_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/dispatch_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/dispatch_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/executable_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/executable_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/executable_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/executable_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/tensor_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/tensor_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/tensor_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream/test/tensor_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
similarity index 70%
rename from iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
index b1bc896..487614d 100644
--- a/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "HALToStream",
srcs = [
"ConvertHALToStream.cpp",
@@ -19,9 +21,9 @@
"ConvertHALToStream.h",
],
deps = [
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Stream/Conversion",
- "//iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Stream/Conversion/HALToStream/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Stream/Conversion/HALToStream/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/CMakeLists.txt
index 2856c0e..a5f959c 100644
--- a/iree/compiler/Dialect/Stream/Conversion/HALToStream/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.cpp b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.cpp
diff --git a/iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.h b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.h
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/ConvertHALToStream.h
diff --git a/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD
index bd86a3f..284ba63 100644
--- a/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD
@@ -21,6 +21,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/Stream/Conversion/HALToStream/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/CMakeLists.txt
index e33b2c8..e0e8d80 100644
--- a/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/abi_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/abi_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/HALToStream/test/abi_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream/test/abi_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/Conversion/PatternUtils.cpp b/compiler/src/iree/compiler/Dialect/Stream/Conversion/PatternUtils.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/PatternUtils.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/PatternUtils.cpp
diff --git a/iree/compiler/Dialect/Stream/Conversion/PatternUtils.h b/compiler/src/iree/compiler/Dialect/Stream/Conversion/PatternUtils.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/PatternUtils.h
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/PatternUtils.h
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
similarity index 82%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
index 5cfcd02..2027a99 100644
--- a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "StandardToStream",
srcs = [
"ConvertConstantOps.cpp",
@@ -21,8 +23,8 @@
"ConvertStandardToStream.h",
],
deps = [
- "//iree/compiler/Dialect/Stream/Conversion",
- "//iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:ControlFlowOps",
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/CMakeLists.txt
index fb1898b..f2407a5 100644
--- a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertConstantOps.cpp b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertConstantOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertConstantOps.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertConstantOps.cpp
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.cpp b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.cpp
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.h b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.h
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStandardToStream.h
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStructuralOps.cpp b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStructuralOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStructuralOps.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/ConvertStructuralOps.cpp
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD
index 72cf45f..2fd8b39 100644
--- a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD
@@ -22,6 +22,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/CMakeLists.txt
index ea18a35..66bfa3c 100644
--- a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/BUILD#
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/constant_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/constant_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/constant_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/constant_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/structural_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/structural_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/structural_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream/test/structural_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
similarity index 70%
rename from iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
index a4fcf72..3774e88 100644
--- a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "UtilToStream",
srcs = [
"ConvertUtilToStream.cpp",
@@ -19,9 +21,9 @@
"ConvertUtilToStream.h",
],
deps = [
- "//iree/compiler/Dialect/Stream/Conversion",
- "//iree/compiler/Dialect/Stream/IR",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Transforms",
diff --git a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Stream/Conversion/UtilToStream/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/CMakeLists.txt
index d24223c..903151f 100644
--- a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.cpp b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.cpp
diff --git a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.h b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.h
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/ConvertUtilToStream.h
diff --git a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD
index 772543f..9030265 100644
--- a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD
@@ -19,6 +19,7 @@
["global_ops.mlir"],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/CMakeLists.txt
index 672edea..b612078 100644
--- a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/global_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/global_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/global_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream/test/global_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/BUILD b/compiler/src/iree/compiler/Dialect/Stream/IR/BUILD
similarity index 88%
rename from iree/compiler/Dialect/Stream/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/IR/BUILD
index 645dfc1..eab8b4f 100644
--- a/iree/compiler/Dialect/Stream/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/IR/BUILD
@@ -4,9 +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_doc.bzl", "iree_tablegen_doc")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+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:enforce_glob.bzl", "enforce_glob")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -25,7 +26,7 @@
include = ["*.td"],
),
deps = [
- "//iree/compiler/Dialect/Util/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/Util/IR:td_files",
"@llvm-project//mlir:InferTypeOpInterfaceTdFiles",
"@llvm-project//mlir:OpBaseTdFiles",
"@llvm-project//mlir:SideEffectTdFiles",
@@ -35,7 +36,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"StreamDialect.cpp",
@@ -64,9 +65,9 @@
":StreamInterfacesGen",
":StreamOpsGen",
":StreamTypesGen",
- "//iree/compiler/Dialect/Stream/Builtins",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Stream/Builtins",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:ArithmeticUtils",
@@ -82,7 +83,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "StreamEnumsGen",
tbl_outs = [
(
@@ -99,7 +100,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "StreamInterfacesGen",
tbl_outs = [
(
@@ -124,7 +125,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "StreamOpsGen",
tbl_outs = [
(
@@ -141,7 +142,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "StreamTypesGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/Stream/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/IR/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/Stream/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/IR/CMakeLists.txt
index d62d387..da35ba3 100644
--- a/iree/compiler/Dialect/Stream/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/IR/StreamBase.td b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamBase.td
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamBase.td
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamBase.td
diff --git a/iree/compiler/Dialect/Stream/IR/StreamDialect.cpp b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamDialect.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamDialect.cpp
diff --git a/iree/compiler/Dialect/Stream/IR/StreamDialect.h b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamDialect.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamDialect.h
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamDialect.h
diff --git a/iree/compiler/Dialect/Stream/IR/StreamInterfaces.td b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamInterfaces.td
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamInterfaces.td
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamInterfaces.td
diff --git a/iree/compiler/Dialect/Stream/IR/StreamOpFolders.cpp b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamOpFolders.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamOpFolders.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamOpFolders.cpp
diff --git a/iree/compiler/Dialect/Stream/IR/StreamOps.cpp b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamOps.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamOps.cpp
diff --git a/iree/compiler/Dialect/Stream/IR/StreamOps.h b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamOps.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamOps.h
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamOps.h
diff --git a/iree/compiler/Dialect/Stream/IR/StreamOps.td b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamOps.td
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamOps.td
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamOps.td
diff --git a/iree/compiler/Dialect/Stream/IR/StreamTraits.h b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamTraits.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamTraits.h
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamTraits.h
diff --git a/iree/compiler/Dialect/Stream/IR/StreamTypes.cpp b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamTypes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamTypes.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamTypes.cpp
diff --git a/iree/compiler/Dialect/Stream/IR/StreamTypes.h b/compiler/src/iree/compiler/Dialect/Stream/IR/StreamTypes.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/StreamTypes.h
rename to compiler/src/iree/compiler/Dialect/Stream/IR/StreamTypes.h
diff --git a/iree/compiler/Dialect/Stream/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/Stream/IR/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/Stream/IR/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/BUILD
index f8e9232..d88ef66 100644
--- a/iree/compiler/Dialect/Stream/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/IR/test/BUILD
@@ -32,6 +32,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Stream/IR/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/IR/test/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/Stream/IR/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/CMakeLists.txt
index c12baf4..8e7df83 100644
--- a/iree/compiler/Dialect/Stream/IR/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/IR/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/IR/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/IR/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/IR/test/async_folding.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/async_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/async_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/async_folding.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/async_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/async_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/async_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/async_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/builtin_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/builtin_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/builtin_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/builtin_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/cmd_folding.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/cmd_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/cmd_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/cmd_folding.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/cmd_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/cmd_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/cmd_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/cmd_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/executable_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/executable_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/executable_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/executable_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/resource_folding.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/resource_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/resource_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/resource_folding.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/resource_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/resource_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/resource_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/resource_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/tensor_folding.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/tensor_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/tensor_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/tensor_folding.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/tensor_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/tensor_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/tensor_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/tensor_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/timepoint_folding.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/timepoint_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/timepoint_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/timepoint_folding.mlir
diff --git a/iree/compiler/Dialect/Stream/IR/test/timepoint_ops.mlir b/compiler/src/iree/compiler/Dialect/Stream/IR/test/timepoint_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/IR/test/timepoint_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/IR/test/timepoint_ops.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/AnnotateDispatchArguments.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/AnnotateDispatchArguments.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/AnnotateDispatchArguments.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/AnnotateDispatchArguments.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD
similarity index 65%
rename from iree/compiler/Dialect/Stream/Transforms/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD
index 1c01300..8471100 100644
--- a/iree/compiler/Dialect/Stream/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD
@@ -4,7 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -12,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"AnnotateDispatchArguments.cpp",
@@ -45,21 +46,21 @@
],
deps = [
":PassesIncGen",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Stream/Analysis",
- "//iree/compiler/Dialect/Stream/Conversion",
- "//iree/compiler/Dialect/Stream/Conversion/FlowToStream",
- "//iree/compiler/Dialect/Stream/Conversion/HALToStream",
- "//iree/compiler/Dialect/Stream/Conversion/StandardToStream",
- "//iree/compiler/Dialect/Stream/Conversion/UtilToStream",
- "//iree/compiler/Dialect/Stream/IR",
- "//iree/compiler/Dialect/Util/Analysis",
- "//iree/compiler/Dialect/Util/Analysis/DFX",
- "//iree/compiler/Dialect/Util/Conversion",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/Analysis",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion/FlowToStream",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion/HALToStream",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion/StandardToStream",
+ "//compiler/src/iree/compiler/Dialect/Stream/Conversion/UtilToStream",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/DFX",
+ "//compiler/src/iree/compiler/Dialect/Util/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:Analysis",
@@ -80,7 +81,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt
index 2dfc4c7..acc14f4 100644
--- a/iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Transforms/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Transforms/ConvertToStream.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/ConvertToStream.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/ConvertToStream.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/ConvertToStream.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/DumpStatistics.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/DumpStatistics.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/DumpStatistics.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/DumpStatistics.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/ElideAsyncCopies.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/ElideAsyncCopies.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/ElideAsyncCopies.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/ElideAsyncCopies.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/EncodeTensors.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/EncodeTensors.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/EncodeTensors.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/EncodeTensors.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/FoldUniformOperands.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/FoldUniformOperands.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/FoldUniformOperands.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/FoldUniformOperands.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/FuseDispatchBindings.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/FuseDispatchBindings.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/FuseDispatchBindings.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/FuseDispatchBindings.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/LayoutSlices.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/LayoutSlices.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/LayoutSlices.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/LayoutSlices.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/MaterializeBuiltins.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/MaterializeBuiltins.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/MaterializeBuiltins.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/MaterializeBuiltins.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/MaterializeCopyOnWrite.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/MaterializeCopyOnWrite.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/MaterializeCopyOnWrite.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/MaterializeCopyOnWrite.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/OutlineConstants.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/OutlineConstants.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/OutlineConstants.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/OutlineConstants.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/PackAllocations.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/PackAllocations.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/PackAllocations.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/PackAllocations.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/PackConstants.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/PackConstants.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/PackConstants.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/PackConstants.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/PassDetail.h b/compiler/src/iree/compiler/Dialect/Stream/Transforms/PassDetail.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/PassDetail.h
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/PassDetail.h
diff --git a/iree/compiler/Dialect/Stream/Transforms/Passes.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/Passes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/Passes.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/Passes.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/Passes.h b/compiler/src/iree/compiler/Dialect/Stream/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/Passes.h
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/Passes.h
diff --git a/iree/compiler/Dialect/Stream/Transforms/Passes.td b/compiler/src/iree/compiler/Dialect/Stream/Transforms/Passes.td
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/Passes.td
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/Passes.td
diff --git a/iree/compiler/Dialect/Stream/Transforms/PropagateSubviews.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/PropagateSubviews.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/PropagateSubviews.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/PropagateSubviews.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/PropagateTimepoints.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/PropagateTimepoints.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/PropagateTimepoints.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/PropagateTimepoints.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/RefineUsage.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/RefineUsage.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/RefineUsage.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/RefineUsage.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/ScheduleConcurrency.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleConcurrency.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/ScheduleConcurrency.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleConcurrency.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/ScheduleExecution.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleExecution.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/ScheduleExecution.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleExecution.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/SpecializeDispatches.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/SpecializeDispatches.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/SpecializeDispatches.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/SpecializeDispatches.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/VerifyLowerings.cpp b/compiler/src/iree/compiler/Dialect/Stream/Transforms/VerifyLowerings.cpp
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/VerifyLowerings.cpp
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/VerifyLowerings.cpp
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/BUILD b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/BUILD
similarity index 97%
rename from iree/compiler/Dialect/Stream/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/BUILD
index 1142f08..93c2000 100644
--- a/iree/compiler/Dialect/Stream/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/BUILD
@@ -43,6 +43,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/Stream/Transforms/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/CMakeLists.txt
index 04f7193..7cf81a4 100644
--- a/iree/compiler/Dialect/Stream/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Stream/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/annotate_dispatch_arguments.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/annotate_dispatch_arguments.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/annotate_dispatch_arguments.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/annotate_dispatch_arguments.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/convert_to_stream.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/convert_to_stream.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/convert_to_stream.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/convert_to_stream.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/dump_statistics.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/dump_statistics.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/dump_statistics.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/dump_statistics.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/elide_async_copies.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/elide_async_copies.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/elide_async_copies.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/elide_async_copies.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/encode_device_tensors.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/encode_device_tensors.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/encode_device_tensors.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/encode_device_tensors.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/encode_host_tensors.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/encode_host_tensors.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/encode_host_tensors.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/encode_host_tensors.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/fold_globals.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fold_globals.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/fold_globals.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fold_globals.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/fold_uniform_operands.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fold_uniform_operands.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/fold_uniform_operands.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fold_uniform_operands.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings_noalias.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings_noalias.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings_noalias.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/fuse_dispatch_bindings_noalias.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/layout_slices.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/layout_slices.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/layout_slices.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/layout_slices.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/materialize_builtins.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/materialize_builtins.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/materialize_builtins.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/materialize_builtins.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/materialize_copy_on_write.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/materialize_copy_on_write.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/materialize_copy_on_write.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/materialize_copy_on_write.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/outline_constants.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/outline_constants.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/outline_constants.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/outline_constants.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/pack_allocations.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/pack_allocations.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/pack_allocations.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/pack_allocations.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/pack_constants.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/pack_constants.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/pack_constants.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/pack_constants.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/propagate_subviews.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/propagate_subviews.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/propagate_subviews.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/propagate_subviews.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/propagate_timepoints.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/propagate_timepoints.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/propagate_timepoints.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/propagate_timepoints.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/refine_usage.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/refine_usage.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/refine_usage.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/refine_usage.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/schedule_allocation.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/schedule_allocation.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/schedule_allocation.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/schedule_allocation.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/schedule_concurrency.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/schedule_concurrency.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/schedule_concurrency.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/schedule_concurrency.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/schedule_execution.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/schedule_execution.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/schedule_execution.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/schedule_execution.mlir
diff --git a/iree/compiler/Dialect/Stream/Transforms/test/specialize_dispatches.mlir b/compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_dispatches.mlir
similarity index 100%
rename from iree/compiler/Dialect/Stream/Transforms/test/specialize_dispatches.mlir
rename to compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_dispatches.mlir
diff --git a/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
similarity index 80%
rename from iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
index 0a64e50..2335eeb 100644
--- a/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Attributes",
srcs = [
"PotentialValues.cpp",
@@ -21,8 +23,8 @@
"Range.h",
],
deps = [
- "//iree/compiler/Dialect/Util/Analysis/DFX",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/DFX",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Analysis",
"@llvm-project//mlir:ArithmeticDialect",
diff --git a/iree/compiler/Dialect/Util/Analysis/Attributes/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Util/Analysis/Attributes/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/CMakeLists.txt
index 446b4d7..844e49b 100644
--- a/iree/compiler/Dialect/Util/Analysis/Attributes/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Analysis/Attributes/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/PotentialValues.h
diff --git a/iree/compiler/Dialect/Util/Analysis/Attributes/Range.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/Range.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Attributes/Range.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/Range.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/Attributes/Range.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/Range.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Attributes/Range.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes/Range.h
diff --git a/iree/compiler/Dialect/Util/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD
similarity index 83%
rename from iree/compiler/Dialect/Util/Analysis/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD
index 4df3835..9839a19 100644
--- a/iree/compiler/Dialect/Util/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Analysis",
srcs = [
"Explorer.cpp",
@@ -21,7 +23,7 @@
"Position.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Analysis",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Util/Analysis/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Analysis/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Util/Analysis/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/CMakeLists.txt
index a137eab..5b1224b 100644
--- a/iree/compiler/Dialect/Util/Analysis/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Analysis/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Analysis/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Analysis/Constant/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD
similarity index 80%
rename from iree/compiler/Dialect/Util/Analysis/Constant/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD
index 5bdcce9..d5aee20 100644
--- a/iree/compiler/Dialect/Util/Analysis/Constant/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Constant",
srcs = [
"ConstExpr.cpp",
@@ -21,8 +23,8 @@
"OpOracle.h",
],
deps = [
- "//iree/compiler/Dialect/Util/Analysis",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
diff --git a/iree/compiler/Dialect/Util/Analysis/Constant/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Util/Analysis/Constant/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/CMakeLists.txt
index 744c361..19dfe87 100644
--- a/iree/compiler/Dialect/Util/Analysis/Constant/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Analysis/Constant/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.h
diff --git a/iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/OpOracle.h
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/BUILD b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD
similarity index 79%
rename from iree/compiler/Dialect/Util/Analysis/DFX/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD
index 7efe7a3..59e1b17 100644
--- a/iree/compiler/Dialect/Util/Analysis/DFX/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "DFX",
srcs = [
"DepGraph.cpp",
@@ -25,8 +27,8 @@
"State.h",
],
deps = [
- "//iree/compiler/Dialect/Util/Analysis",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Analysis",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/Util/Analysis/DFX/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/CMakeLists.txt
index 5fb0bc6..f431207 100644
--- a/iree/compiler/Dialect/Util/Analysis/DFX/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Analysis/DFX/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/DepGraph.h
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/Element.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Element.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/Element.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Element.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/Element.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Element.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/Element.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Element.h
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/Solver.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Solver.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/Solver.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Solver.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/Solver.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Solver.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/Solver.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/Solver.h
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/State.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/State.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/State.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/State.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/DFX/State.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/State.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/DFX/State.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/DFX/State.h
diff --git a/iree/compiler/Dialect/Util/Analysis/Explorer.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/Explorer.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Explorer.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Explorer.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/Explorer.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/Explorer.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Explorer.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Explorer.h
diff --git a/iree/compiler/Dialect/Util/Analysis/Position.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/Position.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Position.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Position.cpp
diff --git a/iree/compiler/Dialect/Util/Analysis/Position.h b/compiler/src/iree/compiler/Dialect/Util/Analysis/Position.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Analysis/Position.h
rename to compiler/src/iree/compiler/Dialect/Util/Analysis/Position.h
diff --git a/iree/compiler/Dialect/Util/BUILD b/compiler/src/iree/compiler/Dialect/Util/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Util/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Util/CMakeLists.txt
index 24888ca..deb8d4d 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD
similarity index 82%
rename from iree/compiler/Dialect/Util/Conversion/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD
index 9949359..fe8fd36 100644
--- a/iree/compiler/Dialect/Util/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Conversion",
srcs = [
"ConversionPatterns.cpp",
@@ -19,7 +21,7 @@
"ConversionPatterns.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/Util/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Conversion/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Util/Conversion/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Conversion/CMakeLists.txt
index 61089e5..a90425c 100644
--- a/iree/compiler/Dialect/Util/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Conversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Conversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Conversion/ConversionPatterns.cpp b/compiler/src/iree/compiler/Dialect/Util/Conversion/ConversionPatterns.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Conversion/ConversionPatterns.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Conversion/ConversionPatterns.cpp
diff --git a/iree/compiler/Dialect/Util/Conversion/ConversionPatterns.h b/compiler/src/iree/compiler/Dialect/Util/Conversion/ConversionPatterns.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Conversion/ConversionPatterns.h
rename to compiler/src/iree/compiler/Dialect/Util/Conversion/ConversionPatterns.h
diff --git a/iree/compiler/Dialect/Util/Conversion/test/BUILD b/compiler/src/iree/compiler/Dialect/Util/Conversion/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Util/Conversion/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Conversion/test/BUILD
index 6f12c15..6bc164c 100644
--- a/iree/compiler/Dialect/Util/Conversion/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Conversion/test/BUILD
@@ -19,6 +19,7 @@
["hint_ops.mlir"],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Util/Conversion/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Conversion/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Util/Conversion/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Conversion/test/CMakeLists.txt
index 630c3c8..9de890a 100644
--- a/iree/compiler/Dialect/Util/Conversion/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Conversion/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Conversion/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Conversion/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Conversion/test/hint_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/Conversion/test/hint_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Conversion/test/hint_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Conversion/test/hint_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/BUILD b/compiler/src/iree/compiler/Dialect/Util/IR/BUILD
similarity index 92%
rename from iree/compiler/Dialect/Util/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/IR/BUILD
index 2b200e2..ba130f5 100644
--- a/iree/compiler/Dialect/Util/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/IR/BUILD
@@ -4,9 +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_doc.bzl", "iree_tablegen_doc")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+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:enforce_glob.bzl", "enforce_glob")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -38,7 +39,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"ClosureOpUtils.cpp",
@@ -87,7 +88,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "UtilAttrsGen",
tbl_outs = [
(
@@ -104,7 +105,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "UtilInterfacesGen",
tbl_outs = [
(
@@ -137,7 +138,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "UtilOpsGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/Util/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/IR/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/Util/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/IR/CMakeLists.txt
index 7d31da3..12de5c7 100644
--- a/iree/compiler/Dialect/Util/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/IR/ClosureOpUtils.cpp b/compiler/src/iree/compiler/Dialect/Util/IR/ClosureOpUtils.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/ClosureOpUtils.cpp
rename to compiler/src/iree/compiler/Dialect/Util/IR/ClosureOpUtils.cpp
diff --git a/iree/compiler/Dialect/Util/IR/ClosureOpUtils.h b/compiler/src/iree/compiler/Dialect/Util/IR/ClosureOpUtils.h
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/ClosureOpUtils.h
rename to compiler/src/iree/compiler/Dialect/Util/IR/ClosureOpUtils.h
diff --git a/iree/compiler/Dialect/Util/IR/UtilAttrs.cpp b/compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilAttrs.cpp
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.cpp
diff --git a/iree/compiler/Dialect/Util/IR/UtilAttrs.td b/compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.td
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilAttrs.td
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilAttrs.td
diff --git a/iree/compiler/Dialect/Util/IR/UtilBase.td b/compiler/src/iree/compiler/Dialect/Util/IR/UtilBase.td
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilBase.td
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilBase.td
diff --git a/iree/compiler/Dialect/Util/IR/UtilDialect.cpp b/compiler/src/iree/compiler/Dialect/Util/IR/UtilDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilDialect.cpp
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilDialect.cpp
diff --git a/iree/compiler/Dialect/Util/IR/UtilDialect.h b/compiler/src/iree/compiler/Dialect/Util/IR/UtilDialect.h
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilDialect.h
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilDialect.h
diff --git a/iree/compiler/Dialect/Util/IR/UtilInterfaces.td b/compiler/src/iree/compiler/Dialect/Util/IR/UtilInterfaces.td
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilInterfaces.td
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilInterfaces.td
diff --git a/iree/compiler/Dialect/Util/IR/UtilOpFolders.cpp b/compiler/src/iree/compiler/Dialect/Util/IR/UtilOpFolders.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilOpFolders.cpp
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilOpFolders.cpp
diff --git a/iree/compiler/Dialect/Util/IR/UtilOps.cpp b/compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilOps.cpp
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.cpp
diff --git a/iree/compiler/Dialect/Util/IR/UtilOps.h b/compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.h
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilOps.h
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.h
diff --git a/iree/compiler/Dialect/Util/IR/UtilOps.td b/compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.td
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilOps.td
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.td
diff --git a/iree/compiler/Dialect/Util/IR/UtilTraits.h b/compiler/src/iree/compiler/Dialect/Util/IR/UtilTraits.h
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilTraits.h
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilTraits.h
diff --git a/iree/compiler/Dialect/Util/IR/UtilTypes.cpp b/compiler/src/iree/compiler/Dialect/Util/IR/UtilTypes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilTypes.cpp
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilTypes.cpp
diff --git a/iree/compiler/Dialect/Util/IR/UtilTypes.h b/compiler/src/iree/compiler/Dialect/Util/IR/UtilTypes.h
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/UtilTypes.h
rename to compiler/src/iree/compiler/Dialect/Util/IR/UtilTypes.h
diff --git a/iree/compiler/Dialect/Util/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/Util/IR/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/Util/IR/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/BUILD
index 80b81c0..3221fa9 100644
--- a/iree/compiler/Dialect/Util/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/IR/test/BUILD
@@ -34,6 +34,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Util/IR/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/IR/test/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/Util/IR/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/CMakeLists.txt
index 3030ba4..3867fab 100644
--- a/iree/compiler/Dialect/Util/IR/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/IR/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/IR/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/IR/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/IR/test/alignment_folding.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/alignment_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/alignment_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/alignment_folding.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/alignment_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/alignment_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/alignment_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/alignment_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/attributes.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/attributes.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/attributes.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/attributes.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/byte_buffer_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/byte_buffer_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/byte_buffer_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/byte_buffer_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/global_folding.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/global_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/global_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/global_folding.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/global_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/global_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/global_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/global_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/hint_folding.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/hint_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/hint_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/hint_folding.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/hint_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/hint_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/hint_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/hint_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/list_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/list_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/list_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/list_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/numeric_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/numeric_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/numeric_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/numeric_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/range_folding.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/range_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/range_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/range_folding.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/range_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/range_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/range_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/range_ops.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/structural_folding.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/structural_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/structural_folding.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/structural_folding.mlir
diff --git a/iree/compiler/Dialect/Util/IR/test/structural_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/IR/test/structural_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/IR/test/structural_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/IR/test/structural_ops.mlir
diff --git a/iree/compiler/Dialect/Util/Tools/BUILD b/compiler/src/iree/compiler/Dialect/Util/Tools/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Util/Tools/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Tools/BUILD
diff --git a/iree/compiler/Dialect/Util/Tools/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Tools/CMakeLists.txt
similarity index 100%
rename from iree/compiler/Dialect/Util/Tools/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Tools/CMakeLists.txt
diff --git a/iree/compiler/Dialect/Util/Tools/StructAttrGen.cpp b/compiler/src/iree/compiler/Dialect/Util/Tools/StructAttrGen.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Tools/StructAttrGen.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Tools/StructAttrGen.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/ApplyPatterns.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/ApplyPatterns.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/ApplyPatterns.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/ApplyPatterns.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD
similarity index 74%
rename from iree/compiler/Dialect/Util/Transforms/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD
index d855c78..ef220c5 100644
--- a/iree/compiler/Dialect/Util/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"ApplyPatterns.cpp",
@@ -31,11 +33,11 @@
"Patterns.h",
],
deps = [
- "//iree/compiler/Dialect/Util/Analysis",
- "//iree/compiler/Dialect/Util/Analysis/Attributes",
- "//iree/compiler/Dialect/Util/Analysis/Constant",
- "//iree/compiler/Dialect/Util/Analysis/DFX",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/Attributes",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/Constant",
+ "//compiler/src/iree/compiler/Dialect/Util/Analysis/DFX",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Analysis",
"@llvm-project//mlir:ArithmeticDialect",
diff --git a/iree/compiler/Dialect/Util/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Transforms/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/Util/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/CMakeLists.txt
index 06523e2..70d7c9d 100644
--- a/iree/compiler/Dialect/Util/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Transforms/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Transforms/CombineInitializers.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/CombineInitializers.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/CombineInitializers.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/CombineInitializers.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/ConvertPrimitiveType.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/ConvertPrimitiveType.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/ConvertPrimitiveType.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/ConvertPrimitiveType.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/DropCompilerHints.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/DropCompilerHints.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/DropCompilerHints.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/DropCompilerHints.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/FixedPointIterator.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/FixedPointIterator.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/FixedPointIterator.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/FixedPointIterator.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/FoldGlobals.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/FoldGlobals.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/FoldGlobals.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/FoldGlobals.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/FuseGlobals.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/FuseGlobals.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/FuseGlobals.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/FuseGlobals.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/HoistIntoGlobals.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/HoistIntoGlobals.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/HoistIntoGlobals.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/HoistIntoGlobals.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/Passes.h b/compiler/src/iree/compiler/Dialect/Util/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/Passes.h
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/Passes.h
diff --git a/iree/compiler/Dialect/Util/Transforms/Patterns.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/Patterns.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/Patterns.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/Patterns.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/Patterns.h b/compiler/src/iree/compiler/Dialect/Util/Transforms/Patterns.h
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/Patterns.h
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/Patterns.h
diff --git a/iree/compiler/Dialect/Util/Transforms/SimplifyGlobalAccesses.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/SimplifyGlobalAccesses.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/SimplifyGlobalAccesses.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/SimplifyGlobalAccesses.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/StripDebugOps.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/StripDebugOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/StripDebugOps.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/StripDebugOps.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/TestFloatRangeAnalysis.cpp b/compiler/src/iree/compiler/Dialect/Util/Transforms/TestFloatRangeAnalysis.cpp
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/TestFloatRangeAnalysis.cpp
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/TestFloatRangeAnalysis.cpp
diff --git a/iree/compiler/Dialect/Util/Transforms/test/BUILD b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/BUILD
similarity index 97%
rename from iree/compiler/Dialect/Util/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/BUILD
index e557ecc..1782a7d 100644
--- a/iree/compiler/Dialect/Util/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/BUILD
@@ -35,6 +35,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Util/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/Util/Transforms/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/CMakeLists.txt
index ded462b..3bd3253 100644
--- a/iree/compiler/Dialect/Util/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Util/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Util/Transforms/test/block_patterns.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/block_patterns.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/block_patterns.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/block_patterns.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/combine_initializers.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/combine_initializers.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/combine_initializers.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/combine_initializers.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/demote_f32_to_f16.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/demote_f32_to_f16.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/demote_f32_to_f16.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/demote_f32_to_f16.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/demote_f64_to_f32.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/demote_f64_to_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/demote_f64_to_f32.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/demote_f64_to_f32.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/demote_i64_to_i32.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/demote_i64_to_i32.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/demote_i64_to_i32.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/demote_i64_to_i32.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/drop_compiler_hints.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/drop_compiler_hints.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/drop_compiler_hints.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/drop_compiler_hints.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/fold_globals.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/fold_globals.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/fold_globals.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/fold_globals.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/fuse_globals.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/fuse_globals.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/fuse_globals.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/fuse_globals.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals_linalg.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals_linalg.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals_linalg.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/hoist_into_globals_linalg.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/promote_f16_to_f32.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/promote_f16_to_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/promote_f16_to_f32.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/promote_f16_to_f32.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/simplify_global_accesses.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/simplify_global_accesses.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/simplify_global_accesses.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/simplify_global_accesses.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/strip_debug_ops.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/strip_debug_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/strip_debug_ops.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/strip_debug_ops.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis.mlir
diff --git a/iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis_linalg.mlir b/compiler/src/iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis_linalg.mlir
similarity index 100%
rename from iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis_linalg.mlir
rename to compiler/src/iree/compiler/Dialect/Util/Transforms/test/test_float_range_analysis_linalg.mlir
diff --git a/iree/compiler/Dialect/VM/Analysis/BUILD b/compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD
similarity index 75%
rename from iree/compiler/Dialect/VM/Analysis/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD
index dd4d835..406c963 100644
--- a/iree/compiler/Dialect/VM/Analysis/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD
@@ -1,10 +1,12 @@
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Analysis",
srcs = [
"RegisterAllocation.cpp",
@@ -18,8 +20,8 @@
"ValueLiveness.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Analysis",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/VM/Analysis/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Analysis/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/VM/Analysis/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/CMakeLists.txt
index c0000f0..639a4f9 100644
--- a/iree/compiler/Dialect/VM/Analysis/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Analysis/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Analysis/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Analysis/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Analysis/RegisterAllocation.cpp b/compiler/src/iree/compiler/Dialect/VM/Analysis/RegisterAllocation.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/RegisterAllocation.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/RegisterAllocation.cpp
diff --git a/iree/compiler/Dialect/VM/Analysis/RegisterAllocation.h b/compiler/src/iree/compiler/Dialect/VM/Analysis/RegisterAllocation.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/RegisterAllocation.h
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/RegisterAllocation.h
diff --git a/iree/compiler/Dialect/VM/Analysis/RegisterAllocationTest.cpp b/compiler/src/iree/compiler/Dialect/VM/Analysis/RegisterAllocationTest.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/RegisterAllocationTest.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/RegisterAllocationTest.cpp
diff --git a/iree/compiler/Dialect/VM/Analysis/TestPasses.h b/compiler/src/iree/compiler/Dialect/VM/Analysis/TestPasses.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/TestPasses.h
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/TestPasses.h
diff --git a/iree/compiler/Dialect/VM/Analysis/ValueLiveness.cpp b/compiler/src/iree/compiler/Dialect/VM/Analysis/ValueLiveness.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/ValueLiveness.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/ValueLiveness.cpp
diff --git a/iree/compiler/Dialect/VM/Analysis/ValueLiveness.h b/compiler/src/iree/compiler/Dialect/VM/Analysis/ValueLiveness.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/ValueLiveness.h
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/ValueLiveness.h
diff --git a/iree/compiler/Dialect/VM/Analysis/ValueLivenessTest.cpp b/compiler/src/iree/compiler/Dialect/VM/Analysis/ValueLivenessTest.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/ValueLivenessTest.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/ValueLivenessTest.cpp
diff --git a/iree/compiler/Dialect/VM/Analysis/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Analysis/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/VM/Analysis/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/test/BUILD
index 173bea6..6065e78 100644
--- a/iree/compiler/Dialect/VM/Analysis/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Analysis/test/BUILD
@@ -22,6 +22,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Analysis/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Analysis/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/VM/Analysis/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/test/CMakeLists.txt
index a354708..d4148c8 100644
--- a/iree/compiler/Dialect/VM/Analysis/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Analysis/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Analysis/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Analysis/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Analysis/test/register_allocation.mlir b/compiler/src/iree/compiler/Dialect/VM/Analysis/test/register_allocation.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/test/register_allocation.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/test/register_allocation.mlir
diff --git a/iree/compiler/Dialect/VM/Analysis/test/value_liveness.mlir b/compiler/src/iree/compiler/Dialect/VM/Analysis/test/value_liveness.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Analysis/test/value_liveness.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Analysis/test/value_liveness.mlir
diff --git a/iree/compiler/Dialect/VM/BUILD b/compiler/src/iree/compiler/Dialect/VM/BUILD
similarity index 100%
rename from iree/compiler/Dialect/VM/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/VM/CMakeLists.txt
index 24888ca..d737cce 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD
similarity index 79%
rename from iree/compiler/Dialect/VM/Conversion/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD
index 0a45609..28c8fa8 100644
--- a/iree/compiler/Dialect/VM/Conversion/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Conversion",
srcs = [
"ConversionTarget.cpp",
@@ -26,9 +28,9 @@
"TypeConverter.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/IR",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
diff --git a/iree/compiler/Dialect/VM/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/VM/Conversion/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/CMakeLists.txt
index d30c984..b975f1f 100644
--- a/iree/compiler/Dialect/VM/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/ConversionDialectInterface.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/ConversionDialectInterface.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/ConversionDialectInterface.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/ConversionDialectInterface.h
diff --git a/iree/compiler/Dialect/VM/Conversion/ConversionTarget.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/ConversionTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/ConversionTarget.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/ConversionTarget.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/ConversionTarget.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/ConversionTarget.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/ConversionTarget.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/ConversionTarget.h
diff --git a/iree/compiler/Dialect/VM/Conversion/ImportUtils.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/ImportUtils.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/ImportUtils.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/ImportUtils.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/ImportUtils.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/ImportUtils.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/ImportUtils.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/ImportUtils.h
diff --git a/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
similarity index 73%
rename from iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
index 38ce8c2..3857302 100644
--- a/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "MathToVM",
srcs = [
"ConvertMathToVM.cpp",
@@ -19,9 +21,9 @@
"ConvertMathToVM.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:MathDialect",
diff --git a/iree/compiler/Dialect/VM/Conversion/MathToVM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/VM/Conversion/MathToVM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/CMakeLists.txt
index 78831d2..d6ca00d 100644
--- a/iree/compiler/Dialect/VM/Conversion/MathToVM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/ConvertMathToVM.h
diff --git a/iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD
index 264880a..68297c5 100644
--- a/iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD
@@ -21,6 +21,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Conversion/MathToVM/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/VM/Conversion/MathToVM/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/CMakeLists.txt
index 52e1cb2..ee6f360 100644
--- a/iree/compiler/Dialect/VM/Conversion/MathToVM/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/MathToVM/test/arithmetic_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/arithmetic_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/MathToVM/test/arithmetic_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM/test/arithmetic_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
similarity index 77%
rename from iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
index d7db19d..96aad48 100644
--- a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "MemRefToVM",
srcs = [
"ConvertMemRefToVM.cpp",
@@ -19,9 +21,9 @@
"ConvertMemRefToVM.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:BufferizationDialect",
diff --git a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/VM/Conversion/MemRefToVM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/CMakeLists.txt
index 73b9923..9dad578 100644
--- a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/ConvertMemRefToVM.h
diff --git a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD
index dd16226..f295974 100644
--- a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD
@@ -21,6 +21,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/CMakeLists.txt
index 2278418..5d6404c 100644
--- a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/load_store_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/load_store_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/load_store_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM/test/load_store_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
similarity index 77%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
index f26987f..bc0b5d5 100644
--- a/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "StandardToVM",
srcs = [
"ConvertStandardToVM.cpp",
@@ -20,9 +22,9 @@
"ConvertStandardToVM.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:ControlFlowOps",
"@llvm-project//mlir:FuncDialect",
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/CMakeLists.txt
index bf23063..f8b8400 100644
--- a/iree/compiler/Dialect/VM/Conversion/StandardToVM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVM.h
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVMTest.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVMTest.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVMTest.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/ConvertStandardToVMTest.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD
index 9674a4b..ea5a03f 100644
--- a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD
@@ -29,6 +29,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/CMakeLists.txt
index 233a197..1c6e9bd 100644
--- a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/arithmetic_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/arithmetic_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/arithmetic_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/arithmetic_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/assignment_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/assignment_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/assignment_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/assignment_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/comparison_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/comparison_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/comparison_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/comparison_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/const_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/const_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/const_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/const_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/control_flow_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/control_flow_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/control_flow_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/control_flow_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/conversion_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/conversion_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/conversion_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/conversion_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/func_attrs.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/func_attrs.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/func_attrs.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/func_attrs.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/nesting.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/nesting.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/nesting.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/nesting.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/structural_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/structural_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/StandardToVM/test/structural_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM/test/structural_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/TargetOptions.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/TargetOptions.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/TargetOptions.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/TargetOptions.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/TargetOptions.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/TargetOptions.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/TargetOptions.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/TargetOptions.h
diff --git a/iree/compiler/Dialect/VM/Conversion/TypeConverter.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/TypeConverter.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/TypeConverter.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/TypeConverter.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/TypeConverter.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/TypeConverter.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/TypeConverter.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/TypeConverter.h
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
similarity index 76%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
index 05e29cc..e28d016 100644
--- a/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "UtilToVM",
srcs = [
"ConvertAlignmentOps.cpp",
@@ -23,9 +25,9 @@
"ConvertUtilToVM.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/CMakeLists.txt
index a873a44..790ba60 100644
--- a/iree/compiler/Dialect/VM/Conversion/UtilToVM/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertAlignmentOps.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertAlignmentOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertAlignmentOps.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertAlignmentOps.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertGlobalOps.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertGlobalOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertGlobalOps.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertGlobalOps.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertListOps.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertListOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertListOps.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertListOps.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertStatusOps.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertStatusOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertStatusOps.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertStatusOps.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/ConvertUtilToVM.h
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD
index 609e15f..0318539 100644
--- a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD
@@ -26,6 +26,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/CMakeLists.txt
index 6e5fe78..6aa4565 100644
--- a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/alignment_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/alignment_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/alignment_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/alignment_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/byte_buffer_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/byte_buffer_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/byte_buffer_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/byte_buffer_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/global_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/global_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/global_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/global_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/hint_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/hint_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/hint_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/hint_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/list_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/list_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/list_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/list_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/status_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/status_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/UtilToVM/test/status_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM/test/status_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD
similarity index 72%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD
index ee45016..27de393 100644
--- a/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")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -20,7 +20,7 @@
""",
)
-cc_library(
+iree_compiler_cc_library(
name = "VMToEmitC",
srcs = [
"ConvertVMToEmitC.cpp",
@@ -34,11 +34,11 @@
"VMAnalysis.h",
],
deps = [
- "//iree/compiler/Dialect/Util/Conversion",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Analysis",
- "//iree/compiler/Dialect/VM/IR",
- "//iree/compiler/Dialect/VM/Utils:CallingConvention",
+ "//compiler/src/iree/compiler/Dialect/Util/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Analysis",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Utils:CallingConvention",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:ControlFlowOps",
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/CMakeLists.txt
index db6346d..4eeef37 100644
--- a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/ConvertVMToEmitC.h
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/DropExcludedExports.h
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.cpp b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.cpp
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/EmitCTypeConverter.h
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/VMAnalysis.h b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/VMAnalysis.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/VMAnalysis.h
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/VMAnalysis.h
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
similarity index 97%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
index 65eafd6..dd260ec 100644
--- a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD
@@ -54,6 +54,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/CMakeLists.txt
similarity index 94%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/CMakeLists.txt
index 6284b18..f9cd1f1 100644
--- a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_f32.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_f32.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_f32.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/arithmetic_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_f32.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_f32.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_f32.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/assignment_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_f32.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_f32.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_f32.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/comparison_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_f32.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_f32.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_f32.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/const_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/control_flow_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/control_flow_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/control_flow_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/control_flow_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_f32.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_f32.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_f32.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/conversion_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/func_op.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/func_op.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/func_op.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/func_op.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_f32.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_f32.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_f32.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_f32.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/global_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/list_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops_i64.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops_i64.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops_i64.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/shift_ops_i64.mlir
diff --git a/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/type_conversion.mlir b/compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/type_conversion.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/type_conversion.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC/test/type_conversion.mlir
diff --git a/iree/compiler/Dialect/VM/IR/BUILD b/compiler/src/iree/compiler/Dialect/VM/IR/BUILD
similarity index 88%
rename from iree/compiler/Dialect/VM/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/IR/BUILD
index 15749b4..8f51761 100644
--- a/iree/compiler/Dialect/VM/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/IR/BUILD
@@ -4,9 +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_doc.bzl", "iree_tablegen_doc")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+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:enforce_glob.bzl", "enforce_glob")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -30,7 +31,7 @@
include = ["*.td"],
),
deps = [
- "//iree/compiler/Dialect/Util/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/Util/IR:td_files",
"@llvm-project//mlir:CallInterfacesTdFiles",
"@llvm-project//mlir:ControlFlowInterfacesTdFiles",
"@llvm-project//mlir:FunctionInterfacesTdFiles",
@@ -39,7 +40,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"VMDialect.cpp",
@@ -69,7 +70,7 @@
":VMOpInterfaceGen",
":VMOpsGen",
":VMStructsGen",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ControlFlowInterfaces",
"@llvm-project//mlir:FuncDialect",
@@ -81,7 +82,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMEnumsGen",
tbl_outs = [
(
@@ -98,7 +99,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMOpsGen",
tbl_outs = [
(
@@ -115,7 +116,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMOpEncoderGen",
tbl_outs = [
(
@@ -128,7 +129,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMOpInterfaceGen",
tbl_outs = [
(
@@ -145,7 +146,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VMStructsGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/VM/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/IR/CMakeLists.txt
similarity index 97%
rename from iree/compiler/Dialect/VM/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/IR/CMakeLists.txt
index 0bde18f..a1eb9a6 100644
--- a/iree/compiler/Dialect/VM/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/IR/VMBase.td b/compiler/src/iree/compiler/Dialect/VM/IR/VMBase.td
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMBase.td
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMBase.td
diff --git a/iree/compiler/Dialect/VM/IR/VMDialect.cpp b/compiler/src/iree/compiler/Dialect/VM/IR/VMDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMDialect.cpp
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMDialect.cpp
diff --git a/iree/compiler/Dialect/VM/IR/VMDialect.h b/compiler/src/iree/compiler/Dialect/VM/IR/VMDialect.h
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMDialect.h
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMDialect.h
diff --git a/iree/compiler/Dialect/VM/IR/VMFuncEncoder.h b/compiler/src/iree/compiler/Dialect/VM/IR/VMFuncEncoder.h
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMFuncEncoder.h
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMFuncEncoder.h
diff --git a/iree/compiler/Dialect/VM/IR/VMOpFolders.cpp b/compiler/src/iree/compiler/Dialect/VM/IR/VMOpFolders.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOpFolders.cpp
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOpFolders.cpp
diff --git a/iree/compiler/Dialect/VM/IR/VMOpcodesCore.td b/compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesCore.td
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOpcodesCore.td
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesCore.td
diff --git a/iree/compiler/Dialect/VM/IR/VMOpcodesF32.td b/compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesF32.td
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOpcodesF32.td
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesF32.td
diff --git a/iree/compiler/Dialect/VM/IR/VMOpcodesF64.td b/compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesF64.td
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOpcodesF64.td
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesF64.td
diff --git a/iree/compiler/Dialect/VM/IR/VMOpcodesI64.td b/compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesI64.td
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOpcodesI64.td
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOpcodesI64.td
diff --git a/iree/compiler/Dialect/VM/IR/VMOps.cpp b/compiler/src/iree/compiler/Dialect/VM/IR/VMOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOps.cpp
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOps.cpp
diff --git a/iree/compiler/Dialect/VM/IR/VMOps.h b/compiler/src/iree/compiler/Dialect/VM/IR/VMOps.h
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOps.h
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOps.h
diff --git a/iree/compiler/Dialect/VM/IR/VMOps.td b/compiler/src/iree/compiler/Dialect/VM/IR/VMOps.td
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMOps.td
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMOps.td
diff --git a/iree/compiler/Dialect/VM/IR/VMTraits.h b/compiler/src/iree/compiler/Dialect/VM/IR/VMTraits.h
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMTraits.h
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMTraits.h
diff --git a/iree/compiler/Dialect/VM/IR/VMTypes.cpp b/compiler/src/iree/compiler/Dialect/VM/IR/VMTypes.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMTypes.cpp
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMTypes.cpp
diff --git a/iree/compiler/Dialect/VM/IR/VMTypes.h b/compiler/src/iree/compiler/Dialect/VM/IR/VMTypes.h
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/VMTypes.h
rename to compiler/src/iree/compiler/Dialect/VM/IR/VMTypes.h
diff --git a/iree/compiler/Dialect/VM/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/IR/test/BUILD
similarity index 97%
rename from iree/compiler/Dialect/VM/IR/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/BUILD
index de403d8..7508265 100644
--- a/iree/compiler/Dialect/VM/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/IR/test/BUILD
@@ -41,6 +41,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/IR/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/IR/test/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/VM/IR/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/CMakeLists.txt
index 80b04ee..f10f8ac 100644
--- a/iree/compiler/Dialect/VM/IR/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/IR/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/IR/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/IR/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/IR/test/arithmetic_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/arithmetic_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/arithmetic_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/arithmetic_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/arithmetic_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/arithmetic_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/arithmetic_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/arithmetic_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/assignment_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/assignment_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/assignment_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/assignment_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/assignment_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/assignment_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/assignment_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/assignment_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/comparison_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/comparison_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/comparison_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/comparison_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/comparison_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/comparison_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/comparison_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/comparison_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/const_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/const_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/const_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/const_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/const_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/const_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/const_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/const_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/control_flow_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/control_flow_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/control_flow_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/control_flow_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/control_flow_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/control_flow_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/control_flow_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/control_flow_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/conversion_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/conversion_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/conversion_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/conversion_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/conversion_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/conversion_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/conversion_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/conversion_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/debug_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/debug_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/debug_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/debug_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/debug_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/debug_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/debug_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/debug_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/global_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/global_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/global_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/global_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/global_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/global_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/global_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/global_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/list_op_verification.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/list_op_verification.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/list_op_verification.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/list_op_verification.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/list_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/list_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/list_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/list_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/shift_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/shift_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/shift_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/shift_ops.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/structural_folding.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/structural_folding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/structural_folding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/structural_folding.mlir
diff --git a/iree/compiler/Dialect/VM/IR/test/structural_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/IR/test/structural_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/IR/test/structural_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/IR/test/structural_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Target/BUILD b/compiler/src/iree/compiler/Dialect/VM/Target/BUILD
similarity index 69%
rename from iree/compiler/Dialect/VM/Target/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Target/BUILD
index 9c2f751..661873d 100644
--- a/iree/compiler/Dialect/VM/Target/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/BUILD
@@ -4,20 +4,22 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "init_targets",
hdrs = ["init_targets.h"],
defines = [
"IREE_HAVE_EMITC_DIALECT",
],
deps = [
- "//iree/compiler/Dialect/VM/Target/Bytecode",
- "//iree/compiler/Dialect/VM/Target/C",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/C",
],
)
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/BUILD b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD
similarity index 60%
rename from iree/compiler/Dialect/VM/Target/Bytecode/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD
index 23d7157..f7db7a4 100644
--- a/iree/compiler/Dialect/VM/Target/Bytecode/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD
@@ -1,10 +1,12 @@
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Bytecode",
srcs = [
"BytecodeEncoder.cpp",
@@ -18,13 +20,13 @@
"BytecodeModuleTarget.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Dialect/VM/Analysis",
- "//iree/compiler/Dialect/VM/IR",
- "//iree/compiler/Dialect/VM/Transforms",
- "//iree/compiler/Dialect/VM/Utils:CallingConvention",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Dialect/VM/Analysis",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Transforms",
+ "//compiler/src/iree/compiler/Dialect/VM/Utils:CallingConvention",
+ "//compiler/src/iree/compiler/Utils",
"//runtime/src/iree/schemas:bytecode_module_def_c_fbs",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.cpp
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.h b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeEncoder.h
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.cpp
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BytecodeModuleTarget.h
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/VM/Target/Bytecode/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/CMakeLists.txt
index d249817..5f4fe20 100644
--- a/iree/compiler/Dialect/VM/Target/Bytecode/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Target/Bytecode/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.cpp
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.h b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/ConstantEncoder.h
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.cpp
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.h b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/DebugDatabaseBuilder.h
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/TranslationRegistration.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/TranslationRegistration.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/TranslationRegistration.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/TranslationRegistration.cpp
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD
index 85f1cc1..5d11508 100644
--- a/iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD
@@ -23,6 +23,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-translate",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/CMakeLists.txt
similarity index 91%
rename from iree/compiler/Dialect/VM/Target/Bytecode/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/CMakeLists.txt
index cf69b16..288b1be 100644
--- a/iree/compiler/Dialect/VM/Target/Bytecode/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/test/constant_encoding.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/constant_encoding.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/test/constant_encoding.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/constant_encoding.mlir
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/test/module_encoding_smoke.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/module_encoding_smoke.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/test/module_encoding_smoke.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/module_encoding_smoke.mlir
diff --git a/iree/compiler/Dialect/VM/Target/Bytecode/test/reflection_attrs.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/reflection_attrs.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/Bytecode/test/reflection_attrs.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/Bytecode/test/reflection_attrs.mlir
diff --git a/iree/compiler/Dialect/VM/Target/C/BUILD b/compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD
similarity index 76%
rename from iree/compiler/Dialect/VM/Target/C/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD
index 636fc78..c5dc755 100644
--- a/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")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -31,7 +31,7 @@
""",
)
-cc_library(
+iree_compiler_cc_library(
name = "Enabled",
defines = [
"IREE_HAVE_EMITC_DIALECT",
@@ -41,7 +41,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "TranslateToCpp",
srcs = [
"TranslateToCpp.cpp",
@@ -61,7 +61,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "C",
srcs = [
"CModuleTarget.cpp",
@@ -75,12 +75,12 @@
deps = [
":Enabled",
":TranslateToCpp",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Dialect/VM/Analysis",
- "//iree/compiler/Dialect/VM/Conversion/VMToEmitC",
- "//iree/compiler/Dialect/VM/IR",
- "//iree/compiler/Dialect/VM/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Dialect/VM/Analysis",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/VMToEmitC",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Transforms",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
diff --git a/iree/compiler/Dialect/VM/Target/C/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Target/C/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Dialect/VM/Target/C/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/CMakeLists.txt
index 2c78d0c..d4dbfd0 100644
--- a/iree/compiler/Dialect/VM/Target/C/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Target/C/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Target/C/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Target/C/CModuleTarget.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/C/CModuleTarget.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/CModuleTarget.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/CModuleTarget.cpp
diff --git a/iree/compiler/Dialect/VM/Target/C/CModuleTarget.h b/compiler/src/iree/compiler/Dialect/VM/Target/C/CModuleTarget.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/CModuleTarget.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/CModuleTarget.h
diff --git a/iree/compiler/Dialect/VM/Target/C/CppEmitter.h b/compiler/src/iree/compiler/Dialect/VM/Target/C/CppEmitter.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/CppEmitter.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/CppEmitter.h
diff --git a/iree/compiler/Dialect/VM/Target/C/README.md b/compiler/src/iree/compiler/Dialect/VM/Target/C/README.md
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/README.md
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/README.md
diff --git a/iree/compiler/Dialect/VM/Target/C/TranslateToCpp.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/C/TranslateToCpp.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/TranslateToCpp.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/TranslateToCpp.cpp
diff --git a/iree/compiler/Dialect/VM/Target/C/TranslationFlags.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/C/TranslationFlags.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/TranslationFlags.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/TranslationFlags.cpp
diff --git a/iree/compiler/Dialect/VM/Target/C/TranslationFlags.h b/compiler/src/iree/compiler/Dialect/VM/Target/C/TranslationFlags.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/TranslationFlags.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/TranslationFlags.h
diff --git a/iree/compiler/Dialect/VM/Target/C/TranslationRegistration.cpp b/compiler/src/iree/compiler/Dialect/VM/Target/C/TranslationRegistration.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/TranslationRegistration.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/TranslationRegistration.cpp
diff --git a/iree/compiler/Dialect/VM/Target/C/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Target/C/test/CMakeLists.txt
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/test/CMakeLists.txt
diff --git a/iree/compiler/Dialect/VM/Target/C/test/add.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/C/test/add.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/test/add.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/test/add.mlir
diff --git a/iree/compiler/Dialect/VM/Target/C/test/calling_convention.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/C/test/calling_convention.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/test/calling_convention.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/test/calling_convention.mlir
diff --git a/iree/compiler/Dialect/VM/Target/C/test/constant_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/C/test/constant_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/test/constant_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/test/constant_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Target/C/test/control_flow.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/C/test/control_flow.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/test/control_flow.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/test/control_flow.mlir
diff --git a/iree/compiler/Dialect/VM/Target/C/test/empty_module.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/C/test/empty_module.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/test/empty_module.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/test/empty_module.mlir
diff --git a/iree/compiler/Dialect/VM/Target/C/test/global_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Target/C/test/global_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/C/test/global_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Target/C/test/global_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Target/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Target/CMakeLists.txt
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Target/CMakeLists.txt
diff --git a/iree/compiler/Dialect/VM/Target/init_targets.h b/compiler/src/iree/compiler/Dialect/VM/Target/init_targets.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Target/init_targets.h
rename to compiler/src/iree/compiler/Dialect/VM/Target/init_targets.h
diff --git a/iree/compiler/Dialect/VM/Tools/BUILD b/compiler/src/iree/compiler/Dialect/VM/Tools/BUILD
similarity index 100%
rename from iree/compiler/Dialect/VM/Tools/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Tools/BUILD
diff --git a/iree/compiler/Dialect/VM/Tools/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Tools/CMakeLists.txt
similarity index 100%
rename from iree/compiler/Dialect/VM/Tools/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Tools/CMakeLists.txt
diff --git a/iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp b/compiler/src/iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp
diff --git a/iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp b/compiler/src/iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/BUILD b/compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD
similarity index 69%
rename from iree/compiler/Dialect/VM/Transforms/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD
index 5a9994a..41c1f20 100644
--- a/iree/compiler/Dialect/VM/Transforms/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Transforms",
srcs = [
"Conversion.cpp",
@@ -26,14 +28,14 @@
"Passes.h",
],
deps = [
- "//iree/compiler/Dialect/Util/Conversion",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/Conversion/MathToVM",
- "//iree/compiler/Dialect/VM/Conversion/MemRefToVM",
- "//iree/compiler/Dialect/VM/Conversion/StandardToVM",
- "//iree/compiler/Dialect/VM/Conversion/UtilToVM",
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Conversion",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/MathToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/MemRefToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/UtilToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:AffineToStandardTransforms",
diff --git a/iree/compiler/Dialect/VM/Transforms/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Transforms/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Dialect/VM/Transforms/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/CMakeLists.txt
index 0c308fe..06aa1e5 100644
--- a/iree/compiler/Dialect/VM/Transforms/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Transforms/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Transforms/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Transforms/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Transforms/Conversion.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/Conversion.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/Conversion.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/Conversion.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/DeduplicateRodata.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/DeduplicateRodata.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/DeduplicateRodata.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/DeduplicateRodata.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/DropEmptyModuleInitializers.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/DropEmptyModuleInitializers.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/DropEmptyModuleInitializers.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/DropEmptyModuleInitializers.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/GlobalInitialization.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/GlobalInitialization.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/GlobalInitialization.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/GlobalInitialization.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/HoistInlinedRodata.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/HoistInlinedRodata.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/HoistInlinedRodata.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/HoistInlinedRodata.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/OrdinalAllocation.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/OrdinalAllocation.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/OrdinalAllocation.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/OrdinalAllocation.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/Passes.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/Passes.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/Passes.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/Passes.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/Passes.h b/compiler/src/iree/compiler/Dialect/VM/Transforms/Passes.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/Passes.h
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/Passes.h
diff --git a/iree/compiler/Dialect/VM/Transforms/SinkDefiningOps.cpp b/compiler/src/iree/compiler/Dialect/VM/Transforms/SinkDefiningOps.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/SinkDefiningOps.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/SinkDefiningOps.cpp
diff --git a/iree/compiler/Dialect/VM/Transforms/test/BUILD b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/VM/Transforms/test/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/BUILD
index fa41720..aeb7172 100644
--- a/iree/compiler/Dialect/VM/Transforms/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/BUILD
@@ -26,6 +26,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/VM/Transforms/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/VM/Transforms/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/CMakeLists.txt
index 1da29fa..6139f3d 100644
--- a/iree/compiler/Dialect/VM/Transforms/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Transforms/test/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Transforms/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Transforms/test/deduplicate_rodata.mlir b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/deduplicate_rodata.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/test/deduplicate_rodata.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/deduplicate_rodata.mlir
diff --git a/iree/compiler/Dialect/VM/Transforms/test/drop_empty_module_initializers.mlir b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/drop_empty_module_initializers.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/test/drop_empty_module_initializers.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/drop_empty_module_initializers.mlir
diff --git a/iree/compiler/Dialect/VM/Transforms/test/global_initialization.mlir b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/global_initialization.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/test/global_initialization.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/global_initialization.mlir
diff --git a/iree/compiler/Dialect/VM/Transforms/test/hoist_inlined_rodata.mlir b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/hoist_inlined_rodata.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/test/hoist_inlined_rodata.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/hoist_inlined_rodata.mlir
diff --git a/iree/compiler/Dialect/VM/Transforms/test/ordinal_allocation.mlir b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/ordinal_allocation.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/test/ordinal_allocation.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/ordinal_allocation.mlir
diff --git a/iree/compiler/Dialect/VM/Transforms/test/sink_defining_ops.mlir b/compiler/src/iree/compiler/Dialect/VM/Transforms/test/sink_defining_ops.mlir
similarity index 100%
rename from iree/compiler/Dialect/VM/Transforms/test/sink_defining_ops.mlir
rename to compiler/src/iree/compiler/Dialect/VM/Transforms/test/sink_defining_ops.mlir
diff --git a/iree/compiler/Dialect/VM/Utils/BUILD b/compiler/src/iree/compiler/Dialect/VM/Utils/BUILD
similarity index 80%
rename from iree/compiler/Dialect/VM/Utils/BUILD
rename to compiler/src/iree/compiler/Dialect/VM/Utils/BUILD
index fa51986..94ff8b3 100644
--- a/iree/compiler/Dialect/VM/Utils/BUILD
+++ b/compiler/src/iree/compiler/Dialect/VM/Utils/BUILD
@@ -4,18 +4,20 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "CallingConvention",
srcs = ["CallingConvention.cpp"],
hdrs = ["CallingConvention.h"],
deps = [
- "//iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Support",
diff --git a/iree/compiler/Dialect/VM/Utils/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/VM/Utils/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/VM/Utils/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/VM/Utils/CMakeLists.txt
index ef8d3bf..75da638 100644
--- a/iree/compiler/Dialect/VM/Utils/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/VM/Utils/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/Utils/BUILD #
+# compiler/src/iree/compiler/Dialect/VM/Utils/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/VM/Utils/CallingConvention.cpp b/compiler/src/iree/compiler/Dialect/VM/Utils/CallingConvention.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Utils/CallingConvention.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Utils/CallingConvention.cpp
diff --git a/iree/compiler/Dialect/VM/Utils/CallingConvention.h b/compiler/src/iree/compiler/Dialect/VM/Utils/CallingConvention.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Utils/CallingConvention.h
rename to compiler/src/iree/compiler/Dialect/VM/Utils/CallingConvention.h
diff --git a/iree/compiler/Dialect/VM/Utils/ConstantEncoding.cpp b/compiler/src/iree/compiler/Dialect/VM/Utils/ConstantEncoding.cpp
similarity index 100%
rename from iree/compiler/Dialect/VM/Utils/ConstantEncoding.cpp
rename to compiler/src/iree/compiler/Dialect/VM/Utils/ConstantEncoding.cpp
diff --git a/iree/compiler/Dialect/VM/Utils/ConstantEncoding.h b/compiler/src/iree/compiler/Dialect/VM/Utils/ConstantEncoding.h
similarity index 100%
rename from iree/compiler/Dialect/VM/Utils/ConstantEncoding.h
rename to compiler/src/iree/compiler/Dialect/VM/Utils/ConstantEncoding.h
diff --git a/iree/compiler/Dialect/Vulkan/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/BUILD
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/BUILD
rename to compiler/src/iree/compiler/Dialect/Vulkan/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Vulkan/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/Dialect/Vulkan/CMakeLists.txt
index 24888ca..9e74183 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/Dialect/Vulkan/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Vulkan/IR/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD
similarity index 85%
rename from iree/compiler/Dialect/Vulkan/IR/BUILD
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD
index 94ff990..c501f65 100644
--- a/iree/compiler/Dialect/Vulkan/IR/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD
@@ -4,8 +4,10 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+load("@llvm-project//mlir:tblgen.bzl", "td_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(
default_visibility = ["//visibility:public"],
@@ -25,7 +27,7 @@
deps = ["@llvm-project//mlir:OpBaseTdFiles"],
)
-cc_library(
+iree_compiler_cc_library(
name = "IR",
srcs = [
"VulkanAttributes.cpp",
@@ -44,7 +46,7 @@
deps = [
":VulkanAttrsGen",
":VulkanEnumsGen",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:SPIRVDialect",
@@ -52,7 +54,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VulkanAttrsGen",
tbl_outs = [
(
@@ -69,7 +71,7 @@
deps = [":td_files"],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "VulkanEnumsGen",
tbl_outs = [
(
diff --git a/iree/compiler/Dialect/Vulkan/IR/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Vulkan/IR/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Dialect/Vulkan/IR/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/CMakeLists.txt
index 00108a7..9fcca3f 100644
--- a/iree/compiler/Dialect/Vulkan/IR/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/IR/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Vulkan/IR/BUILD #
+# compiler/src/iree/compiler/Dialect/Vulkan/IR/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.cpp b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.cpp
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.cpp
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.h b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.h
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.h
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.h
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.td b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.td
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.td
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanAttributes.td
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanBase.td b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanBase.td
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanBase.td
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanBase.td
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanDialect.cpp b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanDialect.cpp
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanDialect.cpp
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanDialect.cpp
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanDialect.h b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanDialect.h
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanDialect.h
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanDialect.h
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanTypes.cpp b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanTypes.cpp
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanTypes.cpp
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanTypes.cpp
diff --git a/iree/compiler/Dialect/Vulkan/IR/VulkanTypes.h b/compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanTypes.h
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/VulkanTypes.h
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/VulkanTypes.h
diff --git a/iree/compiler/Dialect/Vulkan/IR/test/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD
similarity index 95%
rename from iree/compiler/Dialect/Vulkan/IR/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD
index 21e7a3d..e131e45 100644
--- a/iree/compiler/Dialect/Vulkan/IR/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD
@@ -19,6 +19,7 @@
["target_env.mlir"],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Vulkan/IR/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/CMakeLists.txt
similarity index 92%
rename from iree/compiler/Dialect/Vulkan/IR/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/test/CMakeLists.txt
index ae031f8..c0ed980 100644
--- a/iree/compiler/Dialect/Vulkan/IR/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Vulkan/IR/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Vulkan/IR/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Vulkan/IR/test/target_env.mlir b/compiler/src/iree/compiler/Dialect/Vulkan/IR/test/target_env.mlir
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/IR/test/target_env.mlir
rename to compiler/src/iree/compiler/Dialect/Vulkan/IR/test/target_env.mlir
diff --git a/iree/compiler/Dialect/Vulkan/Utils/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD
similarity index 82%
rename from iree/compiler/Dialect/Vulkan/Utils/BUILD
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD
index 1c3d916..5b7dbaa 100644
--- a/iree/compiler/Dialect/Vulkan/Utils/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD
@@ -4,13 +4,15 @@
# 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")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Utils",
srcs = [
"TargetEnvironment.cpp",
@@ -21,7 +23,7 @@
"TargetTriple.h",
],
deps = [
- "//iree/compiler/Dialect/Vulkan/IR",
+ "//compiler/src/iree/compiler/Dialect/Vulkan/IR",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:SPIRVDialect",
diff --git a/iree/compiler/Dialect/Vulkan/Utils/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Vulkan/Utils/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/CMakeLists.txt
index eb7aefd..092f7a7 100644
--- a/iree/compiler/Dialect/Vulkan/Utils/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Vulkan/Utils/BUILD #
+# compiler/src/iree/compiler/Dialect/Vulkan/Utils/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.cpp b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.cpp
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.cpp
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.cpp
diff --git a/iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.h b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.h
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.h
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetEnvironment.h
diff --git a/iree/compiler/Dialect/Vulkan/Utils/TargetTriple.cpp b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetTriple.cpp
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/Utils/TargetTriple.cpp
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetTriple.cpp
diff --git a/iree/compiler/Dialect/Vulkan/Utils/TargetTriple.h b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetTriple.h
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/Utils/TargetTriple.h
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/TargetTriple.h
diff --git a/iree/compiler/Dialect/Vulkan/Utils/test/BUILD b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD
similarity index 96%
rename from iree/compiler/Dialect/Vulkan/Utils/test/BUILD
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD
index 5c6f563..3709c87 100644
--- a/iree/compiler/Dialect/Vulkan/Utils/test/BUILD
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD
@@ -30,6 +30,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/Dialect/Vulkan/Utils/test/CMakeLists.txt b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Dialect/Vulkan/Utils/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/CMakeLists.txt
index bfcc4b2..cc4062a 100644
--- a/iree/compiler/Dialect/Vulkan/Utils/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Vulkan/Utils/test/BUILD #
+# compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Dialect/Vulkan/Utils/test/target_env_conversion.mlir b/compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/target_env_conversion.mlir
similarity index 100%
rename from iree/compiler/Dialect/Vulkan/Utils/test/target_env_conversion.mlir
rename to compiler/src/iree/compiler/Dialect/Vulkan/Utils/test/target_env_conversion.mlir
diff --git a/iree/compiler/InputConversion/BUILD b/compiler/src/iree/compiler/InputConversion/BUILD
similarity index 100%
rename from iree/compiler/InputConversion/BUILD
rename to compiler/src/iree/compiler/InputConversion/BUILD
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/CMakeLists.txt
similarity index 91%
copy from iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
copy to compiler/src/iree/compiler/InputConversion/CMakeLists.txt
index 24888ca..ac76f85 100644
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/BUILD #
+# compiler/src/iree/compiler/InputConversion/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/Common/BUILD b/compiler/src/iree/compiler/InputConversion/Common/BUILD
similarity index 81%
rename from iree/compiler/InputConversion/Common/BUILD
rename to compiler/src/iree/compiler/InputConversion/Common/BUILD
index 7659358..88c6b84 100644
--- a/iree/compiler/InputConversion/Common/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/Common/BUILD
@@ -4,7 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -12,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
@@ -27,7 +28,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "PassHeaders",
hdrs = [
"PassDetail.h",
@@ -41,7 +42,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "Common",
srcs = [
"IREEImportPublic.cpp",
@@ -56,9 +57,9 @@
deps = [
":PassHeaders",
":PassesIncGen",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"//llvm-external-projects/iree-dialects:IREEInputDialect",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:FuncDialect",
diff --git a/iree/compiler/InputConversion/Common/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/Common/CMakeLists.txt
similarity index 95%
rename from iree/compiler/InputConversion/Common/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/Common/CMakeLists.txt
index a3b9b52..4ca6956 100644
--- a/iree/compiler/InputConversion/Common/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/Common/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/Common/BUILD #
+# compiler/src/iree/compiler/InputConversion/Common/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/Common/IREEImportPublic.cpp b/compiler/src/iree/compiler/InputConversion/Common/IREEImportPublic.cpp
similarity index 100%
rename from iree/compiler/InputConversion/Common/IREEImportPublic.cpp
rename to compiler/src/iree/compiler/InputConversion/Common/IREEImportPublic.cpp
diff --git a/iree/compiler/InputConversion/Common/PassDetail.h b/compiler/src/iree/compiler/InputConversion/Common/PassDetail.h
similarity index 100%
rename from iree/compiler/InputConversion/Common/PassDetail.h
rename to compiler/src/iree/compiler/InputConversion/Common/PassDetail.h
diff --git a/iree/compiler/InputConversion/Common/Passes.cpp b/compiler/src/iree/compiler/InputConversion/Common/Passes.cpp
similarity index 100%
rename from iree/compiler/InputConversion/Common/Passes.cpp
rename to compiler/src/iree/compiler/InputConversion/Common/Passes.cpp
diff --git a/iree/compiler/InputConversion/Common/Passes.h b/compiler/src/iree/compiler/InputConversion/Common/Passes.h
similarity index 100%
rename from iree/compiler/InputConversion/Common/Passes.h
rename to compiler/src/iree/compiler/InputConversion/Common/Passes.h
diff --git a/iree/compiler/InputConversion/Common/Passes.td b/compiler/src/iree/compiler/InputConversion/Common/Passes.td
similarity index 100%
rename from iree/compiler/InputConversion/Common/Passes.td
rename to compiler/src/iree/compiler/InputConversion/Common/Passes.td
diff --git a/iree/compiler/InputConversion/Common/QuantizedMatmulToMatmul.cpp b/compiler/src/iree/compiler/InputConversion/Common/QuantizedMatmulToMatmul.cpp
similarity index 100%
rename from iree/compiler/InputConversion/Common/QuantizedMatmulToMatmul.cpp
rename to compiler/src/iree/compiler/InputConversion/Common/QuantizedMatmulToMatmul.cpp
diff --git a/iree/compiler/InputConversion/Common/SanitizeModuleNames.cpp b/compiler/src/iree/compiler/InputConversion/Common/SanitizeModuleNames.cpp
similarity index 100%
rename from iree/compiler/InputConversion/Common/SanitizeModuleNames.cpp
rename to compiler/src/iree/compiler/InputConversion/Common/SanitizeModuleNames.cpp
diff --git a/iree/compiler/InputConversion/Common/TopLevelSCFToCFG.cpp b/compiler/src/iree/compiler/InputConversion/Common/TopLevelSCFToCFG.cpp
similarity index 100%
rename from iree/compiler/InputConversion/Common/TopLevelSCFToCFG.cpp
rename to compiler/src/iree/compiler/InputConversion/Common/TopLevelSCFToCFG.cpp
diff --git a/iree/compiler/InputConversion/Common/test/BUILD b/compiler/src/iree/compiler/InputConversion/Common/test/BUILD
similarity index 96%
rename from iree/compiler/InputConversion/Common/test/BUILD
rename to compiler/src/iree/compiler/InputConversion/Common/test/BUILD
index 85b87aa..54c6711 100644
--- a/iree/compiler/InputConversion/Common/test/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/Common/test/BUILD
@@ -26,6 +26,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/InputConversion/Common/test/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/Common/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/InputConversion/Common/test/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/Common/test/CMakeLists.txt
index 699362b..ab3b248 100644
--- a/iree/compiler/InputConversion/Common/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/Common/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/Common/test/BUILD #
+# compiler/src/iree/compiler/InputConversion/Common/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/Common/test/iree_import_public.mlir b/compiler/src/iree/compiler/InputConversion/Common/test/iree_import_public.mlir
similarity index 100%
rename from iree/compiler/InputConversion/Common/test/iree_import_public.mlir
rename to compiler/src/iree/compiler/InputConversion/Common/test/iree_import_public.mlir
diff --git a/iree/compiler/InputConversion/Common/test/linalg_quantized_matmul_to_matmul.mlir b/compiler/src/iree/compiler/InputConversion/Common/test/linalg_quantized_matmul_to_matmul.mlir
similarity index 100%
rename from iree/compiler/InputConversion/Common/test/linalg_quantized_matmul_to_matmul.mlir
rename to compiler/src/iree/compiler/InputConversion/Common/test/linalg_quantized_matmul_to_matmul.mlir
diff --git a/iree/compiler/InputConversion/Common/test/sanitize_module_names.mlir b/compiler/src/iree/compiler/InputConversion/Common/test/sanitize_module_names.mlir
similarity index 100%
rename from iree/compiler/InputConversion/Common/test/sanitize_module_names.mlir
rename to compiler/src/iree/compiler/InputConversion/Common/test/sanitize_module_names.mlir
diff --git a/iree/compiler/InputConversion/Common/test/top_level_scf_to_cfg.mlir b/compiler/src/iree/compiler/InputConversion/Common/test/top_level_scf_to_cfg.mlir
similarity index 100%
rename from iree/compiler/InputConversion/Common/test/top_level_scf_to_cfg.mlir
rename to compiler/src/iree/compiler/InputConversion/Common/test/top_level_scf_to_cfg.mlir
diff --git a/iree/compiler/InputConversion/MHLO/BUILD b/compiler/src/iree/compiler/InputConversion/MHLO/BUILD
similarity index 87%
rename from iree/compiler/InputConversion/MHLO/BUILD
rename to compiler/src/iree/compiler/InputConversion/MHLO/BUILD
index 1acd265..890f809 100644
--- a/iree/compiler/InputConversion/MHLO/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/MHLO/BUILD
@@ -4,7 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -12,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
@@ -27,7 +28,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "PassHeaders",
hdrs = [
"PassDetail.h",
@@ -42,7 +43,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "MHLO",
srcs = [
"BroadcastingToLinalgPatterns.cpp",
@@ -62,10 +63,10 @@
deps = [
":PassHeaders",
":PassesIncGen",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/InputConversion/Common",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/InputConversion/Common",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
"@llvm-project//llvm:Support",
diff --git a/iree/compiler/InputConversion/MHLO/BroadcastingToLinalgPatterns.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/BroadcastingToLinalgPatterns.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/BroadcastingToLinalgPatterns.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/BroadcastingToLinalgPatterns.cpp
diff --git a/iree/compiler/InputConversion/MHLO/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/MHLO/CMakeLists.txt
similarity index 97%
rename from iree/compiler/InputConversion/MHLO/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/MHLO/CMakeLists.txt
index 7d3c488..6827dc3 100644
--- a/iree/compiler/InputConversion/MHLO/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/MHLO/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/MHLO/BUILD #
+# compiler/src/iree/compiler/InputConversion/MHLO/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/MHLO/ConvertComplexToReal.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/ConvertComplexToReal.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/ConvertComplexToReal.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/ConvertComplexToReal.cpp
diff --git a/iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.cpp
diff --git a/iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.h b/compiler/src/iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.h
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.h
rename to compiler/src/iree/compiler/InputConversion/MHLO/ConvertMHLOToFlow.h
diff --git a/iree/compiler/InputConversion/MHLO/ConvertMHLOToLinalgExt.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/ConvertMHLOToLinalgExt.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/ConvertMHLOToLinalgExt.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/ConvertMHLOToLinalgExt.cpp
diff --git a/iree/compiler/InputConversion/MHLO/FlattenTuplesInCFG.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/FlattenTuplesInCFG.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/FlattenTuplesInCFG.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/FlattenTuplesInCFG.cpp
diff --git a/iree/compiler/InputConversion/MHLO/MHLOToLinalgOnTensors.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/MHLOToLinalgOnTensors.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/MHLOToLinalgOnTensors.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/MHLOToLinalgOnTensors.cpp
diff --git a/iree/compiler/InputConversion/MHLO/MHLOToMHLOPreprocessing.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/MHLOToMHLOPreprocessing.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/MHLOToMHLOPreprocessing.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/MHLOToMHLOPreprocessing.cpp
diff --git a/iree/compiler/InputConversion/MHLO/PassDetail.h b/compiler/src/iree/compiler/InputConversion/MHLO/PassDetail.h
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/PassDetail.h
rename to compiler/src/iree/compiler/InputConversion/MHLO/PassDetail.h
diff --git a/iree/compiler/InputConversion/MHLO/Passes.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/Passes.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/Passes.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/Passes.cpp
diff --git a/iree/compiler/InputConversion/MHLO/Passes.h b/compiler/src/iree/compiler/InputConversion/MHLO/Passes.h
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/Passes.h
rename to compiler/src/iree/compiler/InputConversion/MHLO/Passes.h
diff --git a/iree/compiler/InputConversion/MHLO/Passes.td b/compiler/src/iree/compiler/InputConversion/MHLO/Passes.td
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/Passes.td
rename to compiler/src/iree/compiler/InputConversion/MHLO/Passes.td
diff --git a/iree/compiler/InputConversion/MHLO/Rewriters.h b/compiler/src/iree/compiler/InputConversion/MHLO/Rewriters.h
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/Rewriters.h
rename to compiler/src/iree/compiler/InputConversion/MHLO/Rewriters.h
diff --git a/iree/compiler/InputConversion/MHLO/VerifyCompilerMHLOInputLegality.cpp b/compiler/src/iree/compiler/InputConversion/MHLO/VerifyCompilerMHLOInputLegality.cpp
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/VerifyCompilerMHLOInputLegality.cpp
rename to compiler/src/iree/compiler/InputConversion/MHLO/VerifyCompilerMHLOInputLegality.cpp
diff --git a/iree/compiler/InputConversion/MHLO/test/BUILD b/compiler/src/iree/compiler/InputConversion/MHLO/test/BUILD
similarity index 96%
rename from iree/compiler/InputConversion/MHLO/test/BUILD
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/BUILD
index 8e97de7..50582c5 100644
--- a/iree/compiler/InputConversion/MHLO/test/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/MHLO/test/BUILD
@@ -34,6 +34,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/InputConversion/MHLO/test/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/MHLO/test/CMakeLists.txt
similarity index 94%
rename from iree/compiler/InputConversion/MHLO/test/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/CMakeLists.txt
index 8b53867..1d7a367 100644
--- a/iree/compiler/InputConversion/MHLO/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/MHLO/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/MHLO/test/BUILD #
+# compiler/src/iree/compiler/InputConversion/MHLO/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/MHLO/test/broadcasting.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/broadcasting.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/broadcasting.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/broadcasting.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/convert_complex_to_real.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/convert_complex_to_real.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/convert_complex_to_real.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/convert_complex_to_real.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/convert_mhlo_to_linalg_ext.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/convert_mhlo_to_linalg_ext.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/convert_mhlo_to_linalg_ext.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/convert_mhlo_to_linalg_ext.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/convert_structural_types.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/convert_structural_types.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/convert_structural_types.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/convert_structural_types.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/dynamic_shape.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/dynamic_shape.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/dynamic_shape.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/dynamic_shape.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/fft.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/fft.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/fft.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/fft.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/flatten_tuples_in_cfg.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/flatten_tuples_in_cfg.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/flatten_tuples_in_cfg.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/flatten_tuples_in_cfg.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/mhlo_to_linalg.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/mhlo_to_linalg.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/mhlo_to_linalg.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/mhlo_to_linalg.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing_canoncalize_dot_general.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing_canoncalize_dot_general.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing_canoncalize_dot_general.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/mhlo_to_mhlo_preprocessing_canoncalize_dot_general.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/missing_legalizations.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/missing_legalizations.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/missing_legalizations.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/missing_legalizations.mlir
diff --git a/iree/compiler/InputConversion/MHLO/test/verify_compiler_mhlo_input_legality.mlir b/compiler/src/iree/compiler/InputConversion/MHLO/test/verify_compiler_mhlo_input_legality.mlir
similarity index 100%
rename from iree/compiler/InputConversion/MHLO/test/verify_compiler_mhlo_input_legality.mlir
rename to compiler/src/iree/compiler/InputConversion/MHLO/test/verify_compiler_mhlo_input_legality.mlir
diff --git a/iree/compiler/InputConversion/TMTensor/BUILD b/compiler/src/iree/compiler/InputConversion/TMTensor/BUILD
similarity index 86%
rename from iree/compiler/InputConversion/TMTensor/BUILD
rename to compiler/src/iree/compiler/InputConversion/TMTensor/BUILD
index 7f030a4..8ad1f7a 100644
--- a/iree/compiler/InputConversion/TMTensor/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/TMTensor/BUILD
@@ -4,8 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
-load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
+load("//iree:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -24,7 +24,7 @@
""",
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
@@ -39,7 +39,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "PassHeaders",
hdrs = [
"PassDetail.h",
@@ -53,7 +53,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "TMTensor",
srcs = [
"ConvertTMTensorToLinalgExt.cpp",
diff --git a/iree/compiler/InputConversion/TMTensor/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/TMTensor/CMakeLists.txt
similarity index 95%
rename from iree/compiler/InputConversion/TMTensor/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/TMTensor/CMakeLists.txt
index ae721c4..96467e5 100644
--- a/iree/compiler/InputConversion/TMTensor/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/TMTensor/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/TMTensor/BUILD #
+# compiler/src/iree/compiler/InputConversion/TMTensor/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/TMTensor/ConvertTMTensorToLinalgExt.cpp b/compiler/src/iree/compiler/InputConversion/TMTensor/ConvertTMTensorToLinalgExt.cpp
similarity index 100%
rename from iree/compiler/InputConversion/TMTensor/ConvertTMTensorToLinalgExt.cpp
rename to compiler/src/iree/compiler/InputConversion/TMTensor/ConvertTMTensorToLinalgExt.cpp
diff --git a/iree/compiler/InputConversion/TMTensor/PassDetail.h b/compiler/src/iree/compiler/InputConversion/TMTensor/PassDetail.h
similarity index 100%
rename from iree/compiler/InputConversion/TMTensor/PassDetail.h
rename to compiler/src/iree/compiler/InputConversion/TMTensor/PassDetail.h
diff --git a/iree/compiler/InputConversion/TMTensor/Passes.cpp b/compiler/src/iree/compiler/InputConversion/TMTensor/Passes.cpp
similarity index 100%
rename from iree/compiler/InputConversion/TMTensor/Passes.cpp
rename to compiler/src/iree/compiler/InputConversion/TMTensor/Passes.cpp
diff --git a/iree/compiler/InputConversion/TMTensor/Passes.h b/compiler/src/iree/compiler/InputConversion/TMTensor/Passes.h
similarity index 100%
rename from iree/compiler/InputConversion/TMTensor/Passes.h
rename to compiler/src/iree/compiler/InputConversion/TMTensor/Passes.h
diff --git a/iree/compiler/InputConversion/TMTensor/Passes.td b/compiler/src/iree/compiler/InputConversion/TMTensor/Passes.td
similarity index 100%
rename from iree/compiler/InputConversion/TMTensor/Passes.td
rename to compiler/src/iree/compiler/InputConversion/TMTensor/Passes.td
diff --git a/iree/compiler/InputConversion/TMTensor/test/BUILD b/compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD
similarity index 96%
rename from iree/compiler/InputConversion/TMTensor/test/BUILD
rename to compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD
index 22a6384..44586cd 100644
--- a/iree/compiler/InputConversion/TMTensor/test/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD
@@ -32,6 +32,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/InputConversion/TMTensor/test/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/TMTensor/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/InputConversion/TMTensor/test/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/TMTensor/test/CMakeLists.txt
index 712b3a1..c14be54 100644
--- a/iree/compiler/InputConversion/TMTensor/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/TMTensor/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/TMTensor/test/BUILD #
+# compiler/src/iree/compiler/InputConversion/TMTensor/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/TMTensor/test/convert_tm_tensor_to_linalg_ext.mlir b/compiler/src/iree/compiler/InputConversion/TMTensor/test/convert_tm_tensor_to_linalg_ext.mlir
similarity index 100%
rename from iree/compiler/InputConversion/TMTensor/test/convert_tm_tensor_to_linalg_ext.mlir
rename to compiler/src/iree/compiler/InputConversion/TMTensor/test/convert_tm_tensor_to_linalg_ext.mlir
diff --git a/iree/compiler/InputConversion/TOSA/BUILD b/compiler/src/iree/compiler/InputConversion/TOSA/BUILD
similarity index 80%
rename from iree/compiler/InputConversion/TOSA/BUILD
rename to compiler/src/iree/compiler/InputConversion/TOSA/BUILD
index 13f7127..e8d3706 100644
--- a/iree/compiler/InputConversion/TOSA/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/TOSA/BUILD
@@ -4,7 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -12,7 +13,7 @@
licenses = ["notice"], # Apache 2.0
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "PassesIncGen",
tbl_outs = [
(
@@ -27,7 +28,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "PassHeaders",
hdrs = [
"PassDetail.h",
@@ -41,7 +42,7 @@
],
)
-cc_library(
+iree_compiler_cc_library(
name = "TOSA",
srcs = [
"Passes.cpp",
@@ -53,8 +54,8 @@
deps = [
":PassHeaders",
":PassesIncGen",
- "//iree/compiler/Dialect/Flow/Transforms",
- "//iree/compiler/InputConversion/Common",
+ "//compiler/src/iree/compiler/Dialect/Flow/Transforms",
+ "//compiler/src/iree/compiler/InputConversion/Common",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:SCFToControlFlow",
"@llvm-project//mlir:TosaDialect",
diff --git a/iree/compiler/InputConversion/TOSA/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/TOSA/CMakeLists.txt
similarity index 95%
rename from iree/compiler/InputConversion/TOSA/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/TOSA/CMakeLists.txt
index 1c7c707..b5cfd2d 100644
--- a/iree/compiler/InputConversion/TOSA/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/TOSA/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/TOSA/BUILD #
+# compiler/src/iree/compiler/InputConversion/TOSA/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/TOSA/PassDetail.h b/compiler/src/iree/compiler/InputConversion/TOSA/PassDetail.h
similarity index 100%
rename from iree/compiler/InputConversion/TOSA/PassDetail.h
rename to compiler/src/iree/compiler/InputConversion/TOSA/PassDetail.h
diff --git a/iree/compiler/InputConversion/TOSA/Passes.cpp b/compiler/src/iree/compiler/InputConversion/TOSA/Passes.cpp
similarity index 100%
rename from iree/compiler/InputConversion/TOSA/Passes.cpp
rename to compiler/src/iree/compiler/InputConversion/TOSA/Passes.cpp
diff --git a/iree/compiler/InputConversion/TOSA/Passes.h b/compiler/src/iree/compiler/InputConversion/TOSA/Passes.h
similarity index 100%
rename from iree/compiler/InputConversion/TOSA/Passes.h
rename to compiler/src/iree/compiler/InputConversion/TOSA/Passes.h
diff --git a/iree/compiler/InputConversion/TOSA/Passes.td b/compiler/src/iree/compiler/InputConversion/TOSA/Passes.td
similarity index 100%
rename from iree/compiler/InputConversion/TOSA/Passes.td
rename to compiler/src/iree/compiler/InputConversion/TOSA/Passes.td
diff --git a/iree/compiler/InputConversion/TOSA/VerifyCompilerTOSAInputLegality.cpp b/compiler/src/iree/compiler/InputConversion/TOSA/VerifyCompilerTOSAInputLegality.cpp
similarity index 100%
rename from iree/compiler/InputConversion/TOSA/VerifyCompilerTOSAInputLegality.cpp
rename to compiler/src/iree/compiler/InputConversion/TOSA/VerifyCompilerTOSAInputLegality.cpp
diff --git a/iree/compiler/InputConversion/TOSA/test/BUILD b/compiler/src/iree/compiler/InputConversion/TOSA/test/BUILD
similarity index 95%
rename from iree/compiler/InputConversion/TOSA/test/BUILD
rename to compiler/src/iree/compiler/InputConversion/TOSA/test/BUILD
index 3e66cf3..7bc7784 100644
--- a/iree/compiler/InputConversion/TOSA/test/BUILD
+++ b/compiler/src/iree/compiler/InputConversion/TOSA/test/BUILD
@@ -23,6 +23,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-opt",
"@llvm-project//llvm:FileCheck",
diff --git a/iree/compiler/InputConversion/TOSA/test/CMakeLists.txt b/compiler/src/iree/compiler/InputConversion/TOSA/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/InputConversion/TOSA/test/CMakeLists.txt
rename to compiler/src/iree/compiler/InputConversion/TOSA/test/CMakeLists.txt
index 59a4c50..079af4a 100644
--- a/iree/compiler/InputConversion/TOSA/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/InputConversion/TOSA/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/TOSA/test/BUILD #
+# compiler/src/iree/compiler/InputConversion/TOSA/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/InputConversion/TOSA/test/verify_compiler_tosa_input_legality.mlir b/compiler/src/iree/compiler/InputConversion/TOSA/test/verify_compiler_tosa_input_legality.mlir
similarity index 100%
rename from iree/compiler/InputConversion/TOSA/test/verify_compiler_tosa_input_legality.mlir
rename to compiler/src/iree/compiler/InputConversion/TOSA/test/verify_compiler_tosa_input_legality.mlir
diff --git a/compiler/src/iree/compiler/Pipelines/BUILD b/compiler/src/iree/compiler/Pipelines/BUILD
new file mode 100644
index 0000000..b7986d5
--- /dev/null
+++ b/compiler/src/iree/compiler/Pipelines/BUILD
@@ -0,0 +1,55 @@
+# 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("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+iree_compiler_cc_library(
+ name = "Options",
+ srcs = ["Options.cpp"],
+ hdrs = ["Options.h"],
+ deps = [
+ "//compiler/src/iree/compiler/InputConversion/TMTensor",
+ "//compiler/src/iree/compiler/Utils",
+ ],
+)
+
+iree_compiler_cc_library(
+ name = "Pipelines",
+ srcs = [
+ "Pipelines.cpp",
+ ],
+ hdrs = [
+ "Pipelines.h",
+ ],
+ deps = [
+ ":Options",
+ "//compiler/src/iree/compiler/Bindings/Native/Transforms",
+ "//compiler/src/iree/compiler/Bindings/TFLite/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Flow/Transforms",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM",
+ "//compiler/src/iree/compiler/Dialect/HAL/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Stream/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion/StandardToVM",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/Dialect/VM/Transforms",
+ "//compiler/src/iree/compiler/InputConversion/Common",
+ "//compiler/src/iree/compiler/InputConversion/MHLO",
+ "//compiler/src/iree/compiler/InputConversion/TMTensor",
+ "//compiler/src/iree/compiler/InputConversion/TOSA",
+ "@llvm-project//llvm:Support",
+ "@llvm-project//mlir:IR",
+ "@llvm-project//mlir:Pass",
+ "@llvm-project//mlir:Support",
+ ],
+)
diff --git a/iree/compiler/Pipelines/CMakeLists.txt b/compiler/src/iree/compiler/Pipelines/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Pipelines/CMakeLists.txt
rename to compiler/src/iree/compiler/Pipelines/CMakeLists.txt
index 8398e68..2c72db4 100644
--- a/iree/compiler/Pipelines/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Pipelines/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Pipelines/BUILD #
+# compiler/src/iree/compiler/Pipelines/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Pipelines/Options.cpp b/compiler/src/iree/compiler/Pipelines/Options.cpp
similarity index 100%
rename from iree/compiler/Pipelines/Options.cpp
rename to compiler/src/iree/compiler/Pipelines/Options.cpp
diff --git a/iree/compiler/Pipelines/Options.h b/compiler/src/iree/compiler/Pipelines/Options.h
similarity index 100%
rename from iree/compiler/Pipelines/Options.h
rename to compiler/src/iree/compiler/Pipelines/Options.h
diff --git a/iree/compiler/Pipelines/Pipelines.cpp b/compiler/src/iree/compiler/Pipelines/Pipelines.cpp
similarity index 100%
rename from iree/compiler/Pipelines/Pipelines.cpp
rename to compiler/src/iree/compiler/Pipelines/Pipelines.cpp
diff --git a/iree/compiler/Pipelines/Pipelines.h b/compiler/src/iree/compiler/Pipelines/Pipelines.h
similarity index 100%
rename from iree/compiler/Pipelines/Pipelines.h
rename to compiler/src/iree/compiler/Pipelines/Pipelines.h
diff --git a/iree/compiler/Pipelines/README.md b/compiler/src/iree/compiler/Pipelines/README.md
similarity index 100%
rename from iree/compiler/Pipelines/README.md
rename to compiler/src/iree/compiler/Pipelines/README.md
diff --git a/iree/compiler/README.md b/compiler/src/iree/compiler/README.md
similarity index 60%
rename from iree/compiler/README.md
rename to compiler/src/iree/compiler/README.md
index 6d7f6f0..71b3cfc 100644
--- a/iree/compiler/README.md
+++ b/compiler/src/iree/compiler/README.md
@@ -7,7 +7,6 @@
```
└── compiler/
- ├── setup.py (builds/installs the compiler Python API)
├── API/ (C and Python APIs)
├── Bindings/ (used to generate different ABI bindings)
├── Codegen/ (device code generation for assorted APIs)
@@ -61,10 +60,10 @@
outside of the IREE repo itself).
Refer to IREE's
-[presentations and talks](../../README.md#presentations-and-talks) and this
+[presentations and talks](../../../../README.md#presentations-and-talks) and this
architecture diagram for details on how the pieces fit together:
-
+
## Coding Style
@@ -79,45 +78,3 @@
* https://google.github.io/styleguide/cppguide.html
* https://llvm.org/docs/CodingStandards.html
* https://clang.llvm.org/docs/ClangFormatStyleOptions.html
-
-## Standalone Python Builds
-
-The included `setup.py` file can be used to build Python binaries or directly
-install the IREE compiler API. Do note that the compiler is quite heavy and
-unless you are developing it and on a significant machine, you will want to
-use released binaries.
-
-There are two ways to build/install Python packages:
-
-* Directly from the source tree (this is how official releases are done).
-* From the build directory while developing.
-
-It is recommended to use your favorite method for managing
-[virtual environemnts](https://docs.python.org/3/library/venv.html) instead
-of modifying the system installation.
-
-Only relatively recent versions of `pip` are supported. Always use the latest
-via `pip install --upgrade pip`.
-
-You can build either from the source or build tree (assumes that CMake has
-been configured and the project built). The latter is typically used by
-project developers who are already setup for development and want to
-incrementally generate Python packages without rebuilding.
-
-To build a wheel that can be installed on the same Python version and OS:
-
-```
-python -m pip wheel iree/compiler
-```
-
-To directly install:
-
-```
-python -m pip install iree/compiler
-```
-
-In order to sanity check once the package is installed:
-
-```
-python iree/compiler/Api/python/test/transforms/ireec/compile_sample_module.py
-```
diff --git a/compiler/src/iree/compiler/Translation/BUILD b/compiler/src/iree/compiler/Translation/BUILD
new file mode 100644
index 0000000..71d156d
--- /dev/null
+++ b/compiler/src/iree/compiler/Translation/BUILD
@@ -0,0 +1,46 @@
+# Copyright 2019 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("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = ["layering_check"],
+ licenses = ["notice"], # Apache 2.0
+)
+
+iree_compiler_cc_library(
+ name = "HALExecutable",
+ srcs = ["HALExecutable.cpp"],
+ hdrs = ["HALExecutable.h"],
+ deps = [
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/HAL/Transforms",
+ "//compiler/src/iree/compiler/Utils",
+ "@llvm-project//llvm:Support",
+ "@llvm-project//mlir:IR",
+ "@llvm-project//mlir:Pass",
+ "@llvm-project//mlir:Support",
+ "@llvm-project//mlir:Translation",
+ ],
+)
+
+iree_compiler_cc_library(
+ name = "IREEVM",
+ srcs = ["IREEVM.cpp"],
+ hdrs = ["IREEVM.h"],
+ deps = [
+ "//compiler/src/iree/compiler/ConstEval",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/C",
+ "//compiler/src/iree/compiler/Pipelines",
+ "//compiler/src/iree/compiler/Pipelines:Options",
+ "//compiler/src/iree/compiler/Utils",
+ "@llvm-project//mlir:Pass",
+ "@llvm-project//mlir:Translation",
+ ],
+)
diff --git a/iree/compiler/Translation/CMakeLists.txt b/compiler/src/iree/compiler/Translation/CMakeLists.txt
similarity index 95%
rename from iree/compiler/Translation/CMakeLists.txt
rename to compiler/src/iree/compiler/Translation/CMakeLists.txt
index 8c8aab5..7fd0e64 100644
--- a/iree/compiler/Translation/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Translation/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Translation/BUILD #
+# compiler/src/iree/compiler/Translation/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Translation/HALExecutable.cpp b/compiler/src/iree/compiler/Translation/HALExecutable.cpp
similarity index 100%
rename from iree/compiler/Translation/HALExecutable.cpp
rename to compiler/src/iree/compiler/Translation/HALExecutable.cpp
diff --git a/iree/compiler/Translation/HALExecutable.h b/compiler/src/iree/compiler/Translation/HALExecutable.h
similarity index 100%
rename from iree/compiler/Translation/HALExecutable.h
rename to compiler/src/iree/compiler/Translation/HALExecutable.h
diff --git a/iree/compiler/Translation/IREEVM.cpp b/compiler/src/iree/compiler/Translation/IREEVM.cpp
similarity index 100%
rename from iree/compiler/Translation/IREEVM.cpp
rename to compiler/src/iree/compiler/Translation/IREEVM.cpp
diff --git a/iree/compiler/Translation/IREEVM.h b/compiler/src/iree/compiler/Translation/IREEVM.h
similarity index 100%
rename from iree/compiler/Translation/IREEVM.h
rename to compiler/src/iree/compiler/Translation/IREEVM.h
diff --git a/iree/compiler/Translation/test/BUILD b/compiler/src/iree/compiler/Translation/test/BUILD
similarity index 95%
rename from iree/compiler/Translation/test/BUILD
rename to compiler/src/iree/compiler/Translation/test/BUILD
index 6d47904..506a27a 100644
--- a/iree/compiler/Translation/test/BUILD
+++ b/compiler/src/iree/compiler/Translation/test/BUILD
@@ -25,6 +25,7 @@
],
include = ["*.mlir"],
),
+ cfg = "//compiler:lit.cfg.py",
tools = [
"//iree/tools:iree-compile",
"//iree/tools:iree-translate",
diff --git a/iree/compiler/Translation/test/CMakeLists.txt b/compiler/src/iree/compiler/Translation/test/CMakeLists.txt
similarity index 93%
rename from iree/compiler/Translation/test/CMakeLists.txt
rename to compiler/src/iree/compiler/Translation/test/CMakeLists.txt
index 9ebd69c..afc5155 100644
--- a/iree/compiler/Translation/test/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Translation/test/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Translation/test/BUILD #
+# compiler/src/iree/compiler/Translation/test/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Translation/test/hal_executable.mlir b/compiler/src/iree/compiler/Translation/test/hal_executable.mlir
similarity index 100%
rename from iree/compiler/Translation/test/hal_executable.mlir
rename to compiler/src/iree/compiler/Translation/test/hal_executable.mlir
diff --git a/iree/compiler/Translation/test/smoketest.mlir b/compiler/src/iree/compiler/Translation/test/smoketest.mlir
similarity index 100%
rename from iree/compiler/Translation/test/smoketest.mlir
rename to compiler/src/iree/compiler/Translation/test/smoketest.mlir
diff --git a/iree/compiler/Translation/test/streams.mlir b/compiler/src/iree/compiler/Translation/test/streams.mlir
similarity index 100%
rename from iree/compiler/Translation/test/streams.mlir
rename to compiler/src/iree/compiler/Translation/test/streams.mlir
diff --git a/iree/compiler/Utils/BUILD b/compiler/src/iree/compiler/Utils/BUILD
similarity index 91%
rename from iree/compiler/Utils/BUILD
rename to compiler/src/iree/compiler/Utils/BUILD
index e9dd5e1..fad1201 100644
--- a/iree/compiler/Utils/BUILD
+++ b/compiler/src/iree/compiler/Utils/BUILD
@@ -6,13 +6,15 @@
# Utilities for working with IREE MLIR types.
+load("//iree:build_defs.oss.bzl", "iree_compiler_cc_library")
+
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
-cc_library(
+iree_compiler_cc_library(
name = "Utils",
srcs = [
"ConversionUtils.cpp",
@@ -39,7 +41,7 @@
"TracingUtils.h",
],
deps = [
- "//iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
"//runtime/src/iree/base:tracing",
"//runtime/src/iree/base/internal/flatcc:building",
"//runtime/src/iree/base/internal/flatcc:debugging",
diff --git a/iree/compiler/Utils/CMakeLists.txt b/compiler/src/iree/compiler/Utils/CMakeLists.txt
similarity index 96%
rename from iree/compiler/Utils/CMakeLists.txt
rename to compiler/src/iree/compiler/Utils/CMakeLists.txt
index c140f95..d46b977 100644
--- a/iree/compiler/Utils/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Utils/CMakeLists.txt
@@ -1,6 +1,6 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Utils/BUILD #
+# compiler/src/iree/compiler/Utils/BUILD #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
diff --git a/iree/compiler/Utils/ConversionUtils.cpp b/compiler/src/iree/compiler/Utils/ConversionUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/ConversionUtils.cpp
rename to compiler/src/iree/compiler/Utils/ConversionUtils.cpp
diff --git a/iree/compiler/Utils/ConversionUtils.h b/compiler/src/iree/compiler/Utils/ConversionUtils.h
similarity index 100%
rename from iree/compiler/Utils/ConversionUtils.h
rename to compiler/src/iree/compiler/Utils/ConversionUtils.h
diff --git a/iree/compiler/Utils/CustomKernelsTargetInfo.cpp b/compiler/src/iree/compiler/Utils/CustomKernelsTargetInfo.cpp
similarity index 100%
rename from iree/compiler/Utils/CustomKernelsTargetInfo.cpp
rename to compiler/src/iree/compiler/Utils/CustomKernelsTargetInfo.cpp
diff --git a/iree/compiler/Utils/CustomKernelsTargetInfo.h b/compiler/src/iree/compiler/Utils/CustomKernelsTargetInfo.h
similarity index 100%
rename from iree/compiler/Utils/CustomKernelsTargetInfo.h
rename to compiler/src/iree/compiler/Utils/CustomKernelsTargetInfo.h
diff --git a/iree/compiler/Utils/FlatbufferUtils.cpp b/compiler/src/iree/compiler/Utils/FlatbufferUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/FlatbufferUtils.cpp
rename to compiler/src/iree/compiler/Utils/FlatbufferUtils.cpp
diff --git a/iree/compiler/Utils/FlatbufferUtils.h b/compiler/src/iree/compiler/Utils/FlatbufferUtils.h
similarity index 100%
rename from iree/compiler/Utils/FlatbufferUtils.h
rename to compiler/src/iree/compiler/Utils/FlatbufferUtils.h
diff --git a/iree/compiler/Utils/GraphUtils.cpp b/compiler/src/iree/compiler/Utils/GraphUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/GraphUtils.cpp
rename to compiler/src/iree/compiler/Utils/GraphUtils.cpp
diff --git a/iree/compiler/Utils/GraphUtils.h b/compiler/src/iree/compiler/Utils/GraphUtils.h
similarity index 100%
rename from iree/compiler/Utils/GraphUtils.h
rename to compiler/src/iree/compiler/Utils/GraphUtils.h
diff --git a/iree/compiler/Utils/IndexSet.h b/compiler/src/iree/compiler/Utils/IndexSet.h
similarity index 100%
rename from iree/compiler/Utils/IndexSet.h
rename to compiler/src/iree/compiler/Utils/IndexSet.h
diff --git a/iree/compiler/Utils/ModuleUtils.cpp b/compiler/src/iree/compiler/Utils/ModuleUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/ModuleUtils.cpp
rename to compiler/src/iree/compiler/Utils/ModuleUtils.cpp
diff --git a/iree/compiler/Utils/ModuleUtils.h b/compiler/src/iree/compiler/Utils/ModuleUtils.h
similarity index 100%
rename from iree/compiler/Utils/ModuleUtils.h
rename to compiler/src/iree/compiler/Utils/ModuleUtils.h
diff --git a/iree/compiler/Utils/OptionUtils.cpp b/compiler/src/iree/compiler/Utils/OptionUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/OptionUtils.cpp
rename to compiler/src/iree/compiler/Utils/OptionUtils.cpp
diff --git a/iree/compiler/Utils/OptionUtils.h b/compiler/src/iree/compiler/Utils/OptionUtils.h
similarity index 100%
rename from iree/compiler/Utils/OptionUtils.h
rename to compiler/src/iree/compiler/Utils/OptionUtils.h
diff --git a/iree/compiler/Utils/PassUtils.cpp b/compiler/src/iree/compiler/Utils/PassUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/PassUtils.cpp
rename to compiler/src/iree/compiler/Utils/PassUtils.cpp
diff --git a/iree/compiler/Utils/PassUtils.h b/compiler/src/iree/compiler/Utils/PassUtils.h
similarity index 100%
rename from iree/compiler/Utils/PassUtils.h
rename to compiler/src/iree/compiler/Utils/PassUtils.h
diff --git a/iree/compiler/Utils/PatternUtils.h b/compiler/src/iree/compiler/Utils/PatternUtils.h
similarity index 100%
rename from iree/compiler/Utils/PatternUtils.h
rename to compiler/src/iree/compiler/Utils/PatternUtils.h
diff --git a/iree/compiler/Utils/StringUtils.cpp b/compiler/src/iree/compiler/Utils/StringUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/StringUtils.cpp
rename to compiler/src/iree/compiler/Utils/StringUtils.cpp
diff --git a/iree/compiler/Utils/StringUtils.h b/compiler/src/iree/compiler/Utils/StringUtils.h
similarity index 100%
rename from iree/compiler/Utils/StringUtils.h
rename to compiler/src/iree/compiler/Utils/StringUtils.h
diff --git a/iree/compiler/Utils/TracingUtils.cpp b/compiler/src/iree/compiler/Utils/TracingUtils.cpp
similarity index 100%
rename from iree/compiler/Utils/TracingUtils.cpp
rename to compiler/src/iree/compiler/Utils/TracingUtils.cpp
diff --git a/iree/compiler/Utils/TracingUtils.h b/compiler/src/iree/compiler/Utils/TracingUtils.h
similarity index 100%
rename from iree/compiler/Utils/TracingUtils.h
rename to compiler/src/iree/compiler/Utils/TracingUtils.h
diff --git a/configure_bazel.py b/configure_bazel.py
index dba46ec..40aea82 100644
--- a/configure_bazel.py
+++ b/configure_bazel.py
@@ -58,9 +58,6 @@
print(f"build:release --config=msvc_release", file=bazelrc)
else:
detect_unix_platform_config(bazelrc)
- if not (platform.system() == "Darwin"):
- print("common --config=non_darwin", file=bazelrc)
-
if len(sys.argv) > 1:
local_bazelrc = sys.argv[1]
diff --git a/iree/build_defs.oss.bzl b/iree/build_defs.oss.bzl
index 3bd655b..011e915 100644
--- a/iree/build_defs.oss.bzl
+++ b/iree/build_defs.oss.bzl
@@ -6,7 +6,7 @@
"""Common Bazel definitions for IREE."""
-def platform_trampoline_deps(basename, path = "base"):
+def platform_trampoline_deps(basename, path = "runtime/src/iree/base"):
"""Produce a list of deps for the given `basename` platform target.
Example:
@@ -16,14 +16,14 @@
library in foreign source control systems.
Args:
- basename: Library name prefix for a library in iree/[path]/internal.
+ basename: Library name prefix for a library in [path]/internal.
path: Folder name to work within.
Returns:
A list of dependencies for depending on the library in a platform
sensitive way.
"""
return [
- "//iree/%s/internal:%s_internal" % (path, basename),
+ "//%s/internal:%s_internal" % (path, basename),
]
def iree_build_test(name, targets):
@@ -46,6 +46,19 @@
"""
pass
+def iree_compiler_cc_library(deps = [], **kwargs):
+ """Used for cc_library targets within the //compiler tree.
+
+ This is a pass-through to the native cc_library which adds specific
+ compiler specific options and deps.
+ """
+ native.cc_library(
+ deps = deps + [
+ "//compiler/src:defs",
+ ],
+ **kwargs
+ )
+
def iree_runtime_cc_library(deps = [], **kwargs):
"""Used for cc_library targets within the //runtime tree.
@@ -54,6 +67,7 @@
"""
native.cc_library(
deps = deps + [
+ # TODO: Rename to //runtime/src:defs to match compiler.
"//runtime/src:runtime_defines",
],
**kwargs
@@ -67,6 +81,7 @@
"""
native.cc_test(
deps = deps + [
+ # TODO: Rename to //runtime/src:defs to match compiler.
"//runtime/src:runtime_defines",
],
**kwargs
diff --git a/iree/compiler/Bindings/CMakeLists.txt b/iree/compiler/Bindings/CMakeLists.txt
deleted file mode 100644
index c99735b..0000000
--- a/iree/compiler/Bindings/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Bindings/Native/CMakeLists.txt b/iree/compiler/Bindings/Native/CMakeLists.txt
deleted file mode 100644
index 24a0c66..0000000
--- a/iree/compiler/Bindings/Native/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/Native/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Bindings/Native/Transforms/test/CMakeLists.txt b/iree/compiler/Bindings/Native/Transforms/test/CMakeLists.txt
deleted file mode 100644
index 9479fbc..0000000
--- a/iree/compiler/Bindings/Native/Transforms/test/CMakeLists.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/Native/Transforms/test/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-iree_lit_test_suite(
- NAME
- lit
- SRCS
- "wrap_entry_points.mlir"
- TOOLS
- FileCheck
- iree::tools::iree-opt
-)
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Bindings/TFLite/CMakeLists.txt b/iree/compiler/Bindings/TFLite/CMakeLists.txt
deleted file mode 100644
index 9a14c62..0000000
--- a/iree/compiler/Bindings/TFLite/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Bindings/TFLite/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Codegen/BUILD b/iree/compiler/Codegen/BUILD
deleted file mode 100644
index ca89cc4..0000000
--- a/iree/compiler/Codegen/BUILD
+++ /dev/null
@@ -1,61 +0,0 @@
-# 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("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
-
-package(
- default_visibility = ["//visibility:public"],
- features = ["layering_check"],
- licenses = ["notice"], # Apache 2.0
-)
-
-gentbl_cc_library(
- name = "PassesIncGen",
- tbl_outs = [
- (
- ["-gen-pass-decls"],
- "Passes.h.inc",
- ),
- ],
- tblgen = "@llvm-project//mlir:mlir-tblgen",
- td_file = "Passes.td",
- deps = ["@llvm-project//mlir:PassBaseTdFiles"],
-)
-
-cc_library(
- name = "PassHeaders",
- hdrs = [
- "PassDetail.h",
- "Passes.h",
- "Passes.h.inc",
- ],
- deps = [
- ":PassesIncGen",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Utils",
- "@llvm-project//mlir:LinalgTransforms",
- "@llvm-project//mlir:Pass",
- "@llvm-project//mlir:Transforms",
- ],
-)
-
-cc_library(
- name = "Codegen",
- srcs = [
- "Passes.cpp",
- ],
- deps = [
- ":PassHeaders",
- ":PassesIncGen",
- "//iree/compiler/Codegen/Common",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/LLVMCPU",
- "//iree/compiler/Codegen/LLVMGPU",
- "//iree/compiler/Codegen/SPIRV",
- "//iree/compiler/Codegen/Sandbox",
- ],
-)
diff --git a/iree/compiler/Dialect/CMakeLists.txt b/iree/compiler/Dialect/CMakeLists.txt
deleted file mode 100644
index 9adfb48..0000000
--- a/iree/compiler/Dialect/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/Flow/CMakeLists.txt b/iree/compiler/Dialect/Flow/CMakeLists.txt
deleted file mode 100644
index 860dc5f..0000000
--- a/iree/compiler/Dialect/Flow/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/Flow/Conversion/CMakeLists.txt b/iree/compiler/Dialect/Flow/Conversion/CMakeLists.txt
deleted file mode 100644
index 544fe79..0000000
--- a/iree/compiler/Dialect/Flow/Conversion/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Flow/Conversion/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD b/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD
deleted file mode 100644
index ecb25bd..0000000
--- a/iree/compiler/Dialect/HAL/Conversion/StreamToHAL/BUILD
+++ /dev/null
@@ -1,36 +0,0 @@
-# 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
-
-package(
- default_visibility = ["//visibility:public"],
- features = ["layering_check"],
- licenses = ["notice"], # Apache 2.0
-)
-
-cc_library(
- name = "StreamToHAL",
- srcs = [
- "ConvertStreamToHAL.cpp",
- ],
- hdrs = [
- "ConvertStreamToHAL.h",
- ],
- deps = [
- "//iree/compiler/Dialect/HAL/Conversion",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/HAL/Utils",
- "//iree/compiler/Dialect/Stream/IR",
- "//iree/compiler/Dialect/Util/IR",
- "@llvm-project//llvm:Support",
- "@llvm-project//mlir:ArithmeticDialect",
- "@llvm-project//mlir:FuncDialect",
- "@llvm-project//mlir:IR",
- "@llvm-project//mlir:Pass",
- "@llvm-project//mlir:Transforms",
- ],
-)
diff --git a/iree/compiler/Dialect/HAL/Target/CUDA/test/CMakeLists.txt b/iree/compiler/Dialect/HAL/Target/CUDA/test/CMakeLists.txt
deleted file mode 100644
index 31c1f25..0000000
--- a/iree/compiler/Dialect/HAL/Target/CUDA/test/CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-iree_add_all_subdirs()
-
-iree_lit_test_suite(
- NAME
- lit
- SRCS
- "smoketest.mlir"
- TOOLS
- FileCheck
- iree::tools::iree-opt
-)
diff --git a/iree/compiler/Dialect/HAL/Target/VMVX/BUILD b/iree/compiler/Dialect/HAL/Target/VMVX/BUILD
deleted file mode 100644
index c167426..0000000
--- a/iree/compiler/Dialect/HAL/Target/VMVX/BUILD
+++ /dev/null
@@ -1,48 +0,0 @@
-# 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("//iree:build_defs.oss.bzl", "iree_cmake_extra_content")
-
-package(
- default_visibility = ["//visibility:public"],
- features = ["layering_check"],
- licenses = ["notice"], # Apache 2.0
-)
-
-iree_cmake_extra_content(
- content = """
-if(NOT IREE_TARGET_BACKEND_VMVX)
- return()
-endif()
-""",
-)
-
-cc_library(
- name = "VMVX",
- srcs = [
- "VMVXTarget.cpp",
- ],
- hdrs = [
- "VMVXTarget.h",
- ],
- deps = [
- "//iree/compiler/Codegen:PassHeaders",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
- "//iree/compiler/Dialect/Modules/VMVX/Transforms",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/IR",
- "//iree/compiler/Dialect/VM/Target/Bytecode",
- "//iree/compiler/Dialect/VM/Transforms",
- "//iree/compiler/Utils",
- "@llvm-project//llvm:Support",
- "@llvm-project//mlir:IR",
- "@llvm-project//mlir:Pass",
- "@llvm-project//mlir:Support",
- ],
-)
diff --git a/iree/compiler/Dialect/HAL/Transforms/BUILD b/iree/compiler/Dialect/HAL/Transforms/BUILD
deleted file mode 100644
index dc57eed..0000000
--- a/iree/compiler/Dialect/HAL/Transforms/BUILD
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 2019 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
-
-package(
- default_visibility = ["//visibility:public"],
- features = ["layering_check"],
- licenses = ["notice"], # Apache 2.0
-)
-
-cc_library(
- name = "Transforms",
- srcs = [
- "AssignTargetDevices.cpp",
- "BenchmarkBatchDispatches.cpp",
- "ConvertToHAL.cpp",
- "DumpExecutableBenchmarks.cpp",
- "DumpExecutableSources.cpp",
- "ElideRedundantCommands.cpp",
- "InlineDeviceSwitches.cpp",
- "LinkExecutables.cpp",
- "MaterializeInterfaces.cpp",
- "MaterializeResourceCaches.cpp",
- "MemoizeDeviceQueries.cpp",
- "PackDispatchOperands.cpp",
- "Passes.cpp",
- "ResolveEntryPointOrdinals.cpp",
- "SerializeExecutables.cpp",
- "TranslateExecutables.cpp",
- "VerifyTargetEnvironment.cpp",
- ],
- hdrs = [
- "Passes.h",
- ],
- deps = [
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/Analysis",
- "//iree/compiler/Dialect/HAL/Conversion",
- "//iree/compiler/Dialect/HAL/Conversion/StandardToHAL",
- "//iree/compiler/Dialect/HAL/Conversion/StreamToHAL",
- "//iree/compiler/Dialect/HAL/Conversion/UtilToHAL",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/HAL/Utils",
- "//iree/compiler/Dialect/Stream/IR",
- "//iree/compiler/Dialect/Stream/Transforms",
- "//iree/compiler/Dialect/Util/Conversion",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Utils",
- "@llvm-project//llvm:Support",
- "@llvm-project//mlir:AffineToStandard",
- "@llvm-project//mlir:ArithmeticDialect",
- "@llvm-project//mlir:BufferizationDialect",
- "@llvm-project//mlir:ControlFlowOps",
- "@llvm-project//mlir:FuncDialect",
- "@llvm-project//mlir:IR",
- "@llvm-project//mlir:Pass",
- "@llvm-project//mlir:SCFDialect",
- "@llvm-project//mlir:Support",
- "@llvm-project//mlir:Transforms",
- ],
-)
diff --git a/iree/compiler/Dialect/Modules/CMakeLists.txt b/iree/compiler/Dialect/Modules/CMakeLists.txt
deleted file mode 100644
index f38f7be..0000000
--- a/iree/compiler/Dialect/Modules/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/CMakeLists.txt b/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/CMakeLists.txt
deleted file mode 100644
index 2330a58..0000000
--- a/iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/CMakeLists.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/Conversion/VMVXToVM/test/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-iree_lit_test_suite(
- NAME
- lit
- TOOLS
- FileCheck
- iree::tools::iree-opt
-)
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/Modules/VMVX/IR/test/CMakeLists.txt b/iree/compiler/Dialect/Modules/VMVX/IR/test/CMakeLists.txt
deleted file mode 100644
index 7018dcf..0000000
--- a/iree/compiler/Dialect/Modules/VMVX/IR/test/CMakeLists.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Modules/VMVX/IR/test/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-iree_lit_test_suite(
- NAME
- lit
- TOOLS
- FileCheck
- iree::tools::iree-opt
-)
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/Stream/CMakeLists.txt b/iree/compiler/Dialect/Stream/CMakeLists.txt
deleted file mode 100644
index de2c66b..0000000
--- a/iree/compiler/Dialect/Stream/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Stream/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/Util/CMakeLists.txt b/iree/compiler/Dialect/Util/CMakeLists.txt
deleted file mode 100644
index e8862cd..0000000
--- a/iree/compiler/Dialect/Util/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Util/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/VM/CMakeLists.txt b/iree/compiler/Dialect/VM/CMakeLists.txt
deleted file mode 100644
index 726f377..0000000
--- a/iree/compiler/Dialect/VM/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/VM/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Dialect/Vulkan/CMakeLists.txt b/iree/compiler/Dialect/Vulkan/CMakeLists.txt
deleted file mode 100644
index 546b1fa..0000000
--- a/iree/compiler/Dialect/Vulkan/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/Dialect/Vulkan/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/InputConversion/CMakeLists.txt b/iree/compiler/InputConversion/CMakeLists.txt
deleted file mode 100644
index a65b8ca..0000000
--- a/iree/compiler/InputConversion/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
-# iree/compiler/InputConversion/BUILD #
-# #
-# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
-# CMake-only content. #
-# #
-# To disable autogeneration for this file entirely, delete this header. #
-################################################################################
-
-iree_add_all_subdirs()
-
-### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Pipelines/BUILD b/iree/compiler/Pipelines/BUILD
deleted file mode 100644
index fb03a81..0000000
--- a/iree/compiler/Pipelines/BUILD
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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
-
-package(
- default_visibility = ["//visibility:public"],
- features = ["layering_check"],
- licenses = ["notice"], # Apache 2.0
-)
-
-cc_library(
- name = "Options",
- srcs = ["Options.cpp"],
- hdrs = ["Options.h"],
- deps = [
- "//iree/compiler/InputConversion/TMTensor",
- "//iree/compiler/Utils",
- ],
-)
-
-cc_library(
- name = "Pipelines",
- srcs = [
- "Pipelines.cpp",
- ],
- hdrs = [
- "Pipelines.h",
- ],
- deps = [
- ":Options",
- "//iree/compiler/Bindings/Native/Transforms",
- "//iree/compiler/Bindings/TFLite/Transforms",
- "//iree/compiler/Dialect/Flow/Transforms",
- "//iree/compiler/Dialect/HAL/Conversion/HALToVM",
- "//iree/compiler/Dialect/HAL/Transforms",
- "//iree/compiler/Dialect/Stream/Transforms",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Dialect/VM/Conversion",
- "//iree/compiler/Dialect/VM/Conversion/StandardToVM",
- "//iree/compiler/Dialect/VM/Target/Bytecode",
- "//iree/compiler/Dialect/VM/Transforms",
- "//iree/compiler/InputConversion/Common",
- "//iree/compiler/InputConversion/MHLO",
- "//iree/compiler/InputConversion/TMTensor",
- "//iree/compiler/InputConversion/TOSA",
- "@llvm-project//llvm:Support",
- "@llvm-project//mlir:IR",
- "@llvm-project//mlir:Pass",
- "@llvm-project//mlir:Support",
- ],
-)
diff --git a/iree/compiler/Translation/BUILD b/iree/compiler/Translation/BUILD
deleted file mode 100644
index 246e24b..0000000
--- a/iree/compiler/Translation/BUILD
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 2019 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
-
-package(
- default_visibility = ["//visibility:public"],
- features = ["layering_check"],
- licenses = ["notice"], # Apache 2.0
-)
-
-cc_library(
- name = "HALExecutable",
- srcs = ["HALExecutable.cpp"],
- hdrs = ["HALExecutable.h"],
- deps = [
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/HAL/Transforms",
- "//iree/compiler/Utils",
- "@llvm-project//llvm:Support",
- "@llvm-project//mlir:IR",
- "@llvm-project//mlir:Pass",
- "@llvm-project//mlir:Support",
- "@llvm-project//mlir:Translation",
- ],
-)
-
-cc_library(
- name = "IREEVM",
- srcs = ["IREEVM.cpp"],
- hdrs = ["IREEVM.h"],
- deps = [
- "//iree/compiler/ConstEval",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/VM/Target/C",
- "//iree/compiler/Pipelines",
- "//iree/compiler/Pipelines:Options",
- "//iree/compiler/Utils",
- "@llvm-project//mlir:Pass",
- "@llvm-project//mlir:Translation",
- ],
-)
diff --git a/iree/tools/BUILD b/iree/tools/BUILD
index d7554e4..359e546 100644
--- a/iree/tools/BUILD
+++ b/iree/tools/BUILD
@@ -93,31 +93,31 @@
"init_iree_passes.h",
],
deps = [
- "//iree/compiler/Bindings/Native/Transforms",
- "//iree/compiler/Bindings/TFLite/Transforms",
- "//iree/compiler/Codegen/Dialect:IREECodegenDialect",
- "//iree/compiler/Codegen/Interfaces",
- "//iree/compiler/ConstEval",
- "//iree/compiler/Dialect/Flow/IR",
- "//iree/compiler/Dialect/Flow/Transforms",
- "//iree/compiler/Dialect/HAL/IR:HALDialect",
- "//iree/compiler/Dialect/HAL/Transforms",
- "//iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
- "//iree/compiler/Dialect/Modules/VMVX/Transforms",
- "//iree/compiler/Dialect/Stream/IR",
- "//iree/compiler/Dialect/Stream/Transforms",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/Util/Transforms",
- "//iree/compiler/Dialect/VM/Analysis",
- "//iree/compiler/Dialect/VM/IR",
- "//iree/compiler/Dialect/VM/Transforms",
- "//iree/compiler/Dialect/Vulkan/IR",
- "//iree/compiler/InputConversion/Common",
- "//iree/compiler/InputConversion/MHLO",
- "//iree/compiler/InputConversion/TMTensor",
- "//iree/compiler/InputConversion/TOSA",
- "//iree/compiler/Translation:HALExecutable",
- "//iree/compiler/Translation:IREEVM",
+ "//compiler/src/iree/compiler/Bindings/Native/Transforms",
+ "//compiler/src/iree/compiler/Bindings/TFLite/Transforms",
+ "//compiler/src/iree/compiler/Codegen/Dialect:IREECodegenDialect",
+ "//compiler/src/iree/compiler/Codegen/Interfaces",
+ "//compiler/src/iree/compiler/ConstEval",
+ "//compiler/src/iree/compiler/Dialect/Flow/IR",
+ "//compiler/src/iree/compiler/Dialect/Flow/Transforms",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:HALDialect",
+ "//compiler/src/iree/compiler/Dialect/HAL/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/IR:VMVXDialect",
+ "//compiler/src/iree/compiler/Dialect/Modules/VMVX/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Stream/IR",
+ "//compiler/src/iree/compiler/Dialect/Stream/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/Transforms",
+ "//compiler/src/iree/compiler/Dialect/VM/Analysis",
+ "//compiler/src/iree/compiler/Dialect/VM/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Transforms",
+ "//compiler/src/iree/compiler/Dialect/Vulkan/IR",
+ "//compiler/src/iree/compiler/InputConversion/Common",
+ "//compiler/src/iree/compiler/InputConversion/MHLO",
+ "//compiler/src/iree/compiler/InputConversion/TMTensor",
+ "//compiler/src/iree/compiler/InputConversion/TOSA",
+ "//compiler/src/iree/compiler/Translation:HALExecutable",
+ "//compiler/src/iree/compiler/Translation:IREEVM",
"//llvm-external-projects/iree-dialects:IREEInputDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtDialect",
"//llvm-external-projects/iree-dialects:IREELinalgExtPasses",
@@ -135,7 +135,7 @@
"init_mlir_passes.h",
],
deps = [
- "//iree/compiler/Dialect/VM/Target/C:Enabled",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/C:Enabled",
"@llvm-project//mlir:Affine",
"@llvm-project//mlir:AffineTransforms",
"@llvm-project//mlir:ArmNeon",
@@ -183,8 +183,8 @@
":init_mlir_passes_and_dialects",
":init_torch_mlir_dialects",
":init_xla_dialects",
- "//iree/compiler/Codegen",
- "//iree/compiler/Dialect/HAL/Conversion:Passes",
+ "//compiler/src/iree/compiler/Codegen",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion:Passes",
],
)
@@ -192,7 +192,7 @@
name = "init_compiler_modules",
hdrs = ["init_compiler_modules.h"],
deps = [
- "//iree/compiler/Dialect/Modules/Check/IR:CheckDialect",
+ "//compiler/src/iree/compiler/Dialect/Modules/Check/IR:CheckDialect",
],
)
@@ -209,12 +209,12 @@
"IREE_HAVE_VULKANSPIRV_TARGET",
],
deps = [
- # "//iree/compiler/Dialect/HAL/Target/CUDA",
- "//iree/compiler/Dialect/HAL/Target/LLVM",
- "//iree/compiler/Dialect/HAL/Target/MetalSPIRV",
- "//iree/compiler/Dialect/HAL/Target/ROCM",
- "//iree/compiler/Dialect/HAL/Target/VMVX",
- "//iree/compiler/Dialect/HAL/Target/VulkanSPIRV",
+ # "//compiler/src/iree/compiler/Dialect/HAL/Target/CUDA",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target/LLVM",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target/MetalSPIRV",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target/ROCM",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target/VMVX",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target/VulkanSPIRV",
],
)
@@ -224,8 +224,8 @@
"init_translations.h",
],
deps = [
- "//iree/compiler/Translation:HALExecutable",
- "//iree/compiler/Translation:IREEVM",
+ "//compiler/src/iree/compiler/Translation:HALExecutable",
+ "//compiler/src/iree/compiler/Translation:IREEVM",
"@llvm-project//mlir:SPIRVTranslateRegistration",
],
)
@@ -302,10 +302,10 @@
deps = [
":init_passes_and_dialects",
":init_targets",
- "//iree/compiler/Dialect/HAL/Target",
- "//iree/compiler/Dialect/VM/Target:init_targets",
- "//iree/compiler/Dialect/VM/Target/Bytecode",
- "//iree/compiler/Translation:IREEVM",
+ "//compiler/src/iree/compiler/Dialect/HAL/Target",
+ "//compiler/src/iree/compiler/Dialect/VM/Target:init_targets",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/Translation:IREEVM",
"//iree/tools/utils:vm_util",
"//runtime/src/iree/base",
"//runtime/src/iree/base:cc",
@@ -387,13 +387,13 @@
cc_binary(
name = "iree-tblgen",
srcs = [
- "//iree/compiler/Dialect/Util/Tools:GenSrcs",
- "//iree/compiler/Dialect/VM/Tools:GenSrcs",
+ "//compiler/src/iree/compiler/Dialect/Util/Tools:GenSrcs",
+ "//compiler/src/iree/compiler/Dialect/VM/Tools:GenSrcs",
],
tags = ["hostonly"],
deps = [
"//build_tools:default_linkopts",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//llvm:TableGen",
"@llvm-project//mlir:MlirTableGenMain",
@@ -414,15 +414,15 @@
":init_passes_and_dialects",
":init_targets",
":init_translations",
- "//iree/compiler/Codegen",
- "//iree/compiler/ConstEval",
- "//iree/compiler/Dialect/VM/Target:init_targets",
- "//iree/compiler/Dialect/VM/Target/Bytecode",
- "//iree/compiler/Dialect/VM/Target/C",
- "//iree/compiler/Pipelines",
- "//iree/compiler/Translation:HALExecutable",
- "//iree/compiler/Translation:IREEVM",
- "//iree/compiler/Utils",
+ "//compiler/src/iree/compiler/Codegen",
+ "//compiler/src/iree/compiler/ConstEval",
+ "//compiler/src/iree/compiler/Dialect/VM/Target:init_targets",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/C",
+ "//compiler/src/iree/compiler/Pipelines",
+ "//compiler/src/iree/compiler/Translation:HALExecutable",
+ "//compiler/src/iree/compiler/Translation:IREEVM",
+ "//compiler/src/iree/compiler/Utils",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:LLVMToLLVMIRTranslation",
diff --git a/iree/tools/CMakeLists.txt b/iree/tools/CMakeLists.txt
index 5c7a329..9ef6f91 100644
--- a/iree/tools/CMakeLists.txt
+++ b/iree/tools/CMakeLists.txt
@@ -205,9 +205,9 @@
iree-tblgen
SRCS
"${IREE_ROOT_DIR}/third_party/llvm-project/mlir/tools/mlir-tblgen/mlir-tblgen.cpp"
- "${IREE_SOURCE_DIR}/iree/compiler/Dialect/Util/Tools/StructAttrGen.cpp"
- "${IREE_SOURCE_DIR}/iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp"
- "${IREE_SOURCE_DIR}/iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp"
+ "${IREE_SOURCE_DIR}/compiler/src/iree/compiler/Dialect/Util/Tools/StructAttrGen.cpp"
+ "${IREE_SOURCE_DIR}/compiler/src/iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp"
+ "${IREE_SOURCE_DIR}/compiler/src/iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp"
DEPS
LLVMSupport
LLVMTableGen
diff --git a/runtime/src/CMakeLists.txt b/runtime/src/CMakeLists.txt
index e19c964..c55bbd9 100644
--- a/runtime/src/CMakeLists.txt
+++ b/runtime/src/CMakeLists.txt
@@ -4,15 +4,17 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+iree_cc_library(
+ NAME
+ defs
+ INCLUDES
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ PUBLIC
+)
+
# Configures all iree_cc_* targets to take this implicit dep,
# which provides common includes and copts for the tree.
-set(IREE_IMPLICIT_DEFS_CC_DEPS iree_defs_runtime)
-
-add_library(iree_defs_runtime INTERFACE)
-target_include_directories(
- iree_defs_runtime INTERFACE
- $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
- $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
-)
+set(IREE_IMPLICIT_DEFS_CC_DEPS iree::runtime::defs)
add_subdirectory(iree)
diff --git a/samples/iree_custom_modules/dialect/BUILD b/samples/iree_custom_modules/dialect/BUILD
index 295f5b6..adcbca7 100644
--- a/samples/iree_custom_modules/dialect/BUILD
+++ b/samples/iree_custom_modules/dialect/BUILD
@@ -5,8 +5,9 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("//build_tools/embed_data:build_defs.bzl", "c_embed_data")
-load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
+load("@llvm-project//mlir:tblgen.bzl", "td_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
+load("//build_tools/bazel:iree_tablegen.bzl", "iree_gentbl_cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -21,8 +22,8 @@
include = ["*.td"],
),
deps = [
- "//iree/compiler/Dialect/HAL/IR:td_files",
- "//iree/compiler/Dialect/Util/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR:td_files",
+ "//compiler/src/iree/compiler/Dialect/Util/IR:td_files",
"@llvm-project//mlir:StdOpsTdFiles",
],
)
@@ -42,10 +43,10 @@
deps = [
":custom_imports",
":custom_ops_gen",
- "//iree/compiler/Dialect/HAL/Conversion",
- "//iree/compiler/Dialect/HAL/IR",
- "//iree/compiler/Dialect/Util/IR",
- "//iree/compiler/Dialect/VM/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/Conversion",
+ "//compiler/src/iree/compiler/Dialect/HAL/IR",
+ "//compiler/src/iree/compiler/Dialect/Util/IR",
+ "//compiler/src/iree/compiler/Dialect/VM/Conversion",
"//samples:defs",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
@@ -56,7 +57,7 @@
],
)
-gentbl_cc_library(
+iree_gentbl_cc_library(
name = "custom_ops_gen",
tbl_outs = [
(
@@ -112,9 +113,9 @@
srcs = ["custom-translate-main.cc"],
deps = [
":init_dialect",
- "//iree/compiler/Dialect/VM/Target:init_targets",
- "//iree/compiler/Dialect/VM/Target/Bytecode",
- "//iree/compiler/Translation:IREEVM",
+ "//compiler/src/iree/compiler/Dialect/VM/Target:init_targets",
+ "//compiler/src/iree/compiler/Dialect/VM/Target/Bytecode",
+ "//compiler/src/iree/compiler/Translation:IREEVM",
"//iree/tools:init_compiler_modules",
"//iree/tools:init_iree_passes_and_dialects",
"//iree/tools:init_mlir_passes_and_dialects",