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

Preserve OpenCL as_<type>() calls during re-writing #121

Open
ChrisCummins opened this issue Jul 27, 2017 · 0 comments
Open

Preserve OpenCL as_<type>() calls during re-writing #121

ChrisCummins opened this issue Jul 27, 2017 · 0 comments

Comments

@ChrisCummins
Copy link
Owner

livclc defines the family of as_char(), as_int(), etc calls as macros: https://github.com/llvm-mirror/libclc/blob/master/generic/include/clc/as_type.h

This means that the clgen re-writer will inline them to __builtin_astype() calls. We shouldn't do this.

The fix may be as simple as #undef-ing all of those libclc macros.

@ChrisCummins ChrisCummins added this to the 0.3.x Beta milestone Jul 27, 2017
@ChrisCummins ChrisCummins self-assigned this Jul 27, 2017
@ChrisCummins ChrisCummins changed the title preprocess: Preserve as_<type>() calls during re-writing Preserve OpenCL as_<type>() calls during re-writing Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant