xref: /llvm-project/mlir/include/mlir/Dialect/EmitC/IR/EmitCBase.td (revision 863c346209e27d22157fad21d0fd730e710a3441)
1//===- EmitCBase.td - EmitC dialect ------------------------*- tablegen -*-===//
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// Defines the MLIR EmitC dialect.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_DIALECT_EMITC_IR_EMITCBASE
14#define MLIR_DIALECT_EMITC_IR_EMITCBASE
15
16include "mlir/IR/OpBase.td"
17
18//===----------------------------------------------------------------------===//
19// EmitC dialect definition
20//===----------------------------------------------------------------------===//
21
22def EmitC_Dialect : Dialect {
23  let name = "emitc";
24  let cppNamespace = "::mlir::emitc";
25
26  let summary = "Dialect to generate C/C++ from MLIR.";
27  let description = [{
28    [include "Dialects/emitc.md"]
29  }];
30
31  let hasConstantMaterializer = 1;
32  let useDefaultTypePrinterParser = 1;
33  let useDefaultAttributePrinterParser = 1;
34}
35
36#endif // MLIR_DIALECT_EMITC_IR_EMITCBASE
37