[PATCH] D54258: [Clang] Fix pretty printing of CUDA address spaces
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 5 10:26:28 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362623: [Clang] Fix pretty printing of CUDA address spaces (authored by stulova, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D54258?vs=173154&id=203195#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54258/new/
https://reviews.llvm.org/D54258
Files:
cfe/trunk/lib/AST/TypePrinter.cpp
Index: cfe/trunk/lib/AST/TypePrinter.cpp
===================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp
+++ cfe/trunk/lib/AST/TypePrinter.cpp
@@ -1805,17 +1805,19 @@
case LangAS::opencl_private:
break;
case LangAS::opencl_constant:
- case LangAS::cuda_constant:
OS << "__constant";
break;
case LangAS::opencl_generic:
OS << "__generic";
break;
case LangAS::cuda_device:
- OS << "__device";
+ OS << "__device__";
+ break;
+ case LangAS::cuda_constant:
+ OS << "__constant__";
break;
case LangAS::cuda_shared:
- OS << "__shared";
+ OS << "__shared__";
break;
default:
OS << "__attribute__((address_space(";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54258.203195.patch
Type: text/x-patch
Size: 814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190605/633084ef/attachment.bin>
More information about the cfe-commits
mailing list