[PATCH] D13168: [OpenCL] OpenCL2.0 - Apply default address space rules

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 25 10:46:15 PDT 2015


Anastasia created this revision.
Anastasia added a reviewer: pekka.jaaskelainen.
Anastasia added a subscriber: cfe-commits.

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.

http://reviews.llvm.org/D13168

Files:
  lib/Sema/SemaType.cpp
  test/CodeGenOpenCL/address-spaces.cl
  test/SemaOpenCL/storageclass-cl20.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13168.35734.patch
Type: text/x-patch
Size: 7471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150925/d5aab3c6/attachment.bin>


More information about the cfe-commits mailing list