Home
last modified time | relevance | path

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

1234567

/src/contrib/llvm-project/llvm/include/llvm/ADT/
H A DDenseMapInfo.h52 struct DenseMapInfo { struct
65 struct DenseMapInfo<T*> {
93 template<> struct DenseMapInfo<char> {
104 template <> struct DenseMapInfo<unsigned char> {
115 template <> struct DenseMapInfo<unsigned short> {
126 template<> struct DenseMapInfo<unsigned> {
137 template<> struct DenseMapInfo<unsigned long> {
143 return DenseMapInfo<unsigned>::getHashValue(Val);
154 template<> struct DenseMapInfo<unsigned long long> {
169 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),
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTBAA.h223 template<> struct DenseMapInfo<clang::CodeGen::TBAAAccessInfo> {
225 unsigned UnsignedKey = DenseMapInfo<unsigned>::getEmptyKey();
228 DenseMapInfo<MDNode *>::getEmptyKey(),
229 DenseMapInfo<MDNode *>::getEmptyKey(),
230 DenseMapInfo<uint64_t>::getEmptyKey(),
231 DenseMapInfo<uint64_t>::getEmptyKey());
235 unsigned UnsignedKey = DenseMapInfo<unsigned>::getTombstoneKey();
238 DenseMapInfo<MDNode *>::getTombstoneKey(),
239 DenseMapInfo<MDNode *>::getTombstoneKey(),
240 DenseMapInfo<uint64_t>::getTombstoneKey(),
[all …]
/src/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 …]
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DValueHandle.h103 V != DenseMapInfo<Value *>::getEmptyKey() && in isValid()
104 V != DenseMapInfo<Value *>::getTombstoneKey(); in isValid()
179 template <> struct DenseMapInfo<WeakVH> {
181 return WeakVH(DenseMapInfo<Value *>::getEmptyKey());
185 return WeakVH(DenseMapInfo<Value *>::getTombstoneKey());
189 return DenseMapInfo<Value *>::getHashValue(Val);
193 return DenseMapInfo<Value *>::isEqual(LHS, RHS);
265 friend struct DenseMapInfo<AssertingVH<ValueTy>>;
313 struct DenseMapInfo<AssertingVH<T>> : DenseMapInfo<T *> {};
450 friend struct DenseMapInfo<PoisoningVH<ValueTy>>;
[all …]
/src/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 DASTTypeTraits.h110 struct DenseMapInfo { struct
374 struct DenseMapInfo {
377 Node.NodeKind = ASTNodeKind::DenseMapInfo::getEmptyKey();
382 Node.NodeKind = ASTNodeKind::DenseMapInfo::getTombstoneKey();
404 auto Empty = ASTNodeKind::DenseMapInfo::getEmptyKey();
405 auto TombStone = ASTNodeKind::DenseMapInfo::getTombstoneKey();
406 return (ASTNodeKind::DenseMapInfo::isEqual(LHS.NodeKind, Empty) &&
407 ASTNodeKind::DenseMapInfo::isEqual(RHS.NodeKind, Empty)) ||
408 (ASTNodeKind::DenseMapInfo::isEqual(LHS.NodeKind, TombStone) &&
409 ASTNodeKind::DenseMapInfo::isEqual(RHS.NodeKind, TombStone)) ||
[all …]
/src/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));
/src/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()
/src/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));
/src/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);
/src/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCRegister.h109 template <> struct DenseMapInfo<MCRegister> {
111 return DenseMapInfo<unsigned>::getEmptyKey();
114 return DenseMapInfo<unsigned>::getTombstoneKey();
117 return DenseMapInfo<unsigned>::getHashValue(Val.id());
120 return DenseMapInfo<unsigned>::isEqual(LHS.id(), RHS.id());
/src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicBlockSectionsProfileReader.h58 template <> struct DenseMapInfo<UniqueBBID> {
60 unsigned EmptyKey = DenseMapInfo<unsigned>::getEmptyKey();
64 unsigned TombstoneKey = DenseMapInfo<unsigned>::getTombstoneKey();
70 return DenseMapInfo<std::pair<unsigned, unsigned>>::getHashValue(PairVal);
73 return DenseMapInfo<unsigned>::isEqual(LHS.BaseID, RHS.BaseID) &&
74 DenseMapInfo<unsigned>::isEqual(LHS.CloneID, RHS.CloneID);
H A DRegister.h150 template <> struct DenseMapInfo<Register> {
152 return DenseMapInfo<unsigned>::getEmptyKey();
155 return DenseMapInfo<unsigned>::getTombstoneKey();
158 return DenseMapInfo<unsigned>::getHashValue(Val.id());
161 return DenseMapInfo<unsigned>::isEqual(LHS.id(), RHS.id());
/src/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesFormat.h342 template <> struct DenseMapInfo<clang::api_notes::StoredObjCSelector> {
343 typedef DenseMapInfo<unsigned> UnsignedInfo;
372 template <> struct DenseMapInfo<clang::api_notes::ContextTableKey> {
379 DenseMapInfo<uint32_t>::getTombstoneKey(),
380 DenseMapInfo<uint8_t>::getTombstoneKey(),
381 DenseMapInfo<uint32_t>::getTombstoneKey()};
394 template <> struct DenseMapInfo<clang::api_notes::SingleDeclTableKey> {
401 DenseMapInfo<uint32_t>::getTombstoneKey(),
402 DenseMapInfo<uint32_t>::getTombstoneKey()};
/src/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DSymbolStringPool.h72 friend struct DenseMapInfo<SymbolStringPtr>;
73 friend struct DenseMapInfo<NonOwningSymbolStringPtr>;
140 friend struct DenseMapInfo<SymbolStringPtr>;
247 friend struct DenseMapInfo<orc::NonOwningSymbolStringPtr>;
316 struct DenseMapInfo<orc::SymbolStringPtr> {
327 return DenseMapInfo<orc::SymbolStringPtr::PoolEntryPtr>::getHashValue(V.S);
336 template <> struct DenseMapInfo<orc::NonOwningSymbolStringPtr> {
347 return DenseMapInfo<
/src/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};
/src/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);
/src/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()
/src/contrib/llvm-project/clang/lib/AST/
H A DItaniumCXXABI.cpp80 return llvm::DenseMapInfo<T>::isEqual( in isDenseMapKeyEmpty()
81 V, llvm::DenseMapInfo<T>::getEmptyKey()); in isDenseMapKeyEmpty()
84 return llvm::DenseMapInfo<T>::isEqual( in isDenseMapKeyTombstone()
85 V, llvm::DenseMapInfo<T>::getTombstoneKey()); in isDenseMapKeyTombstone()
104 struct DenseMapInfo<DecompositionDeclName> { struct
105 using ArrayInfo = llvm::DenseMapInfo<ArrayRef<const BindingDecl*>>; argument
/src/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h217 template <> struct DenseMapInfo<clang::CallGraphNode::CallRecord> {
220 DenseMapInfo<clang::CallGraphNode *>::getEmptyKey(),
221 DenseMapInfo<clang::Expr *>::getEmptyKey());
226 DenseMapInfo<clang::CallGraphNode *>::getTombstoneKey(),
227 DenseMapInfo<clang::Expr *>::getTombstoneKey());
233 return DenseMapInfo<clang::CallGraphNode *>::getHashValue(Val.Callee);
/src/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()
345 unsigned DenseMapInfo<SimpleValue>::getHashValue(SimpleValue Val) { in getHashValue()
466 bool DenseMapInfo<SimpleValue>::isEqual(SimpleValue LHS, SimpleValue RHS) { in isEqual()
491 return Inst == DenseMapInfo<Instruction *>::getEmptyKey() || in isSentinel()
492 Inst == DenseMapInfo<Instruction *>::getTombstoneKey(); in isSentinel()
519 template <> struct DenseMapInfo<CallValue> { struct
[all …]
/src/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();
/src/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