xref: /llvm-project/mlir/include/mlir/IR/BuiltinDialect.td (revision 863c346209e27d22157fad21d0fd730e710a3441)
1//===-- BuiltinDialect.td - Builtin dialect definition -----*- 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// This file contains the definition of the Builtin dialect. This dialect
10// contains all of the attributes, operations, and types that are core to MLIR.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef BUILTIN_BASE
15#define BUILTIN_BASE
16
17include "mlir/IR/OpBase.td"
18
19def Builtin_Dialect : Dialect {
20  let summary =
21    "A dialect containing the builtin Attributes, Operations, and Types";
22  let name = "builtin";
23  let cppNamespace = "::mlir";
24  let useDefaultAttributePrinterParser = 0;
25  let useDefaultTypePrinterParser = 0;
26  let extraClassDeclaration = [{
27  private:
28    // Register the builtin Attributes.
29    void registerAttributes();
30    // Register the builtin Location Attributes.
31    void registerLocationAttributes();
32    // Register the builtin Types.
33    void registerTypes();
34
35  public:
36  }];
37
38}
39
40#endif // BUILTIN_BASE
41