mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[C++11] Remove 'virtual' keyword from methods marked with 'override' keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203444 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -43,11 +43,11 @@ public:
|
||||
initializeBasicTTIPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
virtual void initializePass() override {
|
||||
void initializePass() override {
|
||||
pushTTIStack(this);
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
TargetTransformInfo::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
@@ -55,64 +55,61 @@ public:
|
||||
static char ID;
|
||||
|
||||
/// Provide necessary pointer adjustments for the two base classes.
|
||||
virtual void *getAdjustedAnalysisPointer(const void *ID) override {
|
||||
void *getAdjustedAnalysisPointer(const void *ID) override {
|
||||
if (ID == &TargetTransformInfo::ID)
|
||||
return (TargetTransformInfo*)this;
|
||||
return this;
|
||||
}
|
||||
|
||||
virtual bool hasBranchDivergence() const override;
|
||||
bool hasBranchDivergence() const override;
|
||||
|
||||
/// \name Scalar TTI Implementations
|
||||
/// @{
|
||||
|
||||
virtual bool isLegalAddImmediate(int64_t imm) const override;
|
||||
virtual bool isLegalICmpImmediate(int64_t imm) const override;
|
||||
virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
|
||||
int64_t BaseOffset, bool HasBaseReg,
|
||||
int64_t Scale) const override;
|
||||
virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
||||
int64_t BaseOffset, bool HasBaseReg,
|
||||
int64_t Scale) const override;
|
||||
virtual bool isTruncateFree(Type *Ty1, Type *Ty2) const override;
|
||||
virtual bool isTypeLegal(Type *Ty) const override;
|
||||
virtual unsigned getJumpBufAlignment() const override;
|
||||
virtual unsigned getJumpBufSize() const override;
|
||||
virtual bool shouldBuildLookupTables() const override;
|
||||
virtual bool haveFastSqrt(Type *Ty) const override;
|
||||
virtual void getUnrollingPreferences(
|
||||
Loop *L, UnrollingPreferences &UP) const override;
|
||||
bool isLegalAddImmediate(int64_t imm) const override;
|
||||
bool isLegalICmpImmediate(int64_t imm) const override;
|
||||
bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
|
||||
int64_t BaseOffset, bool HasBaseReg,
|
||||
int64_t Scale) const override;
|
||||
int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
||||
int64_t BaseOffset, bool HasBaseReg,
|
||||
int64_t Scale) const override;
|
||||
bool isTruncateFree(Type *Ty1, Type *Ty2) const override;
|
||||
bool isTypeLegal(Type *Ty) const override;
|
||||
unsigned getJumpBufAlignment() const override;
|
||||
unsigned getJumpBufSize() const override;
|
||||
bool shouldBuildLookupTables() const override;
|
||||
bool haveFastSqrt(Type *Ty) const override;
|
||||
void getUnrollingPreferences(Loop *L,
|
||||
UnrollingPreferences &UP) const override;
|
||||
|
||||
/// @}
|
||||
|
||||
/// \name Vector TTI Implementations
|
||||
/// @{
|
||||
|
||||
virtual unsigned getNumberOfRegisters(bool Vector) const override;
|
||||
virtual unsigned getMaximumUnrollFactor() const override;
|
||||
virtual unsigned getRegisterBitWidth(bool Vector) const override;
|
||||
virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty,
|
||||
OperandValueKind,
|
||||
OperandValueKind) const override;
|
||||
virtual unsigned getShuffleCost(ShuffleKind Kind, Type *Tp,
|
||||
int Index, Type *SubTp) const override;
|
||||
virtual unsigned getCastInstrCost(unsigned Opcode, Type *Dst,
|
||||
Type *Src) const override;
|
||||
virtual unsigned getCFInstrCost(unsigned Opcode) const override;
|
||||
virtual unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
|
||||
Type *CondTy) const override;
|
||||
virtual unsigned getVectorInstrCost(unsigned Opcode, Type *Val,
|
||||
unsigned Index) const override;
|
||||
virtual unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
|
||||
unsigned Alignment,
|
||||
unsigned AddressSpace) const override;
|
||||
virtual unsigned getIntrinsicInstrCost(
|
||||
Intrinsic::ID, Type *RetTy, ArrayRef<Type*> Tys) const override;
|
||||
virtual unsigned getNumberOfParts(Type *Tp) const override;
|
||||
virtual unsigned getAddressComputationCost(
|
||||
Type *Ty, bool IsComplex) const override;
|
||||
virtual unsigned getReductionCost(unsigned Opcode, Type *Ty,
|
||||
bool IsPairwise) const override;
|
||||
unsigned getNumberOfRegisters(bool Vector) const override;
|
||||
unsigned getMaximumUnrollFactor() const override;
|
||||
unsigned getRegisterBitWidth(bool Vector) const override;
|
||||
unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, OperandValueKind,
|
||||
OperandValueKind) const override;
|
||||
unsigned getShuffleCost(ShuffleKind Kind, Type *Tp,
|
||||
int Index, Type *SubTp) const override;
|
||||
unsigned getCastInstrCost(unsigned Opcode, Type *Dst,
|
||||
Type *Src) const override;
|
||||
unsigned getCFInstrCost(unsigned Opcode) const override;
|
||||
unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
|
||||
Type *CondTy) const override;
|
||||
unsigned getVectorInstrCost(unsigned Opcode, Type *Val,
|
||||
unsigned Index) const override;
|
||||
unsigned getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment,
|
||||
unsigned AddressSpace) const override;
|
||||
unsigned getIntrinsicInstrCost(Intrinsic::ID, Type *RetTy,
|
||||
ArrayRef<Type*> Tys) const override;
|
||||
unsigned getNumberOfParts(Type *Tp) const override;
|
||||
unsigned getAddressComputationCost( Type *Ty, bool IsComplex) const override;
|
||||
unsigned getReductionCost(unsigned Opcode, Type *Ty,
|
||||
bool IsPairwise) const override;
|
||||
|
||||
/// @}
|
||||
};
|
||||
|
Reference in New Issue
Block a user