MLIR  20.0.0git
CPPGen.h
Go to the documentation of this file.
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 
15 namespace mlir {
16 class ModuleOp;
17 
18 namespace pdll {
19 namespace ast {
20 class Module;
21 } // namespace ast
22 
23 void 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_
void codegenPDLLToCPP(const ast::Module &astModule, ModuleOp module, raw_ostream &os)
Definition: CPPGen.cpp:253
Include the generated interface declarations.