[PATCH] Workaround attribute ordering issue with kernel only attributes

Matt Arsenault Matthew.Arsenault at amd.com
Thu Dec 4 15:30:20 PST 2014


Hi aaron.ballman,

Placing the attribute after the kernel keyword would incorrectly
reject the attribute, so use the smae workaround that other
kernel only attributes use.
    
Also add a FIXME because there are two different phrasings now
for the same error, althoug amdgpu_num_[sv]gpr uses a consistent one.

http://reviews.llvm.org/D6542

Files:
  include/clang/Basic/Attr.td
  lib/Sema/SemaDeclAttr.cpp
  test/SemaCUDA/amdgpu-num-gpr-attr.cu
  test/SemaOpenCL/amdgpu-num-register-attrs.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6542.16958.patch
Type: text/x-patch
Size: 4566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141204/0e63c81a/attachment.bin>


More information about the cfe-commits mailing list