[cuda][hip] Add CUDA builtin surface/texture reference support.
authorMichael Liao <michael.hliao@gmail.com>
Fri, 27 Mar 2020 19:47:12 +0000 (15:47 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Fri, 27 Mar 2020 21:18:49 +0000 (17:18 -0400)
commit5be9b8cbe2b2253f78a09a863bef18e574737465
treed3a8e79a38b9d5e275e01e87c3d7d0d9adfaa211
parentc66d1f38f6f11ee6bafb0a3f2c06f3bbf4413ab2
[cuda][hip] Add CUDA builtin surface/texture reference support.

Summary: - Re-commit after fix Sema checks on partial template specialization.

Reviewers: tra, rjmccall, yaxunl, a.sidorin

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D76365
22 files changed:
clang/include/clang/AST/Type.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/Type.cpp
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/CodeGen/CGCUDARuntime.h
clang/lib/CodeGen/CGExprAgg.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenTypes.cpp
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/CodeGen/TargetInfo.h
clang/lib/Headers/__clang_cuda_runtime_wrapper.h
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CodeGenCUDA/surface.cu [new file with mode: 0644]
clang/test/CodeGenCUDA/texture.cu [new file with mode: 0644]
clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/SemaCUDA/attr-declspec.cu
clang/test/SemaCUDA/attributes-on-non-cuda.cu
clang/test/SemaCUDA/bad-attributes.cu
llvm/include/llvm/IR/Operator.h