AlexeySotkin added inline comments.
Comment at: lib/CodeGen/CGBuiltin.cpp:3614
+ ClkEvent = ClkEvent->getType()->isIntegerTy()
+ ? Builder.CreateBitOrPointerCast(ClkEvent, EventPtrTy)
+ : Builder.CreatePointerCast(ClkEvent, EventPtrTy);
--
Anastasia added inline comments.
Herald added a subscriber: ebevhan.
Herald added a project: clang.
Comment at: lib/CodeGen/CGBuiltin.cpp:3614
+ ClkEvent = ClkEvent->getType()->isIntegerTy()
+ ? Builder.CreateBitOrPointerCast(ClkEvent, EventPtrTy)
+
This revision was automatically updated to reflect the committed changes.
Closed by commit rC346838: [OpenCL] Fix invalid address space generation for
clk_event_t (authored by AlexeySotkin, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D53809
Files:
lib/CodeGen/CGBuiltin.cpp
Anastasia accepted this revision.
Anastasia added a comment.
This revision is now accepted and ready to land.
LGTM. Thanks! Could you please add prefix `[OpenCL]` in the final commit title.
Repository:
rC Clang
https://reviews.llvm.org/D53809
___
vmaksimo created this revision.
vmaksimo added reviewers: Anastasia, yaxunl, AlexeySotkin.
Herald added a subscriber: cfe-commits.
Addrspace(32) was generated when putting 0 in clk_event_t * event_ret parameter
for enqueue_kernel function.
Repository:
rC Clang
https://reviews.llvm.org/D53809