[PATCH] D17861: [OpenCL] Accept __attribute__((nosvm))

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 9 10:47:37 PST 2016


yaxunl marked 7 inline comments as done.

================
Comment at: include/clang/Basic/Attr.td:701
@@ -699,1 +700,3 @@
 
+def OpenCLNoSVM : Attr {
+  let Spellings = [GNU<"nosvm">];
----------------
aaron.ballman wrote:
> Since the attribute is ignored by clang, you should inherit from IgnoredAttr.
I tried that from beginning. If I inherit from IgnoredAttr, it seems to be ignored by the parser and won't reach the sema check part, and I cannot emit error msg based on OpenCL version.


Repository:
  rL LLVM

http://reviews.llvm.org/D17861





More information about the cfe-commits mailing list