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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/stdio/printf_core/parser.h | ||
---|---|---|
51 | Normally, config params like this are all put in one single .h file, say in this printf_parser_config.h: #ifndef LLVM_LIBC_PRINTF_INDEX_ARR_LEN // Explain what this param is about. #define LLVM_LIBC_PRINTF_INDEX_ARR_LEN 128 #endif Include printf_parser_config.h in parser.h. Not sure if we really want a separate config file for the parser, may be just a printf_config.h file is sufficient. |
libc/src/stdio/printf_core/printf_config.h | ||
---|---|---|
17 ↗ | (On Diff #455281) | Nit: Give an example of what that "severity" will look like. |
Normally, config params like this are all put in one single .h file, say in this printf_parser_config.h:
Include printf_parser_config.h in parser.h. Not sure if we really want a separate config file for the parser, may be just a printf_config.h file is sufficient.