-
-
Notifications
You must be signed in to change notification settings - Fork 676
Templatize _adEq2
#21513
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
Merged
Merged
Templatize _adEq2
#21513
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7400277
Use a dedicated field for `EqualExp` lowering
Albert24GG de661f6
Use only `__equals` for array equality lowering
Albert24GG d6965d6
Remove `rt/adi.d`
Albert24GG b91cca8
Fix `doInlineAs` for `EqualExp`
Albert24GG 7a1cee2
Update `fail_compilation` test outputs
Albert24GG e6780fc
Update makedeps tests ref
Albert24GG 075f022
Remove unused templates
Albert24GG 34c11cb
Mark array literals as `on-stack` to bypass `@nogc` analysis
Albert24GG 815305a
fix: Avoid unqualifying null expression
Albert24GG 8f2ee27
Refactor `at` into a nested static function
Albert24GG ab37d17
Remove parameter names from function type alias
Albert24GG 18edcbe
Remove extra newline
Albert24GG e38b559
Fix & refactor memcmp-ability checks
Albert24GG 6dbdb8a
Update `fail_compilation` test output
Albert24GG 80d1b51
Use early return to reduce indentation
Albert24GG f0a59c3
Simplify condition
Albert24GG f7812a5
Move visitor to global scope
Albert24GG 3036bb6
Remove redundant brackets
Albert24GG c6f2782
Fix struct members exploration
Albert24GG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
@thewilsonator Because of the fact that now the result expression is the original one with a
.loweringfield that is set to null whenmemcmpis used (the lowering tomemcmphappens ine2ir.d), the GC checks will be done on the original expression. This hack allows to preserve the current upstream behavior by avoiding flagging the array literals as@gc. Is there a better way of achieving the same goal, but without this type of hacks?