[PATCH] D114688: [Clang] Add __builtin_elementwise_ceil
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 30 12:57:47 PST 2021
fhahn added a comment.
Thanks for the patch! I left a suggestion inline.
================
Comment at: clang/lib/Sema/SemaChecking.cpp:16721
+bool Sema::SemaBuiltinElementwiseMathFloatArg(CallExpr *TheCall) {
+ if (checkArgCount(*this, TheCall, 1))
----------------
If I understand correctly, this is similar to `SemaBuiltinElementwiseMathOneArg`, but with the additional restriction to only allow floating point element types?
Do you think it would be possible to extend `SemaBuiltinElementwiseMathOneArg` to handle this case directly, without needing to duplicate most of the other logic?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114688/new/
https://reviews.llvm.org/D114688
More information about the cfe-commits
mailing list