2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-22 21:08:05 +05:30
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-01 17:36:08 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-11-01 17:36:08 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 14:28:30 +00:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2026-06-29 11:32:32 -04:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-05-06 12:46:15 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-06 12:46:15 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2026-05-11 10:37:52 +02:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-10-05 13:51:36 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-10-05 13:51:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-10-05 13:52:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-21 13:12:15 +02:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2025-08-21 13:12:15 +02:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-19 21:26:28 +02:00
|
|
|
|
2025-08-19 19:42:50 +02:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2026-09-10 13:57:00 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mlir/dialects: split into one package per dialect and unify them (#982)
Splits the monolithic mlir/dialects library into one Bazel package per
dialect, then makes every package follow the same layout, C API and Zig
API. Each package owns its Zig bindings, its C API when upstream doesn't
provide one, and its tests. Dialect registration moves out of the core
mlir package, so a target only pulls in the dialects it actually uses.
The conventions are documented in `mlir/dialects/README.md`, with a
porting checklist and conformance checks.
Along the way:
- cute_ir is flattened, and its Cuda, CuteNVGPU and NVVM sub-dialects
become their own packages
- fly's ROCDL extension moves to fly_rocdl
- new packages for ROCDL and UB
- kernels/ is renamed to dsl/, since it holds the DSLs
- every package registers through its own registerDialect, and each DSL
through registerDialects, instead of dialect name strings
- the C and C++ follow the LLVM and MLIR C API conventions, formatted
with a new mlir/.clang-format
- BUILD files share one template
- accessors are named as nouns like in the rest of ZML
- each package tests itself in its own test.zig, including that every
bound operation is registered and that every wrapper method compiles
Fixes:
- memref atomic_rmw emitted the wrong kind, because the AtomicRMWKind
values didn't match the pinned LLVM
- the pinned Triton and Mosaic no longer have tt.cat and tpu.repeat, so
the DSL's cat and repeat now lower the way tl.cat and pltpu.repeat do
- the ROCDL bindings are completed: buffer address spaces, vector types,
waves_per_eu range
Breaking changes:
- register dialects through their package instead of
DialectHandle.fromString, and mlir.registerFuncExtensions becomes
func.registerExtensions
- accessors drop the get prefix, so getValue() becomes value()
- ttir.cat and mosaic_tpu.repeat are removed, and stablehlo pad and
mosaic_tpu sort take their options before the location
- zml.kernel.fly.rocdl becomes fly_rocdl
- Mesh.sdyMeshAttr takes a context and returns an attribute instead of
text
- func.func no longer prints public, its default visibility
---------
Co-authored-by: Steeve Morin <steeve@zml.ai>
2026-10-26 11:41:05 +01:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2026-05-11 10:37:52 +02:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
2026-05-06 12:46:15 +02:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-06 12:46:15 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-06 12:46:15 +02:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-10-05 13:51:36 +02:00
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
2026-03-24 17:00:10 +01:00
|
|
|
|
2024-09-17 11:11:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|