1//===- CPPGen.h - MLIR PDLL CPP Code Generation -----------------*- 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#ifndef MLIR_TOOLS_PDLL_CODEGEN_CPPGEN_H_
10#define MLIR_TOOLS_PDLL_CODEGEN_CPPGEN_H_
11
12#include "mlir/Support/LLVM.h"
13#include <memory>
14
15namespace mlir {
16class ModuleOp;
17
18namespace pdll {
19namespace ast {
20class Module;
21} // namespace ast
22
23void codegenPDLLToCPP(const ast::Module &astModule, ModuleOp module,
24 raw_ostream &os);
25} // namespace pdll
26} // namespace mlir
27
28#endif // MLIR_TOOLS_PDLL_CODEGEN_CPPGEN_H_
29

source code of mlir/include/mlir/Tools/PDLL/CodeGen/CPPGen.h