CIRCT  20.0.0git
SeqAttributes.cpp
Go to the documentation of this file.
1 //===- SeqAttributes.cpp - Implement Seq attributes -----------------------===//
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 
12 #include "mlir/IR/Builders.h"
13 #include "mlir/IR/DialectImplementation.h"
14 #include "llvm/ADT/TypeSwitch.h"
15 
16 using namespace circt;
17 using namespace seq;
18 
19 #include "circt/Dialect/Seq/SeqEnums.cpp.inc"
20 #define GET_ATTRDEF_CLASSES
21 #include "circt/Dialect/Seq/SeqAttributes.cpp.inc"
22 
23 Type ClockConstAttr::getType() { return seq::ClockType::get(getContext()); }
24 
25 void SeqDialect::registerAttributes() {
26  addAttributes<
27 #define GET_ATTRDEF_LIST
28 #include "circt/Dialect/Seq/SeqAttributes.cpp.inc"
29  >();
30 }
Direction get(bool isOutput)
Returns an output direction if isOutput is true, otherwise returns an input direction.
Definition: CalyxOps.cpp:55
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21
Definition: seq.py:1