[polly] r287819 - Fix typo.

Hongbin Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 13:59:33 PST 2016


Author: ether
Date: Wed Nov 23 15:59:33 2016
New Revision: 287819

URL: http://llvm.org/viewvc/llvm-project?rev=287819&view=rev
Log:
Fix typo.

Modified:
    polly/trunk/include/polly/DependenceInfo.h
    polly/trunk/lib/Analysis/DependenceInfo.cpp

Modified: polly/trunk/include/polly/DependenceInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/DependenceInfo.h?rev=287819&r1=287818&r2=287819&view=diff
==============================================================================
--- polly/trunk/include/polly/DependenceInfo.h (original)
+++ polly/trunk/include/polly/DependenceInfo.h Wed Nov 23 15:59:33 2016
@@ -48,7 +48,7 @@ class MemoryAccess;
 /// query only specific parts.
 struct Dependences {
   // Granularities of the current dependence analysis
-  enum AnalyisLevel {
+  enum AnalysisLevel {
     AL_Statement = 0,
     // Distinguish accessed memory references in the same statement
     AL_Reference,
@@ -142,7 +142,7 @@ struct Dependences {
   void dump() const;
 
   /// Return the granularity of this dependence analysis.
-  AnalyisLevel getDependenceLevel() { return Level; }
+  AnalysisLevel getDependenceLevel() { return Level; }
 
   /// Allow the DependenceInfo access to private members and methods.
   ///
@@ -157,7 +157,7 @@ struct Dependences {
 private:
   /// Create an empty dependences struct.
   explicit Dependences(const std::shared_ptr<isl_ctx> &IslCtx,
-                       AnalyisLevel Level)
+                       AnalysisLevel Level)
       : RAW(nullptr), WAR(nullptr), WAW(nullptr), RED(nullptr), TC_RED(nullptr),
         IslCtx(IslCtx), Level(Level) {}
 
@@ -193,7 +193,7 @@ private:
   std::shared_ptr<isl_ctx> IslCtx;
 
   /// Granularity of this dependence analysis.
-  const AnalyisLevel Level;
+  const AnalysisLevel Level;
 };
 
 class DependenceInfo : public ScopPass {
@@ -209,10 +209,10 @@ public:
   ///
   /// @return The dependence analysis result
   ///
-  const Dependences &getDependences(Dependences::AnalyisLevel Level);
+  const Dependences &getDependences(Dependences::AnalysisLevel Level);
 
   /// Recompute dependences from schedule and memory accesses.
-  const Dependences &recomputeDependences(Dependences::AnalyisLevel Level);
+  const Dependences &recomputeDependences(Dependences::AnalysisLevel Level);
 
   /// Compute the dependence information for the SCoP @p S.
   bool runOnScop(Scop &S) override;
@@ -251,11 +251,11 @@ public:
   ///
   /// @return The dependence analysis result
   ///
-  const Dependences &getDependences(Scop *S, Dependences::AnalyisLevel Level);
+  const Dependences &getDependences(Scop *S, Dependences::AnalysisLevel Level);
 
   /// Recompute dependences from schedule and memory accesses.
   const Dependences &recomputeDependences(Scop *S,
-                                          Dependences::AnalyisLevel Level);
+                                          Dependences::AnalysisLevel Level);
 
   /// Compute the dependence information on-the-fly for the function.
   bool runOnFunction(Function &F) override;

Modified: polly/trunk/lib/Analysis/DependenceInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/DependenceInfo.cpp?rev=287819&r1=287818&r2=287819&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/DependenceInfo.cpp (original)
+++ polly/trunk/lib/Analysis/DependenceInfo.cpp Wed Nov 23 15:59:33 2016
@@ -69,7 +69,7 @@ static cl::opt<enum AnalysisType> OptAna
     cl::Hidden, cl::init(VALUE_BASED_ANALYSIS), cl::ZeroOrMore,
     cl::cat(PollyCategory));
 
-static cl::opt<Dependences::AnalyisLevel> OptAnalysisLevel(
+static cl::opt<Dependences::AnalysisLevel> OptAnalysisLevel(
     "polly-dependences-analysis-level",
     cl::desc("The level of dependence analysis"),
     cl::values(clEnumValN(Dependences::AL_Statement, "statement-wise",
@@ -99,7 +99,7 @@ static __isl_give isl_map *tag(__isl_tak
 /// Tag the @p Relation domain with either MA->getArrayId() or
 ///        MA->getId() based on @p TagLevel
 static __isl_give isl_map *tag(__isl_take isl_map *Relation, MemoryAccess *MA,
-                               Dependences::AnalyisLevel TagLevel) {
+                               Dependences::AnalysisLevel TagLevel) {
   if (TagLevel == Dependences::AL_Reference)
     return tag(Relation, MA->getArrayId());
 
@@ -115,7 +115,7 @@ static void collectInfo(Scop &S, isl_uni
                         isl_union_map **MayWrite,
                         isl_union_map **AccessSchedule,
                         isl_union_map **StmtSchedule,
-                        Dependences::AnalyisLevel Level) {
+                        Dependences::AnalysisLevel Level) {
   isl_space *Space = S.getParamSpace();
   *Read = isl_union_map_empty(isl_space_copy(Space));
   *Write = isl_union_map_empty(isl_space_copy(Space));
@@ -773,7 +773,7 @@ void Dependences::setReductionDependence
 }
 
 const Dependences &
-DependenceInfo::getDependences(Dependences::AnalyisLevel Level) {
+DependenceInfo::getDependences(Dependences::AnalysisLevel Level) {
   if (Dependences *d = D[Level].get())
     return *d;
 
@@ -781,7 +781,7 @@ DependenceInfo::getDependences(Dependenc
 }
 
 const Dependences &
-DependenceInfo::recomputeDependences(Dependences::AnalyisLevel Level) {
+DependenceInfo::recomputeDependences(Dependences::AnalysisLevel Level) {
   D[Level].reset(new Dependences(S->getSharedIslCtx(), Level));
   D[Level]->calculateDependences(*S);
   return *D[Level];
@@ -824,7 +824,7 @@ INITIALIZE_PASS_END(DependenceInfo, "pol
 //===----------------------------------------------------------------------===//
 const Dependences &
 DependenceInfoWrapperPass::getDependences(Scop *S,
-                                          Dependences::AnalyisLevel Level) {
+                                          Dependences::AnalysisLevel Level) {
   auto It = ScopToDepsMap.find(S);
   if (It != ScopToDepsMap.end())
     if (It->second) {
@@ -835,7 +835,7 @@ DependenceInfoWrapperPass::getDependence
 }
 
 const Dependences &DependenceInfoWrapperPass::recomputeDependences(
-    Scop *S, Dependences::AnalyisLevel Level) {
+    Scop *S, Dependences::AnalysisLevel Level) {
   std::unique_ptr<Dependences> D(new Dependences(S->getSharedIslCtx(), Level));
   D->calculateDependences(*S);
   auto Inserted = ScopToDepsMap.insert(std::make_pair(S, std::move(D)));




More information about the llvm-commits mailing list