[all-commits] [llvm/llvm-project] 24b823: Add __builtin_set_flt_rounds
jinge90 via All-commits
all-commits at lists.llvm.org
Wed Mar 8 19:38:58 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24b823554acd25009731b2519880aa18c7263550
https://github.com/llvm/llvm-project/commit/24b823554acd25009731b2519880aa18c7263550
Author: jinge90 <ge.jin at intel.com>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Changed paths:
M clang/include/clang/Basic/Builtins.def
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/Sema/SemaChecking.cpp
M clang/test/CodeGen/builtins.c
Log Message:
-----------
Add __builtin_set_flt_rounds
This builtin will be converted to llvm.set.rounding intrinsic
in IR level and should be work with "#pragma STDC FENV_ACCESS ON"
since it changes default FP environment. Users can change rounding
mode via this builtin without introducing libc dependency.
Reviewed by: andrew.w.kaylor, rjmccall, sepavloff
Differential Revision: https://reviews.llvm.org/D144454
Signed-off-by: jinge90 <ge.jin at intel.com>
More information about the All-commits
mailing list