mirror-llvm-project/mlir
Davide Grohmann 7adb63de37
[mlir][spirv] Lower mapped TOSA custom ops to ExperimentalML.Call (#202581)
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>
2026-06-12 09:24:08 +02:00
..
benchmark/python
cmake/modules [mlir][XeVM] Use libocloc API for binary generation. (#188353) 2026-04-13 10:44:26 -05:00
docs [docs] try again to handle doxygen everywhere (#203081) 2026-06-11 08:58:36 -04:00
examples [MLIR] Use internal shell for standalone tests (#203134) 2026-06-10 20:29:34 -07:00
include [mlir][spirv] Lower mapped TOSA custom ops to ExperimentalML.Call (#202581) 2026-06-12 09:24:08 +02:00
lib [mlir][spirv] Lower mapped TOSA custom ops to ExperimentalML.Call (#202581) 2026-06-12 09:24:08 +02:00
python [MLIR][Python] Add ConditionallySpeculatable interface and Pure specifier (#195505) 2026-05-05 11:22:33 +08:00
test [mlir][spirv] Lower mapped TOSA custom ops to ExperimentalML.Call (#202581) 2026-06-12 09:24:08 +02:00
tools [MLIR][ODS] Do not emit code when printing empty lists in Type/Attr assembly printer (NFC) (#201174) 2026-06-10 23:09:05 +02:00
unittests [OpenACC] Add an attribute to record number of loops collapsed. (#201969) 2026-06-08 09:40:10 -07:00
utils [MLIR][lldb-dap] Update brace-expansion dependencies in VSCode plugins, resolving security alerts (#198549) 2026-05-20 13:00:47 -07:00
.clang-format
.clang-tidy [MLIR][NFC] Ignore clang-tidy modernize-use-using check in C code (#180326) 2026-02-09 13:24:08 +08:00
CMakeLists.txt [mlir] Replace MLIR_ENABLE_ROCM_CONVERSIONS with LLVM_HAS_AMDGPU_TARGET (#182652) 2026-03-13 22:03:05 +00:00
LICENSE.TXT
Maintainers.md [mlir][x86] Move AMX dialect into X86 dialect (#183717) 2026-03-02 11:47:30 +01:00
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.