LLVM 22.0.0git
|
This class provides operator overloads to the map container using MD5 as the key type, so that existing code can still work in most cases using SampleContext as key. More...
#include "llvm/ProfileData/SampleProf.h"
Public Member Functions | |
mapped_type & | create (const SampleContext &Ctx) |
iterator | find (const SampleContext &Ctx) |
const_iterator | find (const SampleContext &Ctx) const |
size_t | erase (const SampleContext &Ctx) |
size_t | erase (const key_type &Key) |
iterator | erase (iterator It) |
Public Member Functions inherited from llvm::sampleprof::HashKeyMap< std::unordered_map, SampleContext, FunctionSamples > | |
std::pair< iterator, bool > | try_emplace (const key_type &Hash, const original_key_type &Key, Ts &&...Args) |
std::pair< iterator, bool > | emplace (Ts &&...Args) |
mapped_type & | operator[] (const original_key_type &Key) |
iterator | find (const original_key_type &Key) |
mapped_type | lookup (const original_key_type &Key) const |
size_t | count (const original_key_type &Key) const |
size_t | erase (const original_key_type &Ctx) |
Additional Inherited Members | |
Public Types inherited from llvm::sampleprof::HashKeyMap< std::unordered_map, SampleContext, FunctionSamples > | |
using | base_type |
using | key_type |
using | original_key_type |
using | mapped_type |
using | value_type |
using | iterator |
using | const_iterator |
This class provides operator overloads to the map container using MD5 as the key type, so that existing code can still work in most cases using SampleContext as key.
Note: when populating container, make sure to assign the SampleContext to the mapped value immediately because the key no longer holds it.
Definition at line 1439 of file SampleProf.h.
|
inline |
Definition at line 1444 of file SampleProf.h.
References llvm::sampleprof::HashKeyMap< std::unordered_map, SampleContext, FunctionSamples >::try_emplace().
Referenced by llvm::SampleContextTracker::createContextLessProfileMap(), llvm::sampleprof::ProfileConverter::flattenProfile(), and llvm::sampleprof::SampleContextTrimmer::trimAndMergeColdContextProfiles().
Definition at line 1466 of file SampleProf.h.
References llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key.
|
inline |
Definition at line 1461 of file SampleProf.h.
References llvm::sampleprof::HashKeyMap< MapT, KeyT, ValueT, MapTArgs >::erase().
Definition at line 1468 of file SampleProf.h.
|
inline |
Definition at line 1451 of file SampleProf.h.
References llvm::sampleprof::HashKeyMap< MapT, KeyT, ValueT, MapTArgs >::find().
|
inline |
Definition at line 1456 of file SampleProf.h.
References llvm::sampleprof::HashKeyMap< MapT, KeyT, ValueT, MapTArgs >::find().