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 "mlir/Support/LLVM.h"
17
18namespace mlir {
19class ModuleOp;
20class Operation;
21template <typename OpT>
22class OperationPass;
23class PDLPatternConfigSet;
24
25#define GEN_PASS_DECL_CONVERTPDLTOPDLINTERP
26#include "mlir/Conversion/Passes.h.inc"
27
28/// Creates and returns a pass to convert PDL ops to PDL interpreter ops.
29std::unique_ptr<OperationPass<ModuleOp>> createPDLToPDLInterpPass();
30
31/// Creates and returns a pass to convert PDL ops to PDL interpreter ops.
32/// `configMap` holds a map of the configurations for each pattern being
33/// compiled.
34std::unique_ptr<OperationPass<ModuleOp>> createPDLToPDLInterpPass(
35 DenseMap<Operation *, PDLPatternConfigSet *> &configMap);
36
37} // namespace mlir
38
39#endif // MLIR_CONVERSION_PDLTOPDLINTERP_PDLTOPDLINTERP_H
40

source code of mlir/include/mlir/Conversion/PDLToPDLInterp/PDLToPDLInterp.h