[Mlir-commits] [clang] [flang] [mlir] [mlir][Interfaces] Single interface method to query constant region-based CF (PR #193486)
Matthias Springer
llvmlistbot at llvm.org
Wed Apr 22 05:23:49 PDT 2026
================
@@ -137,6 +137,13 @@ def RegionBranchOpInterface : OpInterface<"RegionBranchOpInterface"> {
specified with `getEntrySuccessorOperands` /
`RegionBranchTerminatorOpInterface::getSuccessorOperands`.
+ Implementations may also optionally refine the set of successors based on
+ constant operand values. To do so, implement
+ `getSuccessorRegionsWithConstants`, which that takes a
+ `RegionBranchPointOperandConstants` argument; that method is invoked by
+ analyses that have constant-folded information. By default, the
+ constants-aware overload dispatches to the no-constants overload.
----------------
matthias-springer wrote:
Correct, this is not fixing anything. This change is NFC.
https://github.com/llvm/llvm-project/pull/193486
More information about the Mlir-commits
mailing list