[libc] add compile option for printf arg type array
authorMichael Jones <michaelrj@google.com>
Wed, 15 Jun 2022 23:08:28 +0000 (16:08 -0700)
committerMichael Jones <michaelrj@google.com>
Fri, 26 Aug 2022 18:38:04 +0000 (11:38 -0700)
commitecca895295e6efbc03a9652bf65d622bd1216ab4
tree04ea567aa85844af8c3dcbbd0ec9b641a594190c
parent35e21078426ab782f5d80b01dbd4bc2bfd255783
[libc] add compile option for printf arg type array

This patch allows for adjusting the size of the array that printf uses
to track the types of arguments in index mode. This is useful for
optimizing the tradeoff between memory usage and performance.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D131993
libc/src/stdio/printf_core/parser.h
libc/src/stdio/printf_core/printf_config.h [new file with mode: 0644]