14#ifndef LLVM_ADT_STRINGSET_H
15#define LLVM_ADT_STRINGSET_H
22template <
class AllocatorTy = MallocAllocator>
28 StringSet(std::initializer_list<StringRef> initializer) {
32 template <
typename Container>
explicit StringSet(Container &&
C) {
42 template <
typename InputIt>
44 for (
auto it =
begin; it !=
end; ++it)
48 template <
typename ValueTy>
49 std::pair<typename Base::iterator, bool>
This file defines the StringMap class.
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
int FindKey(StringRef Key) const
FindKey - Look up the bucket that contains the specified key.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
std::pair< iterator, bool > try_emplace(StringRef Key, ArgsTy &&...Args)
Emplace a new element for the specified key into the map if the key isn't already in the map.
StringRef - Represent a constant reference to a string, i.e.
StringSet - A wrapper for StringMap that provides set-like functionality.
std::pair< typename Base::iterator, bool > insert(const StringMapEntry< ValueTy > &mapEntry)
void insert(InputIt begin, InputIt end)
StringSet(std::initializer_list< StringRef > initializer)
bool contains(StringRef key) const
Check if the set contains the given key.
std::pair< typename Base::iterator, bool > insert(StringRef key)
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.