aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
diff options
context:
space:
mode:
authorMichele Scuttari <michele.scuttari@outlook.com>2022-08-30 21:56:31 +0200
committerMichele Scuttari <michele.scuttari@outlook.com>2022-08-30 21:56:31 +0200
commit2be8af8f0e0780901213b6fd3013a5268ddc3359 (patch)
treeb92b5c6894a41f1b24c858d1d9cf18f9d12574ec /mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
parent999886325e825747d5aff5c447b20d12fec7b57a (diff)
downloadllvm-2be8af8f0e0780901213b6fd3013a5268ddc3359.zip
llvm-2be8af8f0e0780901213b6fd3013a5268ddc3359.tar.gz
llvm-2be8af8f0e0780901213b6fd3013a5268ddc3359.tar.bz2
[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/Conversion/MathToLibm/MathToLibm.cpp')
-rw-r--r--mlir/lib/Conversion/MathToLibm/MathToLibm.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/mlir/lib/Conversion/MathToLibm/MathToLibm.cpp b/mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
index 6dcf453..553b88d 100644
--- a/mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
+++ b/mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
@@ -8,7 +8,6 @@
#include "mlir/Conversion/MathToLibm/MathToLibm.h"
-#include "../PassDetail.h"
#include "mlir/Dialect/Arithmetic/IR/Arithmetic.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
@@ -18,6 +17,12 @@
#include "mlir/Dialect/Vector/Utils/VectorUtils.h"
#include "mlir/IR/BuiltinDialect.h"
#include "mlir/IR/PatternMatch.h"
+#include "mlir/Pass/Pass.h"
+
+namespace mlir {
+#define GEN_PASS_DEF_CONVERTMATHTOLIBMPASS
+#include "mlir/Conversion/Passes.h.inc"
+} // namespace mlir
using namespace mlir;
@@ -193,7 +198,9 @@ void mlir::populateMathToLibmConversionPatterns(
namespace {
struct ConvertMathToLibmPass
- : public ConvertMathToLibmBase<ConvertMathToLibmPass> {
+ : public impl::ConvertMathToLibmPassBase<ConvertMathToLibmPass> {
+ using ConvertMathToLibmPassBase::ConvertMathToLibmPassBase;
+
void runOnOperation() override;
};
} // namespace