Issue |
122685
|
Summary |
Adding getNumPredecessors() for mlir::Block
|
Labels |
mlir
|
Assignees |
|
Reporter |
badumbatish
|
I'm browsing the current docs for `mlir::Block` and I'm not seeing a method for `getNumPredecessors()` to compliment `getPredecessors()`, as opposed to the existing getNumSuccessors() to compliment getSuccessors().
I'd love to open a PR for this myself. `makslevental` on Discord suggested the impl is `std::distance(preds_begin, preds_end)` but I also would want further confirmation for the impl
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs