@@ -68,8 +68,8 @@ class PhaseManager {
6868 // TODO: CodePreparation doesn't actually need these analysis, it just keeps
6969 // them up-to-date. If they are not computed yet, can also compute after the
7070 // prepare phase.
71- auto &LI = FAM.getResult <LoopAnalysis>(F);
72- auto &DT = FAM.getResult <DominatorTreeAnalysis>(F);
71+ LoopInfo &LI = FAM.getResult <LoopAnalysis>(F);
72+ DominatorTree &DT = FAM.getResult <DominatorTreeAnalysis>(F);
7373 bool ModifiedIR = false ;
7474
7575 // Phase: prepare
@@ -86,9 +86,10 @@ class PhaseManager {
8686 if (!Opts.isPhaseEnabled (PassPhase::Detection))
8787 return false ;
8888
89- auto &AA = FAM.getResult <AAManager>(F);
90- auto &SE = FAM.getResult <ScalarEvolutionAnalysis>(F);
91- auto &ORE = FAM.getResult <OptimizationRemarkEmitterAnalysis>(F);
89+ AAResults &AA = FAM.getResult <AAManager>(F);
90+ ScalarEvolution &SE = FAM.getResult <ScalarEvolutionAnalysis>(F);
91+ OptimizationRemarkEmitter &ORE =
92+ FAM.getResult <OptimizationRemarkEmitterAnalysis>(F);
9293
9394 // ScopDetection is modifying RegionInfo, do not cache it, nor use a cached
9495 // version.
@@ -122,17 +123,17 @@ class PhaseManager {
122123 ViewScops (" scopsonly" , true );
123124
124125 // Phase: scops
125- auto &AC = FAM.getResult <AssumptionAnalysis>(F);
126+ AssumptionCache &AC = FAM.getResult <AssumptionAnalysis>(F);
126127 const DataLayout &DL = F.getParent ()->getDataLayout ();
127128 ScopInfo Info (DL, SD, SE, LI, AA, DT, AC, ORE);
128129 if (Opts.isPhaseEnabled (PassPhase::PrintScopInfo)) {
129- if (auto && TLR = RI.getTopLevelRegion ()) {
130+ if (Region * TLR = RI.getTopLevelRegion ()) {
130131 SmallVector<Region *> Regions;
131132 addRegionIntoQueue (*TLR, Regions);
132133
133134 // reverse iteration because the regression tests expect it.
134- for (auto && R : reverse (Regions)) {
135- auto *S = Info.getScop (R);
135+ for (Region * R : reverse (Regions)) {
136+ Scop *S = Info.getScop (R);
136137 outs () << " Printing analysis 'Polly - Create polyhedral "
137138 " description of Scops' for region: '"
138139 << R->getNameStr () << " ' in function '" << F.getName ()
@@ -150,7 +151,7 @@ class PhaseManager {
150151 if (S)
151152 Worklist.insert (R);
152153
153- auto & &TTI = FAM.getResult <TargetIRAnalysis>(F);
154+ TargetTransformInfo &TTI = FAM.getResult <TargetIRAnalysis>(F);
154155 while (!Worklist.empty ()) {
155156 Region *R = Worklist.pop_back_val ();
156157 if (!SD.isMaxRegionInScop (*R, /* Verify=*/ false ))
0 commit comments