rsmith added a subscriber: rsmith. ================ Comment at: test/CodeGenOpenCL/constant-addr-space-globals.cl:3 @@ -2,3 +2,3 @@ -// CHECK: @array = addrspace({{[0-9]+}}) constant +// CHECK: @array = local_unnamed_addr addrspace({{[0-9]+}}) constant __constant float array[2] = {0.0f, 1.0f}; ---------------- Where does this come from? It doesn't look like Clang adds this, and this test does not appear to enable any optimizations.
================ Comment at: test/CodeGenOpenCL/str_literals.cl:8-9 @@ -7,3 +7,3 @@ // CHECK-NOT: addrspace(3) unnamed_addr constant -// CHECK: @x = addrspace(3) constant i8 addrspace(3)* -// CHECK: @y = addrspace(3) constant i8 addrspace(3)* +// CHECK: @x = local_unnamed_addr addrspace(3) constant i8 addrspace(3)* +// CHECK: @y = local_unnamed_addr addrspace(3) constant i8 addrspace(3)* ---------------- Likewise. ================ Comment at: test/SemaOpenCL/extern.cl:4 @@ -3,3 +3,3 @@ -// CHECK: @foo = external addrspace(3) constant float +// CHECK: @foo = external local_unnamed_addr addrspace(3) constant float extern constant float foo; ---------------- Likewise. http://reviews.llvm.org/D20339 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits