commit | 4dc34ebf2a0716bf77ba110dab6777a3fc4397dd | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Sun May 20 21:08:35 2012 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Sun May 20 21:08:35 2012 +0000 |
tree | 3024562d1a661ae95d8f596d2182c63e5b9592ef | |
parent | e5f8372b5dccf5894f0263d018599c14d8f31273 [diff] |
CUDA: add CodeGen support for global variable address spaces. Because in CUDA types do not have associated address spaces, globals are declared in their "native" address space, and accessed by bitcasting the pointer to address space 0. This relies on address space 0 being a unified address space. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157167 91177308-0d34-0410-b5e6-96231b3b80d8