Skip to content

[SYCL] Fix addressspace cast for _alloca #6087

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 1 commit into from
May 3, 2022

Conversation

elizabethandrews
Copy link
Contributor

This is a follow-up to PR#6050. The address space cast should use
element type and not change type. PR#6050 incorrectly changed
Type* to Type** (when adding the cast). This patch fixes the bug.

PR#6050 also added the cast for LLVM vector of pointer types. This
patch reverts the behavior for vector type to match old behavior (i.e.
unreachable), since it is unclear what the required behavior is in this
case and what the code which triggers unreachable would even look
like. We can modify the behavior in future if we hit that case in some
scenario.

This patch also adds an opaque pointer version of the test.

Signed-off-by: Elizabeth Andrews [email protected]

This is a follow-up to PR#6050. The cast should use
element type and not change type. PR#6050 incorrectly
change Type* to Type** (when adding the cast)

This patch also add opaque pointer version of the test.

Signed-off-by: Elizabeth Andrews <[email protected]>
@elizabethandrews elizabethandrews marked this pull request as ready for review May 2, 2022 20:06
@elizabethandrews elizabethandrews requested a review from a team as a code owner May 2, 2022 20:06
Copy link
Contributor

@smanna12 smanna12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elizabethandrews
Copy link
Contributor Author

@intel/llvm-gatekeepers this PR is ready for review and merge

@againull againull merged commit 5512425 into intel:sycl May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants