Lines Matching refs:Index
97 const FunctionInfoIndex &Index,
106 Twine(Index.getModuleId(F.getParent()->getModuleIdentifier()))).str();
152 // Helper function: given a worklist and an index, will process all the worklist
165 const FunctionInfoIndex &Index,
173 auto InfoList = Index.findFunctionInfoList(CalledFunctionName);
174 if (InfoList == Index.end()) {
254 findExternalCalls(DestModule, *F, Index, CalledFunctions, Worklist);
259 // index.
262 // summaries index.
274 findExternalCalls(DestModule, F, Index, CalledFunctions, Worklist);
292 ModuleToFunctionsToImportMap, Index, ModuleLoaderCache);
316 &Index, &FunctionsToImport, TempMDVals.get()))
351 /// Parse the function index out of an IR file and return the function
352 /// index object if found, or nullptr if not.
376 /// Optional function summary index to use for importing, otherwise
378 const FunctionInfoIndex *Index;
389 explicit FunctionImportPass(const FunctionInfoIndex *Index = nullptr)
390 : ModulePass(ID), Index(Index) {}
393 if (SummaryFile.empty() && !Index)
398 if (Index)
399 report_fatal_error("error: -summary-file and index from frontend\n");
407 Index = IndexPtr.get();
414 FunctionImporter Importer(*Index, ModuleLoader);
428 Pass *createFunctionImportPass(const FunctionInfoIndex *Index = nullptr) {
429 return new FunctionImportPass(Index);