[PATCH] D32248: CodeGen: Cast alloca to expected address space
Tom Stellard via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 23 06:51:43 PDT 2017
tstellar added inline comments.
================
Comment at: cfe/trunk/lib/Basic/Targets.cpp:2037-2038
-static const LangAS::Map AMDGPUPrivateIsZeroMap = {
- 4, // Default
- 1, // opencl_global
- 3, // opencl_local
- 2, // opencl_constant
- 4, // opencl_generic
- 1, // cuda_device
- 2, // cuda_constant
- 3 // cuda_shared
-};
-static const LangAS::Map AMDGPUGenericIsZeroMap = {
- 0, // Default
- 1, // opencl_global
- 3, // opencl_local
- 2, // opencl_constant
- 0, // opencl_generic
- 1, // cuda_device
- 2, // cuda_constant
- 3 // cuda_shared
+static const LangAS::Map AMDGPUNonOpenCLPrivateIsZeroMap = {
+ 4, // Default
+ 1, // opencl_global
----------------
Shouldn't this be 0 ?
Repository:
rL LLVM
https://reviews.llvm.org/D32248
More information about the cfe-commits
mailing list