This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Remove more codegen options
ClosedPublic

Authored by jansvoboda11 on Oct 11 2022, 3:25 PM.

Details

Summary

Codegen options are typically unused by modules. Reset some of them to increase sharing between TUs with different flags.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Oct 11 2022, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 3:25 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.Oct 11 2022, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 3:25 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Bigcheese accepted this revision.Oct 11 2022, 3:30 PM

lgtm. Although I wonder if long term we should add something to the option tablegen file for this case?

This revision is now accepted and ready to land.Oct 11 2022, 3:30 PM

lgtm. Although I wonder if long term we should add something to the option tablegen file for this case?

I think a good option would be to have a function that uses the information we already have in TableGen and sets the fields to their default values while respecting any derived values.

This revision was landed with ongoing or failed builds.Oct 11 2022, 3:57 PM
This revision was automatically updated to reflect the committed changes.