[flang-commits] [flang] [llvm] [mlir] [flang][OpenMP] Enable tiling (PR #143715)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Tue Aug 19 05:09:17 PDT 2025


================
@@ -3013,6 +3056,18 @@ LogicalResult LoopNestOp::verify() {
              << "range argument type does not match corresponding IV type";
   }
 
+  uint64_t numIVs = getIVs().size();
+
+  if (const auto &numCollapse = getNumCollapse())
+    if (numCollapse > numIVs)
+      return emitOpError()
+             << "collapse value is larger than the number of loops";
+
+  if (const auto &tiles = getTileSizes())
+    if (tiles.value().size() > numIVs)
+      return emitOpError()
+             << "number of tilings is larger than the number of loops";
----------------
Meinersbur wrote:

"number of tilings" sounds like repeated tiling of the same loop. Suggestion: "too few canonical loops for tile dimensions"

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


More information about the flang-commits mailing list