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/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class RuntimeLibcallImpl {
Provides = ProvideMap.lookup(ProvidesDef);
}

~RuntimeLibcallImpl() {}
~RuntimeLibcallImpl() = default;

const Record *getDef() const { return TheDef; }

Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/Basic/TargetFeaturesEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TargetFeaturesEmitter {
void printFeatureKeyValues(raw_ostream &OS, const FeatureMapTy &FeatureMap);
void printCPUKeyValues(raw_ostream &OS, const FeatureMapTy &FeatureMap);
virtual void run(raw_ostream &O);
virtual ~TargetFeaturesEmitter() {};
virtual ~TargetFeaturesEmitter() = default;
};
} // namespace llvm
#endif
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/Common/CodeGenTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ CodeGenTarget::CodeGenTarget(const RecordKeeper &records)
MacroFusions = Records.getAllDerivedDefinitions("Fusion");
}

CodeGenTarget::~CodeGenTarget() {}
CodeGenTarget::~CodeGenTarget() = default;

StringRef CodeGenTarget::getName() const { return TargetRec->getName(); }

Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/Common/DAGISelMatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Matcher {
Matcher(KindTy K) : Kind(K) {}

public:
virtual ~Matcher() {}
virtual ~Matcher() = default;

unsigned getSize() const { return Size; }
void setSize(unsigned sz) { Size = sz; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ std::optional<LLTCodeGen> llvm::gi::MVTToLLT(MVT::SimpleValueType SVT) {

void Matcher::optimize() {}

Matcher::~Matcher() {}
Matcher::~Matcher() = default;

//===- GroupMatcher -------------------------------------------------------===//

Expand Down Expand Up @@ -1150,11 +1150,11 @@ void RuleMatcher::insnmatchers_pop_front() { Matchers.erase(Matchers.begin()); }

//===- PredicateMatcher ---------------------------------------------------===//

PredicateMatcher::~PredicateMatcher() {}
PredicateMatcher::~PredicateMatcher() = default;

//===- OperandPredicateMatcher --------------------------------------------===//

OperandPredicateMatcher::~OperandPredicateMatcher() {}
OperandPredicateMatcher::~OperandPredicateMatcher() = default;

bool OperandPredicateMatcher::isHigherPriorityThan(
const OperandPredicateMatcher &B) const {
Expand Down Expand Up @@ -1941,7 +1941,7 @@ bool InstructionOperandMatcher::isHigherPriorityThan(

//===- OperandRenderer ----------------------------------------------------===//

OperandRenderer::~OperandRenderer() {}
OperandRenderer::~OperandRenderer() = default;

//===- CopyRenderer -------------------------------------------------------===//

Expand Down
4 changes: 2 additions & 2 deletions llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ class InstructionPredicateMatcher : public PredicateMatcher {
public:
InstructionPredicateMatcher(PredicateKind Kind, unsigned InsnVarID)
: PredicateMatcher(Kind, InsnVarID) {}
~InstructionPredicateMatcher() override {}
~InstructionPredicateMatcher() override = default;

/// Compare the priority of this object and B.
///
Expand Down Expand Up @@ -2319,7 +2319,7 @@ class MatchAction {

ActionKind getKind() const { return Kind; }

virtual ~MatchAction() {}
virtual ~MatchAction() = default;

// Some actions may need to add extra predicates to ensure they can run.
virtual void emitAdditionalPredicates(MatchTable &Table,
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/FastISelEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct OperandsSignature {
char Repr = OK_Invalid;

public:
OpKind() {}
OpKind() = default;

bool operator<(OpKind RHS) const { return Repr < RHS.Repr; }
bool operator==(OpKind RHS) const { return Repr == RHS.Repr; }
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@ class GICombinerEmitter final : public GlobalISelMatchTableExecutorEmitter {
explicit GICombinerEmitter(const RecordKeeper &RK,
const CodeGenTarget &Target, StringRef Name,
const Record *Combiner);
~GICombinerEmitter() override {}
~GICombinerEmitter() override = default;

void run(raw_ostream &OS);
};
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/X86DisassemblerTables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ DisassemblerTables::DisassemblerTables() {
HasConflicts = false;
}

DisassemblerTables::~DisassemblerTables() {}
DisassemblerTables::~DisassemblerTables() = default;

void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2,
unsigned &i1, unsigned &i2,
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/X86ModRMFilters.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ModRMFilter {

public:
/// Destructor - Override as necessary.
virtual ~ModRMFilter() {}
virtual ~ModRMFilter() = default;

/// isDumb - Indicates whether this filter returns the same value for
/// any value of the ModR/M byte.
Expand Down