[PATCH] D37494: Change encodeU/SLEB128 to pad to certain number of bytes
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 5 16:36:17 PDT 2017
sbc100 added a comment.
My understanding is that with LEB one can pad to any number of bytes. We use 5 when we write 32-bit values in wasm because 5 is the number of bytes required to encode any 32-bit number as an LEB. We likewise use 10 bytes when writing padded 64-values. One might conceivably use 2 and 3 when writing 8-bit and 16-bit values as well.
https://reviews.llvm.org/D37494
More information about the llvm-commits
mailing list