[all-commits] [llvm/llvm-project] db925d: [Flang] Lower the exp, log, log10 intrinsics

kiranchandramohan via All-commits all-commits at lists.llvm.org
Tue Mar 22 07:13:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db925d08dedbfcf4b329358c84e6bbc35c0cb85c
      https://github.com/llvm/llvm-project/commit/db925d08dedbfcf4b329358c84e6bbc35c0cb85c
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M flang/lib/Lower/IntrinsicCall.cpp
    A flang/test/Lower/Intrinsics/exp.f90
    A flang/test/Lower/Intrinsics/log.f90
    M flang/test/Lower/llvm-math.f90

  Log Message:
  -----------
  [Flang] Lower the exp, log, log10 intrinsics

The intrinsic computes the exponent, log real and complex numbers and
log10 for real numbers. By default they are lowered to runtime calls to
libpgmath. kind=10 and 16 are not supported. With the llvm option, it
can be lowered to llvm intrinsics (not all types .eg. complex are
supported for llvm lowering).

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Reviewed By: PeteSteinfeld

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

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: William S Moses <gh at wsmoses.com>




More information about the All-commits mailing list