[all-commits] [llvm/llvm-project] 2b22d7: [orc-rt] Implement rotl / rotr, fix missing includ...

Lang Hames via All-commits all-commits at lists.llvm.org
Wed Jan 21 21:15:26 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b22d76ba773dee4a8d07fc284e1dab2524b6b47
      https://github.com/llvm/llvm-project/commit/2b22d76ba773dee4a8d07fc284e1dab2524b6b47
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-01-22 (Thu, 22 Jan 2026)

  Changed paths:
    M orc-rt/include/orc-rt/bit.h
    M orc-rt/unittests/EndianTest.cpp
    M orc-rt/unittests/bit-test.cpp

  Log Message:
  -----------
  [orc-rt] Implement rotl / rotr, fix missing include in unit test. (#177305)

In e838f27e0f3 the EndianTest.cpp unittest was updated to avoid using
`llvm::rotl` function, but the corresponding `orc_rt::rotl` function had
not been implemented yet.

This commit implements orc_rt::rotl, orc_rt::rotr, and
orc_rt::has_single_bit by copying their definitions from the
corresponding LLVM header (llvm-project/llvm/include/llvm/ADT/bit.h).
Unit tests for these functions are also copied from their LLVM
counterparts.

Thanks to @jaredwy for spotting this!



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