GGuillaume Chatelet[libc] Fix missing static_cast
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Fix missing static_cast | 3 年前 | |
Re-land [libc] Apply no-builtin everywhere, remove unnecessary flags This is a reland of D126773 / b2a9ea4420127d10b18ae648b16757665f8bbd7c. The removal of -mllvm -combiner-global-alias-analysis has landed separately in D128051 / 7b73f53790f3db9ee589dc26a05a481a5e9e6915. And the removal of -mllvm --tail-merge-threshold=0 is scheduled for removal in a subsequent patch. | 3 年前 | |
[libc] Add a reasonably optimized version for bcmp This is based on current memcmp implementation. Differential Revision: https://reviews.llvm.org/D114432 | 4 年前 | |
[libc] Add a trivial implementation for bcmp Differential Revision: https://reviews.llvm.org/D108225 | 4 年前 | |
[libc][NFC] Allow memset (and bzero) to be inlined This allows shipping individual functions without also having to provide memset or bzero at the expense of bigger functions. Similar to D113097. Differential Revision: https://reviews.llvm.org/D113108 | 4 年前 | |
[libc] use stddef instead of string header | 5 年前 | |
[libc] apply new lint rules This patch applies the lint rules described in the previous patch. There was also a significant amount of effort put into manually fixing things, since all of the templated functions, or structs defined in /spec, were not updated and had to be handled manually. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D114302 | 4 年前 | |
[libc] add memccpy and mempcpy Add an implementation for memccpy and mempcpy. These functions are posix extensions for the moment. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D111762 | 4 年前 | |
[libc] Add explicit casts for string functions This fixes warnings from -Wimplicit-int-conversion Differential revision: https://reviews.llvm.org/D127694 | 3 年前 | |
[libc] Add memchr implementation. | 5 年前 | |
[libc][NFC] Allow memcmp to be inlined Similar to D113097 although not strictly necessary for now. It helps keeping the same structure for all memory functions. Differential Revision: https://reviews.llvm.org/D113103 | 4 年前 | |
[libc] Add memcmp implementation. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D93009 | 5 年前 | |
[libc][NFC] Allow memcpy to be inlined This allows shipping individual functions without also having to provide memcpy at the expense of bigger functions. Next is to use this inlined_memcpy in: - loader/linux/x86_64/start.cpp - src/string/memmove.cpp - src/string/mempcpy.cpp - src/string/strcpy.cpp - src/string/strdup.cpp - src/string/strndup.cpp Differential Revision: https://reviews.llvm.org/D113097 | 4 年前 | |
[libc] remove useless headers | 5 年前 | |
[libc] Optimized version of memmove This implementation relies on storing data in registers for sizes up to 128B. Then depending on whether dst is less (resp. greater) than src we move data forward (resp. backward) by chunks of 32B. We first make sure one of the pointers is aligned to increase performance on large move sizes. Differential Revision: https://reviews.llvm.org/D114637 | 4 年前 | |
[libc][Obvious] Some clean work with memmove. | 4 年前 | |
[libc] Make string entrypoints mutualy exclusive. For example, strcpy does not pull memcpy now. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D114300 | 4 年前 | |
[libc] add memccpy and mempcpy Add an implementation for memccpy and mempcpy. These functions are posix extensions for the moment. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D111762 | 4 年前 | |
[libc] Add explicit casts for string functions This fixes warnings from -Wimplicit-int-conversion Differential revision: https://reviews.llvm.org/D127694 | 3 年前 | |
[libc] Adds implementation for memrchr. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D84469 | 5 年前 | |
[libc][NFC] Allow memset (and bzero) to be inlined This allows shipping individual functions without also having to provide memset or bzero at the expense of bigger functions. Similar to D113097. Differential Revision: https://reviews.llvm.org/D113108 | 4 年前 | |
[libc] remove useless headers | 5 年前 | |
[libc] add stpcpy and stpncpy Adds an implementation for stpcpy and stpncpy, which are posix extension functions. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D111913 | 4 年前 | |
[libc] add stpcpy and stpncpy Adds an implementation for stpcpy and stpncpy, which are posix extension functions. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D111913 | 4 年前 | |
[libc] Make string entrypoints mutualy exclusive. For example, strcpy does not pull memcpy now. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D114300 | 4 年前 | |
[libc] add stpcpy and stpncpy Adds an implementation for stpcpy and stpncpy, which are posix extension functions. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D111913 | 4 年前 | |
[libc] apply new lint rules This patch applies the lint rules described in the previous patch. There was also a significant amount of effort put into manually fixing things, since all of the templated functions, or structs defined in /spec, were not updated and had to be handled manually. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D114302 | 4 年前 | |
[libc] Switch functions to using global headers This switches all of the files in src/string, src/math, and test/src/math from using relative paths (e.g. #include “include/string.h”) to global paths (e.g. #include <string.h>) to make bringing up those functions on other platforms, such as fuchsia, easier. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D91394 | 5 年前 | |
[libc] Add explicit casts for string functions This fixes warnings from -Wimplicit-int-conversion Differential revision: https://reviews.llvm.org/D127694 | 3 年前 | |
[libc] Add strchr implementation. Fixes bug in memchr. Summary: [libc] Adds strchr implementation with unit tests. Fixes signed character bug in memchr. Reviewers: sivachandra, PaulkaToast Reviewed By: sivachandra Subscribers: mgorny, tschuett, ecnelises, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D83353 | 5 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] This adds the strcmp (string compare) implementation. Reviewed-by: sivachandra Differential Revision: https://reviews.llvm.org/D82134 | 5 年前 | |
[libc] Make string entrypoints mutualy exclusive. For example, strcpy does not pull memcpy now. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D114300 | 4 年前 | |
[libc] Switch functions to using global headers This switches all of the files in src/string, src/math, and test/src/math from using relative paths (e.g. #include “include/string.h”) to global paths (e.g. #include <string.h>) to make bringing up those functions on other platforms, such as fuchsia, easier. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D91394 | 5 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Add strcpsn and strpbrk implementation. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D85386 | 5 年前 | |
[libc][clang-tidy] fix namespace check for externals Up until now, all references to errno were marked with NOLINT, since it was technically calling an external function. This fixes the lint rules so that errno, as well as malloc, calloc, realloc, and free are all allowed to be called as external functions. All of the relevant NOLINT comments have been removed, and the documentation has been updated. Reviewed By: sivachandra, lntue, aaron.ballman Differential Revision: https://reviews.llvm.org/D113946 | 4 年前 | |
[libc] add strdup implementation Add an implementation for strdup. Reviewed By: lntue, sivachandra Differential Revision: https://reviews.llvm.org/D111584 | 4 年前 | |
[libc] Add strlcat Differential Revision: https://reviews.llvm.org/D125978 | 4 年前 | |
[libc] Add strlcat Differential Revision: https://reviews.llvm.org/D125978 | 4 年前 | |
[libc] Add strlcat Differential Revision: https://reviews.llvm.org/D125978 | 4 年前 | |
[libc] Add strlcat Differential Revision: https://reviews.llvm.org/D125978 | 4 年前 | |
[libc] Add strlcpy Differential Revision: https://reviews.llvm.org/D125806 | 4 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Switch functions to using global headers This switches all of the files in src/string, src/math, and test/src/math from using relative paths (e.g. #include “include/string.h”) to global paths (e.g. #include <string.h>) to make bringing up those functions on other platforms, such as fuchsia, easier. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D91394 | 5 年前 | |
[libc] apply new lint rules This patch applies the lint rules described in the previous patch. There was also a significant amount of effort put into manually fixing things, since all of the templated functions, or structs defined in /spec, were not updated and had to be handled manually. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D114302 | 4 年前 | |
[libc] Add strncat and fix strcat This adds strncat to llvm libc. In addition, an error was found with strcat and that was fixed. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D111583 | 4 年前 | |
[libc] add strncmp to strings Add strncmp as a function to strings.h. Also adds unit tests, and adds strncmp as an entrypoint for all current platforms. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106901 | 4 年前 | |
[libc] add strncmp to strings Add strncmp as a function to strings.h. Also adds unit tests, and adds strncmp as an entrypoint for all current platforms. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106901 | 4 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Add strncpy implementation. Add libc strncpy implementation. Reviewed By: sivachandra, gchatelet Differential Revision: https://reviews.llvm.org/D91399 | 5 年前 | |
[libc][clang-tidy] fix namespace check for externals Up until now, all references to errno were marked with NOLINT, since it was technically calling an external function. This fixes the lint rules so that errno, as well as malloc, calloc, realloc, and free are all allowed to be called as external functions. All of the relevant NOLINT comments have been removed, and the documentation has been updated. Reviewed By: sivachandra, lntue, aaron.ballman Differential Revision: https://reviews.llvm.org/D113946 | 4 年前 | |
[libc] add strndup add an implementation of strndup Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112846 | 4 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Implements strnlen. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D84247 | 5 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Add strcpsn and strpbrk implementation. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D85386 | 5 年前 | |
[libc] Add explicit casts for string functions This fixes warnings from -Wimplicit-int-conversion Differential revision: https://reviews.llvm.org/D127694 | 3 年前 | |
[libc] Adds strrchr implementation. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D84875 | 5 年前 | |
[libc][NFC] Move utils/CPP to src/__support/CPP. The idea is to move all pieces related to the actual libc sources to the "src" directory. This allows downstream users to ship and build just the "src" directory. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D112653 | 4 年前 | |
[libc] Add strspn implementation and std::bitset Reviewed By: sivachandra, abrachet Differential Revision: https://reviews.llvm.org/D85103 | 5 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Add strstr implementation. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D83956 | 5 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Add restrict qualifiers to string library; give consistent naming scheme to TableGen files. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D85945 | 5 年前 | |
[libc] Switch to use a macro which does not insert a section for every libc function. Summary: The new macro also inserts the C alias for the C++ implementations without needing an objcopy based post processing step. The CMake rules have been updated to reflect this. More CMake cleanup can be taken up in future rounds and appropriate TODOs have been added for them. Reviewers: mcgrathr, sivachandra Subscribers: | 5 年前 | |
[libc] Add restrict qualifiers to string library; give consistent naming scheme to TableGen files. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D85945 | 5 年前 |