[Mlir-commits] [mlir] [mlir][interface] Add getRegionNonForwardedValues API to RegionBranchOpInterface (PR #175212)

Matthias Springer llvmlistbot at llvm.org
Fri Jan 23 03:32:32 PST 2026


================
@@ -379,6 +379,14 @@ def RegionBranchOpInterface : OpInterface<"RegionBranchOpInterface"> {
     ::mlir::OperandRange getSuccessorOperands(
         ::mlir::RegionBranchPoint src, ::mlir::RegionSuccessor dest);
 
+    /// Return the non-forwarded values from the source branch point to the
+    /// destination region successor.
+    ///
+    /// If the `RegionSuccessor` is a region, it will return non-forwarded
+    /// arguments, if it is a parent, it will return non-forwarded results.
+    ::llvm::SmallVector<Value> getRegionNonForwardedValues(
+        ::mlir::RegionBranchPoint src, ::mlir::RegionSuccessor dest);
----------------
matthias-springer wrote:

Since #175815, the property of being a successor input no longer depends on the region branch point. You can remove the `RegionBranchPoint` parameter from this function.

https://github.com/llvm/llvm-project/pull/175212


More information about the Mlir-commits mailing list