CIRCT 24.0.0git
Loading...
Searching...
No Matches
HandshakeDialect.cpp
Go to the documentation of this file.
1//===- HandshakeDialect.cpp - Implement the Handshake 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 Handshake dialect.
10//
11//===----------------------------------------------------------------------===//
12
17#include "mlir/IR/Builders.h"
18#include "mlir/IR/BuiltinTypes.h"
19#include "mlir/IR/DialectImplementation.h"
20#include "llvm/ADT/TypeSwitch.h"
21
22using namespace circt;
23using namespace circt::handshake;
24
25//===----------------------------------------------------------------------===//
26// Dialect specification.
27//===----------------------------------------------------------------------===//
28
29void HandshakeDialect::initialize() {
30 addAttributes<
31#define GET_ATTRDEF_LIST
32#include "circt/Dialect/Handshake/HandshakeAttributes.cpp.inc"
33 >();
34}
35
36// Provide implementations for the enums, attributes and interfaces that we use.
37#define GET_ATTRDEF_CLASSES
38#include "circt/Dialect/Handshake/HandshakeAttributes.cpp.inc"
39#include "circt/Dialect/Handshake/HandshakeDialect.cpp.inc"
40#include "circt/Dialect/Handshake/HandshakeEnums.cpp.inc"
41#include "circt/Dialect/Handshake/HandshakeInterfaces.cpp.inc"
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.