+ Add override for overwritten methods.
+ Remove virtual for methods we do not want to be overwritten.
llvm-svn: 230898
/// @brief Recompute dependences from schedule and memory accesses.
void recomputeDependences();
- bool runOnScop(Scop &S);
- void printScop(raw_ostream &OS, Scop &S) const;
- virtual void releaseMemory();
- virtual void getAnalysisUsage(AnalysisUsage &AU) const;
+ bool runOnScop(Scop &S) override;
+ void printScop(raw_ostream &OS, Scop &S) const override;
+ void releaseMemory() override;
+ void getAnalysisUsage(AnalysisUsage &AU) const override;
private:
Scop *S;
/// getAnalysisUsage - Subclasses that override getAnalysisUsage
/// must call this.
///
- virtual void getAnalysisUsage(AnalysisUsage &AU) const;
+ virtual void getAnalysisUsage(AnalysisUsage &AU) const override;
public:
Scop &getCurScop() const {
}
private:
- virtual bool runOnRegion(Region *R, RGPassManager &RGM);
- void print(raw_ostream &OS, const Module *) const;
+ bool runOnRegion(Region *R, RGPassManager &RGM) override;
+ void print(raw_ostream &OS, const Module *) const override;
};
} // End llvm namespace
return true;
}
- bool runOnScop(Scop &S) {
+ bool runOnScop(Scop &S) override {
AI = &getAnalysis<IslAstInfo>();
// Check if we created an isl_ast root node, otherwise exit.
return true;
}
- virtual void printScop(raw_ostream &, Scop &) const {}
+ void printScop(raw_ostream &, Scop &) const override {}
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<DataLayoutPass>();
AU.addRequired<DominatorTreeWrapperPass>();
AU.addRequired<IslAstInfo>();
static char ID;
explicit DeadCodeElim() : ScopPass(ID) {}
- virtual bool runOnScop(Scop &S);
+ bool runOnScop(Scop &S) override;
- void printScop(raw_ostream &OS, Scop &S) const;
- void getAnalysisUsage(AnalysisUsage &AU) const;
+ void printScop(raw_ostream &OS, Scop &S) const override;
+ void getAnalysisUsage(AnalysisUsage &AU) const override;
private:
/// @brief Return the set of live iterations.
~IslScheduleOptimizer() { isl_schedule_free(LastSchedule); }
- virtual bool runOnScop(Scop &S);
- void printScop(raw_ostream &OS, Scop &S) const;
- void getAnalysisUsage(AnalysisUsage &AU) const;
+ bool runOnScop(Scop &S) override;
+ void printScop(raw_ostream &OS, Scop &S) const override;
+ void getAnalysisUsage(AnalysisUsage &AU) const override;
private:
isl_schedule *LastSchedule;
using llvm::Pass::doFinalization;
- virtual bool doFinalization() {
+ virtual bool doFinalization() override {
isl_schedule_free(LastSchedule);
LastSchedule = nullptr;
return true;