From 4ff1c3983d8f8ec15f6f457d7c0662825f7bdb6c Mon Sep 17 00:00:00 2001 From: Hongbin Zheng Date: Wed, 23 Nov 2016 21:59:33 +0000 Subject: [PATCH] Fix typo. llvm-svn: 287819 --- polly/include/polly/DependenceInfo.h | 16 ++++++++-------- polly/lib/Analysis/DependenceInfo.cpp | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/polly/include/polly/DependenceInfo.h b/polly/include/polly/DependenceInfo.h index b43fd60a9885..012153ca4055 100644 --- a/polly/include/polly/DependenceInfo.h +++ b/polly/include/polly/DependenceInfo.h @@ -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 &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 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; diff --git a/polly/lib/Analysis/DependenceInfo.cpp b/polly/lib/Analysis/DependenceInfo.cpp index 27cc7680b64d..6b4e1352326f 100644 --- a/polly/lib/Analysis/DependenceInfo.cpp +++ b/polly/lib/Analysis/DependenceInfo.cpp @@ -69,7 +69,7 @@ static cl::opt OptAnalysisType( cl::Hidden, cl::init(VALUE_BASED_ANALYSIS), cl::ZeroOrMore, cl::cat(PollyCategory)); -static cl::opt OptAnalysisLevel( +static cl::opt 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_take isl_map *Relation, /// 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_union_map **Read, isl_union_map **Write, 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::setReductionDependences(MemoryAccess *MA, isl_map *D) { } 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(Dependences::AnalyisLevel Level) { } 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, "polly-dependences", //===----------------------------------------------------------------------===// 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::getDependences(Scop *S, } const Dependences &DependenceInfoWrapperPass::recomputeDependences( - Scop *S, Dependences::AnalyisLevel Level) { + Scop *S, Dependences::AnalysisLevel Level) { std::unique_ptr D(new Dependences(S->getSharedIslCtx(), Level)); D->calculateDependences(*S); auto Inserted = ScopToDepsMap.insert(std::make_pair(S, std::move(D)));