CIRCT 21.0.0git
Loading...
Searching...
No Matches
RTGDialect.cpp
Go to the documentation of this file.
1//===- RTGDialect.cpp - Implement the RTG 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//
9// This file implements the RTG dialect.
10//
11//===----------------------------------------------------------------------===//
12
16#include "mlir/IR/Builders.h"
17#include "mlir/IR/BuiltinTypes.h"
18#include "mlir/IR/DialectImplementation.h"
19
20using namespace circt;
21using namespace rtg;
22
23//===----------------------------------------------------------------------===//
24// Dialect specification.
25//===----------------------------------------------------------------------===//
26
27void RTGDialect::initialize() {
28 registerAttributes();
29 registerTypes();
30 // Register operations.
31 addOperations<
32#define GET_OP_LIST
33#include "circt/Dialect/RTG/IR/RTG.cpp.inc"
34 >();
35}
36
37#include "circt/Dialect/RTG/IR/RTGEnums.cpp.inc"
38
39#include "circt/Dialect/RTG/IR/RTGDialect.cpp.inc"
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition rtg.py:1