20#ifndef LLVM_EXECUTIONENGINE_ORC_SPSHANDLERSPEC_H
21#define LLVM_EXECUTIONENGINE_ORC_SPSHANDLERSPEC_H
48 template <
typename HandlerT>
50 return [
H = std::forward<HandlerT>(
H)](
54 ArgBytes.data(), ArgBytes.size(), std::move(Return),
H);
unique_function< void(shared::WrapperFunctionBuffer)> CallControllerReturnFn
Function type for returning results from a call-controller handler.
unique_function< void( CallControllerReturnFn, shared::WrapperFunctionBuffer)> CallControllerHandlerFn
A call-controller handler: handles calls from the executor made via the ORC runtime's call-controller...
C++ wrapper function buffer: Same as CWrapperFunctionBuffer but auto-releases memory.
Base class for specs that bind handlers for calls with the SPS signature SPSSigT.
SPSSigT SPSSig
The call's SPS signature.
static ExecutionSession::CallControllerHandlerFn wrap(HandlerT &&H)
Wrap H as a handler for the call.