[all-commits] [llvm/llvm-project] e619c0: [flang] Fold NEAREST() and its relatives

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 28 11:34:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e619c07d168dff1d27f90cef84222a68064c35ea
      https://github.com/llvm/llvm-project/commit/e619c07d168dff1d27f90cef84222a68064c35ea
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-28 (Mon, 28 Mar 2022)

  Changed paths:
    M flang/include/flang/Evaluate/real.h
    M flang/lib/Evaluate/fold-real.cpp
    M flang/lib/Evaluate/real.cpp
    A flang/test/Evaluate/fold-nearest.f90

  Log Message:
  -----------
  [flang] Fold NEAREST() and its relatives

Implement constant folding for the intrinsic function NEAREST()
and the related functions IEEE_NEXT_AFTER(), IEEE_NEXT_UP(), and
IEEE_NEXT_DOWN().

Differential Revision: https://reviews.llvm.org/D122510




More information about the All-commits mailing list