verilog_backend: Make the keywords pool static

Do not recreate the keywords pool on every lookup of an identifier.
This commit is contained in:
Martin Povišer 2023-07-19 16:55:30 +02:00 committed by Lofty
parent f0ae046c5a
commit 596743a6b6
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ std::string id(RTLIL::IdString internal_id, bool may_rename = true)
break;
}
const pool<string> keywords = {
static const pool<string> keywords = {
// IEEE 1800-2017 Annex B
"accept_on", "alias", "always", "always_comb", "always_ff", "always_latch", "and", "assert", "assign", "assume", "automatic", "before",
"begin", "bind", "bins", "binsof", "bit", "break", "buf", "bufif0", "bufif1", "byte", "case", "casex", "casez", "cell", "chandle",