Home
last modified time | relevance | path

Searched refs:TSCtx (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DThreadSafeModule.h85 TSCtx.withContextDo([this](LLVMContext *Ctx) { M = nullptr; });
87 TSCtx = std::move(Other.TSCtx);
95 : M(std::move(M)), TSCtx(std::move(Ctx)) {} in ThreadSafeModule()
99 ThreadSafeModule(std::unique_ptr<Module> M, ThreadSafeContext TSCtx) in ThreadSafeModule() argument
100 : M(std::move(M)), TSCtx(std::move(TSCtx)) {} in ThreadSafeModule()
104 TSCtx.withContextDo([this](LLVMContext *Ctx) { M = nullptr; }); in ~ThreadSafeModule()
114 return TSCtx.withContextDo([&](LLVMContext *) { in decltype()
123 return TSCtx.withContextDo([&](const LLVMContext *) { in decltype()
133 return TSCtx.withContextDo([&](LLVMContext *) { in decltype()
146 ThreadSafeContext getContext() const { return TSCtx; } in getContext()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DThreadSafeModule.cpp18 ThreadSafeContext TSCtx, in cloneToContext() argument
56 auto M = TSCtx.withContextDo([&](LLVMContext *Ctx) { in cloneToContext()
63 return ThreadSafeModule(std::move(M), std::move(TSCtx)); in cloneToContext()
71 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in cloneToNewContext() local
72 return cloneToContext(TSM, std::move(TSCtx), std::move(ShouldCloneDef), in cloneToNewContext()
H A DOrcV2CBindings.cpp737 void LLVMOrcDisposeThreadSafeContext(LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcDisposeThreadSafeContext() argument
738 delete unwrap(TSCtx); in LLVMOrcDisposeThreadSafeContext()
751 LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcCreateNewThreadSafeModule() argument
753 new ThreadSafeModule(std::unique_ptr<Module>(unwrap(M)), *unwrap(TSCtx))); in LLVMOrcCreateNewThreadSafeModule()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalExecutor.cpp40 : TSCtx(TSC) {} in IncrementalExecutor()
59 : TSCtx(TSC) { in IncrementalExecutor()
78 return Jit->addIRModule(RT, {std::move(PTU.TheModule), TSCtx}); in addModule()
H A DIncrementalExecutor.h41 llvm::orc::ThreadSafeContext &TSCtx; variable
H A DInterpreter.cpp375 TSCtx = std::make_unique<llvm::orc::ThreadSafeContext>(std::move(LLVMCtx)); in Interpreter()
377 Act = TSCtx->withContextDo([&](llvm::LLVMContext *Ctx) { in Interpreter()
503 auto DeviceAct = Interp->TSCtx->withContextDo([&](llvm::LLVMContext *Ctx) { in createWithCUDA()
667 auto Executor = std::make_unique<WasmIncrementalExecutor>(*TSCtx); in CreateExecutor()
670 std::make_unique<IncrementalExecutor>(*TSCtx, *JITBuilder, Err); in CreateExecutor()
/freebsd/contrib/llvm-project/llvm/tools/lli/
H A Dlli.cpp879 loadModule(StringRef Path, orc::ThreadSafeContext TSCtx) { in loadModule() argument
881 auto M = TSCtx.withContextDo( in loadModule()
895 return orc::ThreadSafeModule(std::move(M), std::move(TSCtx)); in loadModule()
927 orc::ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in runOrcJIT() local
928 auto MainModule = ExitOnErr(loadModule(InputFile, TSCtx)); in runOrcJIT()
1125 auto M = ExitOnErr(loadModule(*EMItr, TSCtx)); in runOrcJIT()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DOrc.h1106 LLVMOrcDisposeThreadSafeContext(LLVMOrcThreadSafeContextRef TSCtx);
1119 LLVMModuleRef M, LLVMOrcThreadSafeContextRef TSCtx);
/freebsd/contrib/llvm-project/clang/include/clang/Interpreter/
H A DInterpreter.h91 std::unique_ptr<llvm::orc::ThreadSafeContext> TSCtx; variable