23void MooreDialect::initialize() {
31Operation *MooreDialect::materializeConstant(OpBuilder &builder,
32 Attribute value, Type type,
34 if (
auto intType = dyn_cast<IntType>(type))
35 if (
auto intValue = dyn_cast<FVIntegerAttr>(value))
36 return ConstantOp::create(builder, loc, intType, intValue);
37 if (
auto timeType = dyn_cast<TimeType>(type))
38 if (
auto timeValue = dyn_cast<IntegerAttr>(value))
39 return ConstantTimeOp::create(builder, loc, timeType, timeValue);
43#include "circt/Dialect/Moore/MooreDialect.cpp.inc"
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.