3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-29 20:59:03 +00:00

Make ID:: constants be StaticIdStrings for better optimization.

Their internal indexes will be known at compile time, like we already support for the `ID()` macro.
This commit is contained in:
Robert O'Callahan 2025-09-23 03:25:16 +00:00
parent 13a2481da7
commit effc52fedc
2 changed files with 8 additions and 3 deletions

View file

@ -46,7 +46,7 @@ int RTLIL::IdString::last_created_idx_[8];
int RTLIL::IdString::last_created_idx_ptr_;
#endif
#define X(N) const RTLIL::IdString RTLIL::ID::N(RTLIL::StaticId::N);
#define X(_id) const RTLIL::IdString RTLIL::IDInternal::_id(RTLIL::StaticId::_id);
#include "kernel/constids.inc"
#undef X