]> granicus.if.org Git - clang/commit
[AMDGPU] Expose flat work group size, register and wave control attributes
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 26 Sep 2016 01:02:57 +0000 (01:02 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 26 Sep 2016 01:02:57 +0000 (01:02 +0000)
commit1dd6f1e3832bcca23ea98bd89f68d8bebe7aa809
tree9458a9cbe3cebe08989f412c9111b3cb12bc51bd
parent12dcbf43701c142e8313d322c14b53a6c2957826
[AMDGPU] Expose flat work group size, register and wave control attributes

__attribute__((amdgpu_flat_work_group_size(<min>, <max>))) - request minimum and maximum flat work group size
__attribute__((amdgpu_waves_per_eu(<min>[, <max>]))) - request minimum and/or maximum waves per execution unit

Differential Revision: https://reviews.llvm.org/D24513

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282371 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/TargetInfo.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGenOpenCL/amdgpu-attrs.cl [new file with mode: 0644]
test/CodeGenOpenCL/amdgpu-num-gpr-attr.cl [deleted file]
test/SemaCUDA/amdgpu-attrs.cu [new file with mode: 0644]
test/SemaCUDA/amdgpu-num-gpr-attr.cu [deleted file]
test/SemaOpenCL/amdgpu-attrs.cl [new file with mode: 0644]
test/SemaOpenCL/amdgpu-num-register-attrs.cl [deleted file]