[llvm-branch-commits] [flang] [mlir] [OpenMP][MLIR] Set omp.composite attr for composite loop wrappers and add verifier checks (PR #102341)
Sergio Afonso via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 8 03:03:25 PDT 2024
================
@@ -1546,6 +1546,9 @@ LogicalResult ParallelOp::verify() {
if (!isWrapper())
return emitOpError() << "must take a loop wrapper role if nested inside "
"of 'omp.distribute'";
+ if (!llvm::cast<ComposableOpInterface>(getOperation()).isComposite())
----------------
skatrak wrote:
Same suggestion in all additions to this file. We can avoid the cast.
```suggestion
if (!isComposite())
```
https://github.com/llvm/llvm-project/pull/102341
More information about the llvm-branch-commits
mailing list