[Mlir-commits] [mlir] [mlir][scf] Add `ReturnLike` to `scf::InParallelOp` (PR #148237)
Fabian Mora
llvmlistbot at llvm.org
Fri Jul 11 05:39:57 PDT 2025
https://github.com/fabianmcg created https://github.com/llvm/llvm-project/pull/148237
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`.
>From a4e67a9264a23f33598938866e07c2c543c214b9 Mon Sep 17 00:00:00 2001
From: Fabian Mora <fabian.mora-cordero at amd.com>
Date: Fri, 11 Jul 2025 12:34:51 +0000
Subject: [PATCH] [mlir][scf] Add ReturnLike to scf::InParallelOp
---
mlir/include/mlir/Dialect/SCF/IR/SCFOps.td | 1 +
1 file changed, 1 insertion(+)
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> {
More information about the Mlir-commits
mailing list