This website requires JavaScript.
About
Status
₊˚⊹Discord
Explore
Register
Sign in
Reference in a new issue
Blame
Copy permalink
Reference in a new issue
Copy permalink
DKB
/
zml
Star
0
Fork
You've already forked zml
0
mirror of
https://github.com/zml/zml.git
synced
2026-11-16 19:11:09 +00:00
Code
Issues
23
Releases
1
Packages
Activity
raphael/decoder-buffer
zml
/
dsl
/
common
/
builder.zig
35 lines
1.2 KiB
Raw
Permalink
Normal View
History
dsl: unify the kernel DSLs (#991) 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.
2026-10-27 17:53:31 +01:00