HomePhabricator

[libc++][format][1/6] Reduce binary size.

Authored by Mordante on Sep 4 2021, 4:26 AM.

Description

[libc++][format][1/6] Reduce binary size.

This removes the format_args_t from <format> and adjusts the type of
the format_args for the vformat_to overloads.

The format_context uses a back_insert_iterator<string> therefore the
new output_iterator function uses a string as its temporary storage
buffer. This isn't ideal. The next patches in this series will improve
this. These improvements make it easy to also improve format_to_n and
formatted_size.

This addresses P2216 6. Binary size.
P2216 5. Compile-time checks are not part of this change.

Implements parts of:

  • P2216 std::format improvements

Depends on D103670

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D110494

Details

Committed
MordanteDec 1 2021, 8:50 AM
Reviewer
Restricted Project
Differential Revision
D110494: [libc++][format][1/6] Reduce binary size.
Parents
rGc537a943342b: [mlir][Vector] Thread 0-d vectors through vector.transfer ops
Branches
Unknown
Tags
Unknown