Files
gps/tools/local/circt/include/circt/Dialect/OM/OMDialect.td
T
2026-07-12 11:01:51 +03:00

55 lines
1.6 KiB
TableGen

//===- OMDialect.td - Object Model dialect definition ---------------------===//
//
// 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 contains the Object Model dialect definition.
//
//===----------------------------------------------------------------------===//
#ifndef CIRCT_DIALECT_OM_OMDIALECT
#define CIRCT_DIALECT_OM_OMDIALECT
include "mlir/IR/OpBase.td"
def OMDialect : Dialect {
let name = "om";
let cppNamespace = "::circt::om";
let summary = [{
The Object Model dialect captures design intent from various domains in an
object model.
}];
let description = [{
For more information about the Object Model dialect, see the
[Object Model Dialect Rationale](./RationaleOM.md).
}];
let useDefaultAttributePrinterParser = 1;
let useDefaultTypePrinterParser = 1;
let dependentDialects = [
"circt::hw::HWDialect"
];
let extraClassDeclaration = [{
/// Register all OM types.
void registerTypes();
/// Register all OM types.
void registerAttributes();
/// Materialize a constant value into an om.constant op.
::mlir::Operation *materializeConstant(::mlir::OpBuilder &builder,
::mlir::Attribute value,
::mlir::Type type,
::mlir::Location loc) override;
}];
}
#endif // CIRCT_DIALECT_OM_OMDIALECT