forked from OSchip/llvm-project
171da443d5
This issue is an oversight in D108621. Literals in HIP are emitted as global constant variables with default address space which maps to Generic address space for HIPSPV. In SPIR-V such variables translate to OpVariable instructions with Generic storage class which are not legal. Fix by mapping literals to CrossWorkGroup address space. The literals are not mapped to UniformConstant because the “flat” pointers in HIP may reference them and “flat” pointers are modeled as Generic pointers in SPIR-V. In SPIR-V/OpenCL UniformConstant pointers may not be casted to Generic. Patch by: Henry Linjamäki Reviewed by: Yaxun Liu Differential Revision: https://reviews.llvm.org/D118876 |
||
---|---|---|
.. | ||
half.hip | ||
hipspv-addr-spaces.cpp | ||
hipspv-kernel.cpp | ||
lit.local.cfg | ||
printf-aggregate.cpp | ||
printf.cpp |