This is an archive of the discontinued LLVM Phabricator instance.

llvm-profgen: Parse command line arguments after initializing targets
ClosedPublic

Authored by tstellar on Dec 15 2020, 3:13 PM.

Details

Summary

I am experimenting with turning backends into loadable modules and in
that scenario, target specific command line arguments won't be available
until after the targets are initialized.

Also, most other tools initialize targets before parsing arguments.

Diff Detail

Event Timeline

tstellar requested review of this revision.Dec 15 2020, 3:13 PM
tstellar created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2020, 3:14 PM
wlei accepted this revision.Dec 15 2020, 3:26 PM

LGTM, Thanks for woking on this @tstellar

This revision is now accepted and ready to land.Dec 15 2020, 3:26 PM
This revision was landed with ongoing or failed builds.Dec 21 2020, 3:13 PM
This revision was automatically updated to reflect the committed changes.