LLVM: llvm::orc::shared::WrapperFunctionResult Class Reference (original) (raw)

C++ wrapper function result: Same as CWrapperFunctionResult but auto-releases memory. More...

#include "[llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h](WrapperFunctionUtils%5F8h%5Fsource.html)"

Public Member Functions
WrapperFunctionResult ()
Create a default WrapperFunctionResult.
WrapperFunctionResult (CWrapperFunctionResult R)
Create a WrapperFunctionResult by taking ownership of a CWrapperFunctionResult.
WrapperFunctionResult (const WrapperFunctionResult &)=delete
WrapperFunctionResult & operator= (const WrapperFunctionResult &)=delete
WrapperFunctionResult (WrapperFunctionResult &&Other)
WrapperFunctionResult & operator= (WrapperFunctionResult &&Other)
~WrapperFunctionResult ()
CWrapperFunctionResult release ()
Release ownership of the contained CWrapperFunctionResult.
char * data ()
Get a pointer to the data contained in this instance.
const char * data () const
Get a const pointer to the data contained in this instance.
size_t size () const
Returns the size of the data contained in this instance.
bool empty () const
Returns true if this value is equivalent to a default-constructed WrapperFunctionResult.
const char * getOutOfBandError () const
If this value is an out-of-band error then this returns the error message, otherwise returns nullptr.
Static Public Member Functions
static WrapperFunctionResult allocate (size_t Size)
Create a WrapperFunctionResult with the given size and return a pointer to the underlying memory.
static WrapperFunctionResult copyFrom (const char *Source, size_t Size)
Copy from the given char range.
static WrapperFunctionResult copyFrom (const char *Source)
Copy from the given null-terminated string (includes the null-terminator).
static WrapperFunctionResult copyFrom (const std::string &Source)
Copy from the given std::string (includes the null terminator).
static WrapperFunctionResult createOutOfBandError (const char *Msg)
Create an out-of-band error by copying the given string.
static WrapperFunctionResult createOutOfBandError (const std::string &Msg)
Create an out-of-band error by copying the given string.

C++ wrapper function result: Same as CWrapperFunctionResult but auto-releases memory.

Definition at line 40 of file WrapperFunctionUtils.h.

llvm::orc::shared::WrapperFunctionResult::WrapperFunctionResult ( ) inline

WrapperFunctionResult() [2/4]

WrapperFunctionResult() [3/4]

WrapperFunctionResult() [4/4]

~WrapperFunctionResult()

llvm::orc::shared::WrapperFunctionResult::~WrapperFunctionResult ( ) inline

allocate()

copyFrom() [1/3]

copyFrom() [2/3]

copyFrom() [3/3]

createOutOfBandError() [1/2]

Create an out-of-band error by copying the given string.

Definition at line 140 of file WrapperFunctionUtils.h.

References llvm::orc::shared::CWrapperFunctionResult::Data, llvm::orc::shared::CWrapperFunctionResultDataUnion::ValuePtr, and WrapperFunctionResult().

Referenced by llvm::orc::shared::detail::WrapperFunctionHandlerHelper< RetT(ArgTs...), ResultSerializer, SPSTagTs... >::apply(), llvm::orc::shared::detail::WrapperFunctionAsyncHandlerHelper< RetT(SendResultT, ArgTs...), ResultSerializer, SPSTagTs... >::applyAsync(), llvm::orc::SimpleRemoteEPC::callWrapperAsync(), createOutOfBandError(), llvm::orc::SimpleRemoteEPC::handleDisconnect(), llvm::orc::SimpleRemoteEPCServer::handleDisconnect(), llvm::orc::ExecutionSession::runJITDispatchHandler(), and llvm::orc::shared::detail::serializeViaSPSToWrapperFunctionResult().

createOutOfBandError() [2/2]

data() [1/2]

char * llvm::orc::shared::WrapperFunctionResult::data ( ) inline

data() [2/2]

const char * llvm::orc::shared::WrapperFunctionResult::data ( ) const inline

empty()

bool llvm::orc::shared::WrapperFunctionResult::empty ( ) const inline

getOutOfBandError()

const char * llvm::orc::shared::WrapperFunctionResult::getOutOfBandError ( ) const inline

operator=() [1/2]

operator=() [2/2]

release()

Release ownership of the contained CWrapperFunctionResult.

Warning: Do not use – this method will be removed in the future. It only exists to temporarily support some code that will eventually be moved to the ORC runtime.

Definition at line 79 of file WrapperFunctionUtils.h.

References std::swap().

size()

size_t llvm::orc::shared::WrapperFunctionResult::size ( ) const inline

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