yaxunl marked 2 inline comments as done.
yaxunl added a comment.

In https://reviews.llvm.org/D35082#895230, @rjmccall wrote:

> It sounds like there's agreement about the basic technical direction of 
> introducing LangAS::opencl_private.  Please introduce 
> isAddressSpaceImplicit() in a different patch and make this patch just about 
> the introduction of LangAS::opencl_private.  You can have the pretty-printer 
> just ignore __private for now, which should avoid gratuitous diagnostic 
> changes.
>
> I would like you to investigate using AttributedType for the pretty-printing 
> and address-space semantic checks before adding isAddressSpaceImplicit().


Thanks. I will separate the implicit addr space flag to another patch.



================
Comment at: include/clang/AST/Type.h:562
+  static const uint32_t IMask = 0x200;
+  static const uint32_t IShift = 9;
   static const uint32_t AddressSpaceMask =
----------------
rjmccall wrote:
> "I" is not an appropriate abbreviation for "AddressSpaceImplicit".
Will change it to ImplictAddrSpace.


================
Comment at: include/clang/Basic/AddressSpaces.h:34
 
   // OpenCL specific address spaces.
   opencl_global,
----------------
rjmccall wrote:
> I think you need a real comment about the design of OpenCL address spaces 
> here.  Specifically, it is important to note that OpenCL no longer uses 
> LangAS::Default for anything except r-values.
Will do.


https://reviews.llvm.org/D35082



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to