[llvm] r271694 - Doxygen for FoldingSet::reserve and FoldingSet::capacity

Ben Craig via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 10:50:15 PDT 2016


Author: bcraig
Date: Fri Jun  3 12:50:14 2016
New Revision: 271694

URL: http://llvm.org/viewvc/llvm-project?rev=271694&view=rev
Log:
Doxygen for FoldingSet::reserve and FoldingSet::capacity

Modified:
    llvm/trunk/include/llvm/ADT/FoldingSet.h

Modified: llvm/trunk/include/llvm/ADT/FoldingSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/FoldingSet.h?rev=271694&r1=271693&r2=271694&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/FoldingSet.h (original)
+++ llvm/trunk/include/llvm/ADT/FoldingSet.h Fri Jun  3 12:50:14 2016
@@ -180,7 +180,12 @@ public:
   /// empty - Returns true if there are no nodes in the folding set.
   bool empty() const { return NumNodes == 0; }
 
+  /// reserve - Increase the number of buckets such that adding the
+  /// EltCount-th node won't cause a rebucket operation. reserve is permitted
+  /// to allocate more space than requested by EltCount.
   void reserve(unsigned EltCount);
+  /// capacity - Returns the number of nodes permitted in the folding set
+  /// before a rebucket operation is performed.
   unsigned capacity() {
     // We allow a load factor of up to 2.0,
     // so that means our capacity is NumBuckets * 2




More information about the llvm-commits mailing list