diff options
author | Lang Hames <lhames@gmail.com> | 2025-10-06 15:46:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-06 15:46:42 +1100 |
commit | 36cfdebe927c34508c1e245b459da43b745ae620 (patch) | |
tree | be85d4aac3f8d6ee9d06655d9996679ddc46f0fa /llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp | |
parent | 6b1604ac30082cd7316f06c2b904cb23af95468e (diff) | |
download | llvm-36cfdebe927c34508c1e245b459da43b745ae620.zip llvm-36cfdebe927c34508c1e245b459da43b745ae620.tar.gz llvm-36cfdebe927c34508c1e245b459da43b745ae620.tar.bz2 |
[orc-rt] Add method-wrapper utils for use with WrapperFunction::handle. (#162035)
WrapperFunction::handleWithAsyncMethod can be used to wrap asynchronous
methods (void methods whose first arguments are Return callbacks) for
use with WrapperFunction::handle.
WrapperFunction::handleWithSyncMethod can be used to wrap regular
(non-asynchronous) methods for use with WrapperFunction::handle.
Both variants return function objects that take a Return callback as
their first argument, and an ExecutorAddr representing the address of
the instance to call the object on. For asynchronous methods the
resulting function object (AsyncMethod<method-ptr>) forwards the Return
callback through to the method. For synchronous methods the method is
called and the result passed to the Return callback.
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp')
0 files changed, 0 insertions, 0 deletions