/llvm-project/llvm/unittests/ADT/ |
H A D | HashingTest.cpp | 37 friend hash_code hash_value(const NonPOD &obj) { in hash_value() function 67 EXPECT_EQ(hash_value(42), hash_value(x)); in TEST() 68 EXPECT_EQ(hash_value(42), hash_value(TE_Foo)); in TEST() 69 EXPECT_NE(hash_value(42), hash_value(y)); in TEST() 70 EXPECT_NE(hash_value(42), hash_value(TE_Bar)); in TEST() 71 EXPECT_NE(hash_value(42), hash_value(p)); in TEST() 72 EXPECT_EQ(hash_value(71), hash_value(i)); in TEST() 73 EXPECT_EQ(hash_value(71), hash_value(ci)); in TEST() 74 EXPECT_EQ(hash_value(71), hash_value(vi)); in TEST() 75 EXPECT_EQ(hash_value(71), hash_value(cvi)); in TEST() [all …]
|
H A D | StringRefTest.cpp | 605 EXPECT_EQ(hash_value(std::string()), hash_value(StringRef())); in TEST() 606 EXPECT_EQ(hash_value(std::string()), hash_value(StringRef(""))); in TEST() 608 hash_code H = hash_value(S); in TEST() 609 EXPECT_EQ(H, hash_value(StringRef("hello world"))); in TEST() 610 EXPECT_EQ(H, hash_value(StringRef(S))); 611 EXPECT_NE(H, hash_value(StringRef("hello worl"))); in TEST() 612 EXPECT_EQ(hash_value(std::string("hello worl")), in TEST() 613 hash_value(StringRe in TEST() [all...] |
/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | HashKeyMap.h | 53 public MapT<decltype(hash_value(KeyT())), ValueT, MapTArgs...> { 55 using base_type = MapT<decltype(hash_value(KeyT())), ValueT, MapTArgs...>; 56 using key_type = decltype(hash_value(KeyT())); 68 assert(Hash == hash_value(Key)); in try_emplace() 75 return try_emplace(hash_value(Key), Key, std::forward<Ts>(Args)...); in try_emplace() 87 auto It = base_type::find(hash_value(Key)); in find() 94 auto It = base_type::find(hash_value(Key)); in find() 101 auto It = base_type::find(hash_value(Key)); in lookup() 108 return base_type::count(hash_value(Key)); in count()
|
/llvm-project/llvm/include/llvm/Analysis/ |
H A D | IRSimilarityIdentifier.h | 259 /// \returns A hash_value of the IRInstructionData. 260 friend hash_code hash_value(const IRInstructionData &ID) { 267 llvm::hash_value(ID.Inst->getOpcode()), in hash_value() 268 llvm::hash_value(ID.Inst->getType()), in hash_value() 269 llvm::hash_value(ID.getPredicate()), in hash_value() 278 llvm::hash_value(ID.Inst->getOpcode()), in hash_value() 279 llvm::hash_value(ID.Inst->getType()), llvm::hash_value(IntrinsicID), in hash_value() 280 llvm::hash_value(*ID.CalleeName), in hash_value() 287 llvm::hash_value(I in hash_value() 261 friend hash_code hash_value(const IRInstructionData &ID) { hash_value() function [all...] |
/llvm-project/llvm/include/llvm/ADT/ |
H A D | Hashing.h | 26 // -- 'hash_value' is a function designed to be overloaded for each 34 // within the implementation of a 'hash_value' routine or similar context. 72 /// using llvm::hash_value; 73 /// llvm::hash_code code = hash_value(x); 96 /// Allow a hash_code to be directly run through hash_value. 97 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value() function 108 std::enable_if_t<is_integral_or_enum<T>::value, hash_code> hash_value(T value); 113 template <typename T> hash_code hash_value(const T *ptr); 117 hash_code hash_value(const std::pair<T, U> &arg); 121 hash_code hash_value(cons [all...] |
H A D | APFixedPoint.h | 136 inline hash_code hash_value(const FixedPointSemantics &Val) { 137 return hash_value(bit_cast<uint32_t>(Val)); 150 return hash_value(Val); 308 inline hash_code hash_value(const APFixedPoint &Val) { 322 return hash_value(Val); 128 inline hash_code hash_value(const FixedPointSemantics &Val) { hash_value() function
|
/llvm-project/libc/benchmarks/automemcpy/include/automemcpy/ |
H A D | FunctionDescriptor.h |
|
/llvm-project/llvm/include/llvm/CodeGen/PBQP/ |
H A D | Math.h | 26 friend hash_code hash_value(const Vector &); 100 inline hash_code hash_value(const Vector &V) { in hash_value() function 123 friend hash_code hash_value(const Matrix &); 237 inline hash_code hash_value(const Matrix &M) { in hash_value() function 267 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value() function 268 return hash_value(static_cast<const Vector&>(V)); in hash_value() 284 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value() function 285 return hash_value(static_cast<const Matrix&>(M)); in hash_value()
|
/llvm-project/llvm/lib/Support/ |
H A D | DynamicAPInt.cpp | 15 hash_code llvm::hash_value(const DynamicAPInt &X) { in hash_value() function in llvm 17 return llvm::hash_value(X.getSmall()); in hash_value() 18 return detail::hash_value(X.getLarge()); in hash_value()
|
/llvm-project/mlir/include/mlir/IR/ |
H A D | IntegerSet.h | 108 friend ::llvm::hash_code hash_value(IntegerSet arg); 124 inline ::llvm::hash_code hash_value(IntegerSet arg) { in hash_value() function 125 return ::llvm::hash_value(arg.set); in hash_value() 143 return mlir::hash_value(val);
|
H A D | Location.h | 107 friend ::llvm::hash_code hash_value(Location arg); in getAsOpaquePointer() 129 inline ::llvm::hash_code hash_value(Location arg) { 130 return hash_value(arg.impl); 247 return mlir::hash_value(val); 126 inline ::llvm::hash_code hash_value(Location arg) { hash_value() function
|
H A D | Attributes.h | 97 friend ::llvm::hash_code hash_value(Attribute arg); 198 inline ::llvm::hash_code hash_value(Attribute arg) { in hash_value() function 247 friend ::llvm::hash_code hash_value(const NamedAttribute &arg); 257 inline ::llvm::hash_code hash_value(const NamedAttribute &arg) { in hash_value() 357 return mlir::hash_value(val); 402 return mlir::hash_value(val); 256 inline ::llvm::hash_code hash_value(const NamedAttribute &arg) { hash_value() function
|
/llvm-project/lldb/examples/synthetic/ |
H A D | unordered_multi.py | 118 hash_value = node.GetChildMemberWithName("__hash_").GetValueAsUnsigned() 119 self.elements_cache.append((value, hash_value)) 127 value, hash_value = self.elements_cache[index] 129 "[%d] <hash %d>" % (index, hash_value), value.GetData(), value.GetType()
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | FileDistance.cpp | 59 llvm::hash_value(llvm::StringRef("/")); 73 llvm::hash_code Hash = llvm::hash_value(Rest); in FileDistance() 76 auto NextHash = llvm::hash_value(Rest); in FileDistance() 102 for (auto Child : DownEdges.lookup(llvm::hash_value(llvm::StringRef("")))) in FileDistance() 127 auto Hash = llvm::hash_value(Rest); in distance() 152 auto R = Cache.try_emplace(llvm::hash_value(URI), FileDistance::Unreachable); in distance()
|
/llvm-project/mlir/include/mlir/Dialect/Polynomial/IR/ |
H A D | Polynomial.h | 71 friend ::llvm::hash_code hash_value(const MonomialBase<D, T> &arg); 218 friend ::llvm::hash_code hash_value(const PolynomialBase<D, T> &arg); 262 inline ::llvm::hash_code hash_value(const PolynomialBase<D, T> &arg) { in hash_value() function 267 inline ::llvm::hash_code hash_value(const MonomialBase<D, T> &arg) { in hash_value() function 268 return llvm::hash_combine(::llvm::hash_value(arg.coefficient), in hash_value() 269 ::llvm::hash_value(arg.exponent)); in hash_value()
|
/llvm-project/mlir/lib/IR/ |
H A D | AttributeDetail.h | 99 return KeyTy(ty, data, llvm::hash_value(data), isKnownSplat); in getKey() 120 auto hashVal = llvm::hash_value(firstElt); in getKey() 149 return KeyTy(ty, data, llvm::hash_value(data)); in getKeyForBoolData() 161 : KeyTy(ty, data, llvm::hash_value(data)); in getKeyForBoolData() 167 return KeyTy(type, splatData, llvm::hash_value(splatData), in getKeyForSplatBoolData() 251 return KeyTy(ty, data, llvm::hash_value(data.front()), isKnownSplat); in getKey() 259 auto hashVal = llvm::hash_value(firstElt); in getKey()
|
/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/ |
H A D | path.compare.pass.cpp | 28 // size_t hash_value(path const&) noexcept; 142 auto h1 = hash_value(p1); in test_compare_basic() 143 auto h2 = hash_value(p2); in test_compare_basic() 146 ASSERT_SAME_TYPE(std::size_t, decltype(hash_value(p1))); in test_compare_basic() 147 ASSERT_NOEXCEPT(hash_value(p1)); in test_compare_basic()
|
/llvm-project/llvm/include/llvm/MC/ |
H A D | MCRegister.h | 34 friend hash_code hash_value(const MCRegister &); 127 inline hash_code hash_value(const MCRegister &Reg) { 128 return hash_value(Reg.id());
|
/llvm-project/clang/lib/Basic/ |
H A D | Sanitizers.cpp | 116 llvm::hash_code SanitizerMask::hash_value() const { 128 llvm::hash_code hash_value(const clang::SanitizerMask &Arg) { 129 return Arg.hash_value(); 56 llvm::hash_code SanitizerMask::hash_value() const { hash_value() function in SanitizerMask 68 llvm::hash_code hash_value(const clang::SanitizerMask &Arg) { hash_value() function
|
/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SCCPSolver.h | 53 friend hash_code hash_value(const ArgInfo &A) { in hash_value() function 54 return hash_combine(hash_value(A.Formal), hash_value(A.Actual)); in hash_value()
|
/llvm-project/clang/include/clang/Basic/ |
H A D | FileEntry.h | 110 friend llvm::hash_code hash_value(FileEntryRef Ref) { 111 return llvm::hash_value(&Ref.getFileEntry()); 254 return hash_value(Val); 273 return llvm::hash_value(Val); 105 friend llvm::hash_code hash_value(FileEntryRef Ref) { hash_value() function
|
H A D | DirectoryEntry.h | 56 friend llvm::hash_code hash_value(DirectoryEntryRef Ref) { in hash_value() function 57 return llvm::hash_value(&Ref.getDirEntry()); in hash_value() 221 return hash_value(Val);
|
/llvm-project/mlir/include/mlir/Support/ |
H A D | TypeID.h | 137 friend ::llvm::hash_code hash_value(TypeID id); 149 inline ::llvm::hash_code hash_value(TypeID id) { in hash_value() function 348 return mlir::hash_value(val); in MLIR_DECLARE_EXPLICIT_TYPE_ID()
|
/llvm-project/libcxx/src/filesystem/ |
H A D | path.cpp | 369 size_t hash_value(const path& __p) noexcept { in hash_value() 371 size_t hash_value = 0; in hash_value() 375 hash_value = __hash_combine(hash_value, hasher(Part)); in hash_value() 378 return hash_value; 366 size_t hash_value(const path& __p) noexcept { hash_value() function 368 size_t hash_value = 0; hash_value() local
|
/llvm-project/mlir/include/mlir/TableGen/ |
H A D | Predicate.h | 66 friend llvm::hash_code hash_value(Pred pred) { in hash_value() function 67 return llvm::hash_value(pred.def); in hash_value()
|