-
Notifications
You must be signed in to change notification settings - Fork 751
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
Conversation
AnnotStrArgGV = dyn_cast<GlobalVariable>(C); | ||
if (IntrAnnotStringArg->getType()->isOpaquePointerTy()) | ||
AnnotStrArgGV = dyn_cast<GlobalVariable>(IntrAnnotStringArg); | ||
else if (auto *GEP = dyn_cast<GEPOperator>(IntrAnnotStringArg)) |
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.
The handling for this case (which does not seem to be related to opaque pointers) has changed. What's the rationale for this change?
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.
This is for the opaque pointer. If the arg on ptr.annotation is an opaque pointer we do things differently
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.
LGTM
@intel/llvm-gatekeepers Can this be merged? It has a bug fix related to opaque pointers. |
update compileTimeProperties pass to check opaque pointers