| include(CMakeParseArguments) |
| # A wrapper for the springbok_bytecode_module and springbok_c_module to apply common iree-translate flags |
| # SRC: Source file to compile into a bytecode module. Support relative path. |
| # FLAGS: Flags to pass to the translation tool (list of strings). |
| # C_IDENTIFIER: Identifier to use for generate c embed code. |
| # If omitted then no C embed code will be generated. |
| # "daredevil_quant.tflite" |
| # "daredevil_bytecode_module_dylib" |
| # "-iree-input-type=tosa" |
| # "simple_float_mul.mlir" |
| # "-iree-input-type=mhlo" |
| function(springbok_modules) |
| springbok_bytecode_module( |
| "${_RULE_NAME}_bytecode_module_dylib" |
| "${_RULE_C_IDENTIFIER}_bytecode_module_dylib" |
| "${_RULE_NAME}_c_module_static" |