CIRCT
19.0.0git
lib
Dialect
Handshake
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
13
#include "
circt/Dialect/Handshake/HandshakeDialect.h
"
14
#include "
circt/Dialect/Handshake/HandshakeOps.h
"
15
#include "
circt/Dialect/Seq/SeqDialect.h
"
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"
HandshakeDialect.h
HandshakeOps.h
SeqDialect.h
circt::handshake
Definition:
CFToHandshake.h:31
circt
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition:
DebugAnalysis.h:21
Generated on Thu May 16 2024 00:06:31 for CIRCT by
1.9.1