mirror of
https://github.com/zml/zml.git
synced 2026-11-16 19:11:09 +00:00
Makes kernels written in the DSLs read alike, without changing what they emit. - Every DSL target is `//dsl/<name>:builder`, and `dsl/common` is imported as common. - Scopes without values end with `close()`. - The scf DSLs (triton, mosaic, cute, fly) share `openFor`/`openIf`/`openIfElse`/`openWhile` in `dsl/common`. cuda_tile keeps its own scopes with the same shapes. - Scopes take tuples or arrays, and result types can be dtypes (.f32), Values, or MLIR types. - Typed constants are `constant(dtype, value)`, alongside constIndex and constantLike. - Comparisons and bitcasts have the same names in every DSL: Fly gains `lt`/`eq`/…, and every DSL spells it `value.bitCast(dtype)`. - One block stack and one `common.verify`, which logs the module that fails to verify. - READMEs updated.
185 lines
7.2 KiB
185 lines
7.2 KiB