[#llvm-BitcodeWriterPass] = xref:llvm.adoc[llvm]::BitcodeWriterPass :relfileprefix: ../ :mrdocs: Pass for writing a module of IR out to a bitcode file. == Synopsis Declared in `<llvm/Bitcode/BitcodeWriterPass.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BitcodeWriterPass : public xref:llvm/RequiredPassInfoMixin-047.adoc[RequiredPassInfoMixin<BitcodeWriterPass>] ---- == Description Note that this is intended for use with the new pass manager. To construct a pass for the legacy pass manager, use the function above. == Base Classes [cols="1,4"] |=== | Name| Description | `xref:llvm/RequiredPassInfoMixin-047.adoc[RequiredPassInfoMixin<BitcodeWriterPass>]` | A CRTP mix‐in for passes that should not be skipped. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/BitcodeWriterPass/2constructor.adoc[`BitcodeWriterPass`] [.small]#[constructor]# | Construct a bitcode writer pass around a particular output stream. | xref:llvm/BitcodeWriterPass/run.adoc[`run`] | Run the bitcode writer pass, and output the module to the selected output stream. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/BitcodeWriterPass/isRequired.adoc[`isRequired`] | Return true; required passes cannot be skipped. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#