Skip to content

Commit ef2715c

Browse files
committed
Add custom omp loop wrapper
1 parent a55c1f2 commit ef2715c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,17 @@ def WorkshareOp : OpenMP_Op<"workshare", clauses = [
309309
let hasVerifier = 1;
310310
}
311311

312+
def WorkshareLoopWrapperOp : OpenMP_Op<"workshare_loop_wrapper", traits = [
313+
DeclareOpInterfaceMethods<LoopWrapperInterface>,
314+
RecursiveMemoryEffects, SingleBlock
315+
], singleRegion = true> {
316+
let summary = "contains loop nests to be parallelized by workshare";
317+
318+
let builders = [
319+
OpBuilder<(ins), [{ build($_builder, $_state, {}); }]>
320+
];
321+
}
322+
312323
//===----------------------------------------------------------------------===//
313324
// Loop Nest
314325
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)