Lines Matching full:auto

58     const auto &TT = CP.getExecutionSession().getTargetTriple();
69 auto G = std::make_unique<jitlink::LinkGraph>(
72 auto &HeaderSection = G->createSection("__header", MemProt::Read);
73 auto &HeaderBlock = createHeaderBlock(*G, HeaderSection);
76 auto &ImageBaseSymbol = G->addDefinedSymbol(
128 auto HeaderContent = G.allocateContent(
137 auto ImageBaseOffset = offsetof(HeaderBlockContent, NTHeader) +
174 auto &EPC = ES.getExecutorProcessControl();
176 auto GeneratorArchive =
181 auto OrcRuntimeArchiveGenerator = StaticLibraryDefinitionGenerator::Create(
189 auto RuntimeArchive = cantFail(
197 if (auto Err = PlatformJD.define(symbolAliases(std::move(*RuntimeAliases))))
200 auto &HostFuncJD = ES.createBareJITDylib("$<PlatformRuntimeHostFuncJD>");
203 if (auto Err = HostFuncJD.define(
216 auto P = std::unique_ptr<COFFPlatform>(new COFFPlatform(
232 auto ArchiveBuffer = MemoryBuffer::getFile(OrcRuntimePath);
242 auto PerJDObj = OrcRuntimeArchive->findSym("__orc_rt_coff_per_jd_marker");
250 auto Buffer = (*PerJDObj)->getAsBinary();
259 for (auto &KV : AL) {
260 auto AliasName = ES.intern(KV.first);
268 if (auto Err = JD.define(std::make_unique<COFFHeaderMaterializationUnit>(
272 if (auto Err = ES.lookup({&JD}, COFFHeaderStartSymbol).takeError())
278 if (auto Err = JD.define(symbolAliases(std::move(CXXAliases))))
281 auto PerJDObj = getPerJDObjectFile();
285 auto I = getObjectFileInterface(ES, *PerJDObj);
289 if (auto Err = ObjLinkingLayer.add(
294 auto ImportedLibs = StaticVCRuntime
299 for (auto &Lib : *ImportedLibs)
300 if (auto Err = LoadDynLibrary(JD, Lib))
303 if (auto Err = VCRuntimeBootstrap->initializeStaticVCRuntime(JD))
313 auto I = JITDylibToHeaderAddr.find(&JD);
325 auto &JD = RT.getJITDylib();
326 const auto &InitSym = MU.getInitializerSymbol();
404 auto VCRT =
412 for (auto &Lib : OrcRuntimeGenerator->getImportedDynamicLibraries())
415 auto ImportedLibs =
423 for (auto &Lib : *ImportedLibs)
430 if (auto E2 = setupJITDylib(PlatformJD)) {
435 for (auto& Lib : DylibsToPreload)
436 if (auto E2 = this->LoadDynLibrary(PlatformJD, Lib)) {
442 if (auto E2 = VCRuntimeBootstrap->initializeStaticVCRuntime(PlatformJD)) {
448 if (auto E2 = associateRuntimeSupportFunctions(PlatformJD)) {
456 if (auto E2 = bootstrapCOFFRuntime(PlatformJD)) {
472 auto CurJD = Worklist.back();
475 auto &DM = JDDepMap[CurJD];
478 for (auto &KV : O) {
514 auto CurJD = Worklist.back();
517 auto RISItr = RegisteredInitSymbols.find(CurJD);
523 for (auto *DepJD : JDDepMap[CurJD])
537 for (auto &KV : JDDepMap) {
541 for (auto &Dep : KV.second) {
544 auto H = JITDylibToHeaderAddr[KV.first];
568 auto I = HeaderAddrToJITDylib.find(JDHeaderAddr);
588 auto JDDepMap = buildJDDepMap(*JD);
605 auto I = HeaderAddrToJITDylib.find(Handle);
661 if (auto Err =
665 if (auto Err = runSymbolIfExists(*BState.JD, "__run_after_c_init"))
668 if (auto Err =
677 for (auto &Initializer : BState.Initializers)
680 auto Res =
691 if (auto Err = lookupAndRecordAddrs(
710 if (auto Err = ES.callSPSWrapper<void()>(orc_rt_coff_platform_bootstrap))
715 for (auto KV : JDBootstrapStates) {
716 auto &JDBState = KV.second;
717 if (auto Err = ES.callSPSWrapper<void(SPSString, SPSExecutorAddr)>(
722 for (auto &ObjSectionMap : JDBState.ObjectSectionsMaps)
723 if (auto Err = ES.callSPSWrapper<void(SPSExecutorAddr,
731 for (auto KV : JDBootstrapStates) {
732 auto &JDBState = KV.second;
733 if (auto Err = runBootstrapInitializers(JDBState))
743 auto AfterCLookupErr = lookupAndRecordAddrs(
747 auto Res = ES.getExecutorProcessControl().runAsVoidFunction(jit_function);
764 if (auto InitSymbol = MR.getInitializerSymbol()) {
793 auto I = InitSymbolDeps.find(&MR);
806 auto I = llvm::find_if(G.defined_symbols(), [this](jitlink::Symbol *Sym) {
811 auto &JD = MR.getTargetJITDylib();
813 auto HeaderAddr = (*I)->getAddress();
841 auto HeaderAddr = CP.JITDylibToHeaderAddr[&JD];
843 for (auto &S : G.sections()) {
863 for (auto &Sec : G.sections())
865 for (auto *B : Sec.blocks())
879 auto HeaderAddr = CP.JITDylibToHeaderAddr[&JD];
881 for (auto &S : G.sections()) {
894 auto &BState = CP.JDBootstrapStates[&JD];
898 for (auto &S : G.sections())
900 for (auto *B : S.blocks()) {
903 for (auto &E : B->edges())