[PATCH] D46643: CodeGen: Emit string literal in constant address space

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 9 08:53:54 PDT 2018


yaxunl created this revision.
yaxunl added a reviewer: rjmccall.

Some targets have constant address space (e.g. amdgcn). For them string literal should be
emitted in constant address space then casted to default address space.


https://reviews.llvm.org/D46643

Files:
  lib/CodeGen/CGDecl.cpp
  lib/CodeGen/CodeGenModule.cpp
  test/CodeGenCXX/amdgcn-string-literal.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46643.145932.patch
Type: text/x-patch
Size: 4269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180509/712b61ac/attachment-0001.bin>


More information about the cfe-commits mailing list