[Mlir-commits] [mlir] [MLIR][XeGPU][TransformOps] Add set_op_layout_attr op (PR #166854)
Rolf Morel
llvmlistbot at llvm.org
Fri Nov 7 07:02:50 PST 2025
================
@@ -64,3 +64,50 @@ def __init__(
loc=loc,
ip=ip,
)
+
+
+ at _ods_cext.register_operation(_Dialect, replace=True)
+class SetOpLayoutAttrOp(SetOpLayoutAttrOp):
+ """Specialization for SetOpLayoutAttrOp class."""
+
+ def __init__(
+ self,
+ target: Union[Operation, Value],
+ sg_layout: MixedValues,
+ sg_data: MixedValues,
+ *,
+ inst_data: MixedValues = None,
+ index: Union[int, Attribute] = None,
+ result: Union[bool, Attribute] = None,
----------------
rolfmorel wrote:
Pedantically speaking, I believe these types should be wrapped in `Optional[...]`
https://github.com/llvm/llvm-project/pull/166854
More information about the Mlir-commits
mailing list