Skip to content

Commit 5555acc

Browse files
committed
Add recursive memory effects trait to workshare
1 parent a51daa9 commit 5555acc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ def SingleOp : OpenMP_Op<"single", traits = [
291291
// 2.8.3 Workshare Construct
292292
//===----------------------------------------------------------------------===//
293293

294-
def WorkshareOp : OpenMP_Op<"workshare", clauses = [
294+
def WorkshareOp : OpenMP_Op<"workshare", traits = [
295+
RecursiveMemoryEffects,
296+
], clauses = [
295297
OpenMP_NowaitClause,
296298
], singleRegion = true> {
297299
let summary = "workshare directive";

0 commit comments

Comments
 (0)