[all-commits] [llvm/llvm-project] 2e6ecc: [libc] refactor printf file writing
michaelrj-google via All-commits
all-commits at lists.llvm.org
Wed Jun 15 11:45:51 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2e6eccfe34c1ff005352ca78f87bbcc4884f7371
https://github.com/llvm/llvm-project/commit/2e6eccfe34c1ff005352ca78f87bbcc4884f7371
Author: Michael Jones <michaelrj at google.com>
Date: 2022-06-15 (Wed, 15 Jun 2022)
Changed paths:
M libc/src/stdio/CMakeLists.txt
M libc/src/stdio/fprintf.cpp
M libc/src/stdio/printf_core/CMakeLists.txt
M libc/src/stdio/printf_core/char_converter.h
M libc/src/stdio/printf_core/converter.cpp
M libc/src/stdio/printf_core/converter.h
M libc/src/stdio/printf_core/core_structs.h
M libc/src/stdio/printf_core/file_writer.cpp
M libc/src/stdio/printf_core/file_writer.h
M libc/src/stdio/printf_core/int_converter.h
M libc/src/stdio/printf_core/printf_main.cpp
M libc/src/stdio/printf_core/string_converter.h
M libc/src/stdio/printf_core/string_writer.cpp
M libc/src/stdio/printf_core/string_writer.h
A libc/src/stdio/printf_core/vfprintf_internal.cpp
A libc/src/stdio/printf_core/vfprintf_internal.h
M libc/src/stdio/printf_core/writer.cpp
M libc/src/stdio/printf_core/writer.h
M libc/test/src/stdio/fprintf_test.cpp
M libc/test/src/stdio/printf_core/converter_test.cpp
M libc/test/src/stdio/printf_core/string_writer_test.cpp
Log Message:
-----------
[libc] refactor printf file writing
Add return values to converter functions to allow for better error
handling when writing files. Also move the file writing code around to
be easier to read.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D127773
Commit: ad233c6047fc8702ddff833259fbe06364449dc1
https://github.com/llvm/llvm-project/commit/ad233c6047fc8702ddff833259fbe06364449dc1
Author: Michael Jones <michaelrj at google.com>
Date: 2022-06-15 (Wed, 15 Jun 2022)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/src/stdio/CMakeLists.txt
A libc/src/stdio/printf.cpp
A libc/src/stdio/printf.h
M libc/test/src/stdio/CMakeLists.txt
A libc/test/src/stdio/printf_test.cpp
Log Message:
-----------
[libc] add printf
This patch adds the entrypoint for printf. With this, building a
"hello world" program with just LLVM-libc is possible.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D126831
Compare: https://github.com/llvm/llvm-project/compare/02e32708bd4d...ad233c6047fc
More information about the All-commits
mailing list