diff options
author | Brendan Duke <brendanw.duke@gmail.com> | 2024-06-19 15:24:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 15:24:54 -0400 |
commit | f991ebbb465301a1382d6ce15a346b4edc3cfce2 (patch) | |
tree | 08280f429b340b30a65f045b665637ed0e9e529a /llvm/lib/IR/Module.cpp | |
parent | c008647b3a60efdbb5499c3df2b3e403728c29da (diff) | |
download | llvm-f991ebbb465301a1382d6ce15a346b4edc3cfce2.zip llvm-f991ebbb465301a1382d6ce15a346b4edc3cfce2.tar.gz llvm-f991ebbb465301a1382d6ce15a346b4edc3cfce2.tar.bz2 |
[Support] Add llvm::xxh3_128bits (#95863)
Add a 128-bit xxhash function, following the existing
`llvm::xxh3_64bits` and `llvm::xxHash` implementations. Previously,
48e93f57f1ee914ca29aa31bf2ccd916565a3610 added support for
`llvm::xxh3_64bits`, which closely follows the upstream implementation
at https://github.com/Cyan4973/xxHash, with simplifications from Devin
Hussey's xxhash-clean.
However, it is desirable to have a larger 128-bit hash key for use cases
such as filesystem checksums where chance of collision needs to be
negligible.
So to that end this also ports over the 128-bit xxh3_128bits as
`llvm::xxh3_128bits`.
Testing:
- Add a test based on xsum_sanity_check.c in upstream xxhash.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions