• Home
  • Raw
  • Download

Lines Matching refs:JD

90   Error setupJITDylib(JITDylib &JD) override;
153 Error setupJITDylib(JITDylib &JD) { in setupJITDylib() argument
160 cantFail(JD.define(absoluteSymbols(std::move(PerJDInterposes)))); in setupJITDylib()
169 ConstantInt::get(Int64Ty, reinterpret_cast<uintptr_t>(&JD)), in setupJITDylib()
173 ConstantInt::get(Int64Ty, pointerToJITTargetAddress(&JD))); in setupJITDylib()
188 return J.addIRModule(JD, ThreadSafeModule(std::move(M), std::move(Ctx))); in setupJITDylib()
192 auto &JD = RT.getJITDylib(); in notifyAdding() local
194 InitSymbols[&JD].add(InitSym, SymbolLookupFlags::WeaklyReferencedSymbol); in notifyAdding()
203 InitSymbols[&JD].add(KV.first, in notifyAdding()
205 InitFunctions[&JD].add(KV.first); in notifyAdding()
211 Error initialize(JITDylib &JD) override { in initialize() argument
215 if (auto Initializers = getInitializers(JD)) { in initialize()
231 Error deinitialize(JITDylib &JD) override { in deinitialize() argument
235 if (auto Deinitializers = getDeinitializers(JD)) { in deinitialize()
253 void registerInitFunc(JITDylib &JD, SymbolStringPtr InitName) { in registerInitFunc() argument
255 InitFunctions[&JD].add(InitName); in registerInitFunc()
261 Expected<std::vector<JITTargetAddress>> getInitializers(JITDylib &JD) { in getInitializers() argument
262 if (auto Err = issueInitLookups(JD)) in getInitializers()
269 DFSLinkOrder = JD.getDFSLinkOrder(); in getInitializers()
282 for (auto &JD : llvm::reverse(DFSLinkOrder)) in getInitializers()
283 dbgs() << "\"" << JD->getName() << "\" "; in getInitializers()
310 Expected<std::vector<JITTargetAddress>> getDeinitializers(JITDylib &JD) { in getDeinitializers() argument
319 DFSLinkOrder = JD.getDFSLinkOrder(); in getDeinitializers()
335 for (auto &JD : DFSLinkOrder) in getDeinitializers()
336 dbgs() << "\"" << JD->getName() << "\" "; in getDeinitializers()
368 Error issueInitLookups(JITDylib &JD) { in issueInitLookups() argument
373 DFSLinkOrder = JD.getDFSLinkOrder(); in issueInitLookups()
447 Error GenericLLVMIRPlatform::setupJITDylib(JITDylib &JD) { in setupJITDylib() argument
448 return S.setupJITDylib(JD); in setupJITDylib()
553 Error initialize(JITDylib &JD) override { in initialize() argument
555 dbgs() << "MachOPlatformSupport initializing \"" << JD.getName() in initialize()
559 auto InitSeq = MP.getInitializerSequence(JD); in initialize()
590 Error deinitialize(JITDylib &JD) override { in deinitialize() argument
592 if (auto DeinitSeq = MP.getDeinitializerSequence(JD)) { in deinitialize()
759 if (auto *JD = J.getExecutionSession().getJITDylibByName(Path)) { in jit_dlopen() local
760 auto I = JDRefCounts.find(JD); in jit_dlopen()
763 return JD; in jit_dlopen()
766 JDRefCounts[JD] = 1; in jit_dlopen()
767 JDToOpen = JD; in jit_dlopen()
992 Error LLJIT::addIRModule(JITDylib &JD, ThreadSafeModule TSM) { in addIRModule() argument
993 return addIRModule(JD.getDefaultResourceTracker(), std::move(TSM)); in addIRModule()
1003 Error LLJIT::addObjectFile(JITDylib &JD, std::unique_ptr<MemoryBuffer> Obj) { in addObjectFile() argument
1004 return addObjectFile(JD.getDefaultResourceTracker(), std::move(Obj)); in addObjectFile()
1007 Expected<JITEvaluatedSymbol> LLJIT::lookupLinkerMangled(JITDylib &JD, in lookupLinkerMangled() argument
1010 makeJITDylibSearchOrder(&JD, JITDylibLookupFlags::MatchAllSymbols), Name); in lookupLinkerMangled()
1165 Error LLLazyJIT::addLazyIRModule(JITDylib &JD, ThreadSafeModule TSM) { in addLazyIRModule() argument
1172 return CODLayer->add(JD, std::move(TSM)); in addLazyIRModule()