This is an archive of the discontinued LLVM Phabricator instance.

[flang] Remove deprecated fields from FIROps.td
ClosedPublic

Authored by awarzynski on Mar 10 2022, 12:57 PM.

Details

Summary

This patch removes deprecated parser/printer/verifier fields from
FIROps.td. This is a follow-up of https://reviews.llvm.org/D119776 - it
takes care of operations deriving from fir_IntegralSwitchTerminatorOp
and region_Op.

No new functionality is added, hence no tests. This patch addresses:
https://github.com/llvm/llvm-project/issues/54314.

Diff Detail

Event Timeline

awarzynski created this revision.Mar 10 2022, 12:57 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 10 2022, 12:57 PM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
awarzynski requested review of this revision.Mar 10 2022, 12:57 PM
rriddle accepted this revision.Mar 10 2022, 1:10 PM
rriddle added inline comments.
flang/include/flang/Optimizer/Dialect/FIROps.td
556

Can you move this code to the .cpp instead? These code blocks are kind of huge.

(That's effectively what I did in D121090, which hasn't landed yet, but removes the deprecated fields)

This revision is now accepted and ready to land.Mar 10 2022, 1:10 PM
clementval added inline comments.Mar 10 2022, 1:19 PM
flang/include/flang/Optimizer/Dialect/FIROps.td
599

This line fails in pre merge checks.

Move the cpp code into FIROps.cpp (thanks for the pointer @rriddle!)

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

👍🏻

Sorry, didn't realise you had this implemented too :/

599

Should be fixed in the 2nd revision!

rriddle added inline comments.Mar 10 2022, 1:35 PM
flang/include/flang/Optimizer/Dialect/FIROps.td
556

No worries, thanks for sending a fix!

shraiysh accepted this revision.Mar 10 2022, 8:35 PM

LGTM

flang/lib/Optimizer/Dialect/FIROps.cpp
2749

Nit: Can we please add this?

//===----------------------------------------------------------------------===//
// SelectRankOp
//===----------------------------------------------------------------------===//

Can you please sync that with fir-dev as it was done for D119776?

awarzynski added inline comments.Mar 11 2022, 3:24 AM
flang/lib/Optimizer/Dialect/FIROps.cpp
2749

Will do, thanks!

This revision was landed with ongoing or failed builds.Mar 11 2022, 3:29 AM
This revision was automatically updated to reflect the committed changes.