This is an initial NFC refactor of the LLVM bitcode writer to support
implementing alternate bitcode serializations of LLVM IR.
This refactoring moves the basic bitcode encoding helper functionality
into a header that is available outside the BitWriter library.
This is in support of adding DXIL emission to LLVM as discussed in the
RFC here:
https://discourse.llvm.org/t/rfc-adding-hlsl-and-directx-support-to-clang-llvm/60783/
Not sure I follow why you're exposing ModuleBitcodeWriter publicly.