[Mlir-commits] [mlir] [mlir][Interfaces] Add `mustProgress` interface method + folding pattern (PR #179039)
Jakub Kuderski
llvmlistbot at llvm.org
Sat Jan 31 07:12:39 PST 2026
================
@@ -351,6 +351,18 @@ def RegionBranchOpInterface : OpInterface<"RegionBranchOpInterface"> {
(ins "::mlir::Type":$lhs, "::mlir::Type":$rhs), [{}],
/*defaultImplementation=*/[{ return lhs == rhs; }]
>,
+ InterfaceMethod<[{
+ Region branch ops that "must progress" are required to terminate (i.e.,
+ not loop infinitely between their regions) or interact with the
----------------
kuhar wrote:
Does this also forbid function calls that may exit in the middle of the loop? I think the llvm world uses `willreturn` for this.
https://github.com/llvm/llvm-project/pull/179039
More information about the Mlir-commits
mailing list