[PATCH] D28321: [CUDA] Add __declspec spellings for CUDA attributes.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 4 14:06:46 PST 2017
aaron.ballman added a reviewer: aaron.ballman.
aaron.ballman added inline comments.
================
Comment at: clang/include/clang/Basic/Attr.td:604
+// CUDA attributes are spelled __attribute__((attr)) or __declspec(__attr__).
+
----------------
For my own edification, do you have a link to some documentation of what CUDA attributes are spelled with `__declspec`?
================
Comment at: clang/include/clang/Basic/Attr.td:610
let LangOpts = [CUDA];
let Documentation = [Undocumented];
}
----------------
Now would be a good time to add the documentation for these attributes, otherwise there's a lot less chance users will know what ways they can spell the attributes (or what the attribute do).
https://reviews.llvm.org/D28321
More information about the cfe-commits
mailing list