diff options
| author | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-30 22:20:36 +0200 |
|---|---|---|
| committer | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-30 22:21:55 +0200 |
| commit | 039b969b32b64b64123dce30dd28ec4e343d893f (patch) | |
| tree | 2e3764eb215056ebd3aeb607b82c3c807bcbc38c /mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp | |
| parent | 349e5bd24e72ebc568c0d171cc9f3aca2674a1db (diff) | |
Revert "[MLIR] Update pass declarations to new autogenerated files"
This reverts commit 2be8af8f0e0780901213b6fd3013a5268ddc3359.
Diffstat (limited to 'mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp')
| -rw-r--r-- | mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp b/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp index f4c39668ad7d..df81284edcf8 100644 --- a/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp +++ b/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp @@ -10,14 +10,14 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/GPU/Transforms/Passes.h" - +#include "PassDetail.h" #include "mlir/AsmParser/AsmParser.h" #include "mlir/Dialect/Arithmetic/IR/Arithmetic.h" #include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h" #include "mlir/Dialect/DLTI/DLTI.h" #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h" +#include "mlir/Dialect/GPU/Transforms/Passes.h" #include "mlir/Dialect/GPU/Transforms/Utils.h" #include "mlir/Dialect/MemRef/IR/MemRef.h" #include "mlir/IR/BlockAndValueMapping.h" @@ -27,12 +27,6 @@ #include "mlir/Support/LLVM.h" #include "mlir/Transforms/RegionUtils.h" -namespace mlir { -#define GEN_PASS_DEF_GPULAUNCHSINKINDEXCOMPUTATIONSPASS -#define GEN_PASS_DEF_GPUKERNELOUTLININGPASS -#include "mlir/Dialect/GPU/Transforms/Passes.h.inc" -} // namespace mlir - using namespace mlir; template <typename OpTy> @@ -245,7 +239,7 @@ namespace { /// Pass that moves ops which are likely an index computation into gpu.launch /// body. class GpuLaunchSinkIndexComputationsPass - : public impl::GpuLaunchSinkIndexComputationsPassBase< + : public GpuLaunchSinkIndexComputationsBase< GpuLaunchSinkIndexComputationsPass> { public: void runOnOperation() override { @@ -272,7 +266,7 @@ public: /// a separate pass. The external functions can then be annotated with the /// symbol of the cubin accessor function. class GpuKernelOutliningPass - : public impl::GpuKernelOutliningPassBase<GpuKernelOutliningPass> { + : public GpuKernelOutliningBase<GpuKernelOutliningPass> { public: GpuKernelOutliningPass(StringRef dlStr) { if (!dlStr.empty() && !dataLayoutStr.hasValue()) @@ -280,8 +274,7 @@ public: } GpuKernelOutliningPass(const GpuKernelOutliningPass &other) - : GpuKernelOutliningPassBase(other), - dataLayoutSpec(other.dataLayoutSpec) { + : GpuKernelOutliningBase(other), dataLayoutSpec(other.dataLayoutSpec) { dataLayoutStr = other.dataLayoutStr.getValue(); } |
