aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2023-05-24 12:59:01 -0400
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2023-06-14 22:53:41 -0400
commitc0f0d50653e16145beee474a3d0d602596502dde (patch)
tree8fe1e447737d0da97c988e1d7405385f96f808c3 /clang/lib/Lex/ModuleMap.cpp
parentdc895d023e63fd9276fe493eded776e101015c86 (diff)
downloadllvm-c0f0d50653e16145beee474a3d0d602596502dde.zip
llvm-c0f0d50653e16145beee474a3d0d602596502dde.tar.gz
llvm-c0f0d50653e16145beee474a3d0d602596502dde.tar.bz2
[HIP] emit macro `__HIP_NO_IMAGE_SUPPORT`
HIP texture/image support is optional as some devices do not have image instructions. A macro __HIP_NO_IMAGE_SUPPORT is defined for device not supporting images (https://github.com/ROCm-Developer-Tools/HIP/blob/d0448aa4c4dd0f4b29ccf6a663b7f5ad9f5183e0/docs/reference/kernel_language.md?plain=1#L426 ) Currently the macro is defined by HIP header based on predefined macros for GPU, e.g __gfx*__ , which is error prone. This patch let clang emit the predefined macro. Reviewed by: Matt Arsenault, Artem Belevich Differential Revision: https://reviews.llvm.org/D151349
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions