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

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Fri Jul 25 14:27:23 PDT 2025


  Branch: refs/heads/users/mysterymath/modular-printf/libc
  Home:   https://github.com/llvm/llvm-project
  Commit: 719eedf83e0f9543b9d415ceffe974b1b0e87b13
      https://github.com/llvm/llvm-project/commit/719eedf83e0f9543b9d415ceffe974b1b0e87b13
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-25 (Fri, 25 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: 89498cc01aca5c81e823c511c8c9a767be91ccc9
      https://github.com/llvm/llvm-project/commit/89498cc01aca5c81e823c511c8c9a767be91ccc9
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

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

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


  Commit: 62deb38130925ad3669adc30fc5e58715f01961a
      https://github.com/llvm/llvm-project/commit/62deb38130925ad3669adc30fc5e58715f01961a
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

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

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


  Commit: 95b299f5c2a9ea997fedb2e416c5ca76c44acf91
      https://github.com/llvm/llvm-project/commit/95b299f5c2a9ea997fedb2e416c5ca76c44acf91
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

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

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


  Commit: 07d54fb61028a9a65c070525f9a34b8827085259
      https://github.com/llvm/llvm-project/commit/07d54fb61028a9a65c070525f9a34b8827085259
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-25 (Fri, 25 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/0d06e44774cb...07d54fb61028

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