[Mlir-commits] [mlir] [MLIR][XeGPU][TransformOps] Add set_op_layout_attr op (PR #166854)

Tuomas Kärnä llvmlistbot at llvm.org
Fri Nov 7 08:59:24 PST 2025


================
@@ -90,6 +90,38 @@ createLayoutAttr(MLIRContext *ctx, ArrayRef<int32_t> sgLayout,
       /*order=*/nullptr);
 }
 
+/// Generate `xegpu::LayoutAttr` from op mixed layout values.
+DiagnosedSilenceableFailure
+getLayoutAttrFromOperands(transform::TransformRewriter &rewriter,
+                          transform::TransformState &state,
----------------
tkarna wrote:

Yes, in `convertMixedValuesToInt` we use `state.getPayloadOps` and `state.getParams` to get handles to payload ops and transform params, respectively. I don't think we can get rid of that. 

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


More information about the Mlir-commits mailing list