CIRCT  19.0.0git
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 
16 #include "mlir/IR/Builders.h"
17 #include "mlir/IR/BuiltinTypes.h"
18 #include "mlir/IR/DialectImplementation.h"
19 #include "llvm/ADT/TypeSwitch.h"
20 
21 using namespace circt;
22 using namespace circt::handshake;
23 
24 //===----------------------------------------------------------------------===//
25 // Dialect specification.
26 //===----------------------------------------------------------------------===//
27 
28 void HandshakeDialect::initialize() {
29  // Register operations.
30  addOperations<
31 #define GET_OP_LIST
32 #include "circt/Dialect/Handshake/Handshake.cpp.inc"
33  >();
34  addAttributes<
35 #define GET_ATTRDEF_LIST
36 #include "circt/Dialect/Handshake/HandshakeAttributes.cpp.inc"
37  >();
38 }
39 
40 // Provide implementations for the enums, attributes and interfaces that we use.
41 #define GET_ATTRDEF_CLASSES
42 #include "circt/Dialect/Handshake/HandshakeAttributes.cpp.inc"
43 #include "circt/Dialect/Handshake/HandshakeDialect.cpp.inc"
44 #include "circt/Dialect/Handshake/HandshakeEnums.cpp.inc"
45 #include "circt/Dialect/Handshake/HandshakeInterfaces.cpp.inc"
This file defines an intermediate representation for circuits acting as an abstraction for constraint...
Definition: DebugAnalysis.h:21