[llvm-branch-commits] [mlir] [MLIR][OpenMP] Update op verifiers dependent on omp.wsloop (2/5) (PR #89211)

Sergio Afonso via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 19 05:52:45 PDT 2024


================
@@ -1977,9 +1977,10 @@ LogicalResult OrderedRegionOp::verify() {
   if (getSimd())
     return failure();
 
-  if (auto container = (*this)->getParentOfType<WsloopOp>()) {
-    if (!container.getOrderedValAttr() ||
-        container.getOrderedValAttr().getInt() != 0)
+  if (auto loopOp = dyn_cast<LoopNestOp>((*this)->getParentOp())) {
----------------
skatrak wrote:

I just made some changes to improve a bit the verification of ordered operations, as well as updating the tests. Let me know if this is a reasonable solution.

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


More information about the llvm-branch-commits mailing list