[all-commits] [llvm/llvm-project] 576584: [orc-rt] Add return serialization to AllocActionFu...

Lang Hames via All-commits all-commits at lists.llvm.org
Tue Jun 23 00:07:13 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 576584794d9124c7228f4599e757dc909a534f1c
      https://github.com/llvm/llvm-project/commit/576584794d9124c7228f4599e757dc909a534f1c
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

  Changed paths:
    M orc-rt/include/orc-rt/AllocAction.h
    M orc-rt/include/orc-rt/SPSAllocAction.h
    M orc-rt/unittests/AllocActionTest.cpp

  Log Message:
  -----------
  [orc-rt] Add return serialization to AllocActionFunction::handle. (#205271)

Add a Serializer template parameter to AllocActionFunction::handle and
apply it to the handler's return value before forwarding as the action
result. This lets handler authors return types other than
WrapperFunctionBuffer.

For SPS, AllocActionSPSSerializer is the default Serializer used by
SPSAllocActionFunction::handle. It accepts either:
- WrapperFunctionBuffer (identity pass-through, the existing behavior),
or
- Error (success → empty WFB; failure → out-of-band-error WFB carrying
toString(Err)).

Adds AllocActionTest coverage for both Error-return paths.



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