[PATCH] D37822: [OpenCL] Clean up and add missing fields for block struct

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 4 11:53:18 PDT 2017


yaxunl marked an inline comment as done.
yaxunl added inline comments.


================
Comment at: test/CodeGenOpenCL/blocks.cl:30
+  // COMMON: %[[block_captured:.*]] = getelementptr inbounds <{ i32, i32, i8 addrspace(4)*, i32 }>, <{ i32, i32, i8 addrspace(4)*, i32 }>* %[[block]], i32 0, i32 3
+  // COMMON: %[[r0:.*]] = load i32, i32* %i
+  // COMMON: store i32 %[[r0]], i32* %[[block_captured]],
----------------
Anastasia wrote:
> It might be better to give those r0-r7 some names for readability if possible!
Will fix it when committing.


https://reviews.llvm.org/D37822





More information about the cfe-commits mailing list