[PATCH] D35284: Support: Add llvm::format_memory to convert number of bytes to human readable string.
Frederich Munch via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 20:02:25 PDT 2017
marsupial added a comment.
I appreciate the differences, but this is specifically to output an amount of memory in a human readable form.
Using KiB, MiB, etc may be pedantically correct, but it limits the usefulness of this to format text for a user who may have little knowledge of the differences between SI and IEC suffixes.
Every operating system I'm aware of does it this way and having output correlate to how the OS reports memory is more important.
https://reviews.llvm.org/D35284
More information about the llvm-commits
mailing list