LLVM 17.0.0git
Public Types | Public Member Functions | List of all members
llvm::orc::AllocGroupSmallMap< T > Class Template Reference

A specialized small-map for AllocGroups. More...

#include "llvm/ExecutionEngine/Orc/Shared/MemoryFlags.h"

Inheritance diagram for llvm::orc::AllocGroupSmallMap< T >:
Inheritance graph
[legend]

Public Types

using iterator = typename VectorTy::iterator
 

Public Member Functions

 AllocGroupSmallMap ()=default
 
 AllocGroupSmallMap (std::initializer_list< std::pair< AllocGroup, T > > Inits)
 
iterator begin ()
 
iterator end ()
 
iterator find (AllocGroup G)
 
bool empty () const
 
size_t size () const
 
Toperator[] (AllocGroup G)
 

Detailed Description

template<typename T>
class llvm::orc::AllocGroupSmallMap< T >

A specialized small-map for AllocGroups.

Iteration order is guaranteed to match key ordering.

Definition at line 148 of file MemoryFlags.h.

Member Typedef Documentation

◆ iterator

template<typename T >
using llvm::orc::AllocGroupSmallMap< T >::iterator = typename VectorTy::iterator

Definition at line 158 of file MemoryFlags.h.

Constructor & Destructor Documentation

◆ AllocGroupSmallMap() [1/2]

template<typename T >
llvm::orc::AllocGroupSmallMap< T >::AllocGroupSmallMap ( )
default

◆ AllocGroupSmallMap() [2/2]

template<typename T >
llvm::orc::AllocGroupSmallMap< T >::AllocGroupSmallMap ( std::initializer_list< std::pair< AllocGroup, T > >  Inits)
inline

Definition at line 161 of file MemoryFlags.h.

References llvm::sort().

Member Function Documentation

◆ begin()

template<typename T >
iterator llvm::orc::AllocGroupSmallMap< T >::begin ( )
inline

◆ empty()

template<typename T >
bool llvm::orc::AllocGroupSmallMap< T >::empty ( ) const
inline

Definition at line 173 of file MemoryFlags.h.

References llvm::SmallVectorBase< Size_T >::empty().

◆ end()

template<typename T >
iterator llvm::orc::AllocGroupSmallMap< T >::end ( )
inline

◆ find()

template<typename T >
iterator llvm::orc::AllocGroupSmallMap< T >::find ( AllocGroup  G)
inline

Definition at line 168 of file MemoryFlags.h.

References llvm::orc::AllocGroupSmallMap< T >::end(), G, I, and llvm::lower_bound().

◆ operator[]()

template<typename T >
T & llvm::orc::AllocGroupSmallMap< T >::operator[] ( AllocGroup  G)
inline

◆ size()

template<typename T >
size_t llvm::orc::AllocGroupSmallMap< T >::size ( ) const
inline

Definition at line 174 of file MemoryFlags.h.

References llvm::SmallVectorBase< Size_T >::size().


The documentation for this class was generated from the following file: