16 #include "mlir/IR/Builders.h"
17 #include "mlir/IR/BuiltinTypes.h"
18 #include "mlir/IR/DialectImplementation.h"
20 using namespace circt;
27 void SimDialect::initialize() {
30 #include "circt/Dialect/Sim/Sim.cpp.inc"
36 #include "circt/Dialect/Sim/SimDialect.cpp.inc"
38 Operation *SimDialect::materializeConstant(::mlir::OpBuilder &builder,
39 ::mlir::Attribute value,
41 ::mlir::Location loc) {
43 if (
auto fmtStrType = llvm::dyn_cast<FormatStringType>(type))
44 return builder.create<FormatLitOp>(loc, fmtStrType,
45 llvm::cast<StringAttr>(value));
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.