LLVM: llvm::orc::shared::WrapperFunctionCall Class Reference (original) (raw)
Represents a serialized wrapper function call. More...
#include "[llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h](WrapperFunctionUtils%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| WrapperFunctionCall ()=default | |
| WrapperFunctionCall (ExecutorAddr FnAddr, ArgDataBufferType ArgData) | |
| Create a WrapperFunctionCall from a target function and arg buffer. | |
| const ExecutorAddr & | getCallee () const |
| Returns the address to be called. | |
| const ArgDataBufferType & | getArgData () const |
| Returns the argument data. | |
| operator bool () const | |
| WrapperFunctionCalls convert to true if the callee is non-null. | |
| shared::WrapperFunctionResult | run () const |
| Run call returning raw WrapperFunctionResult. | |
| template<typename SPSRetT, typename RetT> | |
| std::enable_if_t<!std::is_same< SPSRetT, void >::value, Error > | runWithSPSRet (RetT &RetVal) const |
| Run call and deserialize result using SPS. | |
| template | |
| std::enable_if_t< std::is_same< SPSRetT, void >::value, Error > | runWithSPSRet () const |
| Overload for SPS functions returning void. | |
| Error | runWithSPSRetErrorMerged () const |
| Run call and deserialize an SPSError result. |
Represents a serialized wrapper function call.
Serializing calls themselves allows us to batch them: We can make one "run-wrapper-functions" utility and send it a list of calls to run.
The motivating use-case for this API is JITLink allocation actions, where we want to run multiple functions to finalize linked memory without having to make separate IPC calls for each one.
Definition at line 630 of file WrapperFunctionUtils.h.
◆ ArgDataBufferType
| llvm::orc::shared::WrapperFunctionCall::WrapperFunctionCall ( ) | default |
|---|
◆ WrapperFunctionCall() [2/2]
| llvm::orc::shared::WrapperFunctionCall::WrapperFunctionCall ( ExecutorAddr FnAddr, ArgDataBufferType ArgData ) | inline |
|---|
◆ Create()
template<typename SPSSerializer, typename... ArgTs>
◆ getArgData()
| const ArgDataBufferType & llvm::orc::shared::WrapperFunctionCall::getArgData ( ) const | inline |
|---|
◆ getCallee()
| const ExecutorAddr & llvm::orc::shared::WrapperFunctionCall::getCallee ( ) const | inline |
|---|
◆ operator bool()
| llvm::orc::shared::WrapperFunctionCall::operator bool ( ) const | inlineexplicit |
|---|
◆ run()
◆ runWithSPSRet() [1/2]
template
| std::enable_if_t< std::is_same< SPSRetT, void >::value, Error > llvm::orc::shared::WrapperFunctionCall::runWithSPSRet ( ) const | inline |
|---|
◆ runWithSPSRet() [2/2]
template<typename SPSRetT, typename RetT>
| std::enable_if_t<!std::is_same< SPSRetT, void >::value, Error > llvm::orc::shared::WrapperFunctionCall::runWithSPSRet ( RetT & RetVal) const | inline |
|---|
◆ runWithSPSRetErrorMerged()
| Error llvm::orc::shared::WrapperFunctionCall::runWithSPSRetErrorMerged ( ) const | inline |
|---|
The documentation for this class was generated from the following file:
- include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h