This is an archive of the discontinued LLVM Phabricator instance.

[Support] Generalize operations on ValueT for LEB128 encoding/decoding
Needs ReviewPublic

Authored by nlguillemot on Apr 24 2020, 11:17 PM.

Details

Summary

Explicitly defines the non-trivial operations required to be supported
for the ValueT used in the LEB128 encoding/decoding iterators. The plan
is to use this to support using LEB128 encoding/decoding with APInt.
This patch implements the interface for integral types, and a subsequent
patch will implement the interface using APInt.

Diff Detail