summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-05 20:56:08 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-05 20:56:08 +0000
commit4359e5eccf1d0b7c1bf4f466c914ede09ddd3f9d (patch)
tree6517bfbeed4f6b6cb13fadbbd4bde1966a7870ea /docs
parentbdaa9dc4a45b8831c942437f726895eb24a956ba (diff)
downloadllvm-4359e5eccf1d0b7c1bf4f466c914ede09ddd3f9d.tar.gz
llvm-4359e5eccf1d0b7c1bf4f466c914ede09ddd3f9d.tar.bz2
llvm-4359e5eccf1d0b7c1bf4f466c914ede09ddd3f9d.tar.xz
Document llvm/ADT/IntEqClasses.h in ProgrammersManual.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/ProgrammersManual.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index 95632bdf82..a280144eb6 100644
--- a/docs/ProgrammersManual.html
+++ b/docs/ProgrammersManual.html
@@ -86,6 +86,7 @@ option</a></li>
<li><a href="#dss_valuemap">"llvm/ADT/ValueMap.h"</a></li>
<li><a href="#dss_intervalmap">"llvm/ADT/IntervalMap.h"</a></li>
<li><a href="#dss_map">&lt;map&gt;</a></li>
+ <li><a href="#dss_inteqclasses">"llvm/ADT/IntEqClasses.h"</a></li>
<li><a href="#dss_othermap">Other Map-Like Container Options</a></li>
</ul></li>
<li><a href="#ds_string">String-like containers</a>
@@ -1547,6 +1548,26 @@ another element takes place).</p>
<!-- _______________________________________________________________________ -->
<div class="doc_subsubsection">
+ <a name="dss_inteqclasses">"llvm/ADT/IntEqClasses.h"</a>
+</div>
+
+<div class="doc_text">
+
+<p>IntEqClasses provides a compact representation of equivalence classes of
+small integers. Initially, each integer in the range 0..n-1 has its own
+equivalence class. Classes can be joined by passing two class representatives to
+the join(a, b) method. Two integers are in the same class when findLeader()
+returns the same representative.</p>
+
+<p>Once all equivalence classes are formed, the map can be compressed so each
+integer 0..n-1 maps to an equivalence class number in the range 0..m-1, where m
+is the total number of equivalence classes. The map must be uncompressed before
+it can be edited again.</p>
+
+</div>
+
+<!-- _______________________________________________________________________ -->
+<div class="doc_subsubsection">
<a name="dss_othermap">Other Map-Like Container Options</a>
</div>