[PATCH] D107151: [OpenCL] Reduce duplicate defs by using multiclasses; NFC
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 30 04:48:20 PDT 2021
svenvh created this revision.
svenvh added a reviewer: Anastasia.
svenvh added a project: clang.
Herald added subscribers: ldrumm, yaxunl.
svenvh requested review of this revision.
Herald added a subscriber: cfe-commits.
Builtin definitions with pointer arguments were duplicated to provide
overloads differing in the pointer argument's address space.
Reduce this duplication by capturing the definitions in multiclasses.
This still results in the same number of builtins in the generated
tables, but the description is more concise now.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D107151
Files:
clang/lib/Sema/OpenCLBuiltins.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107151.363035.patch
Type: text/x-patch
Size: 13942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210730/8dc44efc/attachment.bin>
More information about the cfe-commits
mailing list