Skip to content
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

[SYCL] fix opaque pointer issue in compileTimeProperty alignment #10748

Merged
merged 4 commits into from
Aug 23, 2023

Conversation

broxigarchen
Copy link
Contributor

update compileTimeProperties pass to check opaque pointers

@LU-JOHN
Copy link
Contributor

LU-JOHN commented Aug 9, 2023

When #10687 is merged can you enable the sycl-properties-alignment-loadstore.ll testcase in this PR? #10687 opaquified sycl-properties-alignment-loadstore.ll and needs this PR to pass.

AnnotStrArgGV = dyn_cast<GlobalVariable>(C);
if (IntrAnnotStringArg->getType()->isOpaquePointerTy())
AnnotStrArgGV = dyn_cast<GlobalVariable>(IntrAnnotStringArg);
else if (auto *GEP = dyn_cast<GEPOperator>(IntrAnnotStringArg))
Copy link
Contributor

Choose a reason for hiding this comment

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

The handling for this case (which does not seem to be related to opaque pointers) has changed. What's the rationale for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for the opaque pointer. If the arg on ptr.annotation is an opaque pointer we do things differently

Copy link
Contributor

@LU-JOHN LU-JOHN left a comment

Choose a reason for hiding this comment

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

LGTM

@LU-JOHN
Copy link
Contributor

LU-JOHN commented Aug 23, 2023

@intel/llvm-gatekeepers Can this be merged? It has a bug fix related to opaque pointers.

@dm-vodopyanov dm-vodopyanov merged commit e3786df into intel:sycl Aug 23, 2023
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.

3 participants