Skip to content

[AST] Enable expression of OpenCL language address spaces an attribute #307

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
Jul 14, 2019

Conversation

Naghasan
Copy link
Contributor

Enable a way to set OpenCL language address space using attributes
in addition to existing keywords.

Patch part of solution to solves #186

Enable a way to set OpenCL language address space using attributes
in addition to existing keywords.

Signed-off-by: Victor Lomuller victor@codeplay.com
Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

@Naghasan, thanks a lot for contributing this!
I noticed that the attributes are enabled non-SYCL C++. Do you OpenCL address space attributes might be useful in generic C++?

@Naghasan
Copy link
Contributor Author

I don't see the harm, the language address space make sense when paired with a target (which control the traget address space they maps to). In term of genericity that makes sense IMO.

It is tied to OpenCL address space, another idea could be to have a generic lang_address_space that takes a language address space as parameter. But I can't find a nice way to nicely represent this parameter.

@asavonic
Copy link
Contributor

Is the __global spelling still recognized for SYCL? I think it has to be disabled in order to fix #186.

@bader
Copy link
Contributor

bader commented Jul 12, 2019

Is the __global spelling still recognized for SYCL? I think it has to be disabled in order to fix #186.

As said in the description: "Patch part of solution to solves #186"

We will need to disable OpenCL keywords and replace their uses with new attribute in a separate patch to fix #186.

@bader bader self-assigned this Jul 12, 2019
@bader bader merged commit 465108f into intel:sycl Jul 14, 2019
@Naghasan Naghasan deleted the expose_lang_asp branch September 10, 2021 12:36
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