#
bd1bb8cd |
| 29-Sep-2022 |
Roy Jacobson <roi.jacobson1@gmail.com> |
[Clang] define __cpp_named_character_escapes
Define the feature test macro for named character escapes. I assume this was not done because it was implemented before formally accepted, right? cxx_sta
[Clang] define __cpp_named_character_escapes
Define the feature test macro for named character escapes. I assume this was not done because it was implemented before formally accepted, right? cxx_status says the paper is implemented.
Reviewed By: cor3ntin
Differential Revision: https://reviews.llvm.org/D134898
show more ...
|
#
6523814c |
| 29-Sep-2022 |
Roy Jacobson <roi.jacobson1@gmail.com> |
[Clang] P1169R4: static operator()
Implements 'P1169R4: static operator()' from C++2b.
Reviewed By: #clang-language-wg, aaron.ballman
Differential Revision: https://reviews.llvm.org/D133659
|
Revision tags: llvmorg-15.0.0 |
|
#
b1c960fc |
| 25-Aug-2022 |
Roy Jacobson <roi.jacobson1@gmail.com> |
[Clang] Implement P0848 (Conditionally Trivial Special Member Functions)
This patch implements P0848 in Clang.
During the instantiation of a C++ class, in `Sema::ActOnFields`, we evaluate constrain
[Clang] Implement P0848 (Conditionally Trivial Special Member Functions)
This patch implements P0848 in Clang.
During the instantiation of a C++ class, in `Sema::ActOnFields`, we evaluate constraints for all the SMFs and compare the constraints to compute the eligibility. We defer the computation of the type's [copy-]trivial bits from addedMember to the eligibility computation, like we did for destructors in D126194. `canPassInRegisters` is modified as well to better respect the ineligibility of functions.
Note: Because of the non-implementation of DR1734 and DR1496, I treat deleted member functions as 'eligible' for the purpose of [copy-]triviallity. This is unfortunate, but I couldn't think of a way to make this make sense otherwise.
Reviewed By: #clang-language-wg, cor3ntin, aaron.ballman
Differential Revision: https://reviews.llvm.org/D128619
show more ...
|
Revision tags: llvmorg-15.0.0-rc3 |
|
#
70770a16 |
| 25-Aug-2022 |
Roy Jacobson <roi.jacobson1@gmail.com> |
Revert "[Clang] Implement P0848 (Conditionally Trivial Special Member Functions)"
See bug report here: https://github.com/llvm/llvm-project/issues/57351 This reverts commit 7171615099142ed49042c0f27
Revert "[Clang] Implement P0848 (Conditionally Trivial Special Member Functions)"
See bug report here: https://github.com/llvm/llvm-project/issues/57351 This reverts commit 7171615099142ed49042c0f27af437b05150dd9b.
show more ...
|
#
71716150 |
| 22-Aug-2022 |
Roy Jacobson <roi.jacobson1@gmail.com> |
[Clang] Implement P0848 (Conditionally Trivial Special Member Functions)
This patch implements P0848 in Clang.
During the instantiation of a C++ class, in `Sema::ActOnFields`, we evaluate constrain
[Clang] Implement P0848 (Conditionally Trivial Special Member Functions)
This patch implements P0848 in Clang.
During the instantiation of a C++ class, in `Sema::ActOnFields`, we evaluate constraints for all the SMFs and compare the constraints to compute the eligibility. We defer the computation of the type's [copy-]trivial bits from addedMember to the eligibility computation, like we did for destructors in D126194. `canPassInRegisters` is modified as well to better respect the ineligibility of functions.
Note: Because of the non-implementation of DR1734 and DR1496, I treat deleted member functions as 'eligible' for the purpose of [copy-]triviallity. This is unfortunate, but I couldn't think of a way to make this make sense otherwise.
Reviewed By: #clang-language-wg, cor3ntin, aaron.ballman
Differential Revision: https://reviews.llvm.org/D128619
show more ...
|
Revision tags: llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init |
|
#
02a25279 |
| 21-Jul-2022 |
Ryan Prichard <rprichard@google.com> |
[Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin
Correct the logic used to set `ATOMIC_*_LOCK_FREE` preprocessor macros not to rely on the ABI alignment of types. Instead, just assum
[Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin
Correct the logic used to set `ATOMIC_*_LOCK_FREE` preprocessor macros not to rely on the ABI alignment of types. Instead, just assume all those types are aligned correctly by default since clang uses safe alignment for `_Atomic` types even if the underlying types are aligned to a lower boundary by default.
For example, the `long long` and `double` types on x86 are aligned to 32-bit boundary by default. However, `_Atomic long long` and `_Atomic double` are aligned to 64-bit boundary, therefore satisfying the requirements of lock-free atomic operations.
This fixes PR #19355 by correcting the value of `__GCC_ATOMIC_LLONG_LOCK_FREE` on x86, and therefore also fixing the assumption made in libc++ tests. This also fixes PR #30581 by applying a consistent logic between the functions used to implement both interfaces.
Reviewed By: hfinkel, efriedma
Differential Revision: https://reviews.llvm.org/D28213
show more ...
|
#
3b0dce5b |
| 16-Jul-2022 |
Kazu Hirata <kazu@google.com> |
Use value_or (NFC)
|
#
cb2c8f69 |
| 14-Jul-2022 |
Kazu Hirata <kazu@google.com> |
[clang] Use value instead of getValue (NFC)
|
#
97afce08 |
| 26-Jun-2022 |
Kazu Hirata <kazu@google.com> |
[clang] Don't use Optional::hasValue (NFC)
This patch replaces Optional::hasValue with the implicit cast to bool in conditionals only.
|
#
3b7c3a65 |
| 25-Jun-2022 |
Kazu Hirata <kazu@google.com> |
Revert "Don't use Optional::hasValue (NFC)"
This reverts commit aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d.
|
#
aa8feeef |
| 25-Jun-2022 |
Kazu Hirata <kazu@google.com> |
Don't use Optional::hasValue (NFC)
|
Revision tags: llvmorg-14.0.6 |
|
#
06decd0b |
| 19-Jun-2022 |
Kazu Hirata <kazu@google.com> |
[clang] Use value_or instead of getValueOr (NFC)
|
#
439a675a |
| 11-Jun-2022 |
Kazu Hirata <kazu@google.com> |
Use getValueOr (NFC)
|
Revision tags: llvmorg-14.0.5 |
|
#
aa9b3389 |
| 05-Jun-2022 |
Yuki Okushi <jtitor@2k36.org> |
[clang] Remove some `U+C2AD`s in `__cpp_multidimensional_subscript`
The `Builder.defineMacro("__cpp_multidimensional_subscript", "202110L");` line has some `U+C2AD`s that shouldn't necessary here. S
[clang] Remove some `U+C2AD`s in `__cpp_multidimensional_subscript`
The `Builder.defineMacro("__cpp_multidimensional_subscript", "202110L");` line has some `U+C2AD`s that shouldn't necessary here. So removed them.
Differential Revision: https://reviews.llvm.org/D127066
show more ...
|
Revision tags: llvmorg-14.0.4 |
|
#
13e1a653 |
| 05-May-2022 |
Xiang Li <python3kgae@outlook.com> |
[HLSL] Enable vector types for hlsl.
Vector types in hlsl is using clang ext_vector_type. Declaration of vector types is in builtin header hlsl.h. hlsl.h will be included by default for hlsl shader.
[HLSL] Enable vector types for hlsl.
Vector types in hlsl is using clang ext_vector_type. Declaration of vector types is in builtin header hlsl.h. hlsl.h will be included by default for hlsl shader.
Reviewed By: Anastasia
Differential Revision: https://reviews.llvm.org/D125052
show more ...
|
#
c4eb8035 |
| 30-May-2022 |
Nico Weber <thakis@chromium.org> |
Revert "[HLSL] Enable vector types for hlsl."
This reverts commit e576280380d3f5221cfcc14e9fabeacc8506a43c. Breaks tests on mac/arm, see comment on https://reviews.llvm.org/D125052
Also revert foll
Revert "[HLSL] Enable vector types for hlsl."
This reverts commit e576280380d3f5221cfcc14e9fabeacc8506a43c. Breaks tests on mac/arm, see comment on https://reviews.llvm.org/D125052
Also revert follow-up "[gn build] Port e576280380d3" This reverts commit 1e01b1ec72031fcaceb4e77e1c5c8e34f1e862e8.
show more ...
|
#
e5762803 |
| 05-May-2022 |
Xiang Li <python3kgae@outlook.com> |
[HLSL] Enable vector types for hlsl.
Vector types in hlsl is using clang ext_vector_type. Declaration of vector types is in builtin header hlsl.h. hlsl.h will be included by default for hlsl shader.
[HLSL] Enable vector types for hlsl.
Vector types in hlsl is using clang ext_vector_type. Declaration of vector types is in builtin header hlsl.h. hlsl.h will be included by default for hlsl shader.
Reviewed By: Anastasia
Differential Revision: https://reviews.llvm.org/D125052
show more ...
|
#
6bbf51f3 |
| 07-May-2022 |
Sam McCall <sam.mccall@gmail.com> |
[Frontend] Move, don't copy the predefines buffer into PP. NFC.
It's not trivially small, >10kb.
|
#
50c959b4 |
| 03-May-2022 |
Aaron Ballman <aaron@aaronballman.com> |
Add explicit OpenMP 5.0 case for version macros; NFC
This adds an explicit case for OpenMP 5.0 as a reminder to still define the correct macro value when the default OpenMP version changes in the fu
Add explicit OpenMP 5.0 case for version macros; NFC
This adds an explicit case for OpenMP 5.0 as a reminder to still define the correct macro value when the default OpenMP version changes in the future.
show more ...
|
Revision tags: llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1 |
|
#
7a94a032 |
| 29-Mar-2022 |
Chris Bieneman <chris.bieneman@me.com> |
NFC. Fixing rebase error
Somehow managed to get a double-assignment in there. Thanks @erichkeane for pointing it out!
|
#
5b6207f3 |
| 29-Mar-2022 |
Chris Bieneman <chris.bieneman@me.com> |
[ADT] Flesh out HLSL raytracing environments
Fleshing this out now allows me to rely on enum math to translate values rather than having to translate the off cases.
I should have added this in the
[ADT] Flesh out HLSL raytracing environments
Fleshing this out now allows me to rely on enum math to translate values rather than having to translate the off cases.
I should have added this in the first pass, but wasn't thinking about it.
show more ...
|
#
d394f9f8 |
| 28-Mar-2022 |
Chris Bieneman <chris.bieneman@me.com> |
Add HLSL Language Option and Preprocessor
Bringing in HLSL as a language as well as language options for each of the HLSL language standards.
While the HLSL language is unimplemented, this patch ad
Add HLSL Language Option and Preprocessor
Bringing in HLSL as a language as well as language options for each of the HLSL language standards.
While the HLSL language is unimplemented, this patch adds the HLSL-specific preprocessor defines which enables testing of the command line options through the driver.
Reviewed By: pete, rnk
Differential Revision: https://reviews.llvm.org/D122087
show more ...
|
Revision tags: llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3, llvmorg-14.0.0-rc2, llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2, llvmorg-13.0.1-rc1 |
|
#
683e83c5 |
| 05-Oct-2021 |
Corentin Jabot <corentinjabot@gmail.com> |
[Clang][C++2b] P2242R3: Non-literal variables [...] in constexpr
Allow goto, labelled statements as well as `static`, `thread_local`, and non-literal variables in `constexpr` functions.
As specifie
[Clang][C++2b] P2242R3: Non-literal variables [...] in constexpr
Allow goto, labelled statements as well as `static`, `thread_local`, and non-literal variables in `constexpr` functions.
As specified. for all of the above (except labelled statements) constant evaluation of the construct still fails.
For `constexpr` bodies, the proposal is implemented with diagnostics as a language extension in older language modes. For determination of whether a lambda body satisfies the requirements for a constexpr function, the proposal is implemented only in C++2b mode to retain the semantics of older modes for programs conforming to them.
Reviewed By: aaron.ballman, hubert.reinterpretcast, erichkeane
Differential Revision: https://reviews.llvm.org/D111400
show more ...
|
#
9d899d8f |
| 22-Feb-2022 |
Yaxun (Sam) Liu <yaxun.liu@amd.com> |
[HIP] Support `-fgpu-default-stream`
Introduce -fgpu-default-stream={legacy|per-thread} option to support per-thread default stream for HIP runtime.
When -fgpu-default-stream=per-thread, HIP kernel
[HIP] Support `-fgpu-default-stream`
Introduce -fgpu-default-stream={legacy|per-thread} option to support per-thread default stream for HIP runtime.
When -fgpu-default-stream=per-thread, HIP kernels are launched through hipLaunchKernel_spt instead of hipLaunchKernel. Also HIP_API_PER_THREAD_DEFAULT_STREAM=1 is defined by the preprocessor to enable other per-thread stream API's.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D120298
show more ...
|
#
1592d88a |
| 19-Oct-2021 |
Zahira Ammarguellat <zahira.ammarguellat@intel.com> |
Add support for floating-point option `ffp-eval-method` and for `pragma clang fp eval_method`.
Differential Revision: https://reviews.llvm.org/D109239
|