Skip to content

Commit 5eeaac2

Browse files
committed
[Polly] Rename CodeGen -> generateCode. NFC.
To conform to function naming convention: camelCase and start with a verb.
1 parent 0232c1d commit 5eeaac2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

polly/lib/CodeGen/CodeGeneration.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ static void removeLifetimeMarkers(Region *R) {
166166
}
167167
}
168168

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) {
171172
// Check whether IslAstInfo uses the same isl_ctx. Since -polly-codegen
172173
// reports itself to preserve DependenceInfo and IslAstInfo, we might get
173174
// those analysis that were computed by a different ScopInfo for a different
@@ -333,7 +334,7 @@ class CodeGeneration : public ScopPass {
333334
SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
334335
DL = &S.getFunction().getParent()->getDataLayout();
335336
RI = &getAnalysis<RegionInfoPass>().getRegionInfo();
336-
return CodeGen(S, *AI, *LI, *DT, *SE, *RI);
337+
return generateCode(S, *AI, *LI, *DT, *SE, *RI);
337338
}
338339

339340
/// Register all analyses and transformation required.
@@ -361,7 +362,7 @@ PreservedAnalyses CodeGenerationPass::run(Scop &S, ScopAnalysisManager &SAM,
361362
ScopStandardAnalysisResults &AR,
362363
SPMUpdater &U) {
363364
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)) {
365366
U.invalidateScop(S);
366367
return PreservedAnalyses::none();
367368
}

0 commit comments

Comments
 (0)