LLVM 24.0.0git
llvm::orc::sps::HandlerSpec< SPSSigT > Class Template Reference

Base class for specs that bind handlers for calls with the SPS signature SPSSigT. More...

#include "llvm/ExecutionEngine/Orc/SPSHandlerSpec.h"

Inheritance diagram for llvm::orc::sps::HandlerSpec< SPSSigT >:
[legend]

Public Types

using SPSSig = SPSSigT
 The call's SPS signature.

Static Public Member Functions

template<typename HandlerT>
static ExecutionSession::CallControllerHandlerFn wrap (HandlerT &&H)
 Wrap H as a handler for the call.

Detailed Description

template<typename SPSSigT>
class llvm::orc::sps::HandlerSpec< SPSSigT >

Base class for specs that bind handlers for calls with the SPS signature SPSSigT.

Derived specs add the default tag name, e.g.:

struct MyHandlerSpec : sps::HandlerSpec<int32_t(int32_t, int32_t)> {
static constexpr SymbolNameSpec Name =
SymbolNameSpec::c("my_handler_tag");
};
A symbol name together with the naming level (SymbolNameKind) it is expressed in, so that a Mangler /...
static constexpr SymbolNameSpec c(StringRef Name)
Base class for specs that bind handlers for calls with the SPS signature SPSSigT.

Use with bindCallControllerHandler.

Definition at line 41 of file SPSHandlerSpec.h.

Member Typedef Documentation

◆ SPSSig

template<typename SPSSigT>
using llvm::orc::sps::HandlerSpec< SPSSigT >::SPSSig = SPSSigT

The call's SPS signature.

Definition at line 44 of file SPSHandlerSpec.h.

Member Function Documentation

◆ wrap()

template<typename SPSSigT>
template<typename HandlerT>
ExecutionSession::CallControllerHandlerFn llvm::orc::sps::HandlerSpec< SPSSigT >::wrap ( HandlerT && H)
inlinestatic

Wrap H as a handler for the call.

H takes a sender for the call's result, followed by the call's arguments.

Definition at line 49 of file SPSHandlerSpec.h.

References H.


The documentation for this class was generated from the following file: