[polly] 5eeaac2 - [Polly] Rename CodeGen -> generateCode. NFC.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 13 10:46:57 PDT 2021


Author: Michael Kruse
Date: 2021-08-13T12:46:07-05:00
New Revision: 5eeaac22af3ceb963616708f60a8a77b83d88ec2

URL: https://github.com/llvm/llvm-project/commit/5eeaac22af3ceb963616708f60a8a77b83d88ec2
DIFF: https://github.com/llvm/llvm-project/commit/5eeaac22af3ceb963616708f60a8a77b83d88ec2.diff

LOG: [Polly] Rename CodeGen -> generateCode. NFC.

To conform to function naming convention: camelCase and start with a
verb.

Added: 
    

Modified: 
    polly/lib/CodeGen/CodeGeneration.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index c8addb97a592c..31143eae7526b 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -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 
diff erent ScopInfo for a 
diff erent
@@ -333,7 +334,7 @@ class CodeGeneration : public ScopPass {
     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();
   }


        


More information about the llvm-commits mailing list