[Mlir-commits] [mlir] dc9cff1 - [MLIR] Add RecursiveSideEffects to Loops::ParallelOp.

Tres Popp llvmlistbot at llvm.org
Fri Apr 24 07:44:23 PDT 2020


Author: Tres Popp
Date: 2020-04-24T16:44:03+02:00
New Revision: dc9cff15a2a528a469d8d0afd6f60d409102c461

URL: https://github.com/llvm/llvm-project/commit/dc9cff15a2a528a469d8d0afd6f60d409102c461
DIFF: https://github.com/llvm/llvm-project/commit/dc9cff15a2a528a469d8d0afd6f60d409102c461.diff

LOG: [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

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/LoopOps/LoopOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/LoopOps/LoopOps.td b/mlir/include/mlir/Dialect/LoopOps/LoopOps.td
index 856725747369..3e0004a9642a 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<LoopLikeOpInterface>,
+     RecursiveSideEffects,
      SingleBlockImplicitTerminator<"YieldOp">]> {
   let summary = "parallel for operation";
   let description = [{


        


More information about the Mlir-commits mailing list