[PATCH] D64188: [NewPM] Port the MIR Printing pass to new pass manager.
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 11:15:52 PDT 2019
thegameg added a comment.
The `MIRPrinter` is used to print MIR when used with `-stop-before` / `-stop-after` / `-run-pass` flags in `llc` (see https://llvm.org/docs/MIRLangRef.html#mir-testing-guide).
In the case of `-stop-*`, LLVMTargetMachine.cpp:addPassesToEmitFile sets it up.
In the case of `-run-pass`, llc.cpp:compileModule does (`if (!RunPassNames->empty()) { ...`).
As for tests, basically all `.mir ` tests that use the flags above use it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64188/new/
https://reviews.llvm.org/D64188
More information about the llvm-commits
mailing list