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

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Wed Jul 16 15:20:55 PDT 2025


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

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

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


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

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

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


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

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

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


  Commit: 0ff36e3316c368a50734f7c74b23f8b121b9103a
      https://github.com/llvm/llvm-project/commit/0ff36e3316c368a50734f7c74b23f8b121b9103a
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-07-16 (Wed, 16 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/e76aacc5dc51...0ff36e3316c3

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