mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-30 21:57:47 +00:00
Merge pull request #5912 from YosysHQ/krys/opt_clean_docs
opt_clean: Set group for docs gen
This commit is contained in:
commit
4230ebff71
1 changed files with 13 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "kernel/register.h"
|
#include "kernel/register.h"
|
||||||
#include "kernel/log.h"
|
#include "kernel/log.h"
|
||||||
|
#include "kernel/log_help.h"
|
||||||
#include "passes/opt/opt_clean/opt_clean.h"
|
#include "passes/opt/opt_clean/opt_clean.h"
|
||||||
|
|
||||||
USING_YOSYS_NAMESPACE
|
USING_YOSYS_NAMESPACE
|
||||||
|
|
@ -43,6 +44,12 @@ void rmunused_module(RTLIL::Module *module, bool rminit, CleanRunContext &clean_
|
||||||
|
|
||||||
struct OptCleanPass : public Pass {
|
struct OptCleanPass : public Pass {
|
||||||
OptCleanPass() : Pass("opt_clean", "remove unused cells and wires") { }
|
OptCleanPass() : Pass("opt_clean", "remove unused cells and wires") { }
|
||||||
|
bool formatted_help() override
|
||||||
|
{
|
||||||
|
auto *help = PrettyHelp::get_current();
|
||||||
|
help->set_group("passes/opt");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
void help() override
|
void help() override
|
||||||
{
|
{
|
||||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||||
|
|
@ -99,6 +106,12 @@ struct OptCleanPass : public Pass {
|
||||||
|
|
||||||
struct CleanPass : public Pass {
|
struct CleanPass : public Pass {
|
||||||
CleanPass() : Pass("clean", "remove unused cells and wires") { }
|
CleanPass() : Pass("clean", "remove unused cells and wires") { }
|
||||||
|
bool formatted_help() override
|
||||||
|
{
|
||||||
|
auto *help = PrettyHelp::get_current();
|
||||||
|
help->set_group("passes/opt");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
void help() override
|
void help() override
|
||||||
{
|
{
|
||||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue