[flang-commits] [PATCH] D136453: [flang] Add kernel to lower expressions to HLFIR
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri Oct 21 07:03:56 PDT 2022
jeanPerier created this revision.
jeanPerier added reviewers: clementval, PeteSteinfeld.
jeanPerier added a project: Flang.
Herald added subscribers: bzcheeseman, mehdi_amini, rriddle, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
jeanPerier requested review of this revision.
Herald added a subscriber: stephenneuendorffer.
This patch adds the kernel to lower evaluate::Expr to HLFIR to a
hlfir::FortranEntity (a single mlir::Value that can be interpreted as
a Fortran variable or the value of a Fortram expression).
It implements lowering of simple name designators ("x") and starts
adding a translation layer in AbstractConverter::genExprBox and
AbstractConverter::genExprAddr so that the new expression lowering
can be used without any changes for now in the current statement and
construct lowering.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136453
Files:
flang/include/flang/Lower/ConvertExprToHLFIR.h
flang/include/flang/Lower/SymbolMap.h
flang/include/flang/Optimizer/Builder/FIRBuilder.h
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/CMakeLists.txt
flang/lib/Lower/ConvertExprToHLFIR.cpp
flang/lib/Lower/ConvertVariable.cpp
flang/lib/Lower/SymbolMap.cpp
flang/lib/Optimizer/Builder/FIRBuilder.cpp
flang/test/Lower/HLFIR/expr-addr.f90
flang/test/Lower/HLFIR/expr-box.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136453.469599.patch
Type: text/x-patch
Size: 19637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221021/24db446b/attachment-0001.bin>
More information about the flang-commits
mailing list