mirror of https://github.com/YosysHQ/yosys.git
Add log_checkpoint function and use it in opt_muxtree
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
1122a2e067
commit
0e6c83027f
|
@ -420,6 +420,13 @@ void log_pop()
|
|||
log_flush();
|
||||
}
|
||||
|
||||
void log_checkpoint()
|
||||
{
|
||||
log_id_cache.clear();
|
||||
IdString::checkpoint();
|
||||
log_flush();
|
||||
}
|
||||
|
||||
#if (defined(__linux__) || defined(__FreeBSD__)) && defined(YOSYS_ENABLE_PLUGINS)
|
||||
void log_backtrace(const char *prefix, int levels)
|
||||
{
|
||||
|
|
|
@ -130,6 +130,7 @@ void log_spacer();
|
|||
void log_push();
|
||||
void log_pop();
|
||||
|
||||
void log_checkpoint();
|
||||
void log_backtrace(const char *prefix, int levels);
|
||||
void log_reset_stack();
|
||||
void log_flush();
|
||||
|
|
|
@ -204,6 +204,7 @@ struct OptMuxtreeWorker
|
|||
|
||||
log(" Analyzing evaluation results.\n");
|
||||
log_assert(glob_abort_cnt > 0);
|
||||
log_checkpoint();
|
||||
|
||||
for (auto &mi : mux2info)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue