[Clang] Implement the rest of __builtin_elementwise_* functions.
authorJun Zhang <jun@junz.org>
Fri, 7 Jan 2022 15:11:36 +0000 (15:11 +0000)
committerFlorian Hahn <flo@fhahn.com>
Fri, 7 Jan 2022 15:11:36 +0000 (15:11 +0000)
commitb2ed9f3f44d084bf2aae0af1b84f76a68a7c477b
treef6b592b2c4735f156e8fd432f330cfccceffb63d
parent4681ae9353ed89d28a95f4d07e8050f8772ae724
[Clang] Implement the rest of __builtin_elementwise_* functions.

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>
Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D115429
clang/include/clang/Basic/Builtins.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-elementwise-math.c
clang/test/Sema/builtins-elementwise-math.c