forked from OSchip/llvm-project
[Polly] Rename CodeGen -> generateCode. NFC.
To conform to function naming convention: camelCase and start with a verb.
This commit is contained in:
parent
0232c1d10d
commit
5eeaac22af
|
@ -166,8 +166,9 @@ static void removeLifetimeMarkers(Region *R) {
|
|||
}
|
||||
}
|
||||
|
||||
static bool CodeGen(Scop &S, IslAstInfo &AI, LoopInfo &LI, DominatorTree &DT,
|
||||
ScalarEvolution &SE, RegionInfo &RI) {
|
||||
static bool generateCode(Scop &S, IslAstInfo &AI, LoopInfo &LI,
|
||||
DominatorTree &DT, ScalarEvolution &SE,
|
||||
RegionInfo &RI) {
|
||||
// Check whether IslAstInfo uses the same isl_ctx. Since -polly-codegen
|
||||
// reports itself to preserve DependenceInfo and IslAstInfo, we might get
|
||||
// those analysis that were computed by a different ScopInfo for a different
|
||||
|
@ -333,7 +334,7 @@ public:
|
|||
SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
|
||||
DL = &S.getFunction().getParent()->getDataLayout();
|
||||
RI = &getAnalysis<RegionInfoPass>().getRegionInfo();
|
||||
return CodeGen(S, *AI, *LI, *DT, *SE, *RI);
|
||||
return generateCode(S, *AI, *LI, *DT, *SE, *RI);
|
||||
}
|
||||
|
||||
/// Register all analyses and transformation required.
|
||||
|
@ -361,7 +362,7 @@ PreservedAnalyses CodeGenerationPass::run(Scop &S, ScopAnalysisManager &SAM,
|
|||
ScopStandardAnalysisResults &AR,
|
||||
SPMUpdater &U) {
|
||||
auto &AI = SAM.getResult<IslAstAnalysis>(S, AR);
|
||||
if (CodeGen(S, AI, AR.LI, AR.DT, AR.SE, AR.RI)) {
|
||||
if (generateCode(S, AI, AR.LI, AR.DT, AR.SE, AR.RI)) {
|
||||
U.invalidateScop(S);
|
||||
return PreservedAnalyses::none();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue