summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp
diff options
context:
space:
mode:
authorMichele Scuttari <michele.scuttari@outlook.com>2022-08-31 10:16:29 +0200
committerMichele Scuttari <michele.scuttari@outlook.com>2022-08-31 12:28:45 +0200
commit67d0d7ac0acb0665d6a09f61278fbcf51f0114c2 (patch)
treea07b13c6569a3629ec7df57dfaa945f7d92aecf6 /mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp
parent9e842dd4bd551c42951d1a56bb9d9eef1fa6c385 (diff)
downloadllvm-67d0d7ac0acb0665d6a09f61278fbcf51f0114c2.tar.gz
[MLIR] Update pass declarations to new autogenerated files
The patch introduces the required changes to update the pass declarations and definitions to use the new autogenerated files and allow dropping the old infrastructure. Reviewed By: mehdi_amini, rriddle Differential Review: https://reviews.llvm.org/D132838
Diffstat (limited to 'mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp')
-rw-r--r--mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp b/mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp
index 942430588b77..afcb2c24a62e 100644
--- a/mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp
@@ -10,14 +10,19 @@
//
//===----------------------------------------------------------------------===//
-#include "PassDetail.h"
+#include "mlir/Dialect/SCF/Transforms/Passes.h"
+
#include "mlir/Dialect/Affine/IR/AffineOps.h"
#include "mlir/Dialect/Arithmetic/IR/Arithmetic.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
-#include "mlir/Dialect/SCF/Transforms/Passes.h"
#include "mlir/Dialect/SCF/Transforms/Transforms.h"
#include "mlir/Dialect/SCF/Utils/Utils.h"
+namespace mlir {
+#define GEN_PASS_DEF_SCFPARALLELLOOPTILING
+#include "mlir/Dialect/SCF/Transforms/Passes.h.inc"
+} // namespace mlir
+
using namespace mlir;
using namespace mlir::scf;
@@ -181,7 +186,7 @@ mlir::scf::tileParallelLoop(ParallelOp op, ArrayRef<int64_t> tileSizes,
namespace {
struct ParallelLoopTiling
- : public SCFParallelLoopTilingBase<ParallelLoopTiling> {
+ : public impl::SCFParallelLoopTilingBase<ParallelLoopTiling> {
ParallelLoopTiling() = default;
explicit ParallelLoopTiling(ArrayRef<int64_t> tileSizes,
bool noMinMaxBounds = false) {