diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 09:10:37 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 09:10:37 +0000 |
commit | 3e4c697ca1314da24ac34e42293cc28d88fdc134 (patch) | |
tree | 7a935b36554394c06777483ad27cf41e23360ead /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 6a927ecb7a98e2c9a25b724f96f153749ca475dd (diff) | |
download | bcm5719-llvm-3e4c697ca1314da24ac34e42293cc28d88fdc134.tar.gz bcm5719-llvm-3e4c697ca1314da24ac34e42293cc28d88fdc134.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 202953
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 1ff347df6e7..573df567de9 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -433,11 +433,12 @@ public: InnerLoopVectorizer(OrigLoop, SE, LI, DT, DL, TLI, 1, UnrollFactor) { } private: - virtual void scalarizeInstruction(Instruction *Instr, bool IfPredicateStore = false); - virtual void vectorizeMemoryInstruction(Instruction *Instr); - virtual Value *getBroadcastInstrs(Value *V); - virtual Value *getConsecutiveVector(Value* Val, int StartIdx, bool Negate); - virtual Value *reverseVector(Value *Vec); + void scalarizeInstruction(Instruction *Instr, + bool IfPredicateStore = false) override; + void vectorizeMemoryInstruction(Instruction *Instr) override; + Value *getBroadcastInstrs(Value *V) override; + Value *getConsecutiveVector(Value* Val, int StartIdx, bool Negate) override; + Value *reverseVector(Value *Vec) override; }; /// \brief Look for a meaningful debug location on the instruction or it's @@ -1020,7 +1021,7 @@ struct LoopVectorize : public FunctionPass { BlockFrequency ColdEntryFreq; - virtual bool runOnFunction(Function &F) { + bool runOnFunction(Function &F) override { SE = &getAnalysis<ScalarEvolution>(); DataLayoutPass *DLP = getAnalysisIfAvailable<DataLayoutPass>(); DL = DLP ? &DLP->getDataLayout() : 0; @@ -1160,7 +1161,7 @@ struct LoopVectorize : public FunctionPass { return true; } - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequiredID(LoopSimplifyID); AU.addRequiredID(LCSSAID); AU.addRequired<BlockFrequencyInfo>(); |