Extend the TOSA to SPIR-V Graph conversion with an optional custom-op-domain-to-opcode mapping. TOSA custom ops whose domain appears in this mapping are lowered to spirv.ExperimentalML.Call using the mapped CALL opcode. Later mappings for the same domain override earlier ones, matching command-line option precedence. For this TOSA lowering, CALL operands start with a spirv.array<N x i8> carrying the operator_name byte blob. This is followed by another i8 array for implementation_attrs, then the original tensor inputs. Empty strings are encoded as a single NUL byte because SPIR-V array types require at least one element. Use existing SPIR-V array constants for the metadata operands so the target test stays on the SPIR-V binary round-trip path. Signed-off-by: Niklas Lithammer <niklas.lithammer@arm.com> Signed-off-by: Davide Grohmann <davide.grohmann@arm.com> Co-authored-by: Niklas Lithammer <niklas.lithammer@arm.com> |
||
|---|---|---|
| .. | ||
| benchmark/python | ||
| cmake/modules | ||
| docs | ||
| examples | ||
| include | ||
| lib | ||
| python | ||
| test | ||
| tools | ||
| unittests | ||
| utils | ||
| .clang-format | ||
| .clang-tidy | ||
| CMakeLists.txt | ||
| LICENSE.TXT | ||
| Maintainers.md | ||
| README.md | ||
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.