This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add RUN lines using `fir-opt`
ClosedPublic

Authored by awarzynski on Jun 3 2022, 3:53 AM.

Details

Summary

In tests that define a pass pipeline to use, add a RUN line using fir-opt.

(extracted from https://reviews.llvm.org/D126890)

Diff Detail

Event Timeline

awarzynski created this revision.Jun 3 2022, 3:53 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 3 2022, 3:53 AM
awarzynski requested review of this revision.Jun 3 2022, 3:53 AM

Why not having two run lines since tco is still here?

Why not having two run lines since tco is still here?

No strong opinion. I'd like to say "less is more", but then I'm adding more RUN lines in https://reviews.llvm.org/D126890. I think that as long as we have multiple tools capable of performing a particular task, this is going to be a bit contentious.

What's your preference? If we keep tco then I'd like to add flang-new too. To me, these tests exercise a particular pass and that's what fir-opt (and mlir-opt and opt) are designed for.

Why not having two run lines since tco is still here?

No strong opinion. I'd like to say "less is more", but then I'm adding more RUN lines in https://reviews.llvm.org/D126890. I think that as long as we have multiple tools capable of performing a particular task, this is going to be a bit contentious.

What's your preference? If we keep tco then I'd like to add flang-new too. To me, these tests exercise a particular pass and that's what fir-opt (and mlir-opt and opt) are designed for.

I would prefer to keep the tco lines if tco is here so it is still tested. When(/if) it is remnoved we can remove the run lines.

awarzynski updated this revision to Diff 435067.Jun 8 2022, 1:06 AM

Restore tco RUN lines

awarzynski retitled this revision from [flang] Switch to testing with `fir-opt` instead of `tco` to [flang] Add RUN lines using `fir-opt`.Jun 8 2022, 1:28 AM
awarzynski edited the summary of this revision. (Show Details)
rovka added a comment.Jun 8 2022, 3:11 AM

Thanks, this LGTM but I'll let @clementval have the final word :)

This revision is now accepted and ready to land.Jun 8 2022, 10:25 PM
This revision was automatically updated to reflect the committed changes.