The patch implement the rest of __builtin_elementwise_* functions
specified in D111529, including:
- __builtin_elementwise_floor
- __builtin_elementwise_roundeven
- __builtin_elementwise_trunc
Signed-off-by: Jun <jun@junz.org>
Differential D115429
[Clang] Implement the rest of __builtin_elementwise_* functions. junaire on Dec 9 2021, 12:05 AM. Authored by
Details The patch implement the rest of __builtin_elementwise_* functions
Signed-off-by: Jun <jun@junz.org>
Diff Detail
Unit Tests
Event Timeline
Comment Actions
Well, I think there may be a misunderstanding. I referenced: https://clang.llvm.org/docs/LanguageExtensions.html#vector-builtins T __builtin_elementwise_roundeven(T x) But I just found in the RFC(https://lists.llvm.org/pipermail/cfe-dev/2021-September/068999.html), we have: • __builtin_elementwise_rint • __builtin_elementwise_round It looks confusing, I would like to review the RFC again. Comment Actions Add a helper function to resue code. I'm not good at naming functions, Comment Actions Hi, @aaron.ballman I'm sorry for not updating the patch in time because I'm preparing for my school final exam :-(
Comment Actions Yes, this was a change from the RFC after some feedback to the patch.
Comment Actions
Thanks for your suggestion! I just sent another patch: D116161 Comment Actions Well, I just found that you seem to have committed under the wrong name... Comment Actions I am sorry for the typo! I reverted & recommitted the patch with the hopefully correct name now :) Comment Actions May I ask you to help me to land this patch? I plan to request commit access after this one. Thanks a lot! ;D |
The RFC does not mention this builtin. It specifies __builtin_elementwise_rint and __builtin_elementwise_round. Is there a reason why this uses roundeven instead and should there be other rounding options provided at the same time?