This is an archive of the discontinued LLVM Phabricator instance.

[clang-cl] Accept /FA[c][s][u], but ignore the arguments
ClosedPublic

Authored by steplong on Jun 10 2022, 11:47 AM.

Details

Diff Detail

Event Timeline

steplong created this revision.Jun 10 2022, 11:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 11:47 AM
steplong requested review of this revision.Jun 10 2022, 11:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 11:47 AM

I'm not sure which test file to modify and how to test this. I do see it generating the .asm file now when I pass /FAsc, not the .codd file though since we are ignoring the c argument.

hans added a comment.Jun 13 2022, 7:40 AM

Previously, /FAsc would emit a warning. Now, it will just do what /FA does.

I suppose we could still warn that the 's' and 'c' parts are ignored.. though I suppose that becomes evident from the output file..

If we're going to treat them the same, how about just making the _SLASH_FA option a CLJoined and dropping _SLASH_FA_joined?

I'm not sure which test file to modify and how to test this. I do see it generating the .asm file now when I pass /FAsc, not the .codd file though since we are ignoring the c argument.

There are some /FA tests in clang/test/Driver/cl-options.c and clang/test/Driver/cl-outputs.c.

steplong updated this revision to Diff 436436.Jun 13 2022, 9:06 AM
  • Removed SLASH_FA_joined and made SLASH_FA a CLJoined
  • Add some /FAcsu tests. Just copies of /FA tests, but passing /FAcsu
hans accepted this revision.Jun 13 2022, 9:23 AM

lgtm

This revision is now accepted and ready to land.Jun 13 2022, 9:23 AM
This revision was landed with ongoing or failed builds.Jun 13 2022, 12:02 PM
This revision was automatically updated to reflect the committed changes.