This is an archive of the discontinued LLVM Phabricator instance.

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
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.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl created this revision.Oct 16 2017, 11:18 AM
This revision is now accepted and ready to land.Oct 16 2017, 10:54 PM
This revision was automatically updated to reflect the committed changes.