LLVM 22.0.0git
|
Declares the hasher member, and functions forwarding directly to the hasher. More...
#include "llvm/Support/HashBuilder.h"
Public Types | |
template<typename HasherT_ = HasherT> | |
using | HashResultTy = decltype(std::declval<HasherT_ &>().final()) |
Public Member Functions | |
HasherT & | getHasher () |
void | update (ArrayRef< uint8_t > Data) |
Forward to HasherT::update(ArrayRef<uint8_t>). | |
void | update (StringRef Data) |
Forward to HasherT::update(ArrayRef<uint8_t>). | |
template<typename HasherT_ = HasherT> | |
HashResultTy< HasherT_ > | final () |
Forward to HasherT::final() if available. | |
template<typename HasherT_ = HasherT> | |
HashResultTy< HasherT_ > | result () |
Forward to HasherT::result() if available. |
Protected Member Functions | |
HashBuilderBase (HasherT &Hasher) | |
template<typename... ArgTypes> | |
HashBuilderBase (ArgTypes &&...Args) |
Declares the hasher member, and functions forwarding directly to the hasher.
Definition at line 40 of file HashBuilder.h.
using llvm::HashBuilderBase< HasherT >::HashResultTy = decltype(std::declval<HasherT_ &>().final()) |
Definition at line 43 of file HashBuilder.h.
|
inlineexplicitprotected |
|
inlineexplicitprotected |
Definition at line 78 of file HashBuilder.h.
|
inline |
Forward to HasherT::final() if available.
Definition at line 65 of file HashBuilder.h.
References getHasher().
Referenced by llvm::memprof::computeFullStackId(), and computeStackId().
|
inline |
Definition at line 45 of file HashBuilder.h.
Referenced by final(), llvm::hash_value(), result(), and update().
|
inline |
Forward to HasherT::result() if available.
Definition at line 70 of file HashBuilder.h.
References getHasher().
|
inline |
Forward to HasherT::update(ArrayRef<uint8_t>).
This may not take the size of Data into account. Users of this function should pay attention to respect endianness contraints.
Definition at line 52 of file HashBuilder.h.
References llvm::Data, and getHasher().
Referenced by llvm::HashBuilder< hashbuilder_detail::HashCodeHasher, llvm::endianness::native >::add(), llvm::HashBuilder< hashbuilder_detail::HashCodeHasher, llvm::endianness::native >::add(), llvm::HashBuilder< hashbuilder_detail::HashCodeHasher, llvm::endianness::native >::adjustForEndiannessAndAdd(), and update().
|
inline |
Forward to HasherT::update(ArrayRef<uint8_t>).
This may not take the size of Data into account. Users of this function should pay attention to respect endianness contraints.
Definition at line 59 of file HashBuilder.h.
References llvm::ArrayRef(), llvm::Data, and update().