summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.cpp40
1 files changed, 19 insertions, 21 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index 9c09326ad66..3dbfd741945 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -52,7 +52,7 @@ public:
initializeX86TTIPass(*PassRegistry::getPassRegistry());
}
- virtual void initializePass() LLVM_OVERRIDE {
+ virtual void initializePass() override {
pushTTIStack(this);
}
@@ -60,7 +60,7 @@ public:
popTTIStack();
}
- virtual void getAnalysisUsage(AnalysisUsage &AU) const LLVM_OVERRIDE {
+ virtual void getAnalysisUsage(AnalysisUsage &AU) const 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) LLVM_OVERRIDE {
+ virtual void *getAdjustedAnalysisPointer(const void *ID) override {
if (ID == &TargetTransformInfo::ID)
return (TargetTransformInfo*)this;
return this;
@@ -76,45 +76,43 @@ public:
/// \name Scalar TTI Implementations
/// @{
- virtual PopcntSupportKind
- getPopcntSupport(unsigned TyWidth) const LLVM_OVERRIDE;
+ virtual PopcntSupportKind getPopcntSupport(unsigned TyWidth) const override;
/// @}
/// \name Vector TTI Implementations
/// @{
- virtual unsigned getNumberOfRegisters(bool Vector) const LLVM_OVERRIDE;
- virtual unsigned getRegisterBitWidth(bool Vector) const LLVM_OVERRIDE;
- virtual unsigned getMaximumUnrollFactor() const LLVM_OVERRIDE;
+ virtual unsigned getNumberOfRegisters(bool Vector) const override;
+ virtual unsigned getRegisterBitWidth(bool Vector) const override;
+ virtual unsigned getMaximumUnrollFactor() const override;
virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty,
OperandValueKind,
- OperandValueKind) const LLVM_OVERRIDE;
+ OperandValueKind) const override;
virtual unsigned getShuffleCost(ShuffleKind Kind, Type *Tp,
- int Index, Type *SubTp) const LLVM_OVERRIDE;
+ int Index, Type *SubTp) const override;
virtual unsigned getCastInstrCost(unsigned Opcode, Type *Dst,
- Type *Src) const LLVM_OVERRIDE;
+ Type *Src) const override;
virtual unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
- Type *CondTy) const LLVM_OVERRIDE;
+ Type *CondTy) const override;
virtual unsigned getVectorInstrCost(unsigned Opcode, Type *Val,
- unsigned Index) const LLVM_OVERRIDE;
+ unsigned Index) const override;
virtual unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
unsigned Alignment,
- unsigned AddressSpace) const LLVM_OVERRIDE;
+ unsigned AddressSpace) const override;
virtual unsigned
- getAddressComputationCost(Type *PtrTy, bool IsComplex) const LLVM_OVERRIDE;
-
+ getAddressComputationCost(Type *PtrTy, bool IsComplex) const override;
+
virtual unsigned getReductionCost(unsigned Opcode, Type *Ty,
- bool IsPairwiseForm) const LLVM_OVERRIDE;
+ bool IsPairwiseForm) const override;
- virtual unsigned getIntImmCost(const APInt &Imm,
- Type *Ty) const LLVM_OVERRIDE;
+ virtual unsigned getIntImmCost(const APInt &Imm, Type *Ty) const override;
virtual unsigned getIntImmCost(unsigned Opcode, const APInt &Imm,
- Type *Ty) const LLVM_OVERRIDE;
+ Type *Ty) const override;
virtual unsigned getIntImmCost(Intrinsic::ID IID, const APInt &Imm,
- Type *Ty) const LLVM_OVERRIDE;
+ Type *Ty) const override;
/// @}
};
OpenPOWER on IntegriCloud