CIRCT  19.0.0git
IbisDialect.cpp
Go to the documentation of this file.
1 //===- IbisDialect.cpp - Implementation of Ibis 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 
14 using namespace circt;
15 using namespace ibis;
16 
17 // Pull in the dialect definition.
18 #include "circt/Dialect/Ibis/IbisDialect.cpp.inc"
19 
20 void IbisDialect::initialize() {
21  registerTypes();
22  registerAttributes();
23 
24  // Register operations.
25  addOperations<
26 #define GET_OP_LIST
27 #include "circt/Dialect/Ibis/Ibis.cpp.inc"
28  >();
29 }
30 
31 void IbisDialect::registerAttributes() {
32  addAttributes<
33 #define GET_ATTRDEF_LIST
34 #include "circt/Dialect/Ibis/IbisAttributes.cpp.inc"
35  >();
36 }
37 
38 // Provide implementations for the enums we use.
39 #include "circt/Dialect/Ibis/IbisEnums.cpp.inc"
40 
41 #define GET_ATTRDEF_CLASSES
42 #include "circt/Dialect/Ibis/IbisAttributes.cpp.inc"
This file defines an intermediate representation for circuits acting as an abstraction for constraint...
Definition: DebugAnalysis.h:21