mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. R600 edition
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -37,7 +37,7 @@ public:
|
||||
static char ID;
|
||||
R600Packetizer(const TargetMachine &TM) : MachineFunctionPass(ID) {}
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
AU.addRequired<MachineDominatorTree>();
|
||||
AU.addPreserved<MachineDominatorTree>();
|
||||
@@ -46,11 +46,11 @@ public:
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
const char *getPassName() const {
|
||||
const char *getPassName() const override {
|
||||
return "R600 Packetizer";
|
||||
}
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &Fn);
|
||||
bool runOnMachineFunction(MachineFunction &Fn) override;
|
||||
};
|
||||
char R600Packetizer::ID = 0;
|
||||
|
||||
@@ -156,18 +156,19 @@ public:
|
||||
}
|
||||
|
||||
// initPacketizerState - initialize some internal flags.
|
||||
void initPacketizerState() {
|
||||
void initPacketizerState() override {
|
||||
ConsideredInstUsesAlreadyWrittenVectorElement = false;
|
||||
}
|
||||
|
||||
// ignorePseudoInstruction - Ignore bundling of pseudo instructions.
|
||||
bool ignorePseudoInstruction(MachineInstr *MI, MachineBasicBlock *MBB) {
|
||||
bool ignorePseudoInstruction(MachineInstr *MI,
|
||||
MachineBasicBlock *MBB) override {
|
||||
return false;
|
||||
}
|
||||
|
||||
// isSoloInstruction - return true if instruction MI can not be packetized
|
||||
// with any other instruction, which means that MI itself is a packet.
|
||||
bool isSoloInstruction(MachineInstr *MI) {
|
||||
bool isSoloInstruction(MachineInstr *MI) override {
|
||||
if (TII->isVector(*MI))
|
||||
return true;
|
||||
if (!TII->isALUInstr(MI->getOpcode()))
|
||||
@@ -183,7 +184,7 @@ public:
|
||||
|
||||
// isLegalToPacketizeTogether - Is it legal to packetize SUI and SUJ
|
||||
// together.
|
||||
bool isLegalToPacketizeTogether(SUnit *SUI, SUnit *SUJ) {
|
||||
bool isLegalToPacketizeTogether(SUnit *SUI, SUnit *SUJ) override {
|
||||
MachineInstr *MII = SUI->getInstr(), *MIJ = SUJ->getInstr();
|
||||
if (getSlot(MII) == getSlot(MIJ))
|
||||
ConsideredInstUsesAlreadyWrittenVectorElement = true;
|
||||
@@ -220,7 +221,9 @@ public:
|
||||
|
||||
// isLegalToPruneDependencies - Is it legal to prune dependece between SUI
|
||||
// and SUJ.
|
||||
bool isLegalToPruneDependencies(SUnit *SUI, SUnit *SUJ) {return false;}
|
||||
bool isLegalToPruneDependencies(SUnit *SUI, SUnit *SUJ) override {
|
||||
return false;
|
||||
}
|
||||
|
||||
void setIsLastBit(MachineInstr *MI, unsigned Bit) const {
|
||||
unsigned LastOp = TII->getOperandIdx(MI->getOpcode(), AMDGPU::OpName::last);
|
||||
@@ -289,7 +292,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
MachineBasicBlock::iterator addToPacket(MachineInstr *MI) {
|
||||
MachineBasicBlock::iterator addToPacket(MachineInstr *MI) override {
|
||||
MachineBasicBlock::iterator FirstInBundle =
|
||||
CurrentPacketMIs.empty() ? MI : CurrentPacketMIs.front();
|
||||
const DenseMap<unsigned, unsigned> &PV =
|
||||
|
Reference in New Issue
Block a user