]> granicus.if.org Git - clang/commit
Add attributes for AMDGPU register limits.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 4 Dec 2014 20:38:18 +0000 (20:38 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 4 Dec 2014 20:38:18 +0000 (20:38 +0000)
commit501dbb269dd6ec400bb03513e3f0ddf2f061f4de
treeb12c9980f56f7b8a6d34fe233c57e37c04e84460
parent614136357f2854a600e2b358becd615a9671929e
Add attributes for AMDGPU register limits.

This is a performance hint that can be applied to kernels
to attempt to limit the number of used registers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223384 91177308-0d34-0410-b5e6-96231b3b80d8
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 [new file with mode: 0644]
test/SemaCUDA/amdgpu-num-gpr-attr.cu [new file with mode: 0644]
test/SemaOpenCL/amdgpu-num-register-attrs.cl [new file with mode: 0644]