[flang-commits] [PATCH] D138650: [flang] Add hlfir.concat operation definition

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Nov 24 03:36:22 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 project: All.
jeanPerier requested review of this revision.
Herald added a reviewer: nicolasvasilache.

This operation represents scalar character concatenation. This is
added as part of flang lowering update described in
https://github.com/llvm/llvm-project/blob/main/flang/docs/HighLevelFIR.md

A notable difference with Fortran concatenation is that hlfir.concat can
take two or more operands. This will be used to optimize concatenation
chains.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138650

Files:
  flang/include/flang/Optimizer/HLFIR/HLFIRDialect.h
  flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td
  flang/include/flang/Optimizer/HLFIR/HLFIROps.td
  flang/lib/Optimizer/HLFIR/IR/HLFIRDialect.cpp
  flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
  flang/test/HLFIR/concat.fir
  flang/test/HLFIR/invalid.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138650.477726.patch
Type: text/x-patch
Size: 10562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221124/be8da069/attachment-0001.bin>


More information about the flang-commits mailing list