-
Notifications
You must be signed in to change notification settings - Fork 243
Fix incorrect translation of calls to a builtin that returns a structure #2722
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
VyacheslavLevytskyy
merged 2 commits into
KhronosGroup:main
from
VyacheslavLevytskyy:fix_extractvalue_opt1
Sep 19, 2024
Merged
Fix incorrect translation of calls to a builtin that returns a structure #2722
VyacheslavLevytskyy
merged 2 commits into
KhronosGroup:main
from
VyacheslavLevytskyy:fix_extractvalue_opt1
Sep 19, 2024
Conversation
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
…tin that returns a structure
MrSidims
reviewed
Sep 18, 2024
…ared a well-known pattern (store/load) for itself
MrSidims
approved these changes
Sep 19, 2024
svenvh
approved these changes
Sep 19, 2024
VyacheslavLevytskyy
added a commit
that referenced
this pull request
Feb 26, 2025
… returns a structure (#2722) (#3030) This PR fixes the issue with Khronos Translator incorrectly translating calls to builtins that returns a structure and generating incorrect extractvalue applied to a pointer. The PR is to fix the issue by preserving equivalence of newly inserted values with prior values of function return's type.
VyacheslavLevytskyy
added a commit
that referenced
this pull request
Feb 26, 2025
… returns a structure (#2722) (#3029) This PR fixes the issue with Khronos Translator incorrectly translating calls to builtins that returns a structure and generating incorrect extractvalue applied to a pointer. The PR is to fix the issue by preserving equivalence of newly inserted values with prior values of function return's type.
VyacheslavLevytskyy
added a commit
that referenced
this pull request
Feb 26, 2025
… returns a structure (#2722) (#3031) This PR fixes the issue with Khronos Translator incorrectly translating calls to builtins that returns a structure and generating incorrect extractvalue applied to a pointer. The PR is to fix the issue by preserving equivalence of newly inserted values with prior values of function return's type.
VyacheslavLevytskyy
added a commit
that referenced
this pull request
Feb 26, 2025
… returns a structure (#2722) (#3032) This PR fixes the issue with Khronos Translator incorrectly translating calls to builtins that returns a structure and generating incorrect extractvalue applied to a pointer. The PR is to fix the issue by preserving equivalence of newly inserted values with prior values of function return's type.
VyacheslavLevytskyy
added a commit
that referenced
this pull request
Feb 27, 2025
… returns a structure (#2722) (#3028) This PR fixes the issue with Khronos Translator incorrectly translating calls to builtins that returns a structure and generating incorrect extractvalue applied to a pointer. The PR is to fix the issue by preserving equivalence of newly inserted values with prior values of function return's type.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR fixes #2721
The root cause is that https://github.com/bwlodarcz/SPIRV-LLVM-Translator/blob/ca48eaf52ae791abc61cba13ef383f022e151e9f/lib/SPIRV/SPIRVUtil.cpp#L2207 doesn't preserve equivalence of values, inserting a pointer where a value of function return's type was before.
A new test case is added from the reproducer of #2721
Existing test cases are passing as is.