Skip to content

Commit

Permalink
converted EliminateWires to interface pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dobios committed Jul 26, 2024
1 parent b5d4fbc commit 77d36f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Dialect/FIRRTL/Transforms/EliminateWires.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct EliminateWiresPass
auto &dominance = getAnalysis<mlir::DominanceInfo>();
std::deque<std::pair<WireOp, MatchingConnectOp>> worklist;

for (auto wire : op.getOps<WireOp>()) {
for (auto wire : op.template getOps<WireOp>()) {
auto type = type_dyn_cast<FIRRTLBaseType>(wire.getResult().getType());
if (!type || !type.isPassive()) {
++complexTypeWires;
Expand Down Expand Up @@ -96,7 +96,7 @@ struct EliminateWiresPass
void EliminateWiresPass::runOnOperation() {
LLVM_DEBUG(debugPassHeader(this) << "\n";);

TypeSwitch<Operation *>(getOperation())
TypeSwitch<Operation *>(&(*getOperation()))
.Case<FModuleOp, FExtModuleOp, FIntModuleOp, FMemModuleOp, ClassOp,
ExtClassOp, FormalOp>([&](auto op) { runOnOp(op); })
.Default([&](auto) {});
Expand Down

0 comments on commit 77d36f5

Please sign in to comment.