[all-commits] [llvm/llvm-project] 57e3fa: [flang] Support lowering intrinsic `selected_real_...

PeixinQiao via All-commits all-commits at lists.llvm.org
Mon Jul 25 04:38:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57e3fa38154309308b928dc13ef1181e7eb3e19a
      https://github.com/llvm/llvm-project/commit/57e3fa38154309308b928dc13ef1181e7eb3e19a
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/Runtime/Numeric.h
    M flang/include/flang/Runtime/numeric.h
    M flang/lib/Lower/IntrinsicCall.cpp
    M flang/lib/Optimizer/Builder/Runtime/Numeric.cpp
    M flang/runtime/numeric.cpp
    A flang/test/Lower/Intrinsics/selected_real_kind.f90
    M flang/unittests/Runtime/Numeric.cpp

  Log Message:
  -----------
  [flang] Support lowering intrinsic `selected_real_kind` for variables

As Fortran 2018 16.9.170, the argument of `selected_real_kind` is integer
scalar, and result is default integer scalar. The constant expression in
this intrinsic has been supported by folding the constant expression.
This supports lowering this intrinsic for variables using runtime.

Reviewed By: Jean Perier

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




More information about the All-commits mailing list