This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add hlfir.concat codegen
ClosedPublic

Authored by jeanPerier on Nov 24 2022, 7:21 AM.

Details

Summary

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

Diff Detail

Event Timeline

jeanPerier created this revision.Nov 24 2022, 7:21 AM
Herald added a project: Restricted Project. · View Herald Transcript
jeanPerier requested review of this revision.Nov 24 2022, 7:21 AM
This revision is now accepted and ready to land.Nov 24 2022, 10:24 AM
This revision was automatically updated to reflect the committed changes.