llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Ken Matsui (ken-matsui) <details> <summary>Changes</summary> opencl_global_device and opencl_global_host are defined after opencl_generic in LangAS, but commit 8d27be8dbaffce0519ac41173d51923fc2524b1b inserted them before opencl_generic in the TCE address space map. Fix the order to restore the intended mappings. --- Full diff: https://github.com/llvm/llvm-project/pull/210244.diff 1 Files Affected: - (modified) clang/lib/Basic/Targets/TCE.h (+2-2) ``````````diff diff --git a/clang/lib/Basic/Targets/TCE.h b/clang/lib/Basic/Targets/TCE.h index 1360298de9794..1ecaddf0ed534 100644 --- a/clang/lib/Basic/Targets/TCE.h +++ b/clang/lib/Basic/Targets/TCE.h @@ -35,10 +35,10 @@ static const unsigned TCEOpenCLAddrSpaceMap[] = { 3, // opencl_local 2, // opencl_constant 0, // opencl_private - 1, // opencl_global_device - 1, // opencl_global_host // FIXME: generic has to be added to the target 0, // opencl_generic + 1, // opencl_global_device + 1, // opencl_global_host 0, // cuda_device 0, // cuda_constant 0, // cuda_shared `````````` </details> https://github.com/llvm/llvm-project/pull/210244 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
