mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-30 16:03:17 +00:00
register.h: Add internal_flag to Pass
Update experimental pass warnings to use a shared function. Reduces repetition, and also allows all of the warning flags to be combined (which at present is just experimental and the new internal). Update `test_*` passes to call `internal()` in their constructors.
This commit is contained in:
parent
1529d991fd
commit
d62a110dc8
7 changed files with 40 additions and 20 deletions
|
@ -69,11 +69,16 @@ struct Pass
|
|||
int call_counter;
|
||||
int64_t runtime_ns;
|
||||
bool experimental_flag = false;
|
||||
bool internal_flag = false;
|
||||
|
||||
void experimental() {
|
||||
experimental_flag = true;
|
||||
}
|
||||
|
||||
void internal() {
|
||||
internal_flag = true;
|
||||
}
|
||||
|
||||
struct pre_post_exec_state_t {
|
||||
Pass *parent_pass;
|
||||
int64_t begin_ns;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue