[Mlir-commits] [mlir] [mlir][Interfaces][NFC] Move region loop detection to `RegionBranchOpInterface` (PR #77090)
Markus Böck
llvmlistbot at llvm.org
Fri Jan 5 08:59:03 PST 2024
================
@@ -219,11 +219,21 @@ LogicalResult detail::verifyTypesAlongControlFlowEdges(Operation *op) {
return success();
}
-/// Return `true` if region `r` is reachable from region `begin` according to
-/// the RegionBranchOpInterface (by taking a branch).
-static bool isRegionReachable(Region *begin, Region *r) {
- assert(begin->getParentOp() == r->getParentOp() &&
- "expected that both regions belong to the same op");
+namespace {
----------------
zero9178 wrote:
Type aliases do not have linkage and don't need to be put into an anonymous namespace.
https://github.com/llvm/llvm-project/pull/77090
More information about the Mlir-commits
mailing list