[PATCH] D47154: Try to make builtin address space declarations not useless
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 27 08:56:38 PDT 2018
Anastasia accepted this revision.
Anastasia added a comment.
This revision is now accepted and ready to land.
LGTM from OpenCL side! Thanks!
================
Comment at: test/SemaOpenCL/numbered-address-space.cl:9
+void test_numeric_as_to_generic_explicit_cast(__attribute__((address_space(3))) int *as3_ptr, float src) {
+ generic int* generic_ptr = (generic int*) as3_ptr; // Should maybe be valid?
+}
----------------
Ideally this is not governed by any specification. Generic compiler support for such `addrspacecast` is not possible but vendor can implement custom support. I think we can leave it as is until we have better idea how this should be supported.
https://reviews.llvm.org/D47154
More information about the cfe-commits
mailing list