This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Add a cc1 flag for the new TBAA metadata format
ClosedPublic

Authored by kosarev on Nov 13 2017, 4:57 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

kosarev created this revision.Nov 13 2017, 4:57 AM
rjmccall edited edge metadata.Nov 13 2017, 10:25 PM

We don't want this to become a long-term feature; we just want to switch the implementation over to the new format. Is there a good reason not to do that in one patch? If so, adding an option is acceptable, but it should be a -cc1 option only, because it is purely a testing option.

Adding a (temporary) flag for the new format would help with updating tests that depend on the shape of TBAA metadata. There are lots of them and I guess some change frequently so we may want to address this in a few patches. That would also reduce the pressure on those who are in process of preparing new patches. So yes, if we can live with both the formats for some time, then that would make the transition easier for all concerned.

Will remove the clang option from the patch. We don't need it indeed. Thanks for pointing out.

Okay. I'm fine with living with both formats as long as we're not exposing this as a feature.

kosarev updated this revision to Diff 123320.Nov 17 2017, 5:53 AM
kosarev retitled this revision from [Driver] Add command-line flags for the new TBAA metadata format to [Driver] Add a cc1 flag for the new TBAA metadata format.

Removed the clang command-line flag for the new format.

This revision is now accepted and ready to land.Nov 18 2017, 12:32 AM
This revision was automatically updated to reflect the committed changes.