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

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Tue Jul 22 13:40:41 PDT 2025


  Branch: refs/heads/users/mysterymath/modular-printf/libc
  Home:   https://github.com/llvm/llvm-project
  Commit: ae31609d1ff2c0ace0151fdba5e721d94b82a21a
      https://github.com/llvm/llvm-project/commit/ae31609d1ff2c0ace0151fdba5e721d94b82a21a
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-22 (Tue, 22 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: 78569dd5ba64d1e903267e3627ced99d6d45c369
      https://github.com/llvm/llvm-project/commit/78569dd5ba64d1e903267e3627ced99d6d45c369
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-22 (Tue, 22 Jul 2025)

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

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


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

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

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


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

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

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


  Commit: 814d276c6c93acd599cdc3f01374424addc08bf1
      https://github.com/llvm/llvm-project/commit/814d276c6c93acd599cdc3f01374424addc08bf1
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-22 (Tue, 22 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/8467ca8eb40e...814d276c6c93

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