This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add hlfir.associate and hlfir.end_associate definitions
ClosedPublic

Authored by jeanPerier on Nov 30 2022, 3:09 AM.

Details

Summary

These operations allow creating an HLFIR variable from a HLFIR value and
destroying it at the end of the variable lifetime.
This will both be used to implement procedure reference arguments association
when the actual is an expression, and to implement the Fortran associate
construct when the associated entity is an expression.

See https://github.com/llvm/llvm-project/blob/main/flang/docs/HighLevelFIR.md
for more details.

Diff Detail

Event Timeline

jeanPerier created this revision.Nov 30 2022, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2022, 3:09 AM
jeanPerier requested review of this revision.Nov 30 2022, 3:09 AM
clementval accepted this revision.Nov 30 2022, 3:28 AM

LGTM

flang/include/flang/Optimizer/HLFIR/HLFIROps.td
237
This revision is now accepted and ready to land.Nov 30 2022, 3:28 AM
This revision was automatically updated to reflect the committed changes.
jeanPerier marked an inline comment as done.