@@ -166,8 +166,9 @@ static void removeLifetimeMarkers(Region *R) {
166
166
}
167
167
}
168
168
169
- static bool CodeGen (Scop &S, IslAstInfo &AI, LoopInfo &LI, DominatorTree &DT,
170
- ScalarEvolution &SE, RegionInfo &RI) {
169
+ static bool generateCode (Scop &S, IslAstInfo &AI, LoopInfo &LI,
170
+ DominatorTree &DT, ScalarEvolution &SE,
171
+ RegionInfo &RI) {
171
172
// Check whether IslAstInfo uses the same isl_ctx. Since -polly-codegen
172
173
// reports itself to preserve DependenceInfo and IslAstInfo, we might get
173
174
// those analysis that were computed by a different ScopInfo for a different
@@ -333,7 +334,7 @@ class CodeGeneration : public ScopPass {
333
334
SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE ();
334
335
DL = &S.getFunction ().getParent ()->getDataLayout ();
335
336
RI = &getAnalysis<RegionInfoPass>().getRegionInfo ();
336
- return CodeGen (S, *AI, *LI, *DT, *SE, *RI);
337
+ return generateCode (S, *AI, *LI, *DT, *SE, *RI);
337
338
}
338
339
339
340
// / Register all analyses and transformation required.
@@ -361,7 +362,7 @@ PreservedAnalyses CodeGenerationPass::run(Scop &S, ScopAnalysisManager &SAM,
361
362
ScopStandardAnalysisResults &AR,
362
363
SPMUpdater &U) {
363
364
auto &AI = SAM.getResult <IslAstAnalysis>(S, AR);
364
- if (CodeGen (S, AI, AR.LI , AR.DT , AR.SE , AR.RI )) {
365
+ if (generateCode (S, AI, AR.LI , AR.DT , AR.SE , AR.RI )) {
365
366
U.invalidateScop (S);
366
367
return PreservedAnalyses::none ();
367
368
}
0 commit comments