[llvm] [Pass] Add some missing passes (PR #77600)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 21:00:04 PST 2024


================
@@ -142,6 +143,7 @@ MODULE_PASS("tsan-module", ModuleThreadSanitizerPass())
 MODULE_PASS("verify", VerifierPass())
 MODULE_PASS("view-callgraph", CallGraphViewerPass())
 MODULE_PASS("wholeprogramdevirt", WholeProgramDevirtPass())
+MODULE_PASS("write-bitcode", BitcodeWriterPass(nulls(), true))
----------------
boomanaiden154 wrote:

Ah. I should've figured `-disable-output` on my invocation would never create the bitcode writer. I'm not convinced the current approach (currently manually calling `addClassToPassName` in the `PassBuilder` constructor). Others probably have better ideas on the best approach to fix this.

https://github.com/llvm/llvm-project/pull/77600


More information about the llvm-commits mailing list