summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/NVPTX/addrspacecast-gvar.ll
Commit message (Collapse)AuthorAgeFilesLines
* [NVPTX] Handle addrspacecast constant expressions in aggregate initializersJustin Holewinski2015-04-281-0/+2
| | | | | | | | | | | We need to track if an AddrSpaceCast expression was seen when generating an MCExpr for a ConstantExpr. This change introduces a custom lowerConstant method to the NVPTX asm printer that will create NVPTXGenericMCSymbolRefExpr nodes at the appropriate places to encode the information that a given symbol needs to be casted to a generic address. llvm-svn: 236000
* [NVPTX] Emits "generic()" depending on the original address spaceJingyue Wu2015-04-241-0/+2
| | | | | | | | | | | | | | | | | | Summary: Fixes a bug in the NVPTX codegen. The code used to miss necessary "generic()" on aggregates of addrspacecasts. Test Plan: addrspacecast-gvar.ll Reviewers: eliben, jholewinski Reviewed By: jholewinski Subscribers: jholewinski, llvm-commits Differential Revision: http://reviews.llvm.org/D9130 llvm-svn: 235689
* [NVPTX] Add support for addrspacecast in global variable initializers, ↵Justin Holewinski2014-04-091-0/+9
including emitting generic() when casting to address space 0. llvm-svn: 205906
OpenPOWER on IntegriCloud