[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:26 PDT 2024
================
@@ -2063,10 +2063,14 @@ static void genCompositeDistributeSimd(
// TODO: Populate entry block arguments with private variables.
auto distributeOp = genWrapperOp<mlir::omp::DistributeOp>(
converter, loc, distributeClauseOps, /*blockArgTypes=*/{});
+ llvm::cast<mlir::omp::ComposableOpInterface>(distributeOp.getOperation())
+ .setComposite(/*val=*/true);
----------------
skatrak wrote:
I think you should be able to do this, since the interface is wrapped in a `DeclareOpInterfaceMethods<>`. Same comment below.
```suggestion
distributeOp.setComposite(/*val=*/true);
```
https://github.com/llvm/llvm-project/pull/102341
More information about the llvm-branch-commits
mailing list