Preserve address space information through member accesses, e.g.,
authorMon P Wang <wangmp@apple.com>
Wed, 22 Jul 2009 03:08:17 +0000 (03:08 +0000)
committerMon P Wang <wangmp@apple.com>
Wed, 22 Jul 2009 03:08:17 +0000 (03:08 +0000)
commitc6a38a47bf3908ab2183d7946498138d8b07c886
treefa48b51831572d772396587382bae85ee5cc8cb3
parent02857678061f80c9e97e0aa9cf23cd49429a7d09
Preserve address space information through member accesses, e.g.,
   __attribute__((address_space(1))) struct {int arr[ 3 ]; }  *p1;
   ... = p1->arr[2];  // load from address space 1

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76717 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGValue.h
lib/Sema/SemaExpr.cpp
test/CodeGen/address-space-field1.c [new file with mode: 0644]
test/CodeGen/address-space-field2.c [new file with mode: 0644]
test/CodeGen/address-space-field3.c [new file with mode: 0644]
test/CodeGen/address-space-field4.c [new file with mode: 0644]