[PATCH] D53023: Prototype OpenCL BIFs using Tablegen

Joey Gouly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 1 07:38:10 PDT 2018


joey updated this revision to Diff 172122.
joey added a comment.

I re-worked where the builtins are actually inserted, now it's in a similar place to the "normal" clang builtins.

I addressed the issue of putting the return type also into the args type (could rename this to signature/proto table to make it more obvious).

I'm planning to write an RFC to get buy-in from the rest of the community before doing too much else to the patch.


https://reviews.llvm.org/D53023

Files:
  include/clang/Basic/CMakeLists.txt
  include/clang/Basic/OpenCLBuiltins.td
  lib/Sema/SemaLookup.cpp
  test/SemaOpenCL/builtin-new.cl
  utils/TableGen/CMakeLists.txt
  utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
  utils/TableGen/TableGen.cpp
  utils/TableGen/TableGenBackends.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53023.172122.patch
Type: text/x-patch
Size: 20057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181101/a4030a98/attachment-0001.bin>


More information about the cfe-commits mailing list