summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/amdgcn-string-literal.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [CodeGen] Fix string literal address space casting.Michael Liao2019-02-211-1/+7
| | | | | | | | | | | | | | | | Summary: - If a string literal is reused directly, need to add necessary address space casting if the target requires that. Reviewers: yaxunl Subscribers: jvesely, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D58509 llvm-svn: 354610
* CGDecl::emitStoresForConstant fix synthesized constant's nameJF Bastien2018-11-151-1/+1
| | | | | | | | | | | | Summary: The name of the synthesized constants for constant initialization was using mangling for statics, which isn't generally correct and (in a yet-uncommitted patch) causes the mangler to assert out because the static ends up trying to mangle function parameters and this makes no sense. Instead, mangle to `"__const." + FunctionName + "." + DeclName`. Reviewers: rjmccall Subscribers: dexonsmith, cfe-commits Differential Revision: https://reviews.llvm.org/D54055 llvm-svn: 346915
* CodeGen: Emit string literal in constant address spaceYaxun Liu2018-05-141-0/+28
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. Differential Revision: https://reviews.llvm.org/D46643 llvm-svn: 332279
OpenPOWER on IntegriCloud