Lines Matching refs:Pass
182 Pass *getAsPass() override { return this; } in getAsPass()
218 class FunctionPassManagerImpl : public Pass,
227 Pass(PT_PassManager, ID), PMDataManager(), in FunctionPassManagerImpl()
231 void add(Pass *P) { in add()
236 Pass *createPrinterPass(raw_ostream &O, in createPrinterPass()
259 Pass *getAsPass() override { return this; } in getAsPass()
289 class MPPassManager : public Pass, public PMDataManager {
293 Pass(PT_PassManager, ID), PMDataManager() { } in MPPassManager()
297 for (std::map<Pass *, FunctionPassManagerImpl *>::iterator in ~MPPassManager()
306 Pass *createPrinterPass(raw_ostream &O, in createPrinterPass()
315 using llvm::Pass::doInitialization;
316 using llvm::Pass::doFinalization;
334 void addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) override;
339 Pass* getOnTheFlyPass(Pass *MP, AnalysisID PI, Function &F) override;
346 Pass *getAsPass() override { return this; } in getAsPass()
354 std::map<Pass *, FunctionPassManagerImpl *>::const_iterator I = in dumpPassStructure()
374 std::map<Pass *, FunctionPassManagerImpl *> OnTheFlyManagers;
387 class PassManagerImpl : public Pass,
395 Pass(PT_PassManager, ID), PMDataManager(), in PassManagerImpl()
399 void add(Pass *P) { in add()
404 Pass *createPrinterPass(raw_ostream &O, in createPrinterPass()
413 using llvm::Pass::doInitialization;
414 using llvm::Pass::doFinalization;
430 Pass *getAsPass() override { return this; } in getAsPass()
459 DenseMap<Pass*, Timer*> TimingData;
469 for (DenseMap<Pass*, Timer*>::iterator I = TimingData.begin(), in ~TimingInfo()
481 Timer *getPassTimer(Pass *P) { in getPassTimer()
509 PMTopLevelManager::setLastUser(ArrayRef<Pass*> AnalysisPasses, Pass *P) { in setLastUser()
514 for (SmallVectorImpl<Pass *>::const_iterator I = AnalysisPasses.begin(), in setLastUser()
516 Pass *AP = *I; in setLastUser()
525 SmallVector<Pass *, 12> LastUses; in setLastUser()
526 SmallVector<Pass *, 12> LastPMUses; in setLastUser()
529 Pass *AnalysisPass = findAnalysisPass(*I); in setLastUser()
551 for (DenseMap<Pass *, Pass *>::iterator LUI = LastUser.begin(), in setLastUser()
562 void PMTopLevelManager::collectLastUses(SmallVectorImpl<Pass *> &LastUses, in collectLastUses()
563 Pass *P) { in collectLastUses()
564 DenseMap<Pass *, SmallPtrSet<Pass *, 8> >::iterator DMI = in collectLastUses()
569 SmallPtrSet<Pass *, 8> &LU = DMI->second; in collectLastUses()
570 for (Pass *LUP : LU) { in collectLastUses()
576 AnalysisUsage *PMTopLevelManager::findAnalysisUsage(Pass *P) { in findAnalysisUsage()
578 DenseMap<Pass *, AnalysisUsage *>::iterator DMI = AnUsageMap.find(P); in findAnalysisUsage()
592 void PMTopLevelManager::schedulePass(Pass *P) { in schedulePass()
619 Pass *AnalysisPass = findAnalysisPass(*I); in schedulePass()
630 Pass *AnalysisPass2 = findAnalysisPass(*I2); in schedulePass()
676 Pass *PP = P->createPrinterPass( in schedulePass()
685 Pass *PP = P->createPrinterPass( in schedulePass()
694 Pass *PMTopLevelManager::findAnalysisPass(AnalysisID AID) { in findAnalysisPass()
699 if (Pass *P = (*I)->findAnalysisPass(AID, false)) in findAnalysisPass()
706 if (Pass *P = (*I)->findAnalysisPass(AID, false)) in findAnalysisPass()
793 for (DenseMap<Pass *, Pass *>::iterator DMI = LastUser.begin(), in initializeAllAnalysisInfo()
795 DenseMap<Pass *, SmallPtrSet<Pass *, 8> >::iterator InvDMI = in initializeAllAnalysisInfo()
798 SmallPtrSet<Pass *, 8> &L = InvDMI->second; in initializeAllAnalysisInfo()
801 SmallPtrSet<Pass *, 8> L; L.insert(DMI->first); in initializeAllAnalysisInfo()
817 for (DenseMap<Pass *, AnalysisUsage *>::iterator DMI = AnUsageMap.begin(), in ~PMTopLevelManager()
826 void PMDataManager::recordAvailableAnalysis(Pass *P) { in recordAvailableAnalysis()
844 bool PMDataManager::preserveHigherLevelAnalysis(Pass *P) { in preserveHigherLevelAnalysis()
850 for (SmallVectorImpl<Pass *>::iterator I = HigherLevelAnalysis.begin(), in preserveHigherLevelAnalysis()
852 Pass *P1 = *I; in preserveHigherLevelAnalysis()
864 void PMDataManager::verifyPreservedAnalysis(Pass *P) { in verifyPreservedAnalysis()
876 if (Pass *AP = findAnalysisPass(AID, true)) { in verifyPreservedAnalysis()
884 void PMDataManager::removeNotPreservedAnalysis(Pass *P) { in removeNotPreservedAnalysis()
890 for (DenseMap<AnalysisID, Pass*>::iterator I = AvailableAnalysis.begin(), in removeNotPreservedAnalysis()
892 DenseMap<AnalysisID, Pass*>::iterator Info = I++; in removeNotPreservedAnalysis()
898 Pass *S = Info->second; in removeNotPreservedAnalysis()
913 for (DenseMap<AnalysisID, Pass*>::iterator in removeNotPreservedAnalysis()
916 DenseMap<AnalysisID, Pass *>::iterator Info = I++; in removeNotPreservedAnalysis()
922 Pass *S = Info->second; in removeNotPreservedAnalysis()
933 void PMDataManager::removeDeadPasses(Pass *P, StringRef Msg, in removeDeadPasses()
936 SmallVector<Pass *, 12> DeadPasses; in removeDeadPasses()
950 for (SmallVectorImpl<Pass *>::iterator I = DeadPasses.begin(), in removeDeadPasses()
955 void PMDataManager::freePass(Pass *P, StringRef Msg, in freePass()
976 DenseMap<AnalysisID, Pass*>::iterator Pos = in freePass()
986 void PMDataManager::add(Pass *P, bool ProcessAnalysis) { in add()
994 SmallVector<Pass *, 12> TransferLastUses; in add()
1003 SmallVector<Pass *, 12> LastUses; in add()
1004 SmallVector<Pass *, 8> RequiredPasses; in add()
1011 for (SmallVectorImpl<Pass *>::iterator I = RequiredPasses.begin(), in add()
1013 Pass *PRequired = *I; in add()
1039 Pass *My_PM = getAsPass(); in add()
1049 Pass *AnalysisPass = PI->createPass(); in add()
1066 void PMDataManager::collectRequiredAnalysis(SmallVectorImpl<Pass *> &RP, in collectRequiredAnalysis()
1068 Pass *P) { in collectRequiredAnalysis()
1073 if (Pass *AnalysisPass = findAnalysisPass(*I, true)) in collectRequiredAnalysis()
1082 if (Pass *AnalysisPass = findAnalysisPass(*I, true)) in collectRequiredAnalysis()
1094 void PMDataManager::initializeAnalysisImpl(Pass *P) { in initializeAnalysisImpl()
1100 Pass *Impl = findAnalysisPass(*I, true); in initializeAnalysisImpl()
1113 Pass *PMDataManager::findAnalysisPass(AnalysisID AID, bool SearchParent) { in findAnalysisPass()
1116 DenseMap<AnalysisID, Pass*>::const_iterator I = AvailableAnalysis.find(AID); in findAnalysisPass()
1129 void PMDataManager::dumpLastUses(Pass *P, unsigned Offset) const{ in dumpLastUses()
1131 SmallVector<Pass *, 12> LUses; in dumpLastUses()
1139 for (SmallVectorImpl<Pass *>::iterator I = LUses.begin(), in dumpLastUses()
1147 for (SmallVectorImpl<Pass *>::const_iterator I = PassVector.begin(), in dumpPassArguments()
1159 void PMDataManager::dumpPassInfo(Pass *P, enum PassDebuggingString S1, in dumpPassInfo()
1203 void PMDataManager::dumpRequiredSet(const Pass *P) const { in dumpRequiredSet()
1212 void PMDataManager::dumpPreservedSet(const Pass *P) const { in dumpPreservedSet()
1221 void PMDataManager::dumpAnalysisUsage(StringRef Msg, const Pass *P, in dumpAnalysisUsage()
1245 void PMDataManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) { in addLowerLevelRequiredPass()
1267 Pass *PMDataManager::getOnTheFlyPass(Pass *P, AnalysisID PI, Function &F) { in getOnTheFlyPass()
1273 for (SmallVectorImpl<Pass *>::iterator I = PassVector.begin(), in ~PMDataManager()
1281 Pass *AnalysisResolver::getAnalysisIfAvailable(AnalysisID ID, bool dir) const { in getAnalysisIfAvailable()
1285 Pass *AnalysisResolver::findImplPass(Pass *P, AnalysisID AnalysisPI, in findImplPass()
1394 void FunctionPassManager::add(Pass *P) { in add()
1592 for (std::map<Pass *, FunctionPassManagerImpl *>::iterator in runOnModule()
1636 for (std::map<Pass *, FunctionPassManagerImpl *>::iterator in runOnModule()
1652 void MPPassManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) { in addLowerLevelRequiredPass()
1672 Pass *FoundPass = nullptr; in addLowerLevelRequiredPass()
1684 SmallVector<Pass *, 1> LU; in addLowerLevelRequiredPass()
1692 Pass* MPPassManager::getOnTheFlyPass(Pass *MP, AnalysisID PI, Function &F){ in getOnTheFlyPass()
1749 void PassManager::add(Pass *P) { in add()
1781 Timer *llvm::getPassTimer(Pass *P) { in getPassTimer()