[PATCH] D82320: [NPM] Attempt to run opt passes specified via -foo-pass under NPM

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 11:17:13 PDT 2020


aeubanks created this revision.
aeubanks added reviewers: hans, echristo, asbirlea, leonardchan.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is gated under a new opt flag -enable-new-pass-manager.  Currently
the pass flag parser looks for legacy PM passes with the name "foo" (for
opt arg "-foo") and creates a PassInfo for each one. Here we take the
(legacy PM) pass name and try to match it with one defined in (NPM)
PassRegistry.def.  Ultimately if we want all tests to pass like this,
we'll need to port all passes to NPM and register them in
PassRegistry.def under the same name as they were reigstered in the
legacy PM.

Maybe at some point we'll migrate all -foo to --passes=foo, but that
would be after the NPM switch.

Flipping on the flag causes 2XXX failures under check-llvm.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82320

Files:
  llvm/tools/opt/NewPMDriver.cpp
  llvm/tools/opt/NewPMDriver.h
  llvm/tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82320.272499.patch
Type: text/x-patch
Size: 4493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200622/79fb4c43/attachment.bin>


More information about the llvm-commits mailing list