[all-commits] [llvm/llvm-project] 36f61d: [flang] Add hlfir.concat codegen

jeanPerier via All-commits all-commits at lists.llvm.org
Fri Nov 25 00:40:22 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 36f61d14fb851b5ca6e8806890a2ee284be964ab
      https://github.com/llvm/llvm-project/commit/36f61d14fb851b5ca6e8806890a2ee284be964ab
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2022-11-25 (Fri, 25 Nov 2022)

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

  Log Message:
  -----------
  [flang] Add hlfir.concat codegen

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.

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




More information about the All-commits mailing list