| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | StableHashing.h | 37 Hash = Hash ^ (Value & 0xFF); in stable_hash_append() 38 Hash = Hash * FNV_PRIME_64; in stable_hash_append() 53 hashing::detail::stable_hash_append(Hash, A); in stable_hash_combine() 54 hashing::detail::stable_hash_append(Hash, B); in stable_hash_combine() 55 return Hash; in stable_hash_combine() 61 hashing::detail::stable_hash_append(Hash, A); in stable_hash_combine() 64 return Hash; in stable_hash_combine() 74 return Hash; in stable_hash_combine() 89 return Hash; in stable_hash_combine_range() 96 return Hash; in stable_hash_combine_array() [all …]
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | poisoned_hash_helper.h | 26 template <class Hash, class Key, class InputKey = Key> 35 template <class Hash, class Key> 131 template <class Hash, class Key, class InputKey> 150 static_assert(can_hash<Hash, Key&>(), ""); in test_hash_enabled() 151 static_assert(can_hash<Hash, Key const&>(), ""); in test_hash_enabled() 152 static_assert(can_hash<Hash, Key&&>(), ""); in test_hash_enabled() 153 static_assert(can_hash<Hash const, Key&>(), ""); in test_hash_enabled() 166 const Hash h{}; in test_hash_enabled() 171 template <class Hash, class Key> 189 static_assert(!can_hash<Hash, Key&>(), ""); in test_hash_disabled() [all …]
|
| /llvm-project-15.0.7/clang/test/Profile/Inputs/ |
| H A D | cxx-hash-v2.proftext | 2 # Func Hash: 11 # Func Hash: 20 # Func Hash: 29 # Func Hash: 38 # Func Hash: 48 # Func Hash: 60 # Func Hash: 72 # Func Hash: 81 # Func Hash: 91 # Func Hash: [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | SimpleHashTest.cpp | 17 uint32_t Hash = 0x12039854; in simple_hash() local 19 Hash += Data[i]; in simple_hash() 20 Hash += (Hash << 10); in simple_hash() 21 Hash ^= (Hash >> 6); in simple_hash() 23 Hash += (Hash << 3); in simple_hash() 24 Hash ^= (Hash >> 11); in simple_hash() 25 Hash += (Hash << 15); in simple_hash() 26 return Hash; in simple_hash() 33 uint32_t Hash = simple_hash(&Data[0], Size - 4); in LLVMFuzzerTestOneInput() local 35 if (Hash != Want) in LLVMFuzzerTestOneInput() [all …]
|
| H A D | CrossOverTest.cpp | 27 uint32_t Hash = 0x12039854; in simple_hash() local 29 Hash += Data[i]; in simple_hash() 30 Hash += (Hash << 10); in simple_hash() 31 Hash ^= (Hash >> 6); in simple_hash() 33 Hash += (Hash << 3); in simple_hash() 34 Hash ^= (Hash >> 11); in simple_hash() 35 Hash += (Hash << 15); in simple_hash() 36 return Hash; in simple_hash()
|
| /llvm-project-15.0.7/llvm/test/Transforms/PGOProfile/Inputs/ |
| H A D | cspgo.proftext | 4 # Func Hash: 13 # Func Hash: 22 # Func Hash: 30 # Func Hash: 38 # Func Hash: 47 # Func Hash: 56 # Func Hash: 73 # Func Hash: 82 # Func Hash: 94 # Func Hash: [all …]
|
| H A D | thinlto_cs.proftext | 4 # Func Hash: 12 # Func Hash: 21 # Func Hash: 30 # Func Hash: 39 # Func Hash: 47 # Func Hash: 55 # Func Hash: 66 # Func Hash:
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multiset/ |
| H A D | swap_member.pass.cpp | 30 typedef test_hash<int> Hash; in main() typedef 58 typedef test_hash<int> Hash; in main() typedef 106 typedef test_hash<int> Hash; in main() typedef 148 typedef test_hash<int> Hash; in main() typedef 210 typedef test_hash<int> Hash; in main() typedef 238 typedef test_hash<int> Hash; in main() typedef 286 typedef test_hash<int> Hash; in main() typedef 328 typedef test_hash<int> Hash; in main() typedef 390 typedef test_hash<int> Hash; in main() typedef 418 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.set/unord.set.swap/ |
| H A D | swap_non_member.pass.cpp | 30 typedef test_hash<int> Hash; in main() typedef 58 typedef test_hash<int> Hash; in main() typedef 108 typedef test_hash<int> Hash; in main() typedef 152 typedef test_hash<int> Hash; in main() typedef 218 typedef test_hash<int> Hash; in main() typedef 246 typedef test_hash<int> Hash; in main() typedef 294 typedef test_hash<int> Hash; in main() typedef 336 typedef test_hash<int> Hash; in main() typedef 398 typedef test_hash<int> Hash; in main() typedef 426 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.set/ |
| H A D | swap_member.pass.cpp | 30 typedef test_hash<int> Hash; in main() typedef 58 typedef test_hash<int> Hash; in main() typedef 106 typedef test_hash<int> Hash; in main() typedef 148 typedef test_hash<int> Hash; in main() typedef 210 typedef test_hash<int> Hash; in main() typedef 238 typedef test_hash<int> Hash; in main() typedef 286 typedef test_hash<int> Hash; in main() typedef 328 typedef test_hash<int> Hash; in main() typedef 390 typedef test_hash<int> Hash; in main() typedef 418 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/ |
| H A D | swap_non_member.pass.cpp | 30 typedef test_hash<int> Hash; in main() typedef 58 typedef test_hash<int> Hash; in main() typedef 108 typedef test_hash<int> Hash; in main() typedef 152 typedef test_hash<int> Hash; in main() typedef 218 typedef test_hash<int> Hash; in main() typedef 246 typedef test_hash<int> Hash; in main() typedef 294 typedef test_hash<int> Hash; in main() typedef 336 typedef test_hash<int> Hash; in main() typedef 398 typedef test_hash<int> Hash; in main() typedef 426 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-cov/Inputs/ |
| H A D | branch-c-general.proftext | 2 # Func Hash: 26 # Func Hash: 47 # Func Hash: 67 # Func Hash: 76 # Func Hash: 86 # Func Hash: 106 # Func Hash: 117 # Func Hash: 133 # Func Hash: 162 # Func Hash: [all …]
|
| H A D | name_allowlist.proftext | 2 # Func Hash: 10 # Func Hash: 18 # Func Hash: 26 # Func Hash: 34 # Func Hash: 42 # Func Hash: 50 # Func Hash:
|
| H A D | name_whitelist.proftext | 2 # Func Hash: 10 # Func Hash: 18 # Func Hash: 26 # Func Hash: 34 # Func Hash: 42 # Func Hash: 50 # Func Hash:
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | raw_sha1_ostream_test.cpp | 34 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local 36 ASSERT_EQ("2EF7BDE608CE5404E97D5F042F95F89F1C232871", Hash); in TEST() 42 std::string Hash = toHex(Vec); in TEST() local 43 ASSERT_EQ("2EF7BDE608CE5404E97D5F042F95F89F1C232871", Hash); in TEST() 58 std::string Hash = toHex(sha1.final()); in TEST() local 59 ASSERT_EQ("3E4A614101AD84985AB0FE54DC12A6D71551E5AE", Hash); in TEST() 67 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local 71 Hash = toHex(Sha1Stream.sha1()); in TEST() 78 ASSERT_EQ(NonSplitHash, Hash); in TEST() 84 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local [all …]
|
| H A D | MD5Test.cpp | 23 MD5 Hash; in TestMD5Sum() local 24 Hash.update(Input); in TestMD5Sum() 26 Hash.final(MD5Res); in TestMD5Sum() 33 MD5 Hash; in TestMD5Sum() local 34 Hash.update(Input); in TestMD5Sum() 36 Hash.final(MD5Res); in TestMD5Sum() 73 MD5 Hash; in TEST() local 75 Hash.update("abcd"); in TEST() 82 EXPECT_EQ(Hash.result(), ReferenceResult); in TEST() 85 Hash.update("xyz"); in TEST() [all …]
|
| H A D | BLAKE3Test.cpp | 24 BLAKE3 Hash; in TestBLAKE3Sum() local 25 Hash.update(Input); in TestBLAKE3Sum() 26 auto hash = Hash.final(); in TestBLAKE3Sum() 55 BLAKE3 Hash; in TEST() local 57 Hash.update({reinterpret_cast<const uint8_t *>(rep.data()), rep.size()}); in TEST() 59 auto hash = Hash.final(); in TEST() 77 BLAKE3 Hash; in TEST() local 78 Hash.update(Input); in TEST() 79 auto hash1 = Hash.final<16>(); in TEST()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
| H A D | swap_non_member.pass.cpp | 31 typedef test_hash<int> Hash; in main() typedef 59 typedef test_hash<int> Hash; in main() typedef 109 typedef test_hash<int> Hash; in main() typedef 153 typedef test_hash<int> Hash; in main() typedef 219 typedef test_hash<int> Hash; in main() typedef 247 typedef test_hash<int> Hash; in main() typedef 295 typedef test_hash<int> Hash; in main() typedef 337 typedef test_hash<int> Hash; in main() typedef 399 typedef test_hash<int> Hash; in main() typedef 427 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/ |
| H A D | swap_member.pass.cpp | 32 typedef test_hash<int> Hash; in main() typedef 60 typedef test_hash<int> Hash; in main() typedef 108 typedef test_hash<int> Hash; in main() typedef 150 typedef test_hash<int> Hash; in main() typedef 212 typedef test_hash<int> Hash; in main() typedef 240 typedef test_hash<int> Hash; in main() typedef 288 typedef test_hash<int> Hash; in main() typedef 330 typedef test_hash<int> Hash; in main() typedef 392 typedef test_hash<int> Hash; in main() typedef 420 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/Inputs/ |
| H A D | multiple-profdata-merge.proftext | 4 # Func Hash: 15 # Func Hash: 28 # Func Hash: 38 # Func Hash: 51 # Func Hash: 59 # Func Hash: 67 # Func Hash: 75 # Func Hash: 83 # Func Hash: 91 # Func Hash: [all …]
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | Hash.cpp | 57 uint32_t Hash = 0xb170a1bf; in hashStringV2() local 65 Hash += Item; in hashStringV2() 66 Hash += (Hash << 10); in hashStringV2() 67 Hash ^= (Hash >> 6); in hashStringV2() 71 Hash += Item; in hashStringV2() 72 Hash += (Hash << 10); in hashStringV2() 73 Hash ^= (Hash >> 6); in hashStringV2() 76 return Hash * 1664525U + 1013904223U; in hashStringV2()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | CachedHashString.h | 32 uint32_t Hash; variable 40 : P(S.data()), Size(S.size()), Hash(Hash) { in CachedHashStringRef() 47 uint32_t hash() const { return Hash; } in hash() 77 uint32_t Hash; 104 CachedHashString(StringRef S, uint32_t Hash) 105 : P(new char[S.size()]), Size(S.size()), Hash(Hash) { 112 : Size(Other.Size), Hash(Other.Hash) { 127 : P(Other.P), Size(Other.Size), Hash(Other.Hash) { 138 uint32_t hash() const { return Hash; } 142 return CachedHashStringRef(val(), Hash); [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/ |
| H A D | swap_non_member.pass.cpp | 34 typedef test_hash<int> Hash; in main() typedef 62 typedef test_hash<int> Hash; in main() typedef 112 typedef test_hash<int> Hash; in main() typedef 161 typedef test_hash<int> Hash; in main() typedef 232 typedef test_hash<int> Hash; in main() typedef 260 typedef test_hash<int> Hash; in main() typedef 308 typedef test_hash<int> Hash; in main() typedef 355 typedef test_hash<int> Hash; in main() typedef 422 typedef test_hash<int> Hash; in main() typedef 450 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multimap/ |
| H A D | swap_member.pass.cpp | 34 typedef test_hash<int> Hash; in main() typedef 62 typedef test_hash<int> Hash; in main() typedef 110 typedef test_hash<int> Hash; in main() typedef 166 typedef test_hash<int> Hash; in main() typedef 242 typedef test_hash<int> Hash; in main() typedef 270 typedef test_hash<int> Hash; in main() typedef 318 typedef test_hash<int> Hash; in main() typedef 374 typedef test_hash<int> Hash; in main() typedef 450 typedef test_hash<int> Hash; in main() typedef 478 typedef test_hash<int> Hash; in main() typedef [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ODRHash.cpp | 243 ODRHash &Hash; member in __anonfecede4a0111::ODRDeclVisitor 247 : ID(ID), Hash(Hash) {} in ODRDeclVisitor() 250 Hash.AddBoolean(S); in AddStmt() 252 Hash.AddStmt(S); in AddStmt() 268 Hash.AddBoolean(D); in AddDecl() 270 Hash.AddDecl(D); in AddDecl() 661 ODRHash &Hash; member in __anonfecede4a0211::ODRTypeVisitor 665 : ID(ID), Hash(Hash) {} in ODRTypeVisitor() 670 Hash.AddStmt(S); in AddStmt() 677 Hash.AddDecl(D); in AddDecl() [all …]
|