Files
gps/tools/local/circt/include/mlir/IR/BuiltinDialect.td
T
2026-07-12 11:01:51 +03:00

44 lines
1.4 KiB
TableGen

//===-- BuiltinDialect.td - Builtin dialect definition -----*- tablegen -*-===//
//
// 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 contains the definition of the Builtin dialect. This dialect
// contains all of the attributes, operations, and types that are core to MLIR.
//
//===----------------------------------------------------------------------===//
#ifndef BUILTIN_BASE
#define BUILTIN_BASE
include "mlir/IR/OpBase.td"
def Builtin_Dialect : Dialect {
let summary =
"A dialect containing the builtin Attributes, Operations, and Types";
let name = "builtin";
let cppNamespace = "::mlir";
let useDefaultAttributePrinterParser = 0;
let useDefaultTypePrinterParser = 0;
let extraClassDeclaration = [{
std::optional<BuiltinDialectVersion> getVersion() const { return version; }
void setVersion(std::optional<BuiltinDialectVersion> v) { version = v; }
private:
// Register the builtin Attributes.
void registerAttributes();
// Register the builtin Location Attributes.
void registerLocationAttributes();
// Register the builtin Types.
void registerTypes();
std::optional<BuiltinDialectVersion> version;
}];
}
#endif // BUILTIN_BASE