[flang-commits] [mlir] [flang] [mlir][TilingInterface] Use `LoopLikeOpInterface` in tiling using SCF to unify tiling with `scf.for` and `scf.forall`. (PR #77874)

Matthias Springer via flang-commits flang-commits at lists.llvm.org
Mon Jan 22 03:04:42 PST 2024


================
@@ -71,23 +80,17 @@ struct SCFTilingResult {
   /// of the last op.
   SmallVector<Operation *> tiledOps;
   /// The `scf.for` operations that iterate over the tiles.
-  SmallVector<Operation *> loops;
+  SmallVector<LoopLikeOpInterface> loops;
   /// Values to use as replacements for the untiled op. Is the same size as the
   /// number of results of the untiled op.
   SmallVector<Value> replacements;
 };
 
 /// Method to tile an op that implements the `TilingInterface` using
 /// `scf.for` for iterating over the tiles.
----------------
matthias-springer wrote:

Comment is outdated: This function may geneate `scf.for` or `scf.forall`.

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


More information about the flang-commits mailing list