Home
last modified time | relevance | path

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

/external/llvm-project/llvm/unittests/ExecutionEngine/Orc/
DThreadSafeModuleTest.cpp24 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() local
25 auto M = std::make_unique<Module>("M", *TSCtx.getContext()); in TEST()
26 ThreadSafeModule TSM(std::move(M), std::move(TSCtx)); in TEST()
32 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() local
34 auto M1 = std::make_unique<Module>("M1", *TSCtx.getContext()); in TEST()
35 ThreadSafeModule TSM1(std::move(M1), TSCtx); in TEST()
37 auto M2 = std::make_unique<Module>("M2", *TSCtx.getContext()); in TEST()
38 ThreadSafeModule TSM2(std::move(M2), std::move(TSCtx)); in TEST()
44 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() local
48 auto M1 = std::make_unique<Module>("M1", *TSCtx.getContext()); in TEST()
[all …]
DRTDyldObjectLinkingLayerTest.cpp129 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() local
132 ModuleBuilder MB(*TSCtx.getContext(), TM->getTargetTriple().str(), "dummy"); in TEST()
136 FunctionType::get(Type::getVoidTy(*TSCtx.getContext()), {}, false), in TEST()
139 BasicBlock::Create(*TSCtx.getContext(), "entry", FooImpl); in TEST()
144 FunctionType::get(Type::getVoidTy(*TSCtx.getContext()), {}, false), in TEST()
147 BasicBlock::Create(*TSCtx.getContext(), "entry", BarImpl); in TEST()
151 M = ThreadSafeModule(MB.takeModule(), std::move(TSCtx)); in TEST()
207 ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in TEST() local
210 ModuleBuilder MB(*TSCtx.getContext(), TM->getTargetTriple().str(), "dummy"); in TEST()
214 FunctionType::get(Type::getVoidTy(*TSCtx.getContext()), {}, false), in TEST()
[all …]
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/
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() &&
136 auto Lock = TSCtx.getLock();
145 auto Lock = TSCtx.getLock();
156 ThreadSafeContext getContext() const { return TSCtx; } in getContext()
[all …]
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/
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()
/external/llvm-project/llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/
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()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
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()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsReflectProcessSymbols/
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()
/external/llvm-project/llvm/include/llvm-c/
DOrc.h476 LLVMOrcThreadSafeContextGetContext(LLVMOrcThreadSafeContextRef TSCtx);
481 void LLVMOrcDisposeThreadSafeContext(LLVMOrcThreadSafeContextRef TSCtx);
495 LLVMOrcThreadSafeContextRef TSCtx);
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/
DOrcV2CBindings.cpp338 LLVMOrcThreadSafeContextGetContext(LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcThreadSafeContextGetContext() argument
339 return wrap(unwrap(TSCtx)->getContext()); in LLVMOrcThreadSafeContextGetContext()
342 void LLVMOrcDisposeThreadSafeContext(LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcDisposeThreadSafeContext() argument
343 delete unwrap(TSCtx); in LLVMOrcDisposeThreadSafeContext()
348 LLVMOrcThreadSafeContextRef TSCtx) { in LLVMOrcCreateNewThreadSafeModule() argument
350 new ThreadSafeModule(std::unique_ptr<Module>(unwrap(M)), *unwrap(TSCtx))); in LLVMOrcCreateNewThreadSafeModule()
/external/llvm-project/llvm/tools/lli/
Dlli.cpp776 loadModule(StringRef Path, orc::ThreadSafeContext TSCtx) { in loadModule() argument
778 auto M = parseIRFile(Path, Err, *TSCtx.getContext()); in loadModule()
791 return orc::ThreadSafeModule(std::move(M), std::move(TSCtx)); in loadModule()
798 orc::ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); in runOrcLazyJIT() local
799 auto MainModule = ExitOnErr(loadModule(InputFile, TSCtx)); in runOrcLazyJIT()
942 auto M = ExitOnErr(loadModule(*EMItr, TSCtx)); in runOrcLazyJIT()
/external/llvm-project/llvm/docs/
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);