[NFC] Consistenly use commented and annotated ScopPass functions
The changes affect methods that are part of the Pass interface and
include:
- Comments that describe the methods purpose.
- A consistent use of the keywords override and virtual.
Additionally, the printScop method is now optional and removed from
SCoP passes that do not implement it.
llvm-svn: 248685
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index e573a6d..e81a265 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -328,18 +328,23 @@
~IslScheduleOptimizer() { isl_schedule_free(LastSchedule); }
+ /// @brief Optimize the schedule of the SCoP @p S.
bool runOnScop(Scop &S) override;
- void printScop(raw_ostream &OS, Scop &S) const override;
- void getAnalysisUsage(AnalysisUsage &AU) const override;
-private:
- isl_schedule *LastSchedule;
+ /// @brief Print the new schedule for the SCoP @p S.
+ void printScop(raw_ostream &OS, Scop &S) const override;
+
+ /// @brief Register all analyses and transformation required.
+ void getAnalysisUsage(AnalysisUsage &AU) const override;
/// @brief Release the internal memory.
void releaseMemory() override {
isl_schedule_free(LastSchedule);
LastSchedule = nullptr;
}
+
+private:
+ isl_schedule *LastSchedule;
};
}