[flang-commits] [PATCH] D137084: [flang] lower intrinsic constants to HLFIR

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Oct 31 08:12:26 PDT 2022


jeanPerier created this revision.
jeanPerier added reviewers: clementval, PeteSteinfeld.
jeanPerier added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
jeanPerier requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137084

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137084.472013.patch
Type: text/x-patch
Size: 10936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221031/69f484b4/attachment-0001.bin>


More information about the flang-commits mailing list