[PATCH] D25335: [OpenCL] Allow partial initializer for array and struct

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 8 04:59:31 PDT 2016


Anastasia accepted this revision.
Anastasia added a comment.
This revision is now accepted and ready to land.

LGTM!



================
Comment at: test/CodeGenOpenCL/partial_initializer.cl:5
+
+// CHECK: @GA = addrspace(1) global [6 x [6 x float]] {{[[][[]}}6 x float] [float 1.000000e+00, float 2.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00],
+// CHEC:        [6 x float] zeroinitializer, [6 x float] zeroinitializer, [6 x float] zeroinitializer, [6 x float] zeroinitializer, [6 x float] zeroinitializer], align 4 
----------------
These could be moved down to each member.


https://reviews.llvm.org/D25335





More information about the cfe-commits mailing list