CIRCT 20.0.0git
Loading...
Searching...
No Matches
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
16using namespace circt;
17using 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
23Type ClockConstAttr::getType() { return seq::ClockType::get(getContext()); }
24
25void SeqDialect::registerAttributes() {
26 addAttributes<
27#define GET_ATTRDEF_LIST
28#include "circt/Dialect/Seq/SeqAttributes.cpp.inc"
29 >();
30}
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition seq.py:1