[PATCH] Add attributes for AMDGPU register limits.

Matt Arsenault Matthew.Arsenault at amd.com
Sat Nov 15 12:56:09 PST 2014


This is a performance hint that can be applied to kernels 
to attempt to limit the number of used registers. This adds two attributes,
amdgpu_num_vgpr and amdgpu_num_sgpr. Alternatively, there could only be one
with two arguments. That version would also be usable for Evergreen, which could 
ignore the second argument as a request for the number of SGPRs.

http://reviews.llvm.org/D6288

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/AttributeList.h
  lib/CodeGen/TargetInfo.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/CodeGenOpenCL/amdgpu-num-gpr-attr.cl
  test/SemaOpenCL/amdgpu-num-register-attrs.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6288.16269.patch
Type: text/x-patch
Size: 10950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141115/62a46751/attachment.bin>


More information about the cfe-commits mailing list