[PATCH] D20249: [OpenCL] Hierarchical/dynamic parallelism - enqueue kernel in OpenCL 2.0
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 30 09:24:05 PDT 2016
Anastasia marked 12 inline comments as done.
================
Comment at: lib/CodeGen/CGBuiltin.cpp:2180-2181
@@ +2179,4 @@
+ }
+ // Could have events and/or vaargs.
+ if (NumArgs >= 5) {
+ if (E->getArg(3)->getType()->isBlockPointerType()) {
----------------
bader wrote:
> [Style] Minor suggestion to consider.
> To avoid indentation of almost 100 lines of code inside if statement this can be implemented as:
> if (NumArgs < 5) llvm_unreachable("Unhandled enqueue_kernel signature");
>
> There is no else branch for that condition anyway.
Would assertion be more appropriate even?
================
Comment at: lib/Sema/SemaChecking.cpp:145
@@ +144,3 @@
+ }
+ // Potentially emit standard warnings for implicit conversions if enabled
+ // using -Wconversion.
----------------
I am reusing C diagnostics functionality here now to keep consistency!
http://reviews.llvm.org/D20249
More information about the cfe-commits
mailing list