[PATCH] D74814: IR printing for single function with the new pass manager.

Wenlei He via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 10:28:49 PST 2020


wenlei added a comment.



> Sounds good. I was trying to figure out how to invoke the new pass manager with OPT. Is there a command line switch to do that?

If you just do `opt -passes=<pass_names>`, it will invoke new pass manager for `opt`. See https://reviews.llvm.org/D66560 for example - that was for legacy PM, the equivalent for new PM would be something like `opt < %s 2>&1 -passes=forceattrs ...`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74814





More information about the cfe-commits mailing list