[PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 3 07:43:04 PDT 2016


yaxunl added inline comments.

================
Comment at: lib/CodeGen/CGOpenCLRuntime.cpp:43
@@ +42,3 @@
+
+  return llvm::StructType::create(EleTypes, "ndrange_t");
+}
----------------
yaxunl wrote:
> struct name should be "struct.ndrange_t" to allow library code to access it.
Sorry, should be "struct.__ndrange_t" to avoid conflict with builtin type ndrange_t.


Repository:
  rL LLVM

https://reviews.llvm.org/D23086





More information about the cfe-commits mailing list