aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2022-01-02 22:01:50 +0000
committerMehdi Amini <joker.eph@gmail.com>2022-01-02 22:18:36 +0000
commitabb336d26b5e91c991f031dd7291cdac07154cb8 (patch)
treed0d6c943343d6cd80cdf939776f421c97a334c74
parentf829d62c219c6b880f0106a4a75c0f8640fcfe54 (diff)
downloadllvm-abb336d26b5e91c991f031dd7291cdac07154cb8.zip
llvm-abb336d26b5e91c991f031dd7291cdac07154cb8.tar.gz
llvm-abb336d26b5e91c991f031dd7291cdac07154cb8.tar.bz2
Apply clang-tidy fixes for modernize-use-equals-default to MLIR (NFC)
-rw-r--r--mlir/lib/Analysis/Liveness.cpp2
-rw-r--r--mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp3
-rw-r--r--mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp3
-rw-r--r--mlir/lib/Pass/PassRegistry.cpp2
4 files changed, 4 insertions, 6 deletions
diff --git a/mlir/lib/Analysis/Liveness.cpp b/mlir/lib/Analysis/Liveness.cpp
index 64ff321..d904ec0d 100644
--- a/mlir/lib/Analysis/Liveness.cpp
+++ b/mlir/lib/Analysis/Liveness.cpp
@@ -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) {
diff --git a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
index 6425c05..7ee9caf 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
@@ -36,8 +36,7 @@ struct LinalgComprehensiveModuleBufferize
LinalgComprehensiveModuleBufferize() = default;
LinalgComprehensiveModuleBufferize(
- const LinalgComprehensiveModuleBufferize &p)
- : LinalgComprehensiveModuleBufferizeBase(p) {}
+ const LinalgComprehensiveModuleBufferize &p) = default;
void runOnOperation() override;
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
index 61d90c0..fbd526b 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
@@ -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() {
diff --git a/mlir/lib/Pass/PassRegistry.cpp b/mlir/lib/Pass/PassRegistry.cpp
index 933d77b..c6f5010 100644
--- a/mlir/lib/Pass/PassRegistry.cpp
+++ b/mlir/lib/Pass/PassRegistry.cpp
@@ -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) {}