[PATCH] [CUDA] Allow using integral non-type template parameters as launch_bounds attribute arguments.

Artem Belevich tra at google.com
Mon Apr 13 18:24:21 PDT 2015


Addressed review comments by eliben@ and aaron@

- Improved argument type/value checking.
- Added a warning on negative launch_bounds arguments and disabled corresponding PTX directive emission when that happens.
- Added test cases for various invalid launch_bounds arguments.


http://reviews.llvm.org/D8985

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/CodeGen/TargetInfo.cpp
  lib/Sema/SemaDeclAttr.cpp
  lib/Sema/SemaTemplateInstantiateDecl.cpp
  test/CodeGenCUDA/launch-bounds.cu
  test/SemaCUDA/launch_bounds.cu

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8985.23709.patch
Type: text/x-patch
Size: 15123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150414/21cabc78/attachment.bin>


More information about the cfe-commits mailing list