[PATCH] D20339: Update clang for D20260
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Tue May 17 16:12:08 PDT 2016
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
More information about the cfe-commits
mailing list