3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-18 22:59:03 +00:00
yosys/passes
Krystine Sherwin f4ad934542
log_help: Refactor help content adding
Content is now added to the `ContentListing` rather than the `PrettyHelp`.
`open_*` methods return the `ContentListing` that was added instead of leaving a hanging continuation.
This allows for (e.g.) options to be added directly to optiongroups, instead of requiring that groups be closed before continuation.
This also means that all `PrettyHelp`s are a listing, with the actual log being called by the default `Pass::help()`; making the mode field redundant.
Added `PrettyHelp::log_help()` which replaces the `PrettyHelp::Mode::LOG` logic.
Added `ContentListing::back()` which just returns the last element of the underlying content vector.
Some of the content tracking was made redundant and removed, in particular `PrettyHelp::_current_listing` and `ContentListing::parent`.

Converted `ContentListing` to a class instead of a struct, adjusting constructors to match.
Added `ContentListing` constructor that accepts a `source_location`.

Update `HelpPass::dump_cmds_json()` for new log_help.
2025-03-21 10:26:12 +13:00
..
cmds log_help: Refactor help content adding 2025-03-21 10:26:12 +13:00
equiv mark all hash_into methods nodiscard 2025-01-14 12:39:15 +01:00
fsm io: refactor string and file work into new unit 2025-03-19 13:43:42 +01:00
hierarchy keep_hierarchy.cc: use strictly correct syntax for printf of uint64_t values 2025-01-10 14:03:09 -08:00
memory memory_libmap: update indices on design modification 2025-02-11 13:32:34 +01:00
opt Merge pull request #4834 from YosysHQ/emil/gzip-refactor 2025-03-21 10:01:00 +13:00
pmgen io: refactor string and file work into new unit 2025-03-19 13:43:42 +01:00
proc mark all hash_into methods nodiscard 2025-01-14 12:39:15 +01:00
sat io: refactor string and file work into new unit 2025-03-19 13:43:42 +01:00
techmap gzip: back to pointers 2025-03-19 13:43:44 +01:00
tests macc: Stop using the B port 2025-01-08 13:03:35 +01:00