/freebsd/contrib/llvm-project/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 | 46 HasherT &getHasher() { return Hasher; } in getHasher() 76 explicit HashBuilderBase(HasherT &Hasher) : Hasher(Hasher) {} in HashBuilderBase() argument 81 Hasher(*OptionalHasher) {} in HashBuilderBase() 85 HasherT &Hasher; variable 141 explicit HashBuilder(HasherT &Hasher) : HashBuilderBase<HasherT>(Hasher) {} in add() 99 HashBuilderImpl(HasherT & Hasher) HashBuilderImpl() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | NameAnonGlobals.cpp | 38 MD5 Hasher; in get() local 43 Hasher.update(Name); in get() 49 Hasher.update(Name); in get() 54 Hasher.final(Hash); in get()
|
H A D | AMDGPUEmitPrintf.cpp | 483 MD5 Hasher; in emitAMDGPUPrintfCall() local 485 Hasher.update(FmtStr); in emitAMDGPUPrintfCall() 486 Hasher.final(Hash); in emitAMDGPUPrintfCall()
|
/freebsd/contrib/llvm-project/llvm/lib/LTO/ |
H A D | LTO.cpp | 104 SHA1 Hasher; in computeLTOCacheKey() local 107 Hasher.update(LLVM_VERSION_STRING); in computeLTOCacheKey() 109 Hasher.update(LLVM_REVISION); in computeLTOCacheKey() 114 Hasher.update(Str); in computeLTOCacheKey() 115 Hasher.update(ArrayRef<uint8_t>{0}); in computeLTOCacheKey() 120 Hasher.update(Data); in computeLTOCacheKey() 125 Hasher.update(Data); in computeLTOCacheKey() 128 Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&I, 1)); in computeLTOCacheKey() 163 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&ModHash[0], sizeof(ModHash))); in computeLTOCacheKey() 175 Hasher.update(ArrayRef<uint8_t>((uint8_t *)&GUID, sizeof(GUID))); in computeLTOCacheKey() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ODRDiagsEmitter.cpp | 19 ODRHash Hasher; in computeODRHash() local 20 Hasher.AddQualType(Ty); in computeODRHash() 21 return Hasher.CalculateHash(); in computeODRHash() 25 ODRHash Hasher; in computeODRHash() local 26 Hasher.AddStmt(S); in computeODRHash() 27 return Hasher.CalculateHash(); in computeODRHash() 32 ODRHash Hasher; in computeODRHash() local 33 Hasher.AddSubDecl(D); in computeODRHash() 34 return Hasher.CalculateHash(); in computeODRHash() 38 ODRHash Hasher; in computeODRHash() local [all …]
|
H A D | DeclObjC.cpp | 799 ODRHash Hasher; in getODRHash() local 800 Hasher.AddObjCInterfaceDecl(getDefinition()); in getODRHash() 801 data().ODRHash = Hasher.CalculateHash(); in getODRHash() 2092 ODRHash Hasher; in getODRHash() local 2093 Hasher.AddObjCProtocolDecl(getDefinition()); in getODRHash() 2094 data().ODRHash = Hasher.CalculateHash(); in getODRHash()
|
H A D | StmtProfile.cpp | 2091 ODRHash Hasher; in VisitLambdaExpr() local 2105 Hasher.AddFunctionDecl(Call, /*SkipBody=*/true); in VisitLambdaExpr() 2107 ID.AddInteger(Hasher.CalculateHash()); in VisitLambdaExpr()
|
H A D | MicrosoftMangle.cpp | 74 llvm::MD5 Hasher; in ~msvc_hashing_ostream() local 76 Hasher.update(MangledName); in ~msvc_hashing_ostream() 77 Hasher.final(Hash); in ~msvc_hashing_ostream()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MIRFSDiscriminator.cpp | 80 std::hash<uint64_t> Hasher; in getCallStackHash() 81 return Seed ^ (Hasher(Val) + 0x9e3779b9 + (Seed << 6) + (Seed >> 2)); in getCallStackHash() 78 std::hash<uint64_t> Hasher; getCallStackHash() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXCtorDtorLowering.cpp | 45 llvm::MD5 Hasher; in getHash() local 47 Hasher.update(Str); in getHash() 48 Hasher.final(Hash); in getHash()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeAnalyzer.cpp | 919 SHA1 Hasher; in parseBlock() local 921 Hasher.update(*CheckHash); in parseBlock() 925 Hasher.update(ArrayRef<uint8_t>(Ptr, BlockSize)); in parseBlock() 926 Hash = Hasher.result(); in parseBlock()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/ |
H A D | MachOWriter.cpp | 527 SHA256 Hasher; in writeCodeSignatureData() local 528 Hasher.update(Block); in writeCodeSignatureData() 529 std::array<uint8_t, 32> Hash = Hasher.final(); in writeCodeSignatureData()
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | GCOV.cpp | 686 MD5 Hasher; in getCoveragePath() local 688 Hasher.update(filename.str()); in getCoveragePath() 689 Hasher.final(Result); in getCoveragePath()
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | SyntheticSections.h | 630 template <class T> struct Hasher { struct 636 std::unordered_map<UInt128, uint64_t, Hasher<UInt128>> literal16Map; argument
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | MemProf.h | 316 std::hash<decltype(Value)> Hasher; in hash() local 320 return Hasher(Value) + 0x9e3779b97f4a7c15 + (Seed << 6) + (Seed >> 2); in hash()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | HWAddressSanitizer.cpp | 1771 MD5 Hasher; in instrumentGlobals() local 1772 Hasher.update(M.getSourceFileName()); in instrumentGlobals() 1774 Hasher.final(Hash); in instrumentGlobals()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTWriter.cpp | 1178 llvm::SHA1 Hasher; in createSignature() local 1179 Hasher.update(AllBytes.slice(ASTBlockRange.first, ASTBlockRange.second)); in createSignature() 1180 ASTFileSignature ASTBlockHash = ASTFileSignature::create(Hasher.result()); in createSignature() 1184 Hasher.update(AllBytes.slice(0, UnhashedControlBlockRange.first)); in createSignature() 1186 Hasher.update( in createSignature() 1189 Hasher.update(AllBytes.slice(ASTBlockRange.second, StringRef::npos)); in createSignature() 1190 ASTFileSignature Signature = ASTFileSignature::create(Hasher.result()); in createSignature() 1196 llvm::SHA1 Hasher; in createSignatureForNamedModule() local 1197 Hasher.update(StringRef(Buffer.data(), Buffer.size())); in createSignatureForNamedModule() 1205 Hasher.update(ExportImported->Signature); in createSignatureForNamedModule() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/BLAKE3/ |
H A D | README.md | 98 llvm_blake3_hasher Hasher;
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 271 SHA1 Hasher; member in __anoneb218b5c0111::ModuleBitcodeWriter 1343 Hasher.update(Str); in addToStrtab() 4851 Hasher.update(ArrayRef<uint8_t>( in writeModuleHash() 4853 std::array<uint8_t, 20> Hash = Hasher.result(); in writeModuleHash()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ |
H A D | Driver.cpp | 3040 llvm::MD5 Hasher; in addDeviceDependences() local 3045 Hasher.update(RealPath); in addDeviceDependences() 3049 Hasher.update(A->getAsString(Args)); in addDeviceDependences() 3051 Hasher.final(Hash); in addDeviceDependences()
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | __hash_table | 1104 static_assert(is_copy_constructible<hasher>::value, "Hasher must be copy-constructible.");
|