Home
last modified time | relevance | path

Searched refs:DenseMapInfo (Results 1 – 25 of 158) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DDenseMapInfo.h53 struct DenseMapInfo { struct
66 struct DenseMapInfo<T*> {
94 template<> struct DenseMapInfo<char> {
105 template <> struct DenseMapInfo<unsigned char> {
116 template <> struct DenseMapInfo<unsigned short> {
127 template<> struct DenseMapInfo<unsigned> {
138 template<> struct DenseMapInfo<unsigned long> {
144 return DenseMapInfo<unsigned>::getHashValue(Val);
155 template<> struct DenseMapInfo<unsigned long long> {
170 template <> struct DenseMapInfo<short> {
[all …]
H A DCachedHashString.h37 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {} in CachedHashStringRef()
50 template <> struct DenseMapInfo<CachedHashStringRef> {
52 return CachedHashStringRef(DenseMapInfo<StringRef>::getEmptyKey(), 0);
55 return CachedHashStringRef(DenseMapInfo<StringRef>::getTombstoneKey(), 1);
65 DenseMapInfo<StringRef>::isEqual(LHS.val(), RHS.val());
73 friend struct DenseMapInfo<CachedHashString>;
79 static char *getEmptyKeyPtr() { return DenseMapInfo<char *>::getEmptyKey(); }
81 return DenseMapInfo<char *>::getTombstoneKey();
102 : CachedHashString(S, DenseMapInfo<StringRef>::getHashValue(S)) {}
153 template <> struct DenseMapInfo<CachedHashString> {
H A DDenseMapInfoVariant.h24 template <typename... Ts> struct DenseMapInfo<std::variant<Ts...>> {
29 return Variant(std::in_place_index<0>, DenseMapInfo<FirstT>::getEmptyKey());
34 DenseMapInfo<FirstT>::getTombstoneKey());
43 return DenseMapInfo<std::pair<size_t, T>>::getHashValuePiecewise(
62 return DenseMapInfo<T>::isEqual(*static_cast<const T *>(ErasedLHS),
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTBAA.h230 template<> struct DenseMapInfo<clang::CodeGen::TBAAAccessInfo> {
232 unsigned UnsignedKey = DenseMapInfo<unsigned>::getEmptyKey();
235 DenseMapInfo<MDNode *>::getEmptyKey(),
236 DenseMapInfo<MDNode *>::getEmptyKey(),
237 DenseMapInfo<uint64_t>::getEmptyKey(),
238 DenseMapInfo<uint64_t>::getEmptyKey());
242 unsigned UnsignedKey = DenseMapInfo<unsigned>::getTombstoneKey();
245 DenseMapInfo<MDNode *>::getTombstoneKey(),
246 DenseMapInfo<MDNode *>::getTombstoneKey(),
247 DenseMapInfo<uint64_t>::getTombstoneKey(),
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_dense_map_info.h63 struct DenseMapInfo { struct
76 struct DenseMapInfo<T *> {
106 struct DenseMapInfo<char> {
118 struct DenseMapInfo<unsigned char> {
133 struct DenseMapInfo<unsigned short> {
148 struct DenseMapInfo<unsigned> {
162 struct DenseMapInfo<unsigned long> {
178 struct DenseMapInfo<unsigned long long> {
194 struct DenseMapInfo<short> {
205 struct DenseMapInfo<int> {
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DUniqueBBID.h28 template <> struct DenseMapInfo<UniqueBBID> {
30 unsigned EmptyKey = DenseMapInfo<unsigned>::getEmptyKey();
34 unsigned TombstoneKey = DenseMapInfo<unsigned>::getTombstoneKey();
40 return DenseMapInfo<std::pair<unsigned, unsigned>>::getHashValue(PairVal);
43 return DenseMapInfo<unsigned>::isEqual(LHS.BaseID, RHS.BaseID) &&
44 DenseMapInfo<unsigned>::isEqual(LHS.CloneID, RHS.CloneID);
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DValueHandle.h104 V != DenseMapInfo<Value *>::getEmptyKey() && in isValid()
105 V != DenseMapInfo<Value *>::getTombstoneKey(); in isValid()
180 template <> struct DenseMapInfo<WeakVH> {
182 return WeakVH(DenseMapInfo<Value *>::getEmptyKey());
186 return WeakVH(DenseMapInfo<Value *>::getTombstoneKey());
190 return DenseMapInfo<Value *>::getHashValue(Val);
194 return DenseMapInfo<Value *>::isEqual(LHS, RHS);
266 friend struct DenseMapInfo<AssertingVH<ValueTy>>;
314 struct DenseMapInfo<AssertingVH<T>> : DenseMapInfo<T *> {};
451 friend struct DenseMapInfo<PoisoningVH<ValueTy>>;
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DBaseSubobject.h57 template<> struct DenseMapInfo<clang::BaseSubobject> {
60 DenseMapInfo<const clang::CXXRecordDecl *>::getEmptyKey(),
61 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getEmptyKey()));
66 DenseMapInfo<const clang::CXXRecordDecl *>::getTombstoneKey(),
67 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getTombstoneKey()));
73 return DenseMapInfo<PairTy>::getHashValue(PairTy(Base.getBase(),
H A DDeclID.h186 friend struct llvm::DenseMapInfo<clang::LocalDeclID>;
244 template <> struct DenseMapInfo<clang::GlobalDeclID> {
249 return GlobalDeclID(DenseMapInfo<DeclID>::getEmptyKey());
253 return GlobalDeclID(DenseMapInfo<DeclID>::getTombstoneKey());
257 return DenseMapInfo<DeclID>::getHashValue(Key.getRawValue());
265 template <> struct DenseMapInfo<clang::LocalDeclID> {
270 return LocalDeclID(DenseMapInfo<DeclID>::getEmptyKey());
274 return LocalDeclID(DenseMapInfo<DeclID>::getTombstoneKey());
278 return DenseMapInfo<DeclID>::getHashValue(Key.getRawValue());
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DWasmTraits.h22 template <> struct DenseMapInfo<wasm::WasmSignature, void> {
48 template <> struct DenseMapInfo<wasm::WasmGlobalType, void> {
65 template <> struct DenseMapInfo<wasm::WasmLimits, void> {
87 template <> struct DenseMapInfo<wasm::WasmTableType, void> {
90 wasm::ValType(0), DenseMapInfo<wasm::WasmLimits, void>::getEmptyKey()};
95 DenseMapInfo<wasm::WasmLimits, void>::getTombstoneKey()};
100 DenseMapInfo<wasm::WasmLimits, void>::getHashValue(TableType.Limits));
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DWeak.h38 : private llvm::DenseMapInfo<const IdentifierInfo *> {
40 return WeakInfo(DenseMapInfo::getEmptyKey(), SourceLocation()); in getEmptyKey()
43 return WeakInfo(DenseMapInfo::getTombstoneKey(), SourceLocation()); in getTombstoneKey()
46 return DenseMapInfo::getHashValue(W.getAlias()); in getHashValue()
49 return DenseMapInfo::isEqual(LHS.getAlias(), RHS.getAlias()); in isEqual()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DFileEntry.h47 template <> struct DenseMapInfo<gsym::FileEntry> {
49 uint32_t key = DenseMapInfo<uint32_t>::getEmptyKey();
53 uint32_t key = DenseMapInfo<uint32_t>::getTombstoneKey();
57 return llvm::hash_combine(DenseMapInfo<uint32_t>::getHashValue(Val.Dir),
58 DenseMapInfo<uint32_t>::getHashValue(Val.Base));
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h330 template <> struct DenseMapInfo<LocationSize> {
336 return DenseMapInfo<uint64_t>::getHashValue(Val.toRaw());
343 template <> struct DenseMapInfo<MemoryLocation> {
345 return MemoryLocation(DenseMapInfo<const Value *>::getEmptyKey(),
346 DenseMapInfo<LocationSize>::getEmptyKey());
349 return MemoryLocation(DenseMapInfo<const Value *>::getTombstoneKey(),
350 DenseMapInfo<LocationSize>::getTombstoneKey());
353 return DenseMapInfo<const Value *>::getHashValue(Val.Ptr) ^
354 DenseMapInfo<LocationSize>::getHashValue(Val.Size) ^
355 DenseMapInfo<AAMDNodes>::getHashValue(Val.AATags);
/freebsd/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesFormat.h360 template <> struct DenseMapInfo<clang::api_notes::StoredObjCSelector> {
361 typedef DenseMapInfo<unsigned> UnsignedInfo;
390 template <> struct DenseMapInfo<clang::api_notes::ContextTableKey> {
397 DenseMapInfo<uint32_t>::getTombstoneKey(),
398 DenseMapInfo<uint8_t>::getTombstoneKey(),
399 DenseMapInfo<uint32_t>::getTombstoneKey()};
412 template <> struct DenseMapInfo<clang::api_notes::SingleDeclTableKey> {
419 DenseMapInfo<uint32_t>::getTombstoneKey(),
420 DenseMapInfo<uint32_t>::getTombstoneKey()};
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DSymbolStringPool.h74 friend struct DenseMapInfo<SymbolStringPtr>;
75 friend struct DenseMapInfo<NonOwningSymbolStringPtr>;
145 friend struct DenseMapInfo<SymbolStringPtr>;
252 friend struct DenseMapInfo<orc::NonOwningSymbolStringPtr>;
324 struct DenseMapInfo<orc::SymbolStringPtr> {
335 return DenseMapInfo<orc::SymbolStringPtr::PoolEntryPtr>::getHashValue(V.S);
344 template <> struct DenseMapInfo<orc::NonOwningSymbolStringPtr> {
355 return DenseMapInfo<
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCRegister.h103 template <> struct DenseMapInfo<MCRegister> {
105 return DenseMapInfo<unsigned>::getEmptyKey();
108 return DenseMapInfo<unsigned>::getTombstoneKey();
111 return DenseMapInfo<unsigned>::getHashValue(Val.id());
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DTypeHashing.cpp17 LocallyHashedType DenseMapInfo<LocallyHashedType>::Empty{0, {}};
18 LocallyHashedType DenseMapInfo<LocallyHashedType>::Tombstone{hash_code(-1), {}};
25 GloballyHashedType DenseMapInfo<GloballyHashedType>::Empty{EmptyHash};
26 GloballyHashedType DenseMapInfo<GloballyHashedType>::Tombstone{TombstoneHash};
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DConstString.h410 template <typename T, typename Enable> friend struct ::llvm::DenseMapInfo;
434 template <> struct DenseMapInfo<lldb_private::ConstString> {
437 DenseMapInfo<const char *>::getEmptyKey());
441 DenseMapInfo<const char *>::getTombstoneKey());
444 return DenseMapInfo<const char *>::getHashValue(val.m_string);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCanonicalizeFreezeInLoops.cpp107 template <> struct DenseMapInfo<FrozenIndPHIInfo> { struct
109 return FrozenIndPHIInfo(DenseMapInfo<PHINode *>::getEmptyKey(), in getEmptyKey()
110 DenseMapInfo<BinaryOperator *>::getEmptyKey()); in getEmptyKey()
114 return FrozenIndPHIInfo(DenseMapInfo<PHINode *>::getTombstoneKey(), in getTombstoneKey()
115 DenseMapInfo<BinaryOperator *>::getTombstoneKey()); in getTombstoneKey()
119 return DenseMapInfo<FreezeInst *>::getHashValue(Val.FI); in getHashValue()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DItaniumCXXABI.cpp79 return llvm::DenseMapInfo<T>::isEqual( in isDenseMapKeyEmpty()
80 V, llvm::DenseMapInfo<T>::getEmptyKey()); in isDenseMapKeyEmpty()
83 return llvm::DenseMapInfo<T>::isEqual( in isDenseMapKeyTombstone()
84 V, llvm::DenseMapInfo<T>::getTombstoneKey()); in isDenseMapKeyTombstone()
103 struct DenseMapInfo<DecompositionDeclName> { struct
104 using ArrayInfo = llvm::DenseMapInfo<ArrayRef<const BindingDecl*>>; argument
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h214 template <> struct DenseMapInfo<clang::CallGraphNode::CallRecord> {
217 DenseMapInfo<clang::CallGraphNode *>::getEmptyKey(),
218 DenseMapInfo<clang::Expr *>::getEmptyKey());
223 DenseMapInfo<clang::CallGraphNode *>::getTombstoneKey(),
224 DenseMapInfo<clang::Expr *>::getTombstoneKey());
230 return DenseMapInfo<clang::CallGraphNode *>::getHashValue(Val.Callee);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp101 return Inst == DenseMapInfo<Instruction *>::getEmptyKey() || in isSentinel()
102 Inst == DenseMapInfo<Instruction *>::getTombstoneKey(); in isSentinel()
159 template <> struct DenseMapInfo<SimpleValue> { struct
161 return DenseMapInfo<Instruction *>::getEmptyKey(); in getEmptyKey()
165 return DenseMapInfo<Instruction *>::getTombstoneKey(); in getTombstoneKey()
342 unsigned DenseMapInfo<SimpleValue>::getHashValue(SimpleValue Val) { in getHashValue()
465 bool DenseMapInfo<SimpleValue>::isEqual(SimpleValue LHS, SimpleValue RHS) { in isEqual()
490 return Inst == DenseMapInfo<Instruction *>::getEmptyKey() || in isSentinel()
491 Inst == DenseMapInfo<Instruction *>::getTombstoneKey(); in isSentinel()
514 template <> struct DenseMapInfo<CallValue> { struct
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/FileSystem/
H A DUniqueID.h55 template <> struct DenseMapInfo<llvm::sys::fs::UniqueID> {
57 auto EmptyKey = DenseMapInfo<std::pair<uint64_t, uint64_t>>::getEmptyKey();
63 DenseMapInfo<std::pair<uint64_t, uint64_t>>::getTombstoneKey();
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRegister.h160 template <> struct DenseMapInfo<Register> {
162 return DenseMapInfo<unsigned>::getEmptyKey();
165 return DenseMapInfo<unsigned>::getTombstoneKey();
168 return DenseMapInfo<unsigned>::getHashValue(Val.id());
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DMemoryFlags.h111 friend struct llvm::DenseMapInfo<AllocGroup>;
211 template <> struct DenseMapInfo<orc::MemProt> {
218 return DenseMapInfo<UT>::getHashValue(static_cast<UT>(Val));
225 template <> struct DenseMapInfo<orc::AllocGroup> {
233 return DenseMapInfo<orc::AllocGroup::underlying_type>::getHashValue(Val.Id);

1234567