[PATCH] D150449: [NFC] Add reverse iterator support for BasicBlocks in llvm::Function
Sergei Barannikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 11:56:24 PDT 2023
barannikov88 added a comment.
In D150449#4338653 <https://reviews.llvm.org/D150449#4338653>, @aeubanks wrote:
> what about `reverse(F)`?
These methods might not be very useful, but having them for completeness won't hurt, I guess?
================
Comment at: llvm/include/llvm/IR/Function.h:775
+ const_reverse_iterator rend() const { return BasicBlocks.rend(); }
size_t size() const { return BasicBlocks.size(); }
----------------
Please try to keep existing formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150449/new/
https://reviews.llvm.org/D150449
More information about the llvm-commits
mailing list