[AMDGPU] Allow using integral non-type template parameters
authorMichael Liao <michael.hliao@gmail.com>
Tue, 26 Feb 2019 18:49:36 +0000 (18:49 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 26 Feb 2019 18:49:36 +0000 (18:49 +0000)
commit7557afa000527fa3d8d3da58015b35028b6c370a
treeae088c03d7bccad344311f75075354becbc0ac39
parentc0ffe705c5bf908e9eaeef4fc4d0ed3ad85811f1
[AMDGPU] Allow using integral non-type template parameters

Summary:
- Allow using integral non-type template parameters in the following
  attributes

  __attribute__((amdgpu_flat_work_group_size(<min>, <max>)))
  __attribute__((amdgpu_waves_per_eu(<min>[, <max>])))

Reviewers: kzhuravl, yaxunl

Subscribers: jvesely, wdng, nhaehnle, dstuttard, tpr, t-tye, jdoerfert, cfe-commits

Tags: #clang

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

llvm-svn: 354909
clang/include/clang/Basic/Attr.td
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/SemaCUDA/amdgpu-attrs.cu
clang/test/SemaOpenCL/amdgpu-attrs.cl