[PATCH] D38966: CodeGen: Fix invalid bitcasts for atomic builtins

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 16 11:18:25 PDT 2017


yaxunl created this revision.

Currently clang assumes the temporary variables emitted during
codegen of atomic builtins have address space 0, which
is not true for target triple amdgcn---amdgiz and causes invalid
bitcasts.

This patch fixes that.


https://reviews.llvm.org/D38966

Files:
  lib/CodeGen/CGAtomic.cpp
  test/CodeGenOpenCL/atomic-ops.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38966.119182.patch
Type: text/x-patch
Size: 12244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171016/8608fc22/attachment.bin>


More information about the cfe-commits mailing list