[PATCH] D78797: [Support] Refactor LEB128 decoding into an output iterator

Nicolas Guillemot via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 23:57:35 PDT 2020


nlguillemot added a comment.

The end goal of this series of patches is to support encoding/decoding `APInt` to/from `[U|S]LEB128`. This patch is an initial step in that direction. It refactors the logic to avoid code duplication and makes the interface to LEB128 decoding more generic.

In a later patch, I'd like to do some template magic to support `LEB128OutputIterator<APInt>` in a way that tries to share code with the `uint64_t`/`int64_t` implementations.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78797/new/

https://reviews.llvm.org/D78797





More information about the llvm-commits mailing list