mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #5918 from mikesinouye/keywords
verilog backend: runtime optimization for keyword pool
This commit is contained in:
commit
136d80e3d7
|
|
@ -38,7 +38,7 @@ USING_YOSYS_NAMESPACE
|
|||
|
||||
using namespace VERILOG_BACKEND;
|
||||
|
||||
const pool<string> VERILOG_BACKEND::verilog_keywords() {
|
||||
const pool<string> &VERILOG_BACKEND::verilog_keywords() {
|
||||
static const pool<string> res = {
|
||||
// IEEE 1800-2017 Annex B
|
||||
"accept_on", "alias", "always", "always_comb", "always_ff", "always_latch", "and", "assert", "assign", "assume", "automatic", "before",
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
YOSYS_NAMESPACE_BEGIN
|
||||
namespace VERILOG_BACKEND {
|
||||
|
||||
const pool<string> verilog_keywords();
|
||||
const pool<string> &verilog_keywords();
|
||||
bool char_is_verilog_escaped(char c);
|
||||
bool id_is_verilog_escaped(const std::string &str);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue