mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 20:21:25 +00:00
Use C++11 final/override keywords.
This commit is contained in:
parent
dfde1cf1c5
commit
7191dd16f9
220 changed files with 540 additions and 548 deletions
|
@ -27,7 +27,7 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct ProcPass : public Pass {
|
||||
ProcPass() : Pass("proc", "translate processes to netlists") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -58,7 +58,7 @@ struct ProcPass : public Pass {
|
|||
log(" executed in -ifx mode.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
std::string global_arst;
|
||||
bool ifxmode = false;
|
||||
|
|
|
@ -203,7 +203,7 @@ restart_proc_arst:
|
|||
|
||||
struct ProcArstPass : public Pass {
|
||||
ProcArstPass() : Pass("proc_arst", "detect asynchronous resets") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -221,7 +221,7 @@ struct ProcArstPass : public Pass {
|
|||
log(" in the 'init' attribute on the net.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
std::string global_arst;
|
||||
bool global_arst_neg = false;
|
||||
|
|
|
@ -166,7 +166,7 @@ void proc_clean(RTLIL::Module *mod, RTLIL::Process *proc, int &total_count, bool
|
|||
|
||||
struct ProcCleanPass : public Pass {
|
||||
ProcCleanPass() : Pass("proc_clean", "remove empty parts of processes") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -179,7 +179,7 @@ struct ProcCleanPass : public Pass {
|
|||
log("if it contains only empty structures.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
int total_count = 0;
|
||||
bool quiet = false;
|
||||
|
|
|
@ -370,7 +370,7 @@ void proc_dff(RTLIL::Module *mod, RTLIL::Process *proc, ConstEval &ce)
|
|||
|
||||
struct ProcDffPass : public Pass {
|
||||
ProcDffPass() : Pass("proc_dff", "extract flip-flops from processes") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -380,7 +380,7 @@ struct ProcDffPass : public Pass {
|
|||
log("d-type flip-flop cells.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing PROC_DFF pass (convert process syncs to FFs).\n");
|
||||
|
||||
|
|
|
@ -434,7 +434,7 @@ void proc_dlatch(proc_dlatch_db_t &db, RTLIL::Process *proc)
|
|||
|
||||
struct ProcDlatchPass : public Pass {
|
||||
ProcDlatchPass() : Pass("proc_dlatch", "extract latches from processes") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -444,7 +444,7 @@ struct ProcDlatchPass : public Pass {
|
|||
log("d-type latches.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing PROC_DLATCH pass (convert process syncs to latches).\n");
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ void proc_init(RTLIL::Module *mod, SigMap &sigmap, RTLIL::Process *proc)
|
|||
|
||||
struct ProcInitPass : public Pass {
|
||||
ProcInitPass() : Pass("proc_init", "convert initial block to init attributes") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -97,7 +97,7 @@ struct ProcInitPass : public Pass {
|
|||
log("respective wire.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing PROC_INIT pass (extract init attributes).\n");
|
||||
|
||||
|
|
|
@ -438,7 +438,7 @@ void proc_mux(RTLIL::Module *mod, RTLIL::Process *proc, bool ifxmode)
|
|||
|
||||
struct ProcMuxPass : public Pass {
|
||||
ProcMuxPass() : Pass("proc_mux", "convert decision trees to multiplexers") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -452,7 +452,7 @@ struct ProcMuxPass : public Pass {
|
|||
log(" 'case' expressions and 'if' conditions.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
bool ifxmode = false;
|
||||
log_header(design, "Executing PROC_MUX pass (convert decision trees to multiplexers).\n");
|
||||
|
|
|
@ -125,7 +125,7 @@ struct PruneWorker
|
|||
|
||||
struct ProcPrunePass : public Pass {
|
||||
ProcPrunePass() : Pass("proc_prune", "remove redundant assignments") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -135,7 +135,7 @@ struct ProcPrunePass : public Pass {
|
|||
log("a later assignment to the same signal and removes them.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
int total_removed_count = 0, total_promoted_count = 0;
|
||||
log_header(design, "Executing PROC_PRUNE pass (remove redundant assignments in processes).\n");
|
||||
|
|
|
@ -70,7 +70,7 @@ void proc_rmdead(RTLIL::SwitchRule *sw, int &counter, int &full_case_counter)
|
|||
|
||||
struct ProcRmdeadPass : public Pass {
|
||||
ProcRmdeadPass() : Pass("proc_rmdead", "eliminate dead trees in decision trees") { }
|
||||
void help() YS_OVERRIDE
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
|
@ -79,7 +79,7 @@ struct ProcRmdeadPass : public Pass {
|
|||
log("This pass identifies unreachable branches in decision trees and removes them.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
log_header(design, "Executing PROC_RMDEAD pass (remove dead branches from decision trees).\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue