| load("//iree/tools:compilation.bzl", "iree_bytecode_module") |
| |
| package( |
| default_visibility = ["//visibility:public"], |
| features = ["layering_check"], |
| licenses = ["notice"], # Apache 2.0 |
| ) |
| |
| cc_library( |
| name = "strings_module", |
| srcs = [ |
| "api.cc", |
| "strings_module.cc", |
| ], |
| hdrs = [ |
| "api.h", |
| "api_detail.h", |
| "strings_module.h", |
| ], |
| deps = [ |
| "//iree/base:api", |
| "//iree/base:logging", |
| "//iree/hal:api", |
| "//iree/modules/hal", |
| "//iree/vm", |
| "//iree/vm:cc", |
| "@com_google_absl//absl/container:inlined_vector", |
| "@com_google_absl//absl/strings", |
| "@com_google_absl//absl/types:span", |
| "@com_google_benchmark//:benchmark", |
| ], |
| ) |
| |
| 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/hal:api", |
| "//iree/hal/vmla:vmla_driver_module", |
| "//iree/modules/hal", |
| "//iree/testing:gtest", |
| "//iree/testing:gtest_main", |
| "//iree/vm", |
| "//iree/vm:bytecode_module", |
| "//iree/vm:cc", |
| "@com_google_absl//absl/container:inlined_vector", |
| "@com_google_absl//absl/strings", |
| "@com_google_benchmark//:benchmark", |
| ], |
| ) |
| |
| iree_bytecode_module( |
| name = "strings_module_test_module", |
| src = "strings_module_test.mlir", |
| cc_namespace = "iree::strings_module_test", |
| flags = ["-iree-mlir-to-vm-bytecode-module"], |
| ) |