[HandshakeToHW] Fix crashes when multiple syncs with different numbers of none inputs are used
#9587
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #9538:
hlstoolcrashes on this handshake functionwhen running with
I believe this is caused by a module naming issue in this function:
circt/lib/Conversion/HandshakeToHW/HandshakeToHW.cpp
Line 200 in d3c9398
where
getHandshakeDiscriminatingTypesfilters outnoneinputs/outputs when generating a unique module name for the operator.Therefore, the two
syncoperators with different input types get mapped to the same module namehandshake_sync_in_ui32_out_ui32, causing the assertion failure.This PR removes the
nonetype filtering behavior. However, I'm not sure why this is done in the first place, so please let me know if this might break something else.Thank you!