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.
Paths
| Differential D38966
CodeGen: Fix invalid bitcasts for atomic builtins ClosedPublic Authored by yaxunl on Oct 16 2017, 11:18 AM.
Details Summary Currently clang assumes the temporary variables emitted during This patch fixes that.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 16 2017, 10:54 PM Closed by commit rL316000: CodeGen: Fix invalid bitcasts for atomic builtins (authored by yaxunl). · Explain WhyOct 17 2017, 7:19 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 119319 cfe/trunk/lib/CodeGen/CGAtomic.cpp
cfe/trunk/test/CodeGenOpenCL/atomic-ops.cl
|