[PATCH] D54258: [Clang] Fix pretty printing of CUDA address spaces

Richard Membarth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 8 14:28:02 PST 2018

richardmembarth added a comment.

I think it's not so easy to provide such tests for CUDA.
CUDA memory space specifiers are implemented via attributes, e.g. `#define __shared__ __attribute__((shared))`.
As a result of this, they are pretty-printed via a different code path.
In my example, I call `Ctx.getAddrSpaceQualType(QT, LangAS::cuda_shared)`, which is then pretty-printed via the code above.
Any hints how to provide tests for this one?

  rC Clang


More information about the cfe-commits mailing list