This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Add support for `-debug-dump-pft`
ClosedPublic

Authored by awarzynski on Mar 8 2022, 2:06 AM.

Details

Summary

This patch adds support for dumping the pre-FIR tree in `flang-new
-fc1`. This flag is functionally identical to -pft-test in bbc.

Diff Detail

Event Timeline

awarzynski created this revision.Mar 8 2022, 2:06 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: dang. · View Herald Transcript
awarzynski requested review of this revision.Mar 8 2022, 2:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2022, 2:06 AM

I’m not sure this is a feature we want to expose in the main driver.

awarzynski added a comment.EditedMar 8 2022, 3:41 AM

I’m not sure this is a feature we want to expose in the main driver.

It would only be available in flang-new -fc1, i.e. the frontend driver. We are not exposing it in flang-new.

shraiysh accepted this revision.Mar 8 2022, 4:33 AM

LGTM.

This revision is now accepted and ready to land.Mar 8 2022, 4:33 AM
clementval accepted this revision.Mar 8 2022, 10:35 AM

I’m not sure this is a feature we want to expose in the main driver.

It would only be available in flang-new -fc1, i.e. the frontend driver. We are not exposing it in flang-new.

Ok good then.

This revision was automatically updated to reflect the committed changes.