Skip to content

Commit

Permalink
[FIRTOOL] Move LowerIntrinsic to preprocess (#6796)
Browse files Browse the repository at this point in the history
This moves LowerIntrinsic to preprocess transforms.
  • Loading branch information
uenoku authored Mar 7, 2024
1 parent e49188b commit f6cc005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Firtool/Firtool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ LogicalResult firtool::populatePreprocessTransforms(mlir::PassManager &pm,
pm.nest<firrtl::CircuitOp>().addNestedPass<firrtl::FModuleOp>(
firrtl::createMaterializeDebugInfoPass());

pm.nest<firrtl::CircuitOp>().addPass(
firrtl::createLowerIntrinsicsPass(opt.shouldFixupEICGWrapper()));

return success();
}

LogicalResult firtool::populateCHIRRTLToLowFIRRTL(mlir::PassManager &pm,
const FirtoolOptions &opt,
StringRef inputFilename) {
pm.nest<firrtl::CircuitOp>().addPass(
firrtl::createLowerIntrinsicsPass(opt.shouldFixupEICGWrapper()));

pm.nest<firrtl::CircuitOp>().addPass(firrtl::createLowerSignaturesPass());

pm.nest<firrtl::CircuitOp>().addPass(firrtl::createInjectDUTHierarchyPass());
Expand Down

0 comments on commit f6cc005

Please sign in to comment.