| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | BLAKE3.h | 43 void init() { llvm_blake3_hasher_init(&Hasher); } in init() 47 llvm_blake3_hasher_update(&Hasher, Data.data(), Data.size()); in update() 52 llvm_blake3_hasher_update(&Hasher, Str.data(), Str.size()); in update() 60 llvm_blake3_hasher_finalize(&Hasher, Result.data(), Result.size()); in final() 69 llvm_blake3_hasher_finalize(&Hasher, Result.data(), Result.size()); in final() 87 BLAKE3 Hasher; in hash() local 88 Hasher.update(Data); in hash() 89 return Hasher.final<NumBytes>(); in hash() 93 llvm_blake3_hasher Hasher;
|
| H A D | HashBuilder.h | 45 HasherT &getHasher() { return Hasher; } in getHasher() 75 explicit HashBuilderBase(HasherT &Hasher) : Hasher(Hasher) {} in HashBuilderBase() argument 80 Hasher(*OptionalHasher) {} in HashBuilderBase() 84 HasherT &Hasher; variable 98 explicit HashBuilderImpl(HasherT &Hasher) in HashBuilderImpl() argument 99 : HashBuilderBase<HasherT>(Hasher) {} in HashBuilderImpl()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | NameAnonGlobals.cpp | 40 MD5 Hasher; in get() local 45 Hasher.update(Name); in get() 51 Hasher.update(Name); in get() 56 Hasher.final(Hash); in get()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | DataCollectionTest.cpp | 75 StmtHashMatch Hasher(Hash); in hashStmt() local 77 Finder.addMatcher(StmtMatch, &Hasher); in hashStmt() 83 if (Hasher.NumFound == 0) in hashStmt() 85 if (Hasher.NumFound > 1) in hashStmt() 89 << Hasher.NumFound << ")"; in hashStmt()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | poisoned_hash_helper.h | 117 template <class Hasher, class Key, class Res = decltype(std::declval<Hasher&>()(std::declval<Key>()… 125 template <class Hasher, class Key> 127 return can_hash<Hasher, Key>(0); in can_hash()
|
| /llvm-project-15.0.7/llvm/lib/LTO/ |
| H A D | LTO.cpp | 92 SHA1 Hasher; in computeLTOCacheKey() local 95 Hasher.update(LLVM_VERSION_STRING); in computeLTOCacheKey() 97 Hasher.update(LLVM_REVISION); in computeLTOCacheKey() 102 Hasher.update(Str); in computeLTOCacheKey() 103 Hasher.update(ArrayRef<uint8_t>{0}); in computeLTOCacheKey() 108 Hasher.update(ArrayRef<uint8_t>{Data, 4}); in computeLTOCacheKey() 113 Hasher.update(ArrayRef<uint8_t>{Data, 8}); in computeLTOCacheKey() 243 Hasher.update( in computeLTOCacheKey() 309 Hasher.update(FileOrErr.get()->getBuffer()); in computeLTOCacheKey() 314 Hasher.update(FileOrErr.get()->getBuffer()); in computeLTOCacheKey() [all …]
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | CallGraph.cpp | 69 std::hash<int64_t> Hasher; in operator ()() local 70 return hashCombine(Hasher(Arc.src()), Arc.dst()); in operator ()()
|
| H A D | ReorderAlgorithm.cpp | 53 std::hash<T> Hasher; in hashCombine() local 54 Seed ^= Hasher(Val) + 0x9e3779b9 + (Seed << 6) + (Seed >> 2); in hashCombine() 59 std::hash<A> Hasher; in operator ()() local 60 size_t Seed = Hasher(Val.first); in operator ()() 116 HashPair<const BinaryBasicBlock *, const BinaryBasicBlock *> Hasher; in operator ()() local 117 return Hasher(std::make_pair(E.Src, E.Dst)); in operator ()()
|
| H A D | PettisAndHansen.cpp | 47 std::hash<int64_t> Hasher; in operator ()() local 48 return hashCombine(Hasher(int64_t(Arc.C1)), int64_t(Arc.C2)); in operator ()()
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/ |
| H A D | ResultAnalyzer.cpp | 108 std::unordered_map<FunctionId, FunctionData, FunctionId::Hasher> Functions; in getThroughputs() 149 std::unordered_map<Key, MinMax, Key::Hasher> ThroughputMinMax; in fillScores()
|
| H A D | CodeGenMain.cpp | 9 std::unordered_set<FunctionDescriptor, FunctionDescriptor::Hasher> Seen; in generateFunctionDescriptors()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | HashBuilderTest.cpp | 103 H Hasher; in TYPED_TEST() local 105 Hasher.update(llvm::makeArrayRef( in TYPED_TEST() 107 return Hasher.final(); in TYPED_TEST()
|
| /llvm-project-15.0.7/bolt/include/bolt/Passes/ |
| H A D | CallGraph.h | 24 std::hash<int64_t> Hasher; in hashCombine() local 25 return Seed ^ (Hasher(Val) + 0x9e3779b9 + (Seed << 6) + (Seed >> 2)); in hashCombine()
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/include/automemcpy/ |
| H A D | FunctionDescriptor.h | 28 struct Hasher { \
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeAnalyzer.cpp | 906 SHA1 Hasher; in parseBlock() local 908 Hasher.update(*CheckHash); in parseBlock() 912 Hasher.update(ArrayRef<uint8_t>(Ptr, BlockSize)); in parseBlock() 913 Hash = Hasher.result(); in parseBlock()
|
| /llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/ |
| H A D | MachOWriter.cpp | 526 SHA256 Hasher; in writeCodeSignatureData() local 527 Hasher.update(Block); in writeCodeSignatureData() 528 std::array<uint8_t, 32> Hash = Hasher.final(); in writeCodeSignatureData()
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | MemProf.h | 235 std::hash<decltype(Value)> Hasher; in hash() local 239 return Hasher(Value) + 0x9e3779b97f4a7c15 + (Seed << 6) + (Seed >> 2); in hash()
|
| /llvm-project-15.0.7/lld/MachO/ |
| H A D | SyntheticSections.h | 591 template <class T> struct Hasher { struct 597 std::unordered_map<UInt128, uint64_t, Hasher<UInt128>> literal16Map; argument
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | GCOV.cpp | 651 MD5 Hasher; in getCoveragePath() local 653 Hasher.update(filename.str()); in getCoveragePath() 654 Hasher.final(Result); in getCoveragePath()
|
| /llvm-project-15.0.7/llvm/tools/sancov/ |
| H A D | sancov.cpp | 902 SHA1 Hasher; in symbolize() local 903 Hasher.update((*BufOrErr)->getBuffer()); in symbolize() 904 Coverage->BinaryHash = toHex(Hasher.final()); in symbolize()
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | DebugData.cpp | 1142 llvm::SHA1 Hasher; in addUnitAbbreviations() local 1143 Hasher.update(AbbrevData); in addUnitAbbreviations() 1144 std::array<uint8_t, 20> Hash = Hasher.final(); in addUnitAbbreviations()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | HWAddressSanitizer.cpp | 1609 MD5 Hasher; in instrumentGlobals() local 1610 Hasher.update(M.getSourceFileName()); in instrumentGlobals() 1612 Hasher.final(Hash); in instrumentGlobals()
|
| /llvm-project-15.0.7/llvm/lib/Support/BLAKE3/ |
| H A D | README.md | 98 llvm_blake3_hasher Hasher;
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 9482 ODRHash Hasher; in computeODRHash() local 9483 Hasher.AddQualType(Ty); in computeODRHash() 9484 return Hasher.CalculateHash(); in computeODRHash() 9488 ODRHash Hasher; in computeODRHash() local 9489 Hasher.AddStmt(S); in computeODRHash() 9490 return Hasher.CalculateHash(); in computeODRHash() 9495 ODRHash Hasher; in computeODRHash() local 9496 Hasher.AddSubDecl(D); in computeODRHash() 9497 return Hasher.CalculateHash(); in computeODRHash() 9501 ODRHash Hasher; in computeODRHash() local [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | MicrosoftMangle.cpp | 71 llvm::MD5 Hasher; in ~msvc_hashing_ostream() local 73 Hasher.update(MangledName); in ~msvc_hashing_ostream() 74 Hasher.final(Hash); in ~msvc_hashing_ostream()
|