summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorTalin <viridia@gmail.com>2012-01-30 06:55:43 +0000
committerTalin <viridia@gmail.com>2012-01-30 06:55:43 +0000
commit2a7df51ea2a27b1b940577e02d379a76a587bba0 (patch)
treeda17d468d99eb6b1f249619289fa0ba7a8bb0c01 /llvm/docs
parent4f870e652a090c21b430921f6e86e3f60fb7f2fc (diff)
downloadbcm5719-llvm-2a7df51ea2a27b1b940577e02d379a76a587bba0.tar.gz
bcm5719-llvm-2a7df51ea2a27b1b940577e02d379a76a587bba0.zip
DenseMap::find_as() and unit tests.
llvm-svn: 149229
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/ProgrammersManual.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html
index 51862034b73..0b1a875da1a 100644
--- a/llvm/docs/ProgrammersManual.html
+++ b/llvm/docs/ProgrammersManual.html
@@ -1753,7 +1753,7 @@ pointers, or map other small types to each other.
<p>
There are several aspects of DenseMap that you should be aware of, however. The
-iterators in a densemap are invalidated whenever an insertion occurs, unlike
+iterators in a DenseMap are invalidated whenever an insertion occurs, unlike
map. Also, because DenseMap allocates space for a large number of key/value
pairs (it starts with 64 by default), it will waste a lot of space if your keys
or values are large. Finally, you must implement a partial specialization of
@@ -1761,6 +1761,14 @@ DenseMapInfo for the key that you want, if it isn't already supported. This
is required to tell DenseMap about two special marker values (which can never be
inserted into the map) that it needs internally.</p>
+<p>
+DenseMap's find_as() method supports lookup operations using an alternate key
+type. This is useful in cases where the normal key type is expensive to
+construct, but cheap to compare against. The DenseMapInfo is responsible for
+defining the appropriate comparison and hashing methods for each alternate
+key type used.
+</p>
+
</div>
<!-- _______________________________________________________________________ -->
OpenPOWER on IntegriCloud