This is an archive of the discontinued LLVM Phabricator instance.

[RFC][Flang][driver] Try to support `flang -fc1as`
AbandonedPublic

Authored by sunshaoce on Feb 7 2023, 1:33 AM.

Details

Summary

I'm trying to support flang-new *.s. Since I'm new to flang, I'm not sure if this is the right way to do it.

Diff Detail

Event Timeline

sunshaoce created this revision.Feb 7 2023, 1:33 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 7 2023, 1:33 AM
sunshaoce requested review of this revision.Feb 7 2023, 1:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2023, 1:33 AM

There should be some tests.

Thanks for working on this! Before diving any deeper

  • Does LLVM Flang require flang-new -fc1as?
  • If yes, why can't Flang and Clang share it?

For better visibility, I suggest raising these questions on Discourse. As this could potentially affect both Flang and Clang, could you post in one of the generic sections? Thanks!

Thanks for working on this! Before diving any deeper

  • Does LLVM Flang require flang-new -fc1as?
  • If yes, why can't Flang and Clang share it?

For better visibility, I suggest raising these questions on Discourse. As this could potentially affect both Flang and Clang, could you post in one of the generic sections? Thanks!

Thanks! I opened a topic: https://discourse.llvm.org/t/rfc-flang-driver-try-to-support-flang-fc1as/68267

There should be some tests.

I'm not sure how to check the generated binaries, can you provide a test case for reference? Thanks!

sunshaoce updated this revision to Diff 495522.Feb 7 2023, 6:56 AM

Add a test

sunshaoce abandoned this revision.Feb 8 2023, 6:48 AM

A better implementation is in D143572