Lines Matching full:es

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