[flang-commits] [PATCH] D138673: [flang] Add hlfir.concat codegen

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Nov 24 07:21:26 PST 2022


jeanPerier created this revision.
jeanPerier added a reviewer: clementval.
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.

hlfir.concat codegen happens in the "bufferization" pass: the pass
that place hlfir.expr in memory and transform all operations producing
or accepting hlfir.expr arguments into operations operating on memory.
Since this pass gets rid of the hlfir.expr type, this is a full
translation pass.

So far hlfir.concat codegen re-uses the current concatenation lowering helper
and only supports concatenation of two strings at a time. This matches
what lowering to HLFIR without any optimization produces. More optimized
versions will be developed later.

Depends on D138664 <https://reviews.llvm.org/D138664>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138673

Files:
  flang/include/flang/Optimizer/HLFIR/Passes.h
  flang/include/flang/Optimizer/HLFIR/Passes.td
  flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
  flang/lib/Optimizer/HLFIR/Transforms/CMakeLists.txt
  flang/test/HLFIR/concat-bufferization.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138673.477786.patch
Type: text/x-patch
Size: 18556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221124/45bc2fac/attachment-0001.bin>


More information about the flang-commits mailing list