Go to the documentation of this file.
28 #ifndef LLVM_SUPPORT_MD5_H
29 #define LLVM_SUPPORT_MD5_H
38 template <
unsigned N>
class SmallString;
39 template <
typename T>
class ArrayRef;
50 return endian::read<uint64_t, little, unaligned>(data());
55 return endian::read<uint64_t, little, unaligned>(data() + 8);
57 std::pair<uint64_t, uint64_t>
words()
const {
59 return std::make_pair(
high(),
low());
72 void final(MD5Result &Result);
122 #endif // LLVM_SUPPORT_MD5_H
This is an optimization pass for GlobalISel generic memory operations.
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.
=0.0 ? 0.0 :(a > 0.0 ? 1.0 :-1.0) a
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.
StringRef - Represent a constant reference to a string, i.e.
std::pair< uint64_t, uint64_t > words() const
Reimplement select in terms of SEL *We would really like to support but we need to prove that the add doesn t need to overflow between the two bit chunks *Implement pre post increment support(e.g. PR935) *Implement smarter const ant generation for binops with large immediates. A few ARMv6T2 ops should be pattern matched
static MD5Result hash(ArrayRef< uint8_t > Data)
Computes the hash for a given bytes.
uint64_t MD5Hash(StringRef Str)
Helper to compute and return lower 64 bits of the given string's MD5 hash.
SmallString< 32 > digest() const