Closed martijnbastiaan closed 5 months ago
I've proposed a patch that does the, IMO, more sensible thing:
Given a global binder
accum
and an applicationmealy accum
, Clash now calls the new, specialized bindermealy_accum
instead of justaccum
. This more accurately reflects the body of the function and will result in more sensible file names. For example, previously Clash would generate a separate fileaccum.{v,vhdl}
that contained the inlined bodies of bothmealy
andaccum
. AFter this patch, it will generatemealy_accum.{v,vhdl}
.
Christiaan described this as:
over at https://github.com/clash-lang/clash-compiler/issues/2502#issuecomment-1592916523. I'm actually unsure why we would ever pick solely the argument's name instead of the function's name.