mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
Remove 'virtual' keyword from methods markedwith 'override' keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
847998f0dd
commit
3af13568fb
@ -324,7 +324,7 @@ public:
|
||||
}
|
||||
|
||||
/// \see DiagnosticInfoOptimizationBase::isEnabled.
|
||||
virtual bool isEnabled() const override;
|
||||
bool isEnabled() const override;
|
||||
};
|
||||
|
||||
/// Diagnostic information for missed-optimization remarks.
|
||||
@ -350,7 +350,7 @@ public:
|
||||
}
|
||||
|
||||
/// \see DiagnosticInfoOptimizationBase::isEnabled.
|
||||
virtual bool isEnabled() const override;
|
||||
bool isEnabled() const override;
|
||||
};
|
||||
|
||||
/// Diagnostic information for optimization analysis remarks.
|
||||
@ -377,7 +377,7 @@ public:
|
||||
}
|
||||
|
||||
/// \see DiagnosticInfoOptimizationBase::isEnabled.
|
||||
virtual bool isEnabled() const override;
|
||||
bool isEnabled() const override;
|
||||
};
|
||||
|
||||
// Create wrappers for C Binding types (see CBindingWrapping.h).
|
||||
@ -432,7 +432,7 @@ public:
|
||||
}
|
||||
|
||||
/// \see DiagnosticInfoOptimizationBase::isEnabled.
|
||||
virtual bool isEnabled() const override;
|
||||
bool isEnabled() const override;
|
||||
};
|
||||
|
||||
/// Emit a warning when loop vectorization is specified but fails. \p Fn is the
|
||||
|
@ -245,7 +245,7 @@ struct NoTTI final : ImmutablePass, TargetTransformInfo {
|
||||
initializeNoTTIPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
virtual void initializePass() override {
|
||||
void initializePass() override {
|
||||
// Note that this subclass is special, and must *not* call initializeTTI as
|
||||
// it does not chain.
|
||||
TopTTI = this;
|
||||
@ -254,7 +254,7 @@ struct NoTTI final : ImmutablePass, TargetTransformInfo {
|
||||
DL = DLP ? &DLP->getDataLayout() : nullptr;
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
// Note that this subclass is special, and must *not* call
|
||||
// TTI::getAnalysisUsage as it breaks the recursion.
|
||||
}
|
||||
@ -263,7 +263,7 @@ struct NoTTI final : ImmutablePass, TargetTransformInfo {
|
||||
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;
|
||||
|
@ -37,11 +37,11 @@ public:
|
||||
static char ID; // Pass identification, replacement for typeid.
|
||||
explicit AArch64DeadRegisterDefinitions() : MachineFunctionPass(ID) {}
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &F) override;
|
||||
bool runOnMachineFunction(MachineFunction &F) override;
|
||||
|
||||
const char *getPassName() const override { return "Dead register definitions"; }
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
static char ID;
|
||||
AArch64StorePairSuppress() : MachineFunctionPass(ID) {}
|
||||
|
||||
virtual const char *getPassName() const override {
|
||||
const char *getPassName() const override {
|
||||
return "AArch64 Store Pair Suppression";
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ private:
|
||||
|
||||
bool isNarrowFPStore(const MachineInstr &MI);
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
AU.addRequired<MachineTraceMetrics>();
|
||||
AU.addPreserved<MachineTraceMetrics>();
|
||||
|
@ -101,7 +101,7 @@ public:
|
||||
|
||||
/// Schedule - This is called back from ScheduleDAGInstrs::Run() when it's
|
||||
/// time to do some work.
|
||||
virtual void schedule() override;
|
||||
void schedule() override;
|
||||
/// Perform platform-specific DAG postprocessing.
|
||||
void postprocessDAG();
|
||||
};
|
||||
@ -209,15 +209,15 @@ public:
|
||||
: DAG(nullptr), SchedModel(nullptr), Top(TopQID, "TopQ"),
|
||||
Bot(BotQID, "BotQ") {}
|
||||
|
||||
virtual void initialize(ScheduleDAGMI *dag) override;
|
||||
void initialize(ScheduleDAGMI *dag) override;
|
||||
|
||||
virtual SUnit *pickNode(bool &IsTopNode) override;
|
||||
SUnit *pickNode(bool &IsTopNode) override;
|
||||
|
||||
virtual void schedNode(SUnit *SU, bool IsTopNode) override;
|
||||
void schedNode(SUnit *SU, bool IsTopNode) override;
|
||||
|
||||
virtual void releaseTopNode(SUnit *SU) override;
|
||||
void releaseTopNode(SUnit *SU) override;
|
||||
|
||||
virtual void releaseBottomNode(SUnit *SU) override;
|
||||
void releaseBottomNode(SUnit *SU) override;
|
||||
|
||||
unsigned ReportPackets() {
|
||||
return Top.ResourceModel->getTotalPackets() +
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &MF);
|
||||
|
||||
virtual const char *getPassName() const {
|
||||
const char *getPassName() const override {
|
||||
return "NVPTX Replace Image Handles";
|
||||
}
|
||||
private:
|
||||
|
@ -129,10 +129,10 @@ public:
|
||||
void emitMachine(StringRef CPU) override {
|
||||
OS << "\t.machine " << CPU << '\n';
|
||||
}
|
||||
virtual void emitAbiVersion(int AbiVersion) override {
|
||||
void emitAbiVersion(int AbiVersion) override {
|
||||
OS << "\t.abiversion " << AbiVersion << '\n';
|
||||
}
|
||||
virtual void emitLocalEntry(MCSymbol *S, const MCExpr *LocalOffset) {
|
||||
void emitLocalEntry(MCSymbol *S, const MCExpr *LocalOffset) override {
|
||||
OS << "\t.localentry\t" << *S << ", " << *LocalOffset << '\n';
|
||||
}
|
||||
};
|
||||
@ -143,7 +143,7 @@ public:
|
||||
MCELFStreamer &getStreamer() {
|
||||
return static_cast<MCELFStreamer &>(Streamer);
|
||||
}
|
||||
virtual void emitTCEntry(const MCSymbol &S) override {
|
||||
void emitTCEntry(const MCSymbol &S) override {
|
||||
// Creates a R_PPC64_TOC relocation
|
||||
Streamer.EmitSymbolValue(&S, 8);
|
||||
}
|
||||
@ -151,14 +151,14 @@ public:
|
||||
// FIXME: Is there anything to do in here or does this directive only
|
||||
// limit the parser?
|
||||
}
|
||||
virtual void emitAbiVersion(int AbiVersion) override {
|
||||
void emitAbiVersion(int AbiVersion) override {
|
||||
MCAssembler &MCA = getStreamer().getAssembler();
|
||||
unsigned Flags = MCA.getELFHeaderEFlags();
|
||||
Flags &= ~ELF::EF_PPC64_ABI;
|
||||
Flags |= (AbiVersion & ELF::EF_PPC64_ABI);
|
||||
MCA.setELFHeaderEFlags(Flags);
|
||||
}
|
||||
virtual void emitLocalEntry(MCSymbol *S, const MCExpr *LocalOffset) {
|
||||
void emitLocalEntry(MCSymbol *S, const MCExpr *LocalOffset) override {
|
||||
MCAssembler &MCA = getStreamer().getAssembler();
|
||||
MCSymbolData &Data = getStreamer().getOrCreateSymbolData(S);
|
||||
|
||||
@ -196,10 +196,10 @@ public:
|
||||
// FIXME: We should update the CPUType, CPUSubType in the Object file if
|
||||
// the new values are different from the defaults.
|
||||
}
|
||||
virtual void emitAbiVersion(int AbiVersion) override {
|
||||
void emitAbiVersion(int AbiVersion) override {
|
||||
llvm_unreachable("Unknown pseudo-op: .abiversion");
|
||||
}
|
||||
virtual void emitLocalEntry(MCSymbol *S, const MCExpr *LocalOffset) {
|
||||
void emitLocalEntry(MCSymbol *S, const MCExpr *LocalOffset) override {
|
||||
llvm_unreachable("Unknown pseudo-op: .localentry");
|
||||
}
|
||||
};
|
||||
|
@ -76,10 +76,10 @@ class PPCHazardRecognizer970 : public ScheduleHazardRecognizer {
|
||||
|
||||
public:
|
||||
PPCHazardRecognizer970(const ScheduleDAG &DAG);
|
||||
virtual HazardType getHazardType(SUnit *SU, int Stalls) override;
|
||||
virtual void EmitInstruction(SUnit *SU) override;
|
||||
virtual void AdvanceCycle() override;
|
||||
virtual void Reset() override;
|
||||
HazardType getHazardType(SUnit *SU, int Stalls) override;
|
||||
void EmitInstruction(SUnit *SU) override;
|
||||
void AdvanceCycle() override;
|
||||
void Reset() override;
|
||||
|
||||
private:
|
||||
/// EndDispatchGroup - Called when we are finishing a new dispatch group.
|
||||
|
@ -52,11 +52,11 @@ public:
|
||||
initializePPCTTIPass(*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);
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ 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;
|
||||
@ -79,9 +79,8 @@ public:
|
||||
unsigned getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|
||||
Type *Ty) const override;
|
||||
|
||||
virtual PopcntSupportKind
|
||||
getPopcntSupport(unsigned TyWidth) const override;
|
||||
virtual void getUnrollingPreferences(
|
||||
PopcntSupportKind getPopcntSupport(unsigned TyWidth) const override;
|
||||
void getUnrollingPreferences(
|
||||
Loop *L, UnrollingPreferences &UP) const override;
|
||||
|
||||
/// @}
|
||||
@ -89,24 +88,22 @@ public:
|
||||
/// \name Vector TTI Implementations
|
||||
/// @{
|
||||
|
||||
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, OperandValueProperties,
|
||||
OperandValueProperties) 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 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;
|
||||
unsigned getNumberOfRegisters(bool Vector) const override;
|
||||
unsigned getRegisterBitWidth(bool Vector) const override;
|
||||
unsigned getMaximumUnrollFactor() const override;
|
||||
unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, OperandValueKind,
|
||||
OperandValueKind, OperandValueProperties,
|
||||
OperandValueProperties) 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 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;
|
||||
|
||||
/// @}
|
||||
};
|
||||
|
@ -40,13 +40,13 @@ public:
|
||||
initializeSIFixSGPRLiveRangesPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
|
||||
virtual const char *getPassName() const override {
|
||||
const char *getPassName() const override {
|
||||
return "SI Fix SGPR live ranges";
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.addRequired<LiveIntervals>();
|
||||
AU.addPreserved<LiveIntervals>();
|
||||
AU.addPreserved<SlotIndexes>();
|
||||
|
@ -40,14 +40,14 @@ public:
|
||||
initializeSILowerI1CopiesPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
|
||||
virtual const char *getPassName() const override {
|
||||
const char *getPassName() const override {
|
||||
return "SI Lower il Copies";
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.addRequired<MachineDominatorTree>();
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.addRequired<MachineDominatorTree>();
|
||||
AU.setPreservesCFG();
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
@ -45,13 +45,13 @@ public:
|
||||
SIShrinkInstructions() : MachineFunctionPass(ID) {
|
||||
}
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
|
||||
virtual const char *getPassName() const override {
|
||||
const char *getPassName() const override {
|
||||
return "SI Shrink Instructions";
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
@ -720,7 +720,7 @@ private:
|
||||
llvm_unreachable("invalid mode");
|
||||
}
|
||||
|
||||
virtual bool OmitRegisterFromClobberLists(unsigned RegNo) override;
|
||||
bool OmitRegisterFromClobberLists(unsigned RegNo) override;
|
||||
|
||||
/// doSrcDstMatch - Returns true if operands are matching in their
|
||||
/// word size (%si and %di, %esi and %edi, etc.). Order depends on
|
||||
|
@ -99,10 +99,10 @@ class XCoreTargetAsmStreamer : public XCoreTargetStreamer {
|
||||
formatted_raw_ostream &OS;
|
||||
public:
|
||||
XCoreTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS);
|
||||
virtual void emitCCTopData(StringRef Name) override;
|
||||
virtual void emitCCTopFunction(StringRef Name) override;
|
||||
virtual void emitCCBottomData(StringRef Name) override;
|
||||
virtual void emitCCBottomFunction(StringRef Name) override;
|
||||
void emitCCTopData(StringRef Name) override;
|
||||
void emitCCTopFunction(StringRef Name) override;
|
||||
void emitCCBottomData(StringRef Name) override;
|
||||
void emitCCBottomFunction(StringRef Name) override;
|
||||
};
|
||||
|
||||
XCoreTargetAsmStreamer::XCoreTargetAsmStreamer(MCStreamer &S,
|
||||
|
@ -43,17 +43,17 @@ public:
|
||||
initializeXCoreTTIPass(*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);
|
||||
}
|
||||
|
||||
static char ID;
|
||||
|
||||
virtual void *getAdjustedAnalysisPointer(const void *ID) override {
|
||||
void *getAdjustedAnalysisPointer(const void *ID) override {
|
||||
if (ID == &TargetTransformInfo::ID)
|
||||
return (TargetTransformInfo*)this;
|
||||
return this;
|
||||
|
@ -49,12 +49,12 @@ public:
|
||||
cacheRelocations();
|
||||
}
|
||||
|
||||
virtual void printFileHeaders() override;
|
||||
virtual void printSections() override;
|
||||
virtual void printRelocations() override;
|
||||
virtual void printSymbols() override;
|
||||
virtual void printDynamicSymbols() override;
|
||||
virtual void printUnwindInfo() override;
|
||||
void printFileHeaders() override;
|
||||
void printSections() override;
|
||||
void printRelocations() override;
|
||||
void printSymbols() override;
|
||||
void printDynamicSymbols() override;
|
||||
void printUnwindInfo() override;
|
||||
|
||||
private:
|
||||
void printSymbol(const SymbolRef &Sym);
|
||||
|
@ -31,12 +31,12 @@ public:
|
||||
: ObjDumper(Writer)
|
||||
, Obj(Obj) { }
|
||||
|
||||
virtual void printFileHeaders() override;
|
||||
virtual void printSections() override;
|
||||
virtual void printRelocations() override;
|
||||
virtual void printSymbols() override;
|
||||
virtual void printDynamicSymbols() override;
|
||||
virtual void printUnwindInfo() override;
|
||||
void printFileHeaders() override;
|
||||
void printSections() override;
|
||||
void printRelocations() override;
|
||||
void printSymbols() override;
|
||||
void printDynamicSymbols() override;
|
||||
void printUnwindInfo() override;
|
||||
|
||||
private:
|
||||
void printSymbol(const SymbolRef &Symbol);
|
||||
|
Loading…
Reference in New Issue
Block a user