-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[slang] Fix PLA task concatenation ascending order #1047
[slang] Fix PLA task concatenation ascending order #1047
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1047 +/- ##
=======================================
Coverage 94.71% 94.71%
=======================================
Files 191 191
Lines 47656 47667 +11
=======================================
+ Hits 45136 45147 +11
Misses 2520 2520
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
This seems like an overly intrusive way of fixing this -- I'd prefer to avoid adding a specialized ASTFlag just for this one case. It seems like it should be fixable in the PLATask handler itself by changing checkArguments to see that it's a concat expression and just not issuing an error in that case. |
source/ast/builtins/SystemTasks.cpp
Outdated
@@ -725,9 +725,9 @@ class SdfAnnotateTask : public SystemTaskBase { | |||
} | |||
}; | |||
|
|||
class PlaTask : public SystemTaskBase { | |||
class SLANG_EXPORT PlaTask : public SystemTaskBase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding SLANG_EXPORT here doesn't do anything; this class is not externally visible to downstream users of the library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
fixed |
…dev/slang-tidy * 'master' of https://github.com/MikePopoloski/slang: Update CHANGELOG.md [slang] Fix PLA task concatenation ascending order (MikePopoloski#1047) [slang] Fix PATHPULSE limit values (MikePopoloski#1048) Handle recursive parameter definitions via hierarchical reference Mark fmt lib headers as system headers to suppress warnings Bump dependency versions: fmt and pybind11 [slang] Make string simple type (MikePopoloski#1049) Update README.md (MikePopoloski#1046) [slang][port] Fix bugs (MikePopoloski#1043) Use [[likely]] / [[unlikely]] replace macro SLANG_LIKELY/SLANG_UNLIKELY (MikePopoloski#1038) Add multiple slang-tidy checks and minor fixes in existing ones (MikePopoloski#1040) chore: update pre-commit hooks (MikePopoloski#1041)
…dev/slang-tidy * 'master' of https://github.com/MikePopoloski/slang: Fix a bug in the tidy-check UnusedSensitiveSignal (MikePopoloski#1056) Update CHANGELOG.md [slang] Fix PLA task concatenation ascending order (MikePopoloski#1047) [slang] Fix PATHPULSE limit values (MikePopoloski#1048) Handle recursive parameter definitions via hierarchical reference Mark fmt lib headers as system headers to suppress warnings Bump dependency versions: fmt and pybind11 [slang] Make string simple type (MikePopoloski#1049) Update README.md (MikePopoloski#1046) [slang][port] Fix bugs (MikePopoloski#1043) Use [[likely]] / [[unlikely]] replace macro SLANG_LIKELY/SLANG_UNLIKELY (MikePopoloski#1038) Add multiple slang-tidy checks and minor fixes in existing ones (MikePopoloski#1040) chore: update pre-commit hooks (MikePopoloski#1041)
Added support for elaborating correctness of examples like the one from LRM section 20.16:
By default, slang sets all concatenation expression bitwidth ranges in descending order. I added an ASTFlag to change this behavior when concatenation is an argument of the PLA task.