Skip to content

Commit dc9cff1

Browse files
committed
[MLIR] Add RecursiveSideEffects to Loops::ParallelOp.
Summary: This is to specify that ParallelOp does not have side effects on its own but has the effects of all operations executed in its region. Differential Revision: https://reviews.llvm.org/D78707
1 parent f10835a commit dc9cff1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/include/mlir/Dialect/LoopOps/LoopOps.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def IfOp : Loop_Op<"if",
259259
def ParallelOp : Loop_Op<"parallel",
260260
[AttrSizedOperandSegments,
261261
DeclareOpInterfaceMethods<LoopLikeOpInterface>,
262+
RecursiveSideEffects,
262263
SingleBlockImplicitTerminator<"YieldOp">]> {
263264
let summary = "parallel for operation";
264265
let description = [{

0 commit comments

Comments
 (0)