1 //===- PDLToPDLInterp.h - PDL to PDL Interpreter conversion -----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file provides a pass for PDL to PDL Interpreter dialect conversion.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_CONVERSION_PDLTOPDLINTERP_PDLTOPDLINTERP_H
14 #define MLIR_CONVERSION_PDLTOPDLINTERP_PDLTOPDLINTERP_H
15 
16 #include <memory>
17 
18 namespace mlir {
19 class ModuleOp;
20 template <typename OpT>
21 class OperationPass;
22 
23 /// Creates and returns a pass to convert PDL ops to PDL interpreter ops.
24 std::unique_ptr<OperationPass<ModuleOp>> createPDLToPDLInterpPass();
25 
26 } // namespace mlir
27 
28 #endif // MLIR_CONVERSION_PDLTOPDLINTERP_PDLTOPDLINTERP_H
29