[PATCH] D33464: [PM][WIP] Enable out-of-tree registration of passes with the new PassBuilder

Philip Pfaffe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 11:41:01 PDT 2017


philip.pfaffe updated this revision to Diff 102210.
philip.pfaffe added a comment.

Flesh out the tests. Mainly:

- Expand the unittest to handle all IRUnits as well as parsing of a top-level pipeline
- Add a lit test for the extension points.

To enable the latter, I added a few command line options to opt which accept textual pipelines (for appropriate pass managers), which then get inserted into extensions points. This requires 3 additional APIs on the PassBuilder for parsing a pipeline text into something other than a ModulePassManager.


https://reviews.llvm.org/D33464

Files:
  include/llvm/Passes/PassBuilder.h
  lib/Passes/PassBuilder.cpp
  test/Other/new-pm-defaults.ll
  test/Other/new-pm-lto-defaults.ll
  tools/opt/NewPMDriver.cpp
  unittests/IR/CMakeLists.txt
  unittests/IR/HookManagerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33464.102210.patch
Type: text/x-patch
Size: 61050 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170612/661e0a62/attachment-0001.bin>


More information about the llvm-commits mailing list