Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ struct AArch64FunctionInfo final : public yaml::MachineFunctionInfo {
AArch64FunctionInfo(const llvm::AArch64FunctionInfo &MFI);

void mappingImpl(yaml::IO &YamlIO) override;
~AArch64FunctionInfo() = default;
~AArch64FunctionInfo() override = default;
};

template <> struct MappingTraits<AArch64FunctionInfo> {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64RegisterInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class AArch64RegisterInfo final : public AArch64GenRegisterInfo {

bool shouldAnalyzePhysregInMachineLoopInfo(MCRegister R) const override;

virtual bool isIgnoredCVReg(MCRegister LLVMReg) const override;
bool isIgnoredCVReg(MCRegister LLVMReg) const override;
};

} // end namespace llvm
Expand Down
6 changes: 3 additions & 3 deletions llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class LLVM_EXTERNAL_VISIBILITY MetadataStreamerMsgPackV4

public:
MetadataStreamerMsgPackV4() = default;
~MetadataStreamerMsgPackV4() = default;
~MetadataStreamerMsgPackV4() override = default;

bool emitTo(AMDGPUTargetStreamer &TargetStreamer) override;

Expand All @@ -154,7 +154,7 @@ class MetadataStreamerMsgPackV5 : public MetadataStreamerMsgPackV4 {

public:
MetadataStreamerMsgPackV5() = default;
~MetadataStreamerMsgPackV5() = default;
~MetadataStreamerMsgPackV5() override = default;
};

