[all-commits] [llvm/llvm-project] 3c51a1: [libc] Modular printf option (float only)

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Tue Jul 29 15:11:49 PDT 2025


  Branch: refs/heads/users/mysterymath/modular-printf/libc
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c51a1951d14f165226b2c1d29f7edd3a3520f51
      https://github.com/llvm/llvm-project/commit/3c51a1951d14f165226b2c1d29f7edd3a3520f51
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M libc/config/config.json
    M libc/docs/configure.rst
    M libc/src/stdio/generic/CMakeLists.txt
    A libc/src/stdio/generic/printf_modular.cpp
    M libc/src/stdio/printf.h
    M libc/src/stdio/printf_core/CMakeLists.txt
    M libc/src/stdio/printf_core/float_dec_converter.h
    M libc/src/stdio/printf_core/float_dec_converter_limited.h
    M libc/src/stdio/printf_core/float_hex_converter.h
    A libc/src/stdio/printf_core/float_impl.cpp
    M libc/src/stdio/printf_core/parser.h
    M libc/src/stdio/printf_core/printf_config.h
    M libc/src/stdio/printf_core/printf_main.h
    M libc/src/stdio/printf_core/vfprintf_internal.h

  Log Message:
  -----------
  [libc] Modular printf option (float only)

This adds LIBC_CONF_PRINTF_MODULAR, which causes floating point support
(later, others) to be weakly linked into the implementation.
__printf_modular becomes the main entry point of the implementaiton, an
printf itself wraps __printf_modular. printf it also contains a
BFD_RELOC_NONE relocation to bring in the float aspect.

See issue #146159 for context.


  Commit: 2b507566b2ddadd6463ad60b953d5ed5372ad705
      https://github.com/llvm/llvm-project/commit/2b507566b2ddadd6463ad60b953d5ed5372ad705
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M libc/src/stdio/printf_core/vfprintf_internal.h

  Log Message:
  -----------
  Fix missed SPLIT->MODULAR rename


  Commit: 9d9ed4866e470e9dfc0c4468789d6984d7a6db1c
      https://github.com/llvm/llvm-project/commit/9d9ed4866e470e9dfc0c4468789d6984d7a6db1c
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M libc/src/stdio/printf_core/float_impl.cpp

  Log Message:
  -----------
  Add missing file header


  Commit: 2f5e2bd917fa27542994b49010e86cc09f57a9a9
      https://github.com/llvm/llvm-project/commit/2f5e2bd917fa27542994b49010e86cc09f57a9a9
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M libc/src/stdio/printf_core/printf_main.h

  Log Message:
  -----------
  Use LIBC_INLINE_ASM macro


  Commit: 7bf4543da1e54794e33d7550004ae223caeaae21
      https://github.com/llvm/llvm-project/commit/7bf4543da1e54794e33d7550004ae223caeaae21
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M libc/src/stdio/printf_core/float_dec_converter.h
    M libc/src/stdio/printf_core/float_dec_converter_limited.h
    M libc/src/stdio/printf_core/float_hex_converter.h
    M libc/src/stdio/printf_core/parser.h

  Log Message:
  -----------
  LIBC_INLINE for modular fn definitions


Compare: https://github.com/llvm/llvm-project/compare/68f86ebccfcb...7bf4543da1e5

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list