| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
| H A D | KaleidoscopeJIT.h | 42 std::unique_ptr<ExecutionSession> ES; 61 KaleidoscopeJIT(std::unique_ptr<ExecutionSession> ES, in KaleidoscopeJIT() argument 64 : ES(std::move(ES)), EPCIU(std::move(EPCIU)), DL(std::move(DL)), in KaleidoscopeJIT() 65 Mangle(*this->ES, this->DL), in KaleidoscopeJIT() 66 ObjectLayer(*this->ES, in KaleidoscopeJIT() 68 CompileLayer(*this->ES, ObjectLayer, 71 CODLayer(*this->ES, OptimizeLayer, 81 if (auto Err = ES->endSession()) in ~KaleidoscopeJIT() 82 ES->reportError(std::move(Err)); in ~KaleidoscopeJIT() 84 ES->reportError(std::move(Err)); in ~KaleidoscopeJIT() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
| H A D | KaleidoscopeJIT.h | 35 std::unique_ptr<ExecutionSession> ES; 46 KaleidoscopeJIT(std::unique_ptr<ExecutionSession> ES, in KaleidoscopeJIT() argument 48 : ES(std::move(ES)), DL(std::move(DL)), Mangle(*this->ES, this->DL), in KaleidoscopeJIT() 49 ObjectLayer(*this->ES, in KaleidoscopeJIT() 51 CompileLayer(*this->ES, ObjectLayer, 53 MainJD(this->ES->createBareJITDylib("<main>")) { 60 if (auto Err = ES->endSession()) in ~KaleidoscopeJIT() 61 ES->reportError(std::move(Err)); in ~KaleidoscopeJIT() 69 auto ES = std::make_unique<ExecutionSession>(std::move(*EPC)); in Create() local 72 ES->getExecutorProcessControl().getTargetTriple()); in Create() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/include/ |
| H A D | KaleidoscopeJIT.h | 35 std::unique_ptr<ExecutionSession> ES; 46 KaleidoscopeJIT(std::unique_ptr<ExecutionSession> ES, in KaleidoscopeJIT() argument 48 : ES(std::move(ES)), DL(std::move(DL)), Mangle(*this->ES, this->DL), in KaleidoscopeJIT() 49 ObjectLayer(*this->ES, in KaleidoscopeJIT() 51 CompileLayer(*this->ES, ObjectLayer, 53 MainJD(this->ES->createBareJITDylib("<main>")) { 64 if (auto Err = ES->endSession()) in ~KaleidoscopeJIT() 65 ES->reportError(std::move(Err)); in ~KaleidoscopeJIT() 73 auto ES = std::make_unique<ExecutionSession>(std::move(*EPC)); in Create() local 76 ES->getExecutorProcessControl().getTargetTriple()); in Create() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
| H A D | KaleidoscopeJIT.h | 40 std::unique_ptr<ExecutionSession> ES; 52 KaleidoscopeJIT(std::unique_ptr<ExecutionSession> ES, in KaleidoscopeJIT() argument 54 : ES(std::move(ES)), DL(std::move(DL)), Mangle(*this->ES, this->DL), in KaleidoscopeJIT() 55 ObjectLayer(*this->ES, in KaleidoscopeJIT() 57 CompileLayer(*this->ES, ObjectLayer, 59 OptimizeLayer(*this->ES, CompileLayer, optimizeModule), 60 MainJD(this->ES->createBareJITDylib("<main>")) { 67 if (auto Err = ES->endSession()) in ~KaleidoscopeJIT() 68 ES->reportError(std::move(Err)); in ~KaleidoscopeJIT() 79 ES->getExecutorProcessControl().getTargetTriple()); in Create() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/ |
| H A D | RTDyldObjectLinkingLayerTest.cpp | 51 auto Foo = ES.intern("foo"); in testSetProcessAllSections() 67 if (auto Err = ES.endSession()) in testSetProcessAllSections() 68 ES.reportError(std::move(Err)); in testSetProcessAllSections() 158 auto Foo = ES.intern("foo"); in TEST() 167 ES.lookup( in TEST() 173 if (auto Err = ES.endSession()) in TEST() 174 ES.reportError(std::move(Err)); in TEST() 228 auto Foo = ES.intern("foo"); in TEST() 237 ES.lookup( in TEST() 243 if (auto Err = ES.endSession()) in TEST() [all …]
|
| H A D | ExecutionSessionWrapperFunctionCallsTest.cpp | 39 ExecutionSession ES(cantFail(SelfExecutorProcessControl::Create())); in TEST() local 42 EXPECT_THAT_ERROR(ES.callSPSWrapper<int32_t(int32_t, int32_t)>( in TEST() 46 cantFail(ES.endSession()); in TEST() 53 ES.callSPSWrapperAsync<void()>(ExecutorAddr::fromPtr(voidWrapper), in TEST() 59 cantFail(ES.endSession()); in TEST() 66 ES.callSPSWrapperAsync<int32_t(int32_t, int32_t)>( in TEST() 76 cantFail(ES.endSession()); in TEST() 84 auto &JD = ES.createBareJITDylib("JD"); in TEST() 86 auto AddAsyncTag = ES.intern("addAsync_tag"); in TEST() 107 ES.runJITDispatchHandler( in TEST() [all …]
|
| H A D | CoreAPIsTest.cpp | 112 ES.lookup( in TEST_F() 198 ES.lookup( in TEST_F() 405 auto Flags = cantFail(ES.lookupFlags( in TEST_F() 1110 ES.lookup( in TEST_F() 1180 ES.lookup( in TEST_F() 1220 ES.lookup( in TEST_F() 1535 ES.lookup( in TEST_F() 1547 auto Err = ES.removeJITDylib(JD); in TEST_F() 1565 auto Foo = ES.intern("foo"); in TEST() 1575 auto Sym = ES.lookup({&JD}, Foo); in TEST() [all …]
|
| H A D | ResourceTrackerTest.cpp | 33 SimpleResourceManager(ExecutionSession &ES) : ES(ES) { in SimpleResourceManager() argument 43 ES.registerResourceManager(*this); in SimpleResourceManager() 107 ExecutionSession &ES; member in __anon71b8cbbc0111::SimpleResourceManager 117 SimpleResourceManager<> SRM(ES); in TEST_F() 154 SimpleResourceManager<> SRM(ES); in TEST_F() 176 cantFail(ES.lookup({&JD}, Foo)); in TEST_F() 192 SimpleResourceManager<> SRM(ES); in TEST_F() 211 ES.lookup( in TEST_F() 244 SimpleResourceManager<> SRM(ES); in TEST_F() 291 SimpleResourceManager<> SRM(ES); in TEST_F() [all …]
|
| H A D | ObjectLinkingLayerTest.cpp | 30 if (auto Err = ES.endSession()) in ~ObjectLinkingLayerTest() 31 ES.reportError(std::move(Err)); in ~ObjectLinkingLayerTest() 35 ExecutionSession ES{std::make_unique<UnsupportedExecutorProcessControl>()}; member in __anon15d07c480111::ObjectLinkingLayerTest 36 JITDylib &JD = ES.createBareJITDylib("main"); 38 ES, std::make_unique<InProcessMemoryManager>(4096)}; 54 EXPECT_THAT_EXPECTED(ES.lookup(&JD, "_X"), Succeeded()); in TEST_F()
|
| H A D | OrcTestCommon.h | 50 if (auto Err = ES.endSession()) in ~CoreAPIsBasedStandardTest() 51 ES.reportError(std::move(Err)); in ~CoreAPIsBasedStandardTest() 56 ExecutionSession ES{std::make_unique<UnsupportedExecutorProcessControl>(SSP)}; 57 JITDylib &JD = ES.createBareJITDylib("JD"); 58 SymbolStringPtr Foo = ES.intern("foo"); 59 SymbolStringPtr Bar = ES.intern("bar"); 60 SymbolStringPtr Baz = ES.intern("baz"); 61 SymbolStringPtr Qux = ES.intern("qux");
|
| /llvm-project-15.0.7/llvm/examples/SpeculativeJIT/ |
| H A D | SpeculativeJIT.cpp | 59 JTMB->getTargetTriple(), *ES, in Create() 82 ExecutionSession &getES() { return *ES; } in getES() 89 return ES->lookup({&MainJD}, Mangle(UnmangledName)); in lookup() 104 std::unique_ptr<ExecutionSession> ES, DataLayout DL, in SpeculativeJIT() argument 109 : ES(std::move(ES)), DL(std::move(DL)), in SpeculativeJIT() 111 CompileLayer(*this->ES, ObjLayer, in SpeculativeJIT() 113 S(Imps, *this->ES), in SpeculativeJIT() 119 this->ES->setDispatchTask( in SpeculativeJIT() 136 std::unique_ptr<ExecutionSession> ES; member in SpeculativeJIT 138 MangleAndInterner Mangle{*ES, DL}; [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | ObjectFileInterface.cpp | 32 I.InitSymbol = ES.intern(InitSymString); in addInitSymbol() 39 getMachOObjectFileSymbolInfo(ExecutionSession &ES, in getMachOObjectFileSymbolInfo() argument 81 addInitSymbol(I, ES, Obj.getFileName()); in getMachOObjectFileSymbolInfo() 87 addInitSymbol(I, ES, Obj.getFileName()); in getMachOObjectFileSymbolInfo() 96 getELFObjectFileSymbolInfo(ExecutionSession &ES, in getELFObjectFileSymbolInfo() argument 140 addInitSymbol(I, ES, Obj.getFileName()); in getELFObjectFileSymbolInfo() 150 getCOFFObjectFileSymbolInfo(ExecutionSession &ES, in getCOFFObjectFileSymbolInfo() argument 223 getGenericObjectFileSymbolInfo(ExecutionSession &ES, in getGenericObjectFileSymbolInfo() argument 272 return getELFObjectFileSymbolInfo(ES, *ELFObj); in getObjectFileInterface() 274 return getCOFFObjectFileSymbolInfo(ES, *COFFObj); in getObjectFileInterface() [all …]
|
| H A D | ELFNixPlatform.cpp | 110 ELFNixPlatform::Create(ExecutionSession &ES, in Create() argument 115 auto &EPC = ES.getExecutorProcessControl(); in Create() 137 {{ES.intern("__orc_rt_jit_dispatch"), in Create() 193 auto AliasName = ES.intern(KV.first); in addAliases() 295 : ES(ES), ObjLinkingLayer(ObjLinkingLayer), in ELFNixPlatform() 384 ES.runSessionLocked([&]() { in getInitializersLookupPhase() 410 ES, std::move(NewInitSymbols)); in getInitializersLookupPhase() 508 ES.lookup( in rt_lookupSymbol() 527 auto Name = ES.intern(KV.first); in bootstrapELFNixRuntime() 532 auto RuntimeSymbolAddrs = ES.lookup( in bootstrapELFNixRuntime() [all …]
|
| H A D | LazyReexports.cpp | 20 ExecutionSession &ES, JITTargetAddress ErrorHandlerAddr, TrampolinePool *TP) in LazyCallThroughManager() argument 21 : ES(ES), ErrorHandlerAddr(ErrorHandlerAddr), TP(TP) {} in LazyCallThroughManager() 40 ES.reportError(std::move(Err)); in reportCallThroughError() 98 ES.lookup(LookupKind::Static, in resolveTrampolineLandingAddress() 106 createLocalLazyCallThroughManager(const Triple &T, ExecutionSession &ES, in createLocalLazyCallThroughManager() argument 116 return LocalLazyCallThroughManager::Create<OrcAArch64>(ES, in createLocalLazyCallThroughManager() 123 return LocalLazyCallThroughManager::Create<OrcMips32Be>(ES, in createLocalLazyCallThroughManager() 127 return LocalLazyCallThroughManager::Create<OrcMips32Le>(ES, in createLocalLazyCallThroughManager() 135 return LocalLazyCallThroughManager::Create<OrcRiscv64>(ES, in createLocalLazyCallThroughManager() 141 ES, ErrorHandlerAddr); in createLocalLazyCallThroughManager() [all …]
|
| H A D | ObjectLinkingLayer.cpp | 63 LGI.InitSymbol = makeInitSymbol(ES, G); in scanLinkGraph() 94 return ES.intern(InitSymString); in makeInitSymbol() 355 : ES(ES), BlockDeps(std::move(BlockDeps)) {} in BlockDependenciesMap() 413 ExecutionSession &ES; member in llvm::orc::ObjectLinkingLayerJITLinkContext::BlockDependenciesMap 621 : BaseT(ES), MemMgr(ES.getExecutorProcessControl().getMemMgr()) { in ObjectLinkingLayer() 622 ES.registerResourceManager(*this); in ObjectLinkingLayer() 627 : BaseT(ES), MemMgr(MemMgr) { in ObjectLinkingLayer() 628 ES.registerResourceManager(*this); in ObjectLinkingLayer() 634 ES.registerResourceManager(*this); in ObjectLinkingLayer() 743 : ES(ES), Registrar(std::move(Registrar)) {} in EHFrameRegistrationPlugin() [all …]
|
| H A D | MachOPlatform.cpp | 192 auto &EPC = ES.getExecutorProcessControl(); in Create() 202 RuntimeAliases = standardPlatformAliases(ES); in Create() 210 {{ES.intern("___orc_rt_jit_dispatch"), in Create() 213 {ES.intern("___orc_rt_jit_dispatch_ctx"), in Create() 278 auto AliasName = ES.intern(KV.first); in addAliases() 287 addAliases(ES, Aliases, requiredCXXAliases()); in standardPlatformAliases() 338 : ES(ES), ObjLinkingLayer(ObjLinkingLayer), in MachOPlatform() 389 ES.wrapAsyncWithSPS<PushInitializersSPSSig>( in associateRuntimeSupportFunctions() 407 ES.runSessionLocked([&]() { in pushInitializersLoop() 489 ES, std::move(NewInitSymbols)); in pushInitializersLoop() [all …]
|
| H A D | DebugObjectManagerPlugin.cpp | 129 ExecutionSession &ES) in DebugObject() argument 130 : MemMgr(MemMgr), JD(JD), ES(ES) {} in DebugObject() 144 ES.reportError(std::move(Err)); in ~DebugObject() 161 ExecutionSession &ES; member in llvm::orc::DebugObject 216 const JITLinkDylib *JD, ExecutionSession &ES); 223 ExecutionSession &ES) in ELFDebugObject() argument 224 : DebugObject(MemMgr, JD, ES), Buffer(std::move(Buffer)) { in ELFDebugObject() 309 ExecutionSession &ES) { in Create() argument 391 return ELFDebugObject::Create(ObjBuffer, Ctx, ES); in createDebugObjectFromBuffer() 402 : ES(ES), Target(std::move(Target)) {} in DebugObjectManagerPlugin() [all …]
|
| H A D | Mangling.cpp | 19 MangleAndInterner::MangleAndInterner(ExecutionSession &ES, const DataLayout &DL) in MangleAndInterner() argument 20 : ES(ES), DL(DL) {} in MangleAndInterner() 28 return ES.intern(MangledName); in operator ()() 31 void IRSymbolMapper::add(ExecutionSession &ES, const ManglingOptions &MO, in add() argument 38 MangleAndInterner Mangle(ES, GVs[0]->getParent()->getDataLayout()); in add()
|
| H A D | LLJIT.cpp | 318 auto &ES = getExecutionSession(); in getInitializers() local 339 auto &ES = getExecutionSession(); in getDeinitializers() local 346 if (auto Err = ES.runSessionLocked([&]() -> Error { in getDeinitializers() 650 if (!ES && !EPC) { in prepareForConstruction() 676 [](ExecutionSession &ES, in prepareForConstruction() 692 if (auto Err = ES->endSession()) in ~LLJIT() 693 ES->reportError(std::move(Err)); in ~LLJIT() 723 if (auto Sym = ES->lookup( in lookupLinkerMangled() 784 } else if (S.ES) in LLJIT() 785 ES = std::move(S.ES); in LLJIT() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| H A D | KaleidoscopeJIT.h | 129 std::unique_ptr<ExecutionSession> ES; 148 KaleidoscopeJIT(std::unique_ptr<ExecutionSession> ES, in KaleidoscopeJIT() argument 151 : ES(std::move(ES)), EPCIU(std::move(EPCIU)), DL(std::move(DL)), in KaleidoscopeJIT() 152 Mangle(*this->ES, this->DL), in KaleidoscopeJIT() 153 ObjectLayer(*this->ES, in KaleidoscopeJIT() 155 CompileLayer(*this->ES, ObjectLayer, 159 MainJD(this->ES->createBareJITDylib("<main>")) { 166 if (auto Err = ES->endSession()) in ~KaleidoscopeJIT() 167 ES->reportError(std::move(Err)); in ~KaleidoscopeJIT() 169 ES->reportError(std::move(Err)); in ~KaleidoscopeJIT() [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/ |
| H A D | p18.cpp | 61 struct ES { struct 63 ES(const ES &) = delete; 65 ES(const char *); 69 struct DES : a::ES { 72 using a::ES::ES;
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | Layer.h | 37 IRMaterializationUnit(ExecutionSession &ES, 60 static SymbolStringPtr getInitSymbol(ExecutionSession &ES, 69 IRLayer(ExecutionSession &ES, const IRSymbolMapper::ManglingOptions *&MO) in IRLayer() argument 70 : ES(ES), MO(MO) {} in IRLayer() 75 ExecutionSession &getExecutionSession() { return ES; } in getExecutionSession() 114 ExecutionSession &ES; variable 137 ObjectLayer(ExecutionSession &ES); 141 ExecutionSession &getExecutionSession() { return ES; } in getExecutionSession() 170 ExecutionSession &ES;
|
| H A D | EPCDebugObjectRegistrar.h | 42 EPCDebugObjectRegistrar(ExecutionSession &ES, ExecutorAddr RegisterFn) in EPCDebugObjectRegistrar() argument 43 : ES(ES), RegisterFn(RegisterFn) {} in EPCDebugObjectRegistrar() 48 ExecutionSession &ES; 55 createJITLoaderGDBRegistrar(ExecutionSession &ES);
|
| H A D | EPCEHFrameRegistrar.h | 32 Create(ExecutionSession &ES); 36 EPCEHFrameRegistrar(ExecutionSession &ES, in EPCEHFrameRegistrar() argument 39 : ES(ES), RegisterEHFrameWrapperFnAddr(RegisterEHFrameWrapperFnAddr), in EPCEHFrameRegistrar() 46 ExecutionSession &ES;
|
| H A D | EPCDynamicLibrarySearchGenerator.h | 35 EPCDynamicLibrarySearchGenerator(ExecutionSession &ES, 38 : EPC(ES.getExecutorProcessControl()), H(H), Allow(std::move(Allow)) {} 44 Load(ExecutionSession &ES, const char *LibraryPath, 50 GetForTargetProcess(ExecutionSession &ES, 52 return Load(ES, nullptr, std::move(Allow));
|