[Mlir-commits] [mlir] [MLIR][XeGPU][TransformOps] Add convert_layout op (PR #167342)

Rolf Morel llvmlistbot at llvm.org
Mon Nov 10 11:48:32 PST 2025


================
@@ -132,3 +132,46 @@ def __init__(
             loc=loc,
             ip=ip,
         )
+
+
+ at _ods_cext.register_operation(_Dialect, replace=True)
+class ConvertLayoutOp(ConvertLayoutOp):
----------------
rolfmorel wrote:

Please also add the snake_case wrapper alongside this subclass, i.e. `convert_layout(...)` which just wraps `ConvertLayoutOp`. Whenever we have that we subclass an Op's builder class we should also shadow the existing snake_case wrapper. Otherwise they get/are out of sync.

It you could also check and fix this for the other ops that went in/are going in, that would be much appreciated!

https://github.com/llvm/llvm-project/pull/167342


More information about the Mlir-commits mailing list