16 #include "mlir/IR/Builders.h"
17 #include "mlir/IR/BuiltinTypes.h"
18 #include "mlir/IR/DialectImplementation.h"
20 using namespace circt;
27 void SeqDialect::initialize() {
34 #include "circt/Dialect/Seq/Seq.cpp.inc"
45 Operation *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"
def create(data_type, value)
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.