This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add fir.declare operation
ClosedPublic

Authored by jeanPerier on Oct 18 2022, 9:12 AM.

Details

Summary

Add fir.declare operation whose purpose was described in https://reviews.llvm.org/D134285.
It uses the FortranVariableInterfaceOp for most of its logic (including the verifier).
The rational is that all these aspects/logic will be shared by hlfir.designate and
hlfir.associate.

Its codegen and lowering will be added in later patches.

Diff Detail

Event Timeline

jeanPerier created this revision.Oct 18 2022, 9:12 AM
Herald added a project: Restricted Project. · View Herald Transcript
jeanPerier requested review of this revision.Oct 18 2022, 9:12 AM
PeteSteinfeld accepted this revision.Oct 18 2022, 9:43 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Oct 18 2022, 9:43 AM
clementval accepted this revision.Oct 18 2022, 10:55 AM

LGTM

flang/include/flang/Optimizer/Dialect/FIROps.td
2873

Missing description?

Rebase and add fir.declare description in .td file.

jeanPerier edited the summary of this revision. (Show Details)Oct 19 2022, 1:03 AM

Remove extra blank line

This revision was automatically updated to reflect the committed changes.