mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 04:13:39 +00:00
Added help messages for opt_* passes
This commit is contained in:
parent
1bc0f04789
commit
36954471a6
7 changed files with 127 additions and 11 deletions
|
@ -26,7 +26,30 @@
|
|||
bool OPT_DID_SOMETHING;
|
||||
|
||||
struct OptPass : public Pass {
|
||||
OptPass() : Pass("opt") { }
|
||||
OptPass() : Pass("opt", "perform simple optimizations") { }
|
||||
virtual void help()
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
log(" opt [selection]\n");
|
||||
log("\n");
|
||||
log("This pass calls all the other opt_* passes in a useful manner. This performs\n");
|
||||
log("a series of trivial optimizations and cleanups. This pass executes the other\n");
|
||||
log("passes in the following order:\n");
|
||||
log("\n");
|
||||
log(" opt_const\n");
|
||||
log(" opt_share -nomux\n");
|
||||
log("\n");
|
||||
log(" do\n");
|
||||
log(" opt_muxtree\n");
|
||||
log(" opt_reduce\n");
|
||||
log(" opt_share\n");
|
||||
log(" opt_rmdff\n");
|
||||
log(" opt_rmunused\n");
|
||||
log(" opt_const\n");
|
||||
log(" while [changed design]\n");
|
||||
log("\n");
|
||||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
log_header("Executing OPT pass (performing simple optimizations).\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue