llvm-project
7cb57c68 - [MLIR][XeGPU][TransformOps] Remove obsolete transform ops (#187561)

Commit
60 days ago
[MLIR][XeGPU][TransformOps] Remove obsolete transform ops (#187561) Cleaning up XeGPU transform ops. Now that XeGPU layout propagation works, it is sufficient to set the layouts for anchor ops (e.g. load/store/dpas ops) only. Changes: * Remove `xegpu.get_desc_op` and `xegpu.set_desc_layout`. Users should not change the layout of descriptor op's return value anymore. * Add `xegpu.get_load_op(value)` that finds either `xegpu.load_nd` or `xegpu.load` op in the value's producer chain. This is a useful utility as load ops often need to be annotated with a layout. * The generic `xegpu.set_op_layout_attr(op, ...)` is now replaced by `xegpu.set_anchor_layout(op, ...)` that only sets layout attribute of anchor ops. Raises an error if the given op does not support anchor layouts. * `xegpu.insert_prefetch` takes a load op handle instead of a value.
Author
Parents
Loading