[Mlir-commits] [mlir] [MLIR][XeGPU] Add unroll patterns for XeGPU (1/N) (PR #137010)

Adam Siemieniuk llvmlistbot at llvm.org
Mon May 5 09:34:43 PDT 2025


================
@@ -12,11 +12,18 @@
 namespace mlir {
 class RewritePatternSet;
 
+namespace vector {
+struct UnrollVectorOptions;
+} // namespace vector
+
 namespace xegpu {
 
 /// Appends patterns for folding aliasing ops into XeGPU ops into `patterns`.
 void populateXeGPUFoldAliasOpsPatterns(RewritePatternSet &patterns);
 
+void populateXeGPUUnrollPatterns(RewritePatternSet &patterns,
+                                 const vector::UnrollVectorOptions &options);
----------------
adam-smnk wrote:

It's better to decouple from the generic vector infrastructure and create XeGPU specific options (even if they end up being the same).

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


More information about the Mlir-commits mailing list