[clang] [Clang] Diagnose unsatisfied `std::is_assignable`. (PR #144836)

2025-06-19 Thread Ross Kirsling via cfe-commits
rkirsling wrote: Seems like I don't have the ability to add reviewers yet; pinging @cor3ntin and @AaronBallman for visibility. https://github.com/llvm/llvm-project/pull/144836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] Add missing intrinsics to cuda headers (PR #143664)

2025-06-19 Thread Vitor Sessak via cfe-commits
vitor1001 wrote: Create PR #144851 to re-apply it. https://github.com/llvm/llvm-project/pull/143664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-19 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/144161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Emit the CUID value in the module with the new driver (PR #144570)

2025-06-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx approved this pull request. LGTM, thanks. https://github.com/llvm/llvm-project/pull/144570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-19 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: LGTM https://github.com/llvm/llvm-project/pull/142713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Transforms] Add LifetimeMovePass (PR #144319)

2025-06-19 Thread Weibo He via cfe-commits
https://github.com/NewSigma updated https://github.com/llvm/llvm-project/pull/144319 >From 584d47295f7719f96ee77d32a6b4329f82be Mon Sep 17 00:00:00 2001 From: NewSigma Date: Mon, 16 Jun 2025 15:36:53 +0800 Subject: [PATCH 1/8] Add LifetimeMovePass --- clang/test/CodeGenCoroutines/pr56919.

[clang] [llvm] [Transforms] Add LifetimeMovePass (PR #144319)

2025-06-19 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: Lifetimes are very important and crucial. I suggest you to abstract your algorithm and send it to https://discourse.llvm.org/ for wider visibility. https://github.com/llvm/llvm-project/pull/144319 ___ cfe-commi

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-19 Thread Samarth Narang via cfe-commits
@@ -1787,6 +1788,12 @@ def note_unsatisfied_trait_reason "%NonReplaceableField{has a non-replaceable member %1 of type %2}|" "%NTCBase{has a non-trivially-copyable base %1}|" "%NTCField{has a non-trivially-copyable member %1 of type %2}|" +

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #142948)

2025-06-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum requested changes to this pull request. I think I found the reason why the CI doesn't run. Unfortunately it made me realize that the changes here might require some deeper adaptions... So far the CI was a single-step workflow, that just calls the `llvm-project-t

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #142948)

2025-06-19 Thread Jannick Kremer via cfe-commits
@@ -33,7 +33,9 @@ jobs: python-version: ["3.8", "3.13"] uses: ./.github/workflows/llvm-project-tests.yml with: - build_target: check-clang-python + build_target: libclang + run: | +llvm-lit -v tools/clang/test --filter=bindings.sh

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #142948)

2025-06-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/142948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #142948)

2025-06-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/142948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #142948)

2025-06-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/142948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Test 142948 (PR #144873)

2025-06-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/144873 None >From e57e53c7e5abdb4c390a04b4ce9084dec9e71dd5 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 5 Jun 2025 13:40:26 +0200 Subject: [PATCH 1/3] [clang][python][test] Move python binding tests to l

[clang] [llvm] Test 142948 (PR #144873)

2025-06-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum converted_to_draft https://github.com/llvm/llvm-project/pull/144873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Test 142948 (PR #144873)

2025-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-github-workflow @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/144873.diff 39 Files Affected: - (modified) .github/workflows/libclang-python-tests.yml (+15-10) - (mo

[clang] [llvm] Test 142948 (PR #144873)

2025-06-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum ready_for_review https://github.com/llvm/llvm-project/pull/144873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Aditi Medhane (AditiRM) Changes Support the following BCD format conversion builtins for PowerPC. - `__builtin_bcdcopysign` – Conversion that returns the decimal value of the first parameter combined with the sign code of the second par

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aditi Medhane (AditiRM) Changes Support the following BCD format conversion builtins for PowerPC. - `__builtin_bcdcopysign` – Conversion that returns the decimal value of the first parameter combined with the sign code of the second param

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: Aditi Medhane (AditiRM) Changes Support the following BCD format conversion builtins for PowerPC. - `__builtin_bcdcopysign` – Conversion that returns the decimal value of the first parameter combined with the sign code of the se

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-19 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM created https://github.com/llvm/llvm-project/pull/144874 Support the following BCD format conversion builtins for PowerPC. - `__builtin_bcdcopysign` – Conversion that returns the decimal value of the first parameter combined with the sign code of the second parameter

[clang] [Clang][Driver] Warn on complex number range incompatibility with GCC (PR #144468)

2025-06-19 Thread Shunsuke Watanabe via cfe-commits
@@ -520,6 +520,9 @@ def warn_drv_math_errno_enabled_after_veclib: Warning< "math errno enabled by '%0' after it was implicitly disabled by '%1'," " this may limit the utilization of the vector library">, InGroup; +def warn_drv_gcc_incompatible_complex_range_override: Warn

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-19 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/144161 >From 3841ecf80c13101959a97316dda7a1b891e70502 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Fri, 13 Jun 2025 23:22:18 +0200 Subject: [PATCH 1/6] Implement diagnostics for why `std::is_standard_layout`

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-19 Thread Samarth Narang via cfe-commits
@@ -488,3 +488,83 @@ static_assert(__is_trivially_copyable(S12)); // expected-note@-1 {{'S12' is not trivially copyable}} \ // expected-note@#tc-S12 {{'S12' defined here}} } + +namespace standard_layout_tests { +struct WithVirtual { // #sl-Virtual +virtual void foo(); +}; +

[clang] 0fe78c4 - [NFC] [Serialization] Some Code Cleanups for Name lookup table things

2025-06-19 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-06-19T17:54:07+08:00 New Revision: 0fe78c4a290517925acc03d59f235926f440f155 URL: https://github.com/llvm/llvm-project/commit/0fe78c4a290517925acc03d59f235926f440f155 DIFF: https://github.com/llvm/llvm-project/commit/0fe78c4a290517925acc03d59f235926f440f155.diff LO

[clang-tools-extra] [clang-tidy] add new check: modernize-use-scoped-lock (PR #126434)

2025-06-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/126434 >From 81a21a90e03e4b9cea58d6bcffddf3bde0f82710 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 3 Mar 2025 09:25:03 +0300 Subject: [PATCH 01/13] [clang-tidy] add scoped-lock-check --- .../clang-tidy/m

[clang] Add missing intrinsics to cuda headers, take #2 (PR #144851)

2025-06-19 Thread Vitor Sessak via cfe-commits
https://github.com/vitor1001 created https://github.com/llvm/llvm-project/pull/144851 LLVM prevents the sm_32_intrinsics.hpp header from being included with a #define SM_32_INTRINSICS_HPP. It also provides drop-in replacements of the functions defined in the CUDA header. One issue is that som

[clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-19 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/144161 >From 3841ecf80c13101959a97316dda7a1b891e70502 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Fri, 13 Jun 2025 23:22:18 +0200 Subject: [PATCH 1/3] Implement diagnostics for why `std::is_standard_layout`

[clang] Add missing intrinsics to cuda headers, take #2 (PR #144851)

2025-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vitor Sessak (vitor1001) Changes LLVM prevents the sm_32_intrinsics.hpp header from being included with a #define SM_32_INTRINSICS_HPP. It also provides drop-in replacements of the functions defined in the CUDA header. One issue is that

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-19 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/144161 >From 3841ecf80c13101959a97316dda7a1b891e70502 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Fri, 13 Jun 2025 23:22:18 +0200 Subject: [PATCH 1/5] Implement diagnostics for why `std::is_standard_layout`

[clang] [NFC][Clang][AST] Adopt simplified `getTrailingObjects` in AST (PR #144432)

2025-06-19 Thread via cfe-commits
@@ -388,9 +387,7 @@ template class OMPDirectiveListClause : public OMPClause { assert( DK.size() == NumKinds && "Number of directive kinds is not the same as the preallocated buffer"); -std::copy(DK.begin(), DK.end(), - static_cast(this)

[clang] [llvm] [SROA] Vector promote some memsets (PR #133301)

2025-06-19 Thread via cfe-commits
macurtis-amd wrote: > To make the question more precise, would it make sense to change AMDGPUs > unaligned access hook such that https://godbolt.org/z/Gv1j4vjqE will look the > same as on X86? > > That should also fix the motivating problem here. I'll investigate this as an alternative. Thank

[clang] [CIR] Upstream BinAssign for ComplexType (PR #144868)

2025-06-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144868 This change adds support for the BinAssign op and LValueToRValue for ComplexType https://github.com/llvm/llvm-project/issues/141365 >From 8fd8deef461d0a818be9b0d4de66b686dc88a9ed Mon Sep 17 00:00:00 2001 F

[clang] [CIR] Upstream BinAssign for ComplexType (PR #144868)

2025-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change adds support for the BinAssign op and LValueToRValue for ComplexType https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/144868.diff 5

[clang] 2c2ad9a - Reapply "[Clang] Profile singly-resolved UnresolvedLookupExpr with the declaration" (#140680)

2025-06-19 Thread via cfe-commits
Author: Younan Zhang Date: 2025-06-19T14:59:32+08:00 New Revision: 2c2ad9a096e78e9129f8cb2d4ee260eb7e67473f URL: https://github.com/llvm/llvm-project/commit/2c2ad9a096e78e9129f8cb2d4ee260eb7e67473f DIFF: https://github.com/llvm/llvm-project/commit/2c2ad9a096e78e9129f8cb2d4ee260eb7e67473f.diff

[clang] 9ee55e7 - [CIR] Implement folder for VecSplatOp (#143771)

2025-06-19 Thread via cfe-commits
Author: Amr Hesham Date: 2025-06-19T09:01:51+02:00 New Revision: 9ee55e717308757b580dff182fc23b40d1c18a56 URL: https://github.com/llvm/llvm-project/commit/9ee55e717308757b580dff182fc23b40d1c18a56 DIFF: https://github.com/llvm/llvm-project/commit/9ee55e717308757b580dff182fc23b40d1c18a56.diff LO

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/143771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [libc++][Clang] Added explanation why is_constructible evaluated to false. Updated the diagnostics checks in libc++ tests. (PR #144220)

2025-06-19 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: > @philnik777 Is it my fault that tests fail with `Error: Process completed > with exit code 255`? No, it's the CI being problematic. I've restarted the failed CI. https://github.com/llvm/llvm-project/pull/144220 ___ cfe-commits mai

[clang] Revert "[CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail()" (PR #144850)

2025-06-19 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez created https://github.com/llvm/llvm-project/pull/144850 Reverts llvm/llvm-project#136133 From 366be49837a1fa669d836cc167b1b6dbf2725110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Thu, 19 Jun 2025 09:11:36 +0200 Subjec

[clang] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-06-19 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: > @jmmartinez It appears that CUDA tests are broken by this change, because it > uses `noexcept` which is a C++11 feature not available with c++98: > https://lab.llvm.org/buildbot/#/builders/69/builds/22562/steps/8/logs/stdio > > ``` > FAILED: > External/CUDA/CMakeFiles/algo

[clang] Revert "[CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail()" (PR #144850)

2025-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Juan Manuel Martinez Caamaño (jmmartinez) Changes Reverts llvm/llvm-project#136133 --- Full diff: https://github.com/llvm/llvm-project/pull/144850.diff 2 Files Affected: - (modified) clang/lib/Headers/CMakeLists.txt (-1) - (removed) cl

[clang] [Clang] Verify data layout consistency (PR #144720)

2025-06-19 Thread Nikita Popov via cfe-commits
nikic wrote: @rjmccall From a Clang perspective, largely no -- but not entirely. There are cases when LLVM materializes allocations based on the data layout in ways that are observable and not controllable by Clang. One of these is certain inline asm constraints (which can end up passing const

[clang] 52ff58c - Revert "[CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail()" (#144850)

2025-06-19 Thread via cfe-commits
Author: Juan Manuel Martinez Caamaño Date: 2025-06-19T10:06:50+02:00 New Revision: 52ff58c3300338876ae63126ce0d1000f1ba URL: https://github.com/llvm/llvm-project/commit/52ff58c3300338876ae63126ce0d1000f1ba DIFF: https://github.com/llvm/llvm-project/commit/52ff58c3300338876ae63126ce0d333

[clang] Revert "[CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail()" (PR #144850)

2025-06-19 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez closed https://github.com/llvm/llvm-project/pull/144850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Correctly handle lambda-converted function pointers (PR #144906)

2025-06-19 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/144906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3