Lines Matching refs:ES
163 ExecutionSession &ES, ObjectLinkingLayer &ObjLinkingLayer, in Create() argument
169 if (!supportedTarget(ES.getTargetTriple())) in Create()
171 ES.getTargetTriple().str(), in Create()
174 auto &EPC = ES.getExecutorProcessControl(); in Create()
194 RuntimeAliases = standardPlatformAliases(ES); in Create()
200 auto &HostFuncJD = ES.createBareJITDylib("$<PlatformRuntimeHostFuncJD>"); in Create()
204 absoluteSymbols({{ES.intern("__orc_rt_jit_dispatch"), in Create()
207 {ES.intern("__orc_rt_jit_dispatch_ctx"), in Create()
217 ES, ObjLinkingLayer, PlatformJD, std::move(*OrcRuntimeArchiveGenerator), in Create()
226 COFFPlatform::Create(ExecutionSession &ES, ObjectLinkingLayer &ObjLinkingLayer, in Create() argument
236 return Create(ES, ObjLinkingLayer, PlatformJD, std::move(*ArchiveBuffer), in Create()
257 static void addAliases(ExecutionSession &ES, SymbolAliasMap &Aliases, in addAliases() argument
260 auto AliasName = ES.intern(KV.first); in addAliases()
262 Aliases[std::move(AliasName)] = {ES.intern(KV.second), in addAliases()
272 if (auto Err = ES.lookup({&JD}, COFFHeaderStartSymbol).takeError()) in setupJITDylib()
277 addAliases(ES, CXXAliases, requiredCXXAliases()); in setupJITDylib()
285 auto I = getObjectFileInterface(ES, *PerJDObj); in setupJITDylib()
307 JD.addGenerator(DLLImportDefinitionGenerator::Create(ES, ObjLinkingLayer)); in setupJITDylib()
344 SymbolAliasMap COFFPlatform::standardPlatformAliases(ExecutionSession &ES) { in standardPlatformAliases() argument
346 addAliases(ES, Aliases, standardRuntimeUtilityAliases()); in standardPlatformAliases()
385 ExecutionSession &ES, ObjectLinkingLayer &ObjLinkingLayer, in COFFPlatform() argument
392 : ES(ES), ObjLinkingLayer(ObjLinkingLayer), in COFFPlatform()
397 COFFHeaderStartSymbol(ES.intern("__ImageBase")) { in COFFPlatform()
405 COFFVCRuntimeBootstrapper::Create(ES, ObjLinkingLayer, VCRuntimePath); in COFFPlatform()
467 return ES.runSessionLocked([&]() -> Expected<JITDylibDepMap> { in buildJDDepMap()
512 ES.runSessionLocked([&]() { in pushInitializersLoop()
560 ES, std::move(NewInitSymbols)); in pushInitializersLoop()
636 ES.lookup( in rt_lookupSymbol()
638 SymbolLookupSet(ES.intern(SymbolName)), SymbolState::Ready, in rt_lookupSymbol()
647 WFs[ES.intern("__orc_rt_coff_symbol_lookup_tag")] = in associateRuntimeSupportFunctions()
648 ES.wrapAsyncWithSPS<LookupSymbolSPSSig>(this, in associateRuntimeSupportFunctions()
652 WFs[ES.intern("__orc_rt_coff_push_initializers_tag")] = in associateRuntimeSupportFunctions()
653 ES.wrapAsyncWithSPS<PushInitializersSPSSig>( in associateRuntimeSupportFunctions()
656 return ES.registerJITDispatchHandlers(PlatformJD, std::move(WFs)); in associateRuntimeSupportFunctions()
681 ES.getExecutorProcessControl().runAsVoidFunction(Initializer.second); in runBootstrapSubsectionInitializers()
692 ES, LookupKind::Static, makeJITDylibSearchOrder(&PlatformJD), in bootstrapCOFFRuntime()
694 {ES.intern("__orc_rt_coff_platform_bootstrap"), in bootstrapCOFFRuntime()
696 {ES.intern("__orc_rt_coff_platform_shutdown"), in bootstrapCOFFRuntime()
698 {ES.intern("__orc_rt_coff_register_jitdylib"), in bootstrapCOFFRuntime()
700 {ES.intern("__orc_rt_coff_deregister_jitdylib"), in bootstrapCOFFRuntime()
702 {ES.intern("__orc_rt_coff_register_object_sections"), in bootstrapCOFFRuntime()
704 {ES.intern("__orc_rt_coff_deregister_object_sections"), in bootstrapCOFFRuntime()
710 if (auto Err = ES.callSPSWrapper<void()>(orc_rt_coff_platform_bootstrap)) in bootstrapCOFFRuntime()
717 if (auto Err = ES.callSPSWrapper<void(SPSString, SPSExecutorAddr)>( in bootstrapCOFFRuntime()
723 if (auto Err = ES.callSPSWrapper<void(SPSExecutorAddr, in bootstrapCOFFRuntime()
744 ES, LookupKind::Static, makeJITDylibSearchOrder(&PlatformJD), in runSymbolIfExists()
745 {{ES.intern(SymbolName), &jit_function}}); in runSymbolIfExists()
747 auto Res = ES.getExecutorProcessControl().runAsVoidFunction(jit_function); in runSymbolIfExists()