From 039b969b32b64b64123dce30dd28ec4e343d893f Mon Sep 17 00:00:00 2001 From: Michele Scuttari Date: Tue, 30 Aug 2022 22:20:36 +0200 Subject: Revert "[MLIR] Update pass declarations to new autogenerated files" This reverts commit 2be8af8f0e0780901213b6fd3013a5268ddc3359. --- mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp') 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 @@ -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 { + : public GpuKernelOutliningBase { 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(); } -- cgit v1.2.3