Apply clang-tidy fixes for modernize-use-override to MLIR (NFC)

This commit is contained in:
Mehdi Amini 2022-01-14 01:35:38 +00:00
parent 9940dcfa4a
commit bd87241c44
3 changed files with 5 additions and 6 deletions

View File

@ -93,7 +93,7 @@ public:
FlatAffineConstraints(const MutableAffineMap &map); FlatAffineConstraints(const MutableAffineMap &map);
virtual ~FlatAffineConstraints() = default; ~FlatAffineConstraints() override = default;
/// Return the kind of this FlatAffineConstraints. /// Return the kind of this FlatAffineConstraints.
Kind getKind() const override { return Kind::FlatAffineConstraints; } Kind getKind() const override { return Kind::FlatAffineConstraints; }
@ -358,8 +358,7 @@ public:
using FlatAffineConstraints::insertDimId; using FlatAffineConstraints::insertDimId;
unsigned insertSymbolId(unsigned pos, ValueRange vals); unsigned insertSymbolId(unsigned pos, ValueRange vals);
using FlatAffineConstraints::insertSymbolId; using FlatAffineConstraints::insertSymbolId;
virtual unsigned insertId(IdKind kind, unsigned pos, unsigned insertId(IdKind kind, unsigned pos, unsigned num = 1) override;
unsigned num = 1) override;
unsigned insertId(IdKind kind, unsigned pos, ValueRange vals); unsigned insertId(IdKind kind, unsigned pos, ValueRange vals);
/// Append identifiers of the specified kind after the last identifier of that /// Append identifiers of the specified kind after the last identifier of that
@ -521,7 +520,7 @@ protected:
/// Removes identifiers in the column range [idStart, idLimit), and copies any /// Removes identifiers in the column range [idStart, idLimit), and copies any
/// remaining valid data into place, updates member variables, and resizes /// remaining valid data into place, updates member variables, and resizes
/// arrays as needed. /// arrays as needed.
virtual void removeIdRange(unsigned idStart, unsigned idLimit) override; void removeIdRange(unsigned idStart, unsigned idLimit) override;
/// Eliminates the identifier at the specified position using Fourier-Motzkin /// Eliminates the identifier at the specified position using Fourier-Motzkin
/// variable elimination, but uses Gaussian elimination if there is an /// variable elimination, but uses Gaussian elimination if there is an

View File

@ -353,7 +353,7 @@ public:
DefaultTimingManager(); DefaultTimingManager();
DefaultTimingManager(DefaultTimingManager &&rhs); DefaultTimingManager(DefaultTimingManager &&rhs);
virtual ~DefaultTimingManager(); ~DefaultTimingManager() override;
// Disable copying of the `DefaultTimingManager`. // Disable copying of the `DefaultTimingManager`.
DefaultTimingManager(const DefaultTimingManager &rhs) = delete; DefaultTimingManager(const DefaultTimingManager &rhs) = delete;

View File

@ -496,7 +496,7 @@ class PyOperation;
using PyOperationRef = PyObjectRef<PyOperation>; using PyOperationRef = PyObjectRef<PyOperation>;
class PyOperation : public PyOperationBase, public BaseContextObject { class PyOperation : public PyOperationBase, public BaseContextObject {
public: public:
~PyOperation(); ~PyOperation() override;
PyOperation &getOperation() override { return *this; } PyOperation &getOperation() override { return *this; }
/// Returns a PyOperation for the given MlirOperation, optionally associating /// Returns a PyOperation for the given MlirOperation, optionally associating