[PATCH] D64359: [LOOPINFO] Add member function to retrieve loops in breadth-first order
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 15:09:14 PDT 2019
fhahn added a comment.
AFAIK, GraphTraits is implemented for Loop and you should be able to just use `breadth_first` from `ADT/BreadthFirstIterator.h`. It should return a breadth-first iterator range over the sub loops. Given it is a one-liner, I am not sure we would need to add a special method to LoopBase.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64359/new/
https://reviews.llvm.org/D64359
More information about the llvm-commits
mailing list