class MetadataStreamerMsgPackV6 final : public MetadataStreamerMsgPackV5 {
Expand All @@ -163,7 +163,7 @@ class MetadataStreamerMsgPackV6 final : public MetadataStreamerMsgPackV5 {

public:
MetadataStreamerMsgPackV6() = default;
~MetadataStreamerMsgPackV6() = default;
~MetadataStreamerMsgPackV6() override = default;

void emitKernelAttrs(const AMDGPUTargetMachine &TM, const MachineFunction &MF,
msgpack::MapDocNode Kern) override;
Expand Down
13 changes: 6 additions & 7 deletions llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,19 @@ struct PerFunctionMIParsingState;
class AMDGPUMIRFormatter final : public MIRFormatter {
public:
AMDGPUMIRFormatter() = default;
virtual ~AMDGPUMIRFormatter() = default;
~AMDGPUMIRFormatter() override = default;

/// Implement target specific printing for machine operand immediate value, so
/// that we can have more meaningful mnemonic than a 64-bit integer. Passing
/// None to OpIdx means the index is unknown.
virtual void printImm(raw_ostream &OS, const MachineInstr &MI,
std::optional<unsigned> OpIdx,
int64_t Imm) const override;
void printImm(raw_ostream &OS, const MachineInstr &MI,
std::optional<unsigned> OpIdx, int64_t Imm) const override;

/// Implement target specific parsing of immediate mnemonics. The mnemonic is
/// a string with a leading dot.
virtual bool parseImmMnemonic(const unsigned OpCode, const unsigned OpIdx,
StringRef Src, int64_t &Imm,
ErrorCallbackType ErrorCallback) const override;
bool parseImmMnemonic(const unsigned OpCode, const unsigned OpIdx,
StringRef Src, int64_t &Imm,
ErrorCallbackType ErrorCallback) const override;

/// Implement target specific parsing of target custom pseudo source value.
bool
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Target/AMDGPU/MCA/AMDGPUCustomBehaviour.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AMDGPUInstrPostProcess : public InstrPostProcess {
AMDGPUInstrPostProcess(const MCSubtargetInfo &STI, const MCInstrInfo &MCII)
: InstrPostProcess(STI, MCII) {}

~AMDGPUInstrPostProcess() = default;
~AMDGPUInstrPostProcess() override = default;

void postProcessInstruction(Instruction &Inst, const MCInst &MCI) override;
};
Expand Down Expand Up @@ -88,7 +88,7 @@ class AMDGPUCustomBehaviour : public CustomBehaviour {
AMDGPUCustomBehaviour(const MCSubtargetInfo &STI,
const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII);

~AMDGPUCustomBehaviour() = default;
~AMDGPUCustomBehaviour() override = default;
/// This method is used to determine if an instruction
/// should be allowed to be dispatched. The return value is
/// how many cycles until the instruction can be dispatched.
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCExpr.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AMDGPUMCExpr : public MCTargetExpr {
ArrayRef<const MCExpr *> Args;

AMDGPUMCExpr(VariantKind Kind, ArrayRef<const MCExpr *> Args, MCContext &Ctx);
~AMDGPUMCExpr();
~AMDGPUMCExpr() override;

bool evaluateExtraSGPRs(MCValue &Res, const MCAssembler *Asm) const;
bool evaluateTotalNumVGPR(MCValue &Res, const MCAssembler *Asm) const;
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/SIInstrInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
unsigned *PredCost = nullptr) const override;

InstructionUniformity
getInstructionUniformity(const MachineInstr &MI) const override final;
getInstructionUniformity(const MachineInstr &MI) const final;

InstructionUniformity
getGenericInstructionUniformity(const MachineInstr &MI) const;
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ struct SIMachineFunctionInfo final : public yaml::MachineFunctionInfo {
const llvm::MachineFunction &MF);

void mappingImpl(yaml::IO &YamlIO) override;
~SIMachineFunctionInfo() = default;
~SIMachineFunctionInfo() override = default;
};

template <> struct MappingTraits<SIMachineFunctionInfo> {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ class SIGfx12CacheControl : public SIGfx11CacheControl {

bool finalizeStore(MachineInstr &MI, bool Atomic) const override;

virtual bool handleCooperativeAtomic(MachineInstr &MI) const override;
bool handleCooperativeAtomic(MachineInstr &MI) const override;

bool insertRelease(MachineBasicBlock::iterator &MI, SIAtomicScope Scope,
SIAtomicAddrSpace AddrSpace, bool IsCrossAddrSpaceOrdering,
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARM/ARMMachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ struct ARMFunctionInfo final : public yaml::MachineFunctionInfo {
ARMFunctionInfo(const llvm::ARMFunctionInfo &MFI);

void mappingImpl(yaml::IO &YamlIO) override;
~ARMFunctionInfo() = default;
~ARMFunctionInfo() override = default;
};

template <> struct MappingTraits<ARMFunctionInfo> {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AVRDisassembler : public MCDisassembler {
public:
AVRDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx)
: MCDisassembler(STI, Ctx) {}
virtual ~AVRDisassembler() = default;
~AVRDisassembler() override = default;

DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
ArrayRef<uint8_t> Bytes, uint64_t Address,
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AVRELFObjectWriter : public MCELFObjectTargetWriter {
public:
AVRELFObjectWriter(uint8_t OSABI);

virtual ~AVRELFObjectWriter() = default;
~AVRELFObjectWriter() override = default;

unsigned getRelocType(const MCFixup &, const MCValue &,
bool IsPCRel) const override;
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/BPF/BPFAsmPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BPFAsmPrinter : public AsmPrinter {

void emitInstruction(const MachineInstr *MI) override;
MCSymbol *getJTPublicSymbol(unsigned JTI);
virtual void emitJumpTableInfo() override;
void emitJumpTableInfo() override;

static char ID;

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class BPFCheckAndAdjustIR final : public ModulePass {
public:
static char ID;
BPFCheckAndAdjustIR() : ModulePass(ID) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const override;
void getAnalysisUsage(AnalysisUsage &AU) const override;

private:
void checkIR(Module &M);
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/BPF/BPFTargetLoweringObjectFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace llvm {
class BPFTargetLoweringObjectFileELF : public TargetLoweringObjectFileELF {

public:
virtual MCSection *
MCSection *
getSectionForJumpTable(const Function &F, const TargetMachine &TM,
const MachineJumpTableEntry *JTE) const override;
};
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class InstManager : public GISelChangeObserver {
B.setChangeObserver(*this);
}

~InstManager() { B.stopObservingChanges(); }
~InstManager() override { B.stopObservingChanges(); }

void createdInstr(MachineInstr &MI) override { InstList.insert(&MI); }
void erasingInstr(MachineInstr &MI) override {}
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RISCVLMULInstrument : public Instrument {

explicit RISCVLMULInstrument(StringRef Data) : Instrument(DESC_NAME, Data) {}

~RISCVLMULInstrument() = default;
~RISCVLMULInstrument() override = default;

uint8_t getLMUL() const;
};
Expand All @@ -45,7 +45,7 @@ class RISCVSEWInstrument : public Instrument {

explicit RISCVSEWInstrument(StringRef Data) : Instrument(DESC_NAME, Data) {}

~RISCVSEWInstrument() = default;
~RISCVSEWInstrument() override = default;

uint8_t getSEW() const;
};
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVConstantPoolValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RISCVConstantPoolValue : public MachineConstantPoolValue {
RISCVCPKind Kind;

public:
~RISCVConstantPoolValue() = default;
~RISCVConstantPoolValue() override = default;

static RISCVConstantPoolValue *Create(const GlobalValue *GV);
static RISCVConstantPoolValue *Create(LLVMContext &C, StringRef S);
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct RISCVMachineFunctionInfo final : public yaml::MachineFunctionInfo {
RISCVMachineFunctionInfo(const llvm::RISCVMachineFunctionInfo &MFI);

void mappingImpl(yaml::IO &YamlIO) override;
~RISCVMachineFunctionInfo() = default;
~RISCVMachineFunctionInfo() override = default;
};

template <> struct MappingTraits<RISCVMachineFunctionInfo> {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class SPIRVLegalizePointerCast : public FunctionPass {
public:
SPIRVLegalizePointerCast(SPIRVTargetMachine *TM) : FunctionPass(ID), TM(TM) {}

virtual bool runOnFunction(Function &F) override {
bool runOnFunction(Function &F) override {
const SPIRVSubtarget &ST = TM->getSubtarget<SPIRVSubtarget>(F);
GR = ST.getSPIRVGlobalRegistry();
DeadInstructions.clear();
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/SPIRV/SPIRVMergeRegionExitTargets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class SPIRVMergeRegionExitTargets : public FunctionPass {
}
#endif

virtual bool runOnFunction(Function &F) override {
bool runOnFunction(Function &F) override {
LoopInfo &LI = getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
auto *TopLevelRegion =
getAnalysis<SPIRVConvergenceRegionAnalysisWrapperPass>()
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/SPIRV/SPIRVStripConvergentIntrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SPIRVStripConvergentIntrinsics : public FunctionPass {

SPIRVStripConvergentIntrinsics() : FunctionPass(ID) {}

virtual bool runOnFunction(Function &F) override {
bool runOnFunction(Function &F) override {
DenseSet<Instruction *> ToRemove;

// Is the instruction is a convergent intrinsic, add it to kill-list and
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/SPIRV/SPIRVStructurizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ class SPIRVStructurizer : public FunctionPass {

SPIRVStructurizer() : FunctionPass(ID) {}

virtual bool runOnFunction(Function &F) override {
bool runOnFunction(Function &F) override {
bool Modified = false;

// In LLVM, Switches are allowed to have several cases branching to the same
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SparcDisassembler : public MCDisassembler {
public:
SparcDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx)
: MCDisassembler(STI, Ctx) {}
virtual ~SparcDisassembler() = default;
~SparcDisassembler() override = default;

DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
ArrayRef<uint8_t> Bytes, uint64_t Address,
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/SystemZ/SystemZMachineScheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class SystemZPostRASchedStrategy : public MachineSchedStrategy {

public:
SystemZPostRASchedStrategy(const MachineSchedContext *C);
virtual ~SystemZPostRASchedStrategy();
~SystemZPostRASchedStrategy() override;

/// Called for a region before scheduling.
void initPolicy(MachineBasicBlock::iterator Begin,
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Target/SystemZ/SystemZRegisterInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SystemZXPLINK64Registers : public SystemZCallingConventionRegisters {
int getStackPointerBias() final { return 2048; }

/// Destroys the object. Bogus destructor overriding base class destructor
~SystemZXPLINK64Registers() = default;
~SystemZXPLINK64Registers() override = default;
};

/// ELF calling convention specific use registers
Expand All @@ -124,7 +124,7 @@ class SystemZELFRegisters : public SystemZCallingConventionRegisters {
int getStackPointerBias() final { return 0; }

/// Destroys the object. Bogus destructor overriding base class destructor
~SystemZELFRegisters() = default;
~SystemZELFRegisters() override = default;
};

struct SystemZRegisterInfo : public SystemZGenRegisterInfo {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/VE/Disassembler/VEDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VEDisassembler : public MCDisassembler {
public:
VEDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx)
: MCDisassembler(STI, Ctx) {}
virtual ~VEDisassembler() = default;
~VEDisassembler() override = default;

DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
ArrayRef<uint8_t> Bytes, uint64_t Address,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ struct WebAssemblyOperand : public MCParsedAsmOperand {
WebAssemblyOperand(SMLoc Start, SMLoc End, CaLOp C)
: Kind(CatchList), StartLoc(Start), EndLoc(End), CaL(C) {}

~WebAssemblyOperand() {
~WebAssemblyOperand() override {
if (isBrList())
BrL.~BrLOp();
if (isCatchList())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ struct WebAssemblyFunctionInfo final : public yaml::MachineFunctionInfo {
const llvm::WebAssemblyFunctionInfo &MFI);

void mappingImpl(yaml::IO &YamlIO) override;
~WebAssemblyFunctionInfo() = default;
~WebAssemblyFunctionInfo() override = default;
};

template <> struct MappingTraits<WebAssemblyFunctionInfo> {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/MCA/X86CustomBehaviour.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class X86InstrPostProcess : public InstrPostProcess {
X86InstrPostProcess(const MCSubtargetInfo &STI, const MCInstrInfo &MCII)
: InstrPostProcess(STI, MCII) {}

~X86InstrPostProcess() = default;
~X86InstrPostProcess() override = default;

void postProcessInstruction(Instruction &Inst, const MCInst &MCI) override;
};
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ namespace X86_MC {
class X86MCInstrAnalysis : public MCInstrAnalysis {
X86MCInstrAnalysis(const X86MCInstrAnalysis &) = delete;
X86MCInstrAnalysis &operator=(const X86MCInstrAnalysis &) = delete;
virtual ~X86MCInstrAnalysis() = default;
~X86MCInstrAnalysis() override = default;

public:
X86MCInstrAnalysis(const MCInstrInfo *MCII) : MCInstrAnalysis(MCII) {}
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/X86MachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct X86MachineFunctionInfo final : public yaml::MachineFunctionInfo {
X86MachineFunctionInfo(const llvm::X86MachineFunctionInfo &MFI);

void mappingImpl(yaml::IO &YamlIO) override;
~X86MachineFunctionInfo() = default;
~X86MachineFunctionInfo() override = default;
};

template <> struct MappingTraits<X86MachineFunctionInfo> {
Expand Down