[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)
commit5b48d725a0bc1dc59d1b50ec7a679ca9ea00ae9f
tree0b20d429abc18cc975ceb0463be26d7d3eeb9f4b
parentd175b1cefcfd8c6e509c96a6e324d8d0859f38a0
[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

llvm-svn: 282371
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGenOpenCL/amdgpu-attrs.cl [new file with mode: 0644]
clang/test/CodeGenOpenCL/amdgpu-num-gpr-attr.cl [deleted file]
clang/test/SemaCUDA/amdgpu-attrs.cu [new file with mode: 0644]
clang/test/SemaCUDA/amdgpu-num-gpr-attr.cu [deleted file]
clang/test/SemaOpenCL/amdgpu-attrs.cl [new file with mode: 0644]
clang/test/SemaOpenCL/amdgpu-num-register-attrs.cl [deleted file]