16#include "mlir/IR/Builders.h"
17#include "mlir/IR/BuiltinTypes.h"
18#include "mlir/IR/DialectImplementation.h"
27void SeqDialect::initialize() {
34#include "circt/Dialect/Seq/Seq.cpp.inc"
45Operation *SeqDialect::materializeConstant(OpBuilder &builder, Attribute value,
46 Type type, Location loc) {
48 if (
auto intType = dyn_cast<IntegerType>(type))
49 if (
auto attrValue = dyn_cast<IntegerAttr>(value))
52 if (isa<ClockType>(type))
53 if (
auto attrValue = dyn_cast<ClockConstAttr>(value))
54 return builder.
create<seq::ConstClockOp>(loc, attrValue);
59#include "circt/Dialect/Seq/SeqDialect.cpp.inc"
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.