/llvm-project/llvm/unittests/ExecutionEngine/Orc/ |
H A D | WrapperFunctionUtilsTest.cpp | 25 WrapperFunctionResult R; in TEST() 32 auto R = WrapperFunctionResult::copyFrom(TestString, strlen(TestString) + 1); in TEST() 40 auto R = WrapperFunctionResult::copyFrom(TestString); in TEST() 48 auto R = WrapperFunctionResult::copyFrom(std::string(TestString)); in TEST() 56 auto R = WrapperFunctionResult::createOutOfBandError(TestString); in TEST() 76 static WrapperFunctionResult voidNoopWrapper(const char *ArgData, in voidNoopWrapper() 81 static WrapperFunctionResult addWrapper(const char *ArgData, size_t ArgSize) { in addWrapper() 86 static WrapperFunctionResult addMethodWrapper(const char *ArgData, in addMethodWrapper() 115 static WrapperFunctionResult voidNoopAsyncWrapper(const char *ArgData, in voidNoopAsyncWrapper() 117 std::promise<WrapperFunctionResult> RP; in voidNoopAsyncWrapper() [all …]
|
H A D | ExecutionSessionWrapperFunctionCallsTest.cpp | 103 auto ArgBuffer = WrapperFunctionResult::allocate(ArgBufferSize); in TEST() 108 [&](WrapperFunctionResult ResultBuffer) { in TEST()
|
/llvm-project/compiler-rt/lib/orc/ |
H A D | wrapper_function_utils.h | 26 class WrapperFunctionResult { 28 /// Create a default WrapperFunctionResult. 29 WrapperFunctionResult() { orc_rt_CWrapperFunctionResultInit(&R); } 31 /// Create a WrapperFunctionResult from a CWrapperFunctionResult. This 34 WrapperFunctionResult(orc_rt_CWrapperFunctionResult R) : R(R) {} 36 WrapperFunctionResult(const WrapperFunctionResult &) = delete; 37 WrapperFunctionResult &operator=(const WrapperFunctionResult &) = delete; 39 WrapperFunctionResult(WrapperFunctionResul 30 WrapperFunctionResult() { orc_rt_CWrapperFunctionResultInit(&R); } WrapperFunctionResult() function 35 WrapperFunctionResult(orc_rt_CWrapperFunctionResult R) : R(R) {} WrapperFunctionResult() function 40 WrapperFunctionResult(WrapperFunctionResult &&Other) { WrapperFunctionResult() function [all...] |
H A D | coff_platform.cpp | 600 return WrapperFunctionResult().release(); in __orc_rt_coff_platform_bootstrap() 606 return WrapperFunctionResult().release(); in __orc_rt_coff_platform_shutdown()
|
H A D | elfnix_platform.cpp |
|
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
H A D | WrapperFunctionUtils.h | 40 class WrapperFunctionResult { 43 WrapperFunctionResult() { init(R); } in WrapperFunctionResult() function 50 WrapperFunctionResult(CWrapperFunctionResult R) : R(R) { in WrapperFunctionResult() function 55 WrapperFunctionResult(const WrapperFunctionResult &) = delete; 56 WrapperFunctionResult &operator=(const WrapperFunctionResult &) = delete; 58 WrapperFunctionResult(WrapperFunctionResult &&Other) { in WrapperFunctionResult() function 63 WrapperFunctionResult &operator=(WrapperFunctionResult &&Other) { 64 WrapperFunctionResult Tmp(std::move(Other)); 69 ~WrapperFunctionResult() { in ~WrapperFunctionResult() 113 static WrapperFunctionResult allocate(size_t Size) { in allocate() [all …]
|
/llvm-project/compiler-rt/lib/orc/tests/unit/ |
H A D | wrapper_function_utils_test.cpp | 25 WrapperFunctionResult R; in TEST() 34 WrapperFunctionResult R(CR); in TEST() 42 auto R = WrapperFunctionResult::copyFrom(TestString, strlen(TestString) + 1); in TEST() 50 auto R = WrapperFunctionResult::copyFrom(TestString); in TEST() 58 auto R = WrapperFunctionResult::copyFrom(std::string(TestString)); in TEST() 66 auto R = WrapperFunctionResult::createOutOfBandError(TestString); in TEST() 163 WrapperFunctionResult WFR(WFC.run()); in TEST()
|
/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
H A D | SimpleRemoteEPCServer.cpp | 133 shared::WrapperFunctionResult::createOutOfBandError("disconnecting")); in handleDisconnect() 218 shared::WrapperFunctionResult::allocate(SPSSerialize::size(EI)); in sendSetupMessage() 231 std::promise<shared::WrapperFunctionResult> *P = nullptr; in handleResult() 243 auto R = shared::WrapperFunctionResult::allocate(ArgBytes.size()); in handleResult() 256 shared::WrapperFunctionResult ResultBytes( in handleCallWrapper() 265 shared::WrapperFunctionResult 269 std::promise<shared::WrapperFunctionResult> ResultP; in doJITDispatch() 274 return shared::WrapperFunctionResult::createOutOfBandError( in doJITDispatch()
|
/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | SimpleRemoteEPC.cpp | 120 H(shared::WrapperFunctionResult::createOutOfBandError("disconnecting")); in callWrapperAsync() 206 shared::WrapperFunctionResult::createOutOfBandError("disconnecting")); in handleDisconnect() 298 shared::WrapperFunctionResult::copyFrom(ArgBytes.data(), ArgBytes.size()); in setup() 312 [&](shared::WrapperFunctionResult SetupMsgBytes) { in setup() 417 shared::WrapperFunctionResult::copyFrom(ArgBytes.data(), ArgBytes.size()); in handleCallWrapper() 429 [this, RemoteSeqNo](shared::WrapperFunctionResult WFR) { in handleCallWrapper() 442 auto WFR = WrapperFunctionResult::copyFrom(ArgBytes.data(), ArgBytes.size()); in handleHangup()
|
H A D | ExecutorProcessControl.cpp | 208 std::promise<shared::WrapperFunctionResult> ResultP; in jitDispatchViaWrapperFunctionManager() 214 shared::WrapperFunctionResult Result) mutable { in jitDispatchViaWrapperFunctionManager()
|
H A D | Core.cpp | 1947 SendResult(shared::WrapperFunctionResult::createOutOfBandError( in runJITDispatchHandler()
|
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | ExecutorProcessControl.h | 46 /// unique_function<void(shared::WrapperFunctionResult)>s using the 53 void operator()(shared::WrapperFunctionResult WFR) { H(std::move(WFR)); } in operator() 58 unique_function<void(shared::WrapperFunctionResult)> H; 62 /// as void(shared::WrapperFunctionResult). The function object will be called 88 (shared::WrapperFunctionResult WFR) mutable { in operator() 327 shared::WrapperFunctionResult callWrapper(ExecutorAddr WrapperFnAddr, 329 std::promise<shared::WrapperFunctionResult> RP; 333 [&](shared::WrapperFunctionResult R) {
|
H A D | Core.h | 1353 using SendResultFunction = unique_function<void(shared::WrapperFunctionResult)>; 1574 shared::WrapperFunctionResult callWrapper(ExecutorAddr WrapperFnAddr,
|
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/ |
H A D | SimpleRemoteEPCServer.h | 165 shared::WrapperFunctionResult 177 DenseMap<uint64_t, std::promise<shared::WrapperFunctionResult> *>;
|