[Mlir-commits] [mlir] [mlir][scf] Add `ReturnLike` to `scf::InParallelOp` (PR #148237)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jul 11 05:40:32 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Fabian Mora (fabianmcg)
<details>
<summary>Changes</summary>
This patch adds the `ReturnLike` trait to `scf::InParallelOp`. This is the first step to clean the branching semantics of `scf::ForallOp` and `scf::InParallelOp`.
---
Full diff: https://github.com/llvm/llvm-project/pull/148237.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/SCF/IR/SCFOps.td (+1)
``````````diff
diff --git a/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td b/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
index 2d15544e871b3..23c987dd777e2 100644
--- a/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
+++ b/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
@@ -633,6 +633,7 @@ def ForallOp : SCF_Op<"forall", [
def InParallelOp : SCF_Op<"forall.in_parallel", [
Pure,
Terminator,
+ ReturnLike,
DeclareOpInterfaceMethods<ParallelCombiningOpInterface>,
HasParent<"ForallOp">,
] # GraphRegionNoTerminator.traits> {
``````````
</details>
https://github.com/llvm/llvm-project/pull/148237
More information about the Mlir-commits
mailing list