[PATCH] D82895: [NFC][LoopInfo] Document empty()
Stefanos Baziotis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 12:29:17 PDT 2020
baziotis updated this revision to Diff 274575.
baziotis added a comment.
Address comment.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82895/new/
https://reviews.llvm.org/D82895
Files:
llvm/include/llvm/Analysis/LoopInfo.h
Index: llvm/include/llvm/Analysis/LoopInfo.h
===================================================================
--- llvm/include/llvm/Analysis/LoopInfo.h
+++ llvm/include/llvm/Analysis/LoopInfo.h
@@ -155,6 +155,7 @@
iterator end() const { return getSubLoops().end(); }
reverse_iterator rbegin() const { return getSubLoops().rbegin(); }
reverse_iterator rend() const { return getSubLoops().rend(); }
+ /// Return true if the loop does not contain any sub-loops.
bool empty() const { return getSubLoops().empty(); }
/// Get a list of the basic blocks which make up this loop.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82895.274575.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200630/18c58c63/attachment.bin>
More information about the llvm-commits
mailing list