[all-commits] [llvm/llvm-project] 395237: [flang] lower intrinsic constants to HLFIR

jeanPerier via All-commits all-commits at lists.llvm.org
Wed Nov 2 00:40:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3952377f71dc1d1aa1627c4c7f82d51163b8fa80
      https://github.com/llvm/llvm-project/commit/3952377f71dc1d1aa1627c4c7f82d51163b8fa80
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/HLFIRTools.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/ConvertExprToHLFIR.cpp
    M flang/lib/Optimizer/Builder/HLFIRTools.cpp
    A flang/test/Lower/HLFIR/constant.f90
    M flang/test/Lower/HLFIR/expr-value.f90

  Log Message:
  -----------
  [flang] lower intrinsic constants to HLFIR

Use the utility to lower Constant<T> that was split from current lowering
in https://reviews.llvm.org/D136955.

The difference in HLFIR is the addition of a fir.declare on constant
outlined in memory so that all the information about them is available.

Lowering to HLFIR is enabled in Brideg::genExprValue to allow testing
of scalar constant lowering.

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




More information about the All-commits mailing list