HomePhabricator

llvm-profgen: Parse command line arguments after initializing targets

Authored by tstellar on Dec 21 2020, 1:29 PM.

Description

llvm-profgen: Parse command line arguments after initializing targets

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.

Reviewed By: wlei

Differential Revision: https://reviews.llvm.org/D93348