[all-commits] [llvm/llvm-project] f532c0: [flang] Support intrinsic `selected_int_kind` for ...

PeixinQiao via All-commits all-commits at lists.llvm.org
Mon Jul 25 09:34:20 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f532c07211091ec399566a05043479774589f66f
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2022-07-26 (Tue, 26 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_int_kind.f90
    M flang/unittests/Runtime/Numeric.cpp

  Log Message:
  [flang] Support intrinsic `selected_int_kind` for variables

As Fortran 2018 16.9.169, the argument of selected_int_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 and runtime for variables in this intrinsic.

Reviewed By: Jean Perier

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

More information about the All-commits mailing list