[PATCH] D96178: [OpenCL] Create VoidPtrTy with generic AS in C++ for OpenCL mode

Anton Zabaznov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 08:29:04 PST 2021


azabaznov added a comment.

Thanks for review. Just to be clear: can I proceed with this? Or we should discuss it first? As I see possible this change can be abandoned after discussion.

Moreover,  I see nothing about address space of void pointer in OpenCL C spec. For example (OpenCL C 2.2, Clause 6.3.2.3 - Pointers, replace the first two paragraphs with the following paragraphs):

//A pointer to void in any address space may be converted to or from a pointer to any incomplete or
object type. A pointer to any incomplete or object type in some address space may be converted to a
pointer to void in an enclosing address space and back again; the result shall compare equal to the
original pointer.//

Do I understand correctly that this means void pointer is not necessarily points to generic AS?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96178/new/

https://reviews.llvm.org/D96178



More information about the cfe-commits mailing list