Loading [MathJax]/jax/input/TeX/config.js
CIRCT 21.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KanagawaDialect.cpp
Go to the documentation of this file.
1//===- KanagawaDialect.cpp - Implementation of Kanagawa dialect -----------===//
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
11#include "mlir/IR/DialectImplementation.h"
12#include "llvm/ADT/TypeSwitch.h"
13
14using namespace circt;
15using namespace kanagawa;
16
17// Pull in the dialect definition.
18#include "circt/Dialect/Kanagawa/KanagawaDialect.cpp.inc"
19
20void KanagawaDialect::initialize() {
21 registerTypes();
22 registerAttributes();
23
24 // Register operations.
25 addOperations<
26#define GET_OP_LIST
27#include "circt/Dialect/Kanagawa/Kanagawa.cpp.inc"
28 >();
29}
30
31void KanagawaDialect::registerAttributes() {
32 addAttributes<
33#define GET_ATTRDEF_LIST
34#include "circt/Dialect/Kanagawa/KanagawaAttributes.cpp.inc"
35 >();
36}
37
38// Provide implementations for the enums we use.
39#include "circt/Dialect/Kanagawa/KanagawaEnums.cpp.inc"
40
41#define GET_ATTRDEF_CLASSES
42#include "circt/Dialect/Kanagawa/KanagawaAttributes.cpp.inc"
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.