[all-commits] [llvm/llvm-project] b38aa2: Add __builtin_set_flt_rounds

jinge90 via All-commits all-commits at lists.llvm.org
Tue Mar 14 19:57:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b38aa297171134cee3fbec3c9e1e4d64b2ec3e22
      https://github.com/llvm/llvm-project/commit/b38aa297171134cee3fbec3c9e1e4d64b2ec3e22
  Author: jinge90 <ge.jin at intel.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGen/builtin_set_flt_rounds.c
    A clang/test/Sema/builtin_set_flt_rounds.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, aaron.ballman
Differential Revision: https://reviews.llvm.org/D145765
Signed-off-by: jinge90 <ge.jin at intel.com>




More information about the All-commits mailing list