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

This commit is contained in:
Mehdi Amini 2022-01-02 22:01:50 +00:00
parent f829d62c21
commit abb336d26b
4 changed files with 4 additions and 6 deletions

View file

@ -27,7 +27,7 @@ struct BlockInfoBuilder {
using ValueSetT = Liveness::ValueSetT;
/// Constructs an empty block builder.
BlockInfoBuilder() {}
BlockInfoBuilder() = default;
/// Fills the block builder with initial liveness information.
BlockInfoBuilder(Block *block) : block(block) {

View file

@ -36,8 +36,7 @@ struct LinalgComprehensiveModuleBufferize
LinalgComprehensiveModuleBufferize() = default;
LinalgComprehensiveModuleBufferize(
const LinalgComprehensiveModuleBufferize &p)
: LinalgComprehensiveModuleBufferizeBase(p) {}
const LinalgComprehensiveModuleBufferize &p) = default;
void runOnOperation() override;

View file

@ -33,8 +33,7 @@ namespace {
struct SparsificationPass : public SparsificationBase<SparsificationPass> {
SparsificationPass() = default;
SparsificationPass(const SparsificationPass &pass)
: SparsificationBase<SparsificationPass>(pass) {}
SparsificationPass(const SparsificationPass &pass) = default;
/// Returns parallelization strategy given on command line.
SparseParallelizationStrategy parallelOption() {

View file

@ -508,7 +508,7 @@ namespace {
/// This struct represents the possible data entries in a parsed pass pipeline
/// list.
struct PassArgData {
PassArgData() {}
PassArgData() = default;
PassArgData(const PassRegistryEntry *registryEntry)
: registryEntry(registryEntry) {}