[all-commits] [llvm/llvm-project] 61526f: [orc-rt] Add bind_front, a pre-c++-20 std::bind_fr...

Lang Hames via All-commits all-commits at lists.llvm.org
Tue Aug 26 23:06:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61526f57b4443d66592044639676af35c7a923c8
      https://github.com/llvm/llvm-project/commit/61526f57b4443d66592044639676af35c7a923c8
  Author: Lang Hames <lhames at gmail.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M orc-rt/include/CMakeLists.txt
    A orc-rt/include/orc-rt/bind.h
    M orc-rt/unittests/CMakeLists.txt
    A orc-rt/unittests/CommonTestUtils.cpp
    A orc-rt/unittests/CommonTestUtils.h
    A orc-rt/unittests/bind-test.cpp

  Log Message:
  -----------
  [orc-rt] Add bind_front, a pre-c++-20 std::bind_front substitute. (#155557)

This can be used until the ORC runtime is able to move to c++-20.

Also adds a CommonTestUtils header with a utility class, OpCounter, that
counts the number of default constructions, copy constructions and
assignments, move constructions and assignments, and destructions. This
is used to test that orc_rt::bind_front doesn't introduce unnecessary
copies / moves.



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