llvm / circt

Circuit IR Compilers and Tools

Home Page:https://circt.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[HGLDD] Uniquify object names during emission

fabianschuiki opened this issue · comments

Make HGLDD emission add some form of uniquification suffix to objects with duplicate names. Right now, if there are two debug variables with the same name, the emitter will happily include both with the same name. This is likely to crash in the tool that ingests the debug information (some may materialize the debug variables as Verilog XMRs or similar kinds of "views").

Also prevent empty names from being printed.