From: Tres Popp Date: Thu, 23 Apr 2020 12:03:11 +0000 (+0200) Subject: [MLIR] Add RecursiveSideEffects to Loops::ParallelOp. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc9cff15a2a528a469d8d0afd6f60d409102c461;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/mlir/include/mlir/Dialect/LoopOps/LoopOps.td b/mlir/include/mlir/Dialect/LoopOps/LoopOps.td index 8567257..3e0004a 100644 --- a/mlir/include/mlir/Dialect/LoopOps/LoopOps.td +++ b/mlir/include/mlir/Dialect/LoopOps/LoopOps.td @@ -259,6 +259,7 @@ def IfOp : Loop_Op<"if", def ParallelOp : Loop_Op<"parallel", [AttrSizedOperandSegments, DeclareOpInterfaceMethods, + RecursiveSideEffects, SingleBlockImplicitTerminator<"YieldOp">]> { let summary = "parallel for operation"; let description = [{