| # Copyright 2020 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| iree_py_extension( |
| NAME |
| binding |
| SRCS |
| "initialize_module.cc" |
| DEPS |
| ::compiler_library |
| bindings::python::pyiree::common |
| COPTS |
| ${PYBIND_COPTS} |
| ${PYBIND_EXTENSION_COPTS} |
| TYPE |
| SHARED |
| ) |
| |
| iree_pybind_cc_library( |
| NAME |
| compiler_library |
| HDRS |
| "compiler.h" |
| SRCS |
| "compiler.cc" |
| DEPS |
| # Transforms. Adopted from the Bazel variable COMPILER_DEPS. |
| iree::compiler::Dialect::Flow::Transforms |
| iree::compiler::Dialect::HAL::Transforms |
| iree::compiler::Dialect::HAL::Target::ExecutableTarget |
| iree::compiler::Dialect::VM::Transforms |
| # Targets. Adopted from the Bazel variable COMPILER_DEPS. |
| iree::compiler::Dialect::HAL::Target::LegacyInterpreter |
| iree::compiler::Dialect::HAL::Target::VMLA |
| iree::compiler::Dialect::HAL::Target::VulkanSPIRV |
| iree::compiler::Dialect::VM::Target::Bytecode |
| bindings::python::pyiree::common |
| LLVMSupport |
| MLIRIR |
| MLIRParser |
| MLIRPass |
| TYPE |
| SHARED |
| ) |