diff options
author | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-31 10:16:29 +0200 |
---|---|---|
committer | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-31 12:28:45 +0200 |
commit | 67d0d7ac0acb0665d6a09f61278fbcf51f0114c2 (patch) | |
tree | a07b13c6569a3629ec7df57dfaa945f7d92aecf6 /mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp | |
parent | 9e842dd4bd551c42951d1a56bb9d9eef1fa6c385 (diff) | |
download | llvm-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.cpp | 11 |
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) { |