[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
This commit is contained in:
Tres Popp 2020-04-23 14:03:11 +02:00
parent f10835a034
commit dc9cff15a2
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ def IfOp : Loop_Op<"if",
def ParallelOp : Loop_Op<"parallel",
[AttrSizedOperandSegments,
DeclareOpInterfaceMethods<LoopLikeOpInterface>,
RecursiveSideEffects,
SingleBlockImplicitTerminator<"YieldOp">]> {
let summary = "parallel for operation";
let description = [{