Describe the bug codegen_main accepts --ir_dump_path, but when using the v1.5 pipeline generator the directory remains empty.
To Reproduce
codegen_main \
--generator=pipeline \
--pipeline_stages=1 \
--delay_model=unit \
--ir_dump_path=/tmp/codegen_dumps \
--output_verilog_path=/tmp/test.sv \
test.ir
test.sv is generated successfully, but /tmp/codegen_dumps remains empty.
The same option works with the combinational generator.
It appears that CodegenOptions::ir_dump_path is not propagated to:
- BlockConversionPassOptions in ConvertToBlock()
- CodegenPassOptions in ConvertBlockToVerilog()
Propagating the option in both places fixes the issue locally for me.