[PATCH] D122024: NFC. Refactor bitcode writer

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 18 10:24:55 PDT 2022


beanz created this revision.
beanz added reviewers: jdoerfert, serge-sans-paille, MaskRay.
Herald added a subscriber: hiraditya.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.

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-clan
g-llvm/60783/


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122024

Files:
  llvm/include/llvm/Bitcode/BitcodeWriterBase.h
  llvm/include/llvm/Bitcode/ValueEnumerator.h
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
  llvm/lib/Bitcode/Writer/ValueEnumerator.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122024.416557.patch
Type: text/x-patch
Size: 39760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/8a95550f/attachment.bin>


More information about the llvm-commits mailing list