38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
//===- PDLToPDLInterp.h - PDL to PDL Interpreter conversion -----*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file provides a pass for PDL to PDL Interpreter dialect conversion.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef MLIR_CONVERSION_PDLTOPDLINTERP_PDLTOPDLINTERP_H
|
|
#define MLIR_CONVERSION_PDLTOPDLINTERP_PDLTOPDLINTERP_H
|
|
|
|
#include "mlir/Pass/Pass.h"
|
|
#include "mlir/Support/LLVM.h"
|
|
|
|
namespace mlir {
|
|
class ModuleOp;
|
|
class Operation;
|
|
template <typename OpT>
|
|
class OperationPass;
|
|
class PDLPatternConfigSet;
|
|
|
|
#define GEN_PASS_DECL_CONVERTPDLTOPDLINTERPPASS
|
|
#include "mlir/Conversion/Passes.h.inc"
|
|
|
|
/// Creates and returns a pass to convert PDL ops to PDL interpreter ops.
|
|
/// `configMap` holds a map of the configurations for each pattern being
|
|
/// compiled.
|
|
std::unique_ptr<OperationPass<ModuleOp>> createConvertPDLToPDLInterpPass(
|
|
DenseMap<Operation *, PDLPatternConfigSet *> &configMap);
|
|
|
|
} // namespace mlir
|
|
|
|
#endif // MLIR_CONVERSION_PDLTOPDLINTERP_PDLTOPDLINTERP_H
|