[PATCH] D102909: [NPM] Ability to add a pass before a previously registered one

Lucas Prates via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 14 06:48:03 PDT 2021


pratlucas added a comment.

This solution works well if both passes are always supposed to be run together. If they should also work as standalone passes, it becomes tricky to figure out at what point each of them should be registered.
This could be done using the legacy pass manager on a hacky kind of way by querying for the passes on the `PassRegistry`, but this is no longer an option in NPM.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102909/new/

https://reviews.llvm.org/D102909



More information about the llvm-commits mailing list