|
LLVM
10.0.0
|
#include "llvm/ADT/ImmutableSet.h"
Public Member Functions | |
| ImutAVLFactory () | |
| ImutAVLFactory (BumpPtrAllocator &Alloc) | |
| ~ImutAVLFactory () | |
| TreeTy * | add (TreeTy *T, value_type_ref V) |
| TreeTy * | remove (TreeTy *T, key_type_ref V) |
| TreeTy * | getEmptyTree () const |
| TreeTy * | getCanonicalTree (TreeTy *TNew) |
Protected Member Functions | |
| bool | isEmpty (TreeTy *T) const |
| unsigned | getHeight (TreeTy *T) const |
| TreeTy * | getLeft (TreeTy *T) const |
| TreeTy * | getRight (TreeTy *T) const |
| value_type_ref | getValue (TreeTy *T) const |
| unsigned | incrementHeight (TreeTy *L, TreeTy *R) const |
| TreeTy * | createNode (TreeTy *L, value_type_ref V, TreeTy *R) |
| TreeTy * | createNode (TreeTy *newLeft, TreeTy *oldTree, TreeTy *newRight) |
| void | recoverNodes () |
| TreeTy * | balanceTree (TreeTy *L, value_type_ref V, TreeTy *R) |
| balanceTree - Used by add_internal and remove_internal to balance a newly created tree. More... | |
| TreeTy * | add_internal (value_type_ref V, TreeTy *T) |
| add_internal - Creates a new tree that includes the specified data and the data from the original tree. More... | |
| TreeTy * | remove_internal (key_type_ref K, TreeTy *T) |
| remove_internal - Creates a new tree that includes all the data from the original tree except the specified data. More... | |
| TreeTy * | combineTrees (TreeTy *L, TreeTy *R) |
| TreeTy * | removeMinBinding (TreeTy *T, TreeTy *&Noderemoved) |
| void | markImmutable (TreeTy *T) |
| markImmutable - Clears the mutable bits of a root and all of its descendants. More... | |
Static Protected Member Functions | |
| static unsigned | maskCacheIndex (unsigned I) |
| static bool | compareTreeWithSection (TreeTy *T, typename TreeTy::iterator &TI, typename TreeTy::iterator &TE) |
Friends | |
| class | ImutAVLTree< ImutInfo > |
Definition at line 35 of file ImmutableSet.h.
|
inline |
Definition at line 391 of file ImmutableSet.h.
|
inline |
Definition at line 394 of file ImmutableSet.h.
|
inline |
Definition at line 397 of file ImmutableSet.h.
|
inline |
Definition at line 401 of file ImmutableSet.h.
References llvm::T.
Referenced by llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::add(), and llvm::ImmutableSet< ValT, ValInfo >::Factory::add().
|
inlineprotected |
add_internal - Creates a new tree that includes the specified data and the data from the original tree.
If the original tree already contained the data item, the original tree is returned.
Definition at line 536 of file ImmutableSet.h.
References assert(), llvm::ImutAVLTree< ImutInfo >::getLeft(), llvm::ImutAVLTree< ImutInfo >::getRight(), llvm::ImutAVLTree< ImutInfo >::getValue(), and isEqual().
|
inlineprotected |
balanceTree - Used by add_internal and remove_internal to balance a newly created tree.
Definition at line 492 of file ImmutableSet.h.
References assert(), llvm::ImutAVLTree< ImutInfo >::getHeight(), llvm::ImutAVLTree< ImutInfo >::getLeft(), and llvm::ImutAVLTree< ImutInfo >::getRight().
|
inlineprotected |
Definition at line 575 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getValue(), and llvm::RISCVFenceField::R.
|
inlinestaticprotected |
Definition at line 440 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::begin(), E, llvm::ImutAVLTree< ImutInfo >::end(), I, and llvm::ImutAVLTree< ImutInfo >::isElementEqual().
|
inlineprotected |
Definition at line 461 of file ImmutableSet.h.
References A, llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), assert(), and llvm::T.
|
inlineprotected |
Definition at line 477 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getValue().
|
inline |
Definition at line 606 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::begin(), llvm::ImutAVLTree< ImutInfo >::destroy(), entry, llvm::T, and llvm::TE.
Referenced by llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::add(), llvm::ImmutableSet< ValT, ValInfo >::Factory::add(), llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::remove(), and llvm::ImmutableSet< ValT, ValInfo >::Factory::remove().
|
inline |
Definition at line 415 of file ImmutableSet.h.
Referenced by llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::getEmptyMap(), and llvm::ImmutableSet< ValT, ValInfo >::Factory::getEmptySet().
|
inlineprotected |
Definition at line 426 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
|
inlineprotected |
Definition at line 427 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getLeft().
|
inlineprotected |
Definition at line 428 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getRight().
|
inlineprotected |
Definition at line 429 of file ImmutableSet.h.
|
inlineprotected |
Definition at line 434 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
|
inlineprotected |
Definition at line 425 of file ImmutableSet.h.
References llvm::T.
|
inlineprotected |
markImmutable - Clears the mutable bits of a root and all of its descendants.
Definition at line 597 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getLeft(), and llvm::ImutAVLTree< ImutInfo >::getRight().
|
inlinestaticprotected |
Definition at line 432 of file ImmutableSet.h.
Referenced by llvm::ImutAVLTree< ImutInfo >::destroy().
|
inlineprotected |
Definition at line 481 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::destroy(), and N.
|
inline |
Definition at line 408 of file ImmutableSet.h.
References llvm::T.
Referenced by llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::remove(), and llvm::ImmutableSet< ValT, ValInfo >::Factory::remove().
|
inlineprotected |
remove_internal - Creates a new tree that includes all the data from the original tree except the specified data.
If the specified data did not exist in the original tree, the original tree is returned.
Definition at line 556 of file ImmutableSet.h.
References assert(), llvm::ImutAVLTree< ImutInfo >::getLeft(), llvm::ImutAVLTree< ImutInfo >::getRight(), llvm::ImutAVLTree< ImutInfo >::getValue(), isEqual(), and llvm::T.
|
inlineprotected |
Definition at line 585 of file ImmutableSet.h.
References assert(), llvm::ImutAVLTree< ImutInfo >::getLeft(), llvm::ImutAVLTree< ImutInfo >::getRight(), llvm::ImutAVLTree< ImutInfo >::getValue(), and llvm::T.
|
friend |
Definition at line 366 of file ImmutableSet.h.
1.8.13