28#ifndef LLVM_SUPPORT_MD5_H
29#define LLVM_SUPPORT_MD5_H
38template <
unsigned N>
class SmallString;
49 using namespace support;
50 return endian::read<uint64_t, llvm::endianness::little>(data());
54 using namespace support;
55 return endian::read<uint64_t, llvm::endianness::little>(data() + 8);
57 std::pair<uint64_t, uint64_t>
words()
const {
58 using namespace support;
59 return std::make_pair(
high(),
low());
110 using namespace support;
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
void update(ArrayRef< uint8_t > Data)
Updates the hash for the byte stream provided.
static void stringifyResult(MD5Result &Result, SmallVectorImpl< char > &Str)
Translates the bytes in Res to a hex string that is deposited into Str.
void final(MD5Result &Result)
Finishes off the hash and puts the result in result.
MD5Result result()
Finishes off the hash, and returns the 16-byte hash data.
static MD5Result hash(ArrayRef< uint8_t > Data)
Computes the hash for a given bytes.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
StringRef - Represent a constant reference to a string, i.e.
uint64_t MD5Hash(const FunctionId &Obj)
This is an optimization pass for GlobalISel generic memory operations.
ArrayRef(const T &OneElt) -> ArrayRef< T >
SmallString< 32 > digest() const
std::pair< uint64_t, uint64_t > words() const