[all-commits] [llvm/llvm-project] 776772: [Support] Reformat SipHash.cpp to match libSupport.

Ahmed Bougacha via All-commits all-commits at lists.llvm.org
Fri Jun 14 17:06:25 PDT 2024


  Branch: refs/heads/users/ahmedbougacha/integrate-siphash-into-libsupport
  Home:   https://github.com/llvm/llvm-project
  Commit: 776772769ce955d3ffa32c1db8dc7d4f616e2a1e
      https://github.com/llvm/llvm-project/commit/776772769ce955d3ffa32c1db8dc7d4f616e2a1e
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-14 (Fri, 14 Jun 2024)

  Changed paths:
    M llvm/lib/Support/SipHash.cpp

  Log Message:
  -----------
  [Support] Reformat SipHash.cpp to match libSupport.

While there, give it our usual file header and an acknowledgement.


  Commit: aec3a9491475767e0444825b4285714d505a6c61
      https://github.com/llvm/llvm-project/commit/aec3a9491475767e0444825b4285714d505a6c61
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-14 (Fri, 14 Jun 2024)

  Changed paths:
    M llvm/lib/Support/SipHash.cpp

  Log Message:
  -----------
  [Support] Remove SipHash tracing support.


  Commit: e0343b5ed0ab486f04571b357d9bdea0b428e92b
      https://github.com/llvm/llvm-project/commit/e0343b5ed0ab486f04571b357d9bdea0b428e92b
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-14 (Fri, 14 Jun 2024)

  Changed paths:
    A llvm/include/llvm/Support/SipHash.h
    M llvm/lib/Support/CMakeLists.txt
    M llvm/lib/Support/SipHash.cpp
    M llvm/unittests/Support/CMakeLists.txt
    M llvm/unittests/Support/SipHashTest.cpp

  Log Message:
  -----------
  [Support] Integrate SipHash.cpp into libSupport.

Start building it as part of the library, with some minor
tweaks compared to the reference implementation:
- templatize cROUNDS/dROUNDS, as well as 8B/16B result type
- replace assert with static_assert
- use LLVM_FALLTHROUGH

This also exports interfaces for SipHash-2-4-64/-128, and
tests them using the reference test vectors.


Compare: https://github.com/llvm/llvm-project/compare/52ed57f69cf1...e0343b5ed0ab

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list