summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-01-24 18:22:59 +0000
committerJuergen Ributzka <juergen@apple.com>2014-01-24 18:22:59 +0000
commit8346f147ab6f06be4dac4af5c0e451a22bccf475 (patch)
treef5fd2c471b990da433913def237b5bde0a272741 /lib/Target/PowerPC/PPCTargetTransformInfo.cpp
parent342a479f8dd77f167df1eda27d4d7c127eea010c (diff)
downloadllvm-8346f147ab6f06be4dac4af5c0e451a22bccf475.tar.gz
llvm-8346f147ab6f06be4dac4af5c0e451a22bccf475.tar.bz2
llvm-8346f147ab6f06be4dac4af5c0e451a22bccf475.tar.xz
Add final and owerride keywords to TargetTransformInfo's subclasses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetTransformInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCTargetTransformInfo.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
index 6d9c4bb45e..51b76de07e 100644
--- a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
+++ b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
@@ -32,7 +32,7 @@ void initializePPCTTIPass(PassRegistry &);
namespace {
-class PPCTTI : public ImmutablePass, public TargetTransformInfo {
+class PPCTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
const PPCTargetMachine *TM;
const PPCSubtarget *ST;
const PPCTargetLowering *TLI;
@@ -52,7 +52,7 @@ public:
initializePPCTTIPass(*PassRegistry::getPassRegistry());
}
- virtual void initializePass() {
+ virtual void initializePass() LLVM_OVERRIDE {
pushTTIStack(this);
}
@@ -60,7 +60,7 @@ public:
popTTIStack();
}
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ virtual void getAnalysisUsage(AnalysisUsage &AU) const LLVM_OVERRIDE {
TargetTransformInfo::getAnalysisUsage(AU);
}
@@ -68,7 +68,7 @@ public:
static char ID;
/// Provide necessary pointer adjustments for the two base classes.
- virtual void *getAdjustedAnalysisPointer(const void *ID) {
+ virtual void *getAdjustedAnalysisPointer(const void *ID) LLVM_OVERRIDE {
if (ID == &TargetTransformInfo::ID)
return (TargetTransformInfo*)this;
return this;
@@ -76,31 +76,33 @@ public:
/// \name Scalar TTI Implementations
/// @{
- virtual PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;
- virtual void getUnrollingPreferences(Loop *L, UnrollingPreferences &UP) const;
+ virtual PopcntSupportKind
+ getPopcntSupport(unsigned TyWidth) const LLVM_OVERRIDE;
+ virtual void getUnrollingPreferences(
+ Loop *L, UnrollingPreferences &UP) const LLVM_OVERRIDE;
/// @}
/// \name Vector TTI Implementations
/// @{
- virtual unsigned getNumberOfRegisters(bool Vector) const;
- virtual unsigned getRegisterBitWidth(bool Vector) const;
- virtual unsigned getMaximumUnrollFactor() const;
+ virtual unsigned getNumberOfRegisters(bool Vector) const LLVM_OVERRIDE;
+ virtual unsigned getRegisterBitWidth(bool Vector) const LLVM_OVERRIDE;
+ virtual unsigned getMaximumUnrollFactor() const LLVM_OVERRIDE;
virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty,
OperandValueKind,
- OperandValueKind) const;
+ OperandValueKind) const LLVM_OVERRIDE;
virtual unsigned getShuffleCost(ShuffleKind Kind, Type *Tp,
- int Index, Type *SubTp) const;
+ int Index, Type *SubTp) const LLVM_OVERRIDE;
virtual unsigned getCastInstrCost(unsigned Opcode, Type *Dst,
- Type *Src) const;
+ Type *Src) const LLVM_OVERRIDE;
virtual unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
- Type *CondTy) const;
+ Type *CondTy) const LLVM_OVERRIDE;
virtual unsigned getVectorInstrCost(unsigned Opcode, Type *Val,
- unsigned Index) const;
+ unsigned Index) const LLVM_OVERRIDE;
virtual unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
unsigned Alignment,
- unsigned AddressSpace) const;
+ unsigned AddressSpace) const LLVM_OVERRIDE;
/// @}
};