Add missing roundtointegral builtin functions for some FP instructions to be generate...
authorJun Sha (Joshua) <cooper.joshua@linux.alibaba.com>
Tue, 7 Mar 2023 06:17:35 +0000 (14:17 +0800)
committerJun Sha (Joshua) <cooper.joshua@linux.alibaba.com>
Tue, 7 Mar 2023 06:17:35 +0000 (14:17 +0800)
commita7d6593a0a17a1e7f46a3c9cd5c4aeeb7dfc6e0a
treef661a977c6cb4a2f7017ff67d053388b56940981
parent8a002d40f598b08398a7620f1d5760f0d783c3c7
Add missing roundtointegral builtin functions for some FP instructions to be generated from C-written codes

To generate FROUND instructions in https://reviews.llvm.org/D143982, we need to use llvm intrinsics in IR files. Now I add some corresponding builtin functions to make sure these roundtointegral instructions can be generated from C codes.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D144935
clang/include/clang/Basic/Builtins.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins.c