If address space (AS) of a variable/parameter declaration is not set, OpenCL2.0 s6.5 defines explicit rules for default ASes:
- The AS of global and local static variables defaults to global;
- All pointers point to generic AS.
Paths
| Differential D13168
[OpenCL] OpenCL2.0 - Apply default address space rules ClosedPublic Authored by Anastasia on Sep 25 2015, 10:46 AM.
Details
Summary If address space (AS) of a variable/parameter declaration is not set, OpenCL2.0 s6.5 defines explicit rules for default ASes:
Diff Detail Event TimelineAnastasia updated this object. pekka.jaaskelainen edited edge metadata. pekka.jaaskelainen added inline comments.
This revision now requires changes to proceed.Sep 29 2015, 7:38 AM
pekka.jaaskelainen edited edge metadata. This revision is now accepted and ready to land.Oct 21 2015, 5:51 AM
Revision Contents
Diff 35734 lib/Sema/SemaType.cpp
test/CodeGenOpenCL/address-spaces.cl
test/SemaOpenCL/storageclass-cl20.cl
|
Should this be below AttributeList::AT_OpenCLGenericAddressSpace? Does it now include the address space attribute even when used from C? Probably doesn't harm, but a bit misleading.