[PATCH] D60763: Prototype OpenCL BIFs using Tablegen
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 04:37:01 PDT 2019
Anastasia accepted this revision.
Anastasia added a comment.
This revision is now accepted and ready to land.
LGTM! Thanks!
Please address the minor nitpicks suggested here in your final commit.
================
Comment at: clang/include/clang/Basic/OpenCLBuiltins.td:16
+// -Builtins.def, containing builtins functions requiring special handling.
+// -opencl-c.h, containing OpenCL type definitions and builtins functions
+// which have few overloads.
----------------
I don't think we plan to modify `opencl-c.h` due to compatibility issues. I think we should factor out functionality that will be required by both `TableGen` mode and regular include mode into something like `opencl-common.h`.
================
Comment at: clang/include/clang/Basic/OpenCLBuiltins.td:66
+//===----------------------------------------------------------------------===//
+// OpenCL/C classes for types
+//===----------------------------------------------------------------------===//
----------------
OpenCL/C -> OpenCL C
================
Comment at: clang/include/clang/Basic/OpenCLBuiltins.td:106
+//===----------------------------------------------------------------------===//
+// OpenCL/C class for builtin functions
+//===----------------------------------------------------------------------===//
----------------
-> OpenCL C
================
Comment at: clang/include/clang/Basic/OpenCLBuiltins.td:168
+//===----------------------------------------------------------------------===//
+// Definitions of OpenCL/C types
+//===----------------------------------------------------------------------===//
----------------
-> OpenCL C
================
Comment at: clang/test/SemaOpenCL/builtin-new.cl:18
+
+kernel void basic_extension(global uint* out) {
+ out[0] = get_sub_group_size();
----------------
basic_extension -> basic_subgroup
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60763/new/
https://reviews.llvm.org/D60763
More information about the cfe-commits
mailing list