Factory that allocates and uniques immutable lists of element type T.
Declared in <llvm/ADT/ImmutableList.h>
template<typename T>
class ImmutableListFactory;
Owns a bump allocator (or borrows one) and a folding set of list nodes so that structurally identical lists share storage.
| Name | Description |
|---|---|
ImmutableListFactory [constructor] | Constructors |
~ImmutableListFactory [destructor] | Destroy the factory and free the owned allocator if any. |
add | Prepend Data onto list L (alias of concat). |
concat | Return the list with Head prepended onto Tail, uniqued in the cache. |
create | Return a singleton list containing only Data. |
emplace | Construct a T from Args and prepend it onto Tail. |
getEmptyList | Return the empty list (null internal pointer). |