| # 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. |
| |
| add_subdirectory(dialect) |
| |
| iree_cc_library( |
| NAME |
| strings_module |
| HDRS |
| "strings_module.h" |
| SRCS |
| "strings_module.cc" |
| DEPS |
| iree::base::api |
| iree::base::logging |
| iree::vm |
| iree::vm::bytecode_module |
| iree::vm::module |
| iree::vm::module_abi_cc |
| iree::vm::ref |
| iree::vm::stack |
| iree::vm::types |
| absl::inlined_vector |
| absl::strings |
| absl::span |
| benchmark |
| PUBLIC |
| ) |
| |
| iree_cc_test( |
| NAME |
| strings_module_test |
| SRCS |
| "strings_module_test.cc" |
| DEPS |
| ::strings_module |
| ::strings_module_test_module_cc |
| iree::base::api |
| iree::base::logging |
| iree::testing::gtest_main |
| iree::vm::bytecode_module |
| iree::vm::context |
| iree::vm::instance |
| iree::vm::module |
| iree::vm::ref |
| iree::vm::stack |
| iree::vm::types |
| absl::inlined_vector |
| absl::strings |
| benchmark |
| ) |
| |
| iree_bytecode_module( |
| NAME |
| strings_module_test_module |
| SRC |
| "strings_module_test.mlir" |
| CC_NAMESPACE |
| "iree::strings_module_test" |
| TRANSLATE_TOOL |
| iree_modules_strings_dialect_strings-translate |
| TRANSLATION |
| "-iree-mlir-to-vm-bytecode-module" |
| PUBLIC |
| ) |