17 #include "mlir/Pass/Pass.h"
21 #define GEN_PASS_DEF_FINALIZEIR
22 #include "circt/Dialect/FIRRTL/Passes.h.inc"
26 using namespace circt;
29 :
public circt::firrtl::impl::FinalizeIRBase<FinalizeIRPass> {
30 void runOnOperation()
override;
35 void FinalizeIRPass::runOnOperation() {
37 for (
auto verbatim : llvm::make_early_inc_range(
38 getOperation().getBodyRegion().getOps<sv::VerbatimOp>()))
39 if (
auto outputFile = verbatim->getAttrOfType<hw::OutputFileAttr>(
40 hw::OutputFileAttr::getMnemonic()))
41 if (!outputFile.isDirectory() &&
42 outputFile.getExcludeFromFilelist().getValue())
47 return std::make_unique<FinalizeIRPass>();
std::unique_ptr< mlir::Pass > createFinalizeIRPass()
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.