[all-commits] [llvm/llvm-project] 4ad0cf: llvm-profgen: Parse command line arguments after i...

Tom Stellard via All-commits all-commits at lists.llvm.org
Mon Dec 21 15:13:43 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ad0cfd4de414f9bedf48ec1034e663fe59efee4
      https://github.com/llvm/llvm-project/commit/4ad0cfd4de414f9bedf48ec1034e663fe59efee4
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2020-12-21 (Mon, 21 Dec 2020)

  Changed paths:
    M llvm/tools/llvm-profgen/llvm-profgen.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list