GGuillaume Chatelet[libc] Add a separate algorithm_test.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Add a separate algorithm_test. Differential Revision: https://reviews.llvm.org/D128994 | 3 年前 | |
[libc] Implement FLAGS option for generating all combinations for targets. Add FLAGS option for add_header_library, add_object_library, add_entrypoint_object, and add_libc_unittest. In general, a flag is a string provided for supported functions under the multi-valued option FLAGS. It should be one of the following forms: FLAG_NAME FLAG_NAME__NO FLAG_NAME__ONLY A target will inherit all the flags of its upstream dependency. When we create a target TARGET_NAME with a flag using (add_header_library, add_object_library, ...), its behavior will depend on the flag form as follow: - FLAG_NAME: The following 2 targets will be generated: TARGET_NAME that has FLAG_NAME in its FLAGS property. TARGET_NAME.__NO_FLAG_NAME that depends on DEP.__NO_FLAG_NAME if TARGET_NAME depends on DEP and DEP has FLAG_NAME in its FLAGS property. - FLAG_NAME__ONLY: Only generate 1 target TARGET_NAME that has FLAG_NAME in its FLAGS property. - FLAG_NAME__NO: Only generate 1 target TARGET_NAME.__NO_FLAG_NAME that depends on DEP.__NO_FLAG_NAME if DEP is in its DEPENDS list and DEP has FLAG_NAME in its FLAGS property. To show all the targets generated, pass SHOW_INTERMEDIATE_OBJECTS=ON to cmake. To show all the targets' dependency and flags, pass SHOW_INTERMEDIATE_OBJECTS=DEPS to cmake. To completely disable a flag FLAG_NAME expansion, set the variable SKIP_FLAG_EXPANSION_FLAG_NAME=TRUE. Reviewed By: michaelrj, sivachandra Differential Revision: https://reviews.llvm.org/D125174 | 4 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 4 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 4 年前 | |
[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][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc] Use ASSERT_ instead of EXPECT_ in memcmp tests | 3 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 4 年前 | |
[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] 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][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 4 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 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][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 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][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[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][windows] fix strlcpy tests Generally, size_t is an alias for unsigned long long. In the strlcpy tests, the return value of strlcpy (a size_t) is compared to an unsigned long. On Linux unsigned long and unsigned long long are both 64 bits, but on windows unsigned long is 32 bits. Since the macros require identical types for both sides, this caused a build failure on windows. This patch changes the constants to be explicit size_t values. Differential Revision: https://reviews.llvm.org/D125917 | 4 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[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][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 strndup add an implementation of strndup Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112846 | 4 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc] Fix strtok_r crash when src and *saveptr are both nullptr While working and testing my refactoring of multiple string functions in libc, I came across a bug that needs to be addressed in a patch on its own: src is checked for nullptr and assigned to *saveptr if it is nullptr. However, saveptr is initially nullptr when it comes to reentry. This could cause a problem if both saveptr and src are null; we need to do the check first and return nullptr if both are nullptr. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106885 | 4 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 |