15 #include "mlir/Pass/Pass.h"
19 #define GEN_PASS_DEF_FOOWIRES
20 #include "circt/Dialect/HW/Passes.h.inc"
24 using namespace circt;
29 struct FooWiresPass : circt::hw::impl::FooWiresBase<FooWiresPass> {
30 void runOnOperation()
override;
34 void FooWiresPass::runOnOperation() {
37 [&](hw::WireOp wire) {
38 wire.setName(
"foo_" + std::to_string(nWires++));
43 return std::make_unique<FooWiresPass>();
std::unique_ptr< mlir::Pass > createFooWiresPass()
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.