Skip to content

Commit

Permalink
[NFC][Seq] Improve the naming of clock inverters from intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
nandor committed Mar 8, 2024
1 parent 1abb2c6 commit 95a2f94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Dialect/FIRRTL/Transforms/LowerIntrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ class CirctClockInverterConverter : public IntrinsicConverter {
auto in = builder.create<WireOp>(inst.getResult(0).getType()).getResult();
inst.getResult(0).replaceAllUsesWith(in);
auto out = builder.create<ClockInverterIntrinsicOp>(in);
inst.getResult(1).replaceAllUsesWith(out);
auto name = inst.getInstanceName();
Value outWire = builder.create<WireOp>(out.getType(), name).getResult();
builder.create<StrictConnectOp>(outWire, out);
inst.getResult(1).replaceAllUsesWith(outWire);
inst.erase();
return success();
}
Expand Down

0 comments on commit 95a2f94

Please sign in to comment.