Marshall Clow
fb20aaa0a0
Implement most of P1612R1: Relocate endian. Moves the std::endian functionality from 'type-traits' to 'bit'. No other change. The reason that this is 'partial' is that P1621 also recommends a feature-test macro, but I don't have the value for that one yet. In a month or so, I'll add that
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@366776 91177308-0d34-0410-b5e6-96231b3b80d8
2019-07-23 04:20:19 +00:00
Marshall Clow
3c73561841
Reorganize the 'bit' header to make most of the facilities available for internal use pre-C++20. NFC for external users
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@365854 91177308-0d34-0410-b5e6-96231b3b80d8
2019-07-12 01:01:55 +00:00
Marshall Clow
e299a7e9c8
Use new '__libcpp_is_constant_evaluated' call to remove an '#ifdef' from the bit code. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@364884 91177308-0d34-0410-b5e6-96231b3b80d8
2019-07-02 03:21:16 +00:00
Marshall Clow
6062354517
Bit Operations: P0556, P0553 and P1355. Reviewed as: https://reviews.llvm.org/D51262
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@364862 91177308-0d34-0410-b5e6-96231b3b80d8
2019-07-01 23:00:32 +00:00
Chandler Carruth
7c3769df62
Update more file headers across all of the LLVM projects in the monorepo
...
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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@351648 91177308-0d34-0410-b5e6-96231b3b80d8
2019-01-19 10:56:40 +00:00
Marshall Clow
e3973fd962
Implement the infrastructure for feature-test macros. Very few actual feature test macros, though. Reviewed as: https://reviews.llvm.org/D51955
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@342073 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-12 19:41:40 +00:00
Marshall Clow
f017e1e2a4
Refactor the newly created <bit> header. Still (almost) NFC. Reviewed as https://reviews.llvm.org/D50876
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@340049 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-17 17:27:25 +00:00
Marshall Clow
6c372355ba
Recommit r339943 - Establish the <bit> header. NFC yet. Reviewed as https://reviews.llvm.org/D50815 - with a fix for the sanitizer bots
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@340045 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-17 16:07:48 +00:00
Vitaly Buka
245791ae73
Revert "Establish the <bit> header. NFC yet. Reviewed as https://reviews.llvm.org/D50815 "
...
Breaks build on sanitizer bots.
This reverts commit r339943.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@339971 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-16 23:57:16 +00:00
Marshall Clow
fbd46738b1
Establish the <bit> header. NFC yet. Reviewed as https://reviews.llvm.org/D50815
...
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@339943 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-16 21:35:38 +00:00