mirror of
https://github.com/zml/zml.git
synced 2026-11-16 19:11:09 +00:00
Adds Apple's AIR dialect, for writing Metal kernels in MLIR. - `mlir/dialects/air`: the AIR that Apple's Metal compiler emits for MSL. Each op is named after its `air.*` intrinsic without the type suffix (`fast_exp`, `max.u`, `simd_shuffle_xor`, `wg.barrier`, `simdgroup_matrix_8x8_load`, ...), with fastmath flags on float ops. Kernel arguments are described the way that compiler describes them: builtins, buffers with access/noalias, and `air.arg_name`. - `llvm`, `arith`: bind array and named struct types, linkage, loop annotations, and integer overflow flags.
55 lines
2 KiB
55 lines
2 KiB