Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/
H A DThreadSafeModule.h93 auto L = TSCtx.getLock();
97 TSCtx = std::move(Other.TSCtx);
105 : M(std::move(M)), TSCtx(std::move(Ctx)) {} in ThreadSafeModule()
109 ThreadSafeModule(std::unique_ptr<Module> M, ThreadSafeContext TSCtx) in ThreadSafeModule() argument
110 : M(std::move(M)), TSCtx(std::move(TSCtx)) {} in ThreadSafeModule()
115 auto L = TSCtx.getLock(); in ~ThreadSafeModule()
124 assert(TSCtx.getContext() &&
135 auto Lock = TSCtx.getLock(); in decltype()
142 auto Lock = TSCtx.getLock(); in decltype()
153 ThreadSafeContext getContext() const { return TSCtx; } in getContext()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/
H A DLLJITWithThinLTOSummaries.cpp158 orc::ThreadSafeContext TSCtx) { in loadModule() argument
168 parseBitcodeFile(BitcodeBufferRef, *TSCtx.getContext()); in loadModule()
172 return ThreadSafeModule(std::move(*M), std::move(TSCtx)); in loadModule()
199 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in main() local
200 ThreadSafeModule MainModule = ExitOnErr(loadModule(MainModulePath, TSCtx)); in main()
225 : ExitOnErr(loadModule(Path, TSCtx)); in main()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/
H A DOrcV2CBindingsBasicUsage.c27 LLVMOrcThreadSafeContextRef TSCtx = LLVMOrcCreateNewThreadSafeContext(); in createDemoModule() local
30 LLVMContextRef Ctx = LLVMOrcThreadSafeContextGetContext(TSCtx); in createDemoModule()
60 LLVMOrcThreadSafeModuleRef TSM = LLVMOrcCreateNewThreadSafeModule(M, TSCtx); in createDemoModule()
64 LLVMOrcDisposeThreadSafeContext(TSCtx); in createDemoModule()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
H A DOrcV2CBindingsRemovableCode.c27 LLVMOrcThreadSafeContextRef TSCtx = LLVMOrcCreateNewThreadSafeContext(); in createDemoModule() local
30 LLVMContextRef Ctx = LLVMOrcThreadSafeContextGetContext(TSCtx); in createDemoModule()
60 LLVMOrcThreadSafeModuleRef TSM = LLVMOrcCreateNewThreadSafeModule(M, TSCtx); in createDemoModule()
64 LLVMOrcDisposeThreadSafeContext(TSCtx); in createDemoModule()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/OrcV2CBindingsReflectProcessSymbols/
H A DOrcV2CBindingsReflectProcessSymbols.c50 LLVMOrcThreadSafeContextRef TSCtx = LLVMOrcCreateNewThreadSafeContext(); in createDemoModule() local
53 LLVMContextRef Ctx = LLVMOrcThreadSafeContextGetContext(TSCtx); in createDemoModule()
105 LLVMOrcThreadSafeModuleRef TSM = LLVMOrcCreateNewThreadSafeModule(M, TSCtx); in createDemoModule()
109 LLVMOrcDisposeThreadSafeContext(TSCtx); in createDemoModule()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Interpreter/
H A DIncrementalExecutor.cpp31 : TSCtx(TSC) { in IncrementalExecutor()
56 return Jit->addIRModule(llvm::orc::ThreadSafeModule(std::move(M), TSCtx)); in addModule()
H A DInterpreter.cpp180 TSCtx = std::make_unique<llvm::orc::ThreadSafeContext>(std::move(LLVMCtx)); in Interpreter()
182 *TSCtx->getContext(), Err); in Interpreter()
211 IncrExecutor = std::make_unique<IncrementalExecutor>(*TSCtx, Err, Triple); in Execute()
H A DIncrementalExecutor.h35 llvm::orc::ThreadSafeContext &TSCtx; variable
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DOrc.h594 LLVMOrcThreadSafeContextGetContext(LLVMOrcThreadSafeContextRef TSCtx);
599 void LLVMOrcDisposeThreadSafeContext(LLVMOrcThreadSafeContextRef TSCtx);
613 LLVMOrcThreadSafeContextRef TSCtx);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DOrcV2CBindings.cpp418 LLVMOrcThreadSafeContextGetContext(LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcThreadSafeContextGetContext() argument
419 return wrap(unwrap(TSCtx)->getContext()); in LLVMOrcThreadSafeContextGetContext()
422 void LLVMOrcDisposeThreadSafeContext(LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcDisposeThreadSafeContext() argument
423 delete unwrap(TSCtx); in LLVMOrcDisposeThreadSafeContext()
428 LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcCreateNewThreadSafeModule() argument
430 new ThreadSafeModule(std::unique_ptr<Module>(unwrap(M)), *unwrap(TSCtx))); in LLVMOrcCreateNewThreadSafeModule()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/lli/
H A Dlli.cpp820 loadModule(StringRef Path, orc::ThreadSafeContext TSCtx) { in loadModule() argument
822 auto M = parseIRFile(Path, Err, *TSCtx.getContext()); in loadModule()
835 return orc::ThreadSafeModule(std::move(M), std::move(TSCtx)); in loadModule()
842 orc::ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in runOrcJIT() local
843 auto MainModule = ExitOnErr(loadModule(InputFile, TSCtx)); in runOrcJIT()
1029 auto M = ExitOnErr(loadModule(*EMItr, TSCtx)); in runOrcJIT()
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DORCv2.rst601 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>());
610 std::make_unique<Module>("M1", *TSCtx.getContext()), TSCtx);
613 std::make_unique<Module>("M2", *TSCtx.getContext()), TSCtx);
618 ``TSM1`` and ``TSM2``, and TSCtx are all created on one thread. If a context is
624 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>());
632 auto Lock = TSCtx.getLock();
633 auto M = loadModuleOnContext(ModulePath, TSCtx.getContext());
634 J.addModule(ThreadSafeModule(std::move(M), TSCtx));
678 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>());
680 ThreadSafeModule TSM(parsePath(IRPath, *TSCtx.getContext()), TSCtx);
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Interpreter/
H A DInterpreter.h47 std::unique_ptr<llvm::orc::ThreadSafeContext> TSCtx; variable