summaryrefslogtreecommitdiffstats
path: root/pstl/test
Commit message (Collapse)AuthorAgeFilesLines
* [libc++] Take 2: Integrate the PSTL into libc++Louis Dionne2019-08-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This commit allows specifying LIBCXX_ENABLE_PARALLEL_ALGORITHMS when configuring libc++ in CMake. When that option is enabled, libc++ will assume that the PSTL can be found somewhere on the CMake module path, and it will provide the C++17 parallel algorithms based on the PSTL (that is assumed to be available). The commit also adds support for running the PSTL tests as part of the libc++ test suite. The first attempt to commit this failed because it exposed a bug in the tests for modules. Now that this has been fixed, it should be safe to commit this. Reviewers: EricWF Subscribers: mgorny, christof, jkorous, dexonsmith, libcxx-commits, mclow.lists, EricWF Tags: #libc Differential Revision: https://reviews.llvm.org/D60480 llvm-svn: 367903
* Revert "[libc++] Integrate the PSTL into libc++"Louis Dionne2019-07-191-2/+0
| | | | | | | This reverts r366593, which caused unforeseen breakage on the build bots. I'm reverting until the problems have been figured out and fixed. llvm-svn: 366603
* [libc++] Integrate the PSTL into libc++Louis Dionne2019-07-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: This commit allows specifying LIBCXX_ENABLE_PARALLEL_ALGORITHMS when configuring libc++ in CMake. When that option is enabled, libc++ will assume that the PSTL can be found somewhere on the CMake module path, and it will provide the C++17 parallel algorithms based on the PSTL (that is assumed to be available). The commit also adds support for running the PSTL tests as part of the libc++ test suite. Reviewers: rodgert, EricWF Subscribers: mgorny, christof, jkorous, dexonsmith, libcxx-commits, mclow.lists, EricWF Tags: #libc Differential Revision: https://reviews.llvm.org/D60480 llvm-svn: 366593
* [NFC][pstl] Run clang-format on the sources, including the testsLouis Dionne2019-07-1834-114/+103
| | | | llvm-svn: 366492
* [pstl] Fix test that checked the version number after version bumpLouis Dionne2019-07-181-2/+2
| | | | llvm-svn: 366491
* [pstl] Declare main() as returning int, not int32_tLouis Dionne2019-07-1859-59/+59
| | | | llvm-svn: 366490
* [pstl] Use utilities from <functional> instead of reinventing the wheelLouis Dionne2019-07-043-14/+14
| | | | llvm-svn: 365158
* [pstl] Mark pstl tests as unsupported before C++17Louis Dionne2019-06-2059-2/+118
| | | | | | This is required to run the tests in lit with libc++'s tests. llvm-svn: 363942
* [pstl] Remove warnings in tests and headersLouis Dionne2019-06-1939-109/+109
| | | | | | | | Mostly unused parameter, unused local typedefs and shadowed declarations. This massaging it necessary if we want to be able to run the tests under the libc++ lit configuration. llvm-svn: 363872
* [pstl] Disable workarounds for broken ICC versions when using ClangLouis Dionne2019-06-181-0/+2
| | | | llvm-svn: 363726
* [pstl] Remove stray usage of pstl::execution instead of std::executionLouis Dionne2019-06-184-7/+7
| | | | llvm-svn: 363723
* [pstl] Remove various warnings in the pstl headers and testsLouis Dionne2019-05-309-20/+24
| | | | | | | | | | | | | | | | | - unused parameter warnings - don't use single-letter template parameter names, like we do in libc++ - sign-comparison warnings - unused variables in the tests - unused local typedefs in the tests - the use of #include_next - field reordering in the tests - unused lambda captures Note that the rationale for why the static_casts to unsigned are OK is that last - first must always be non-negative, since [first, last) is a valid range. llvm-svn: 362148
* [pstl] Make the default backend be the serial backend and always provide ↵Louis Dionne2019-04-242-10/+1
| | | | | | | | | | | | | | | | | | parallel policies Summary: Before this change, the default backend was TBB but one could disable anything related to TBB by removing the parallel policies. This change uses the serial backend by default and removes the ability to disable parallel policies, which is not useful anymore. Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D59792 llvm-svn: 359134
* [pstl] Remove the stdlib headers from the PSTL and move them to the testsLouis Dionne2019-04-1664-344/+143
| | | | | | | | | | | | | | | | | Summary: PSTL should not provide those headers since they belong to the standard library. Instead, we define a dummy standard library in the tests that provides those headers. Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60535 llvm-svn: 358497
* [NFC] Add explicit return from main() in testsLouis Dionne2019-04-121-1/+3
| | | | llvm-svn: 358302
* [pstl] Setup the _PSTL_VERSION macro like _LIBCPP_VERSION, and add release notesLouis Dionne2019-04-111-0/+17
| | | | | | | | | | | | Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60464 llvm-svn: 358193
* [pstl] Move to single underscore-capital for macros and include guardsLouis Dionne2019-04-1038-105/+105
| | | | | | | | | | | | | | Summary: Per the LLVM convention. Reviewers: rodgert Subscribers: jkorous, dexonsmith, jdoerfert, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60521 llvm-svn: 358131
* Fix header inclusion order failuresLouis Dionne2019-04-106-0/+144
| | | | | | | | | | | | Summary: See https://bugs.llvm.org/show_bug.cgi?id=41432 Subscribers: libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60525 llvm-svn: 358121
* [pstl] Uglify internal names of the libraryLouis Dionne2019-03-285-5/+5
| | | | llvm-svn: 357203
* [pstl] Introduce forward declarationsLouis Dionne2019-03-282-2/+2
| | | | | | | | | | | | | | | | | Necessary when pstl is included from with <algorithm> and <numeric> to prevent a partially declared standard library when pstl itself uses algorithms from <algorithm> and <numeric>. Also, this patch makes sure that configuration comes via standard headers. Directly including pstl_config.h in implementation files is incompatible with inclusion of pstl into a standard library implementation which provides it's own library wide configuration and may configure the library differently to the pstl_config.h used by the standalone implementation. Differential Revision: https://reviews.llvm.org/D59122 llvm-svn: 357189
* Restructure test suite to follow libc++ standard layoutLouis Dionne2019-03-2756-160/+502
| | | | | | | | | | | | Summary: Subsumes changes requested in https://reviews.llvm.org/D59110 Reviewers: EricWF, ldionne Subscribers: mgorny, krytarowski, jfb, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D59856 llvm-svn: 357124
* [pstl] Gate usage of TBB in test on whether TBB is used as a backendLouis Dionne2019-03-251-1/+1
| | | | | | | __PSTL_USE_PAR_POLICIES is the wrong macro to use there, since the PSTL could conceivably be using parallel policies but not TBB as a backend. llvm-svn: 356935
* [pstl] Make sure unit tests exit with a non-zero error code when they failLouis Dionne2019-03-251-16/+15
| | | | | | | | The previous test system would only print errors to stderr, however CMake (and lit) detect failure via the program returning a non-zero error code. So all the tests would always pretend they passed. llvm-svn: 356921
* [pstl] Remove some warnings when compiling with a recent ClangLouis Dionne2019-02-152-3/+3
| | | | | | | | | There were multiple warnings for lambda captures that are unused, so I removed those captures. I also fixed a couple of -Wsign-compare warnings. Note that some warnings still remain, this change is not exhaustive. llvm-svn: 354148
* [NFC] Fix typo in PSTL testLouis Dionne2019-02-111-2/+2
| | | | | | | Reviewed as https://reviews.llvm.org/D57887. Thanks to jwakely for the patch. llvm-svn: 353727
* Update more file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-1956-224/+168
| | | | | | | | | | | | | | | | | | to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351648
* [pstl] Initial integration with LLVM's CMakeLouis Dionne2018-12-211-0/+34
| | | | | | | | | | | | | | | | | | | | | Summary: This commit adds a check-pstl CMake target that will run the tests we currently have for pstl. Those tests are not using LLVM lit yet, but switching them over should be a transparent change. With this change, we can start relying on the `check-pstl` target for workflows and CI. Note that this commit purposefully does not support the pre-monorepo layout (with subprojects in projects/), since LLVM is moving towards the monorepo layout anyway. Reviewers: jfb Subscribers: mgorny, jkorous, dexonsmith, libcxx-commits, mclow.lists, rodgert Differential Revision: https://reviews.llvm.org/D55963 llvm-svn: 349919
* Initial PSTL commitJF Bastien2018-12-1955-0/+8426
The initial commit of the Parallel STL upstream (under LLVM umbrella) based on Parallel STL 20181204 open source release, which is available by https://github.com/intel/parallelstl Author: Mikhail Dvorskiy <mikhail.dvorskiy@intel.com> Differential Revision: https://reviews.llvm.org/D55889 llvm-svn: 349653
OpenPOWER on IntegriCloud