[clang-tools-extra] [clangd] Construct SmallVector with ArrayRef (NFC) (PR #105829)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/105829.diff 1 Files Affected: - (modified) clang-tools-extra/clangd/TUScheduler.cpp (+1-1) ``diff diff --git a/clang-t

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-23 Thread via cfe-commits
@@ -3298,22 +3315,40 @@ LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) { /// { i16 TypeKind, i16 TypeInfo } /// \endcode /// -/// followed by an array of i8 containing the type name. TypeKind is 0 for an -/// integer, 1 for a floating point value, and

[clang] [clang] Compiler builtin for deduping a list of types (PR #105817)

2024-08-23 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/105817 >From 77003063912f691d246c4f94dd7a952ceace9268 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 23 Aug 2024 11:57:40 + Subject: [PATCH 1/2] [clang] Compiler builtin for deduping a list of types --- .

[clang] Deprecate -fheinous-gnu-extensions; introduce a new warning flag (PR #105821)

2024-08-23 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks for adding that `(Deprecated)` Makes sense to me that a diagnostic would be controlled by a diagnostic flag :) https://github.com/llvm/llvm-project/pull/105821 ___ cfe-commits mailing list

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-23 Thread via cfe-commits
https://github.com/earnol edited https://github.com/llvm/llvm-project/pull/96240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-23 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Sorry about the delayed response.. gmail decided that reviews were spam and so I didn't notice a whole lot of email until I thought to ask myself why the community reviews seemed so quiet lately. :-D I'm going to revert the changes entirely until we can figure out a better

[clang] e3ce979 - Revert "[clang] Increase the default expression nesting limit (#104717)"

2024-08-23 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-08-23T09:49:08-04:00 New Revision: e3ce979f1b3ac1e7f2d0261d3abffbd12064eae6 URL: https://github.com/llvm/llvm-project/commit/e3ce979f1b3ac1e7f2d0261d3abffbd12064eae6 DIFF: https://github.com/llvm/llvm-project/commit/e3ce979f1b3ac1e7f2d0261d3abffbd12064eae6.diff

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-23 Thread via cfe-commits
https://github.com/earnol edited https://github.com/llvm/llvm-project/pull/96240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-23 Thread via cfe-commits
https://github.com/earnol edited https://github.com/llvm/llvm-project/pull/96240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-23 Thread via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -std=c++23 -verify %s + +namespace t1 { +template struct enable_if { typedef void type; }; +template class Foo {}; +template constexpr bool check() { return true; } +template struct Bar {}; + +template void func(Bar()>::type>) {} +// expecte

[clang] [clang] Merge lifetimebound and GSL code paths for lifetime analysis (PR #104906)

2024-08-23 Thread Haojian Wu via cfe-commits
hokein wrote: > I think the PR https://github.com/llvm/llvm-project/pull/104556 should fix > this. The PRdoesn't address this issue, it appears to be a different problem. I have identified the correct solution, so my plan is as follows: 1. Reland this PR without removing EnableLifetimeWarning

[clang] Re-land "[clang] Merge lifetimebound and GSL code paths for li… (PR #105753)

2024-08-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/105753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Re-land "[clang] Merge lifetimebound and GSL code paths for li… (PR #105753)

2024-08-23 Thread Haojian Wu via cfe-commits
hokein wrote: Thanks, acked. Closing it now. I will reland it. https://github.com/llvm/llvm-project/pull/105753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Detect leak of a stack address through output arguments 2/3 (PR #105653)

2024-08-23 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. Thanks for the update, I'm satisfied with this commit now. https://github.com/llvm/llvm-project/pull/105653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-23 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -std=c++23 -verify %s + +namespace t1 { +template struct enable_if { typedef void type; }; +template class Foo {}; +template constexpr bool check() { return true; } +template struct Bar {}; + +template void func(Bar()>::type>) {} +// expecte

[clang] [clang] Merge lifetimebound and GSL code paths for lifetime analysis (PR #104906)

2024-08-23 Thread Louis Dionne via cfe-commits
ldionne wrote: @hokein @vvereschaka Yeah, I get the same conclusion as you. I think that's a false positive, this is just moving the content of an engaged `std::optional`. https://github.com/llvm/llvm-project/pull/104906 ___ cfe-commits mailing list c

[clang] [Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::is_within_lifetime (PR #91895)

2024-08-23 Thread Louis Dionne via cfe-commits
https://github.com/ldionne commented: I did a very cursory review and this seems good to me, the tests seem to cover what the paper was intending to provide. https://github.com/llvm/llvm-project/pull/91895 ___ cfe-commits mailing list cfe-commits@list

[clang] [Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::is_within_lifetime (PR #91895)

2024-08-23 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,431 @@ +// RUN: %clang_cc1 -std=c++20 -Wno-unused %s -verify=expected,cxx20 -Wno-vla-cxx-extension +// RUN: %clang_cc1 -std=c++23 -Wno-unused %s -verify=expected,sincecxx23 -Wno-vla-cxx-extension +// RUN: %clang_cc1 -std=c++26 -Wno-unused %s -verify=expected,sincecxx2

[clang] [Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::is_within_lifetime (PR #91895)

2024-08-23 Thread Louis Dionne via cfe-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/91895 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-23 Thread via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -std=c++23 -verify %s + +namespace t1 { +template struct enable_if { typedef void type; }; +template class Foo {}; +template constexpr bool check() { return true; } +template struct Bar {}; + +template void func(Bar()>::type>) {} +// expecte

[clang] [llvm] [NVPTX] Support __usAtomicCAS builtin (PR #99646)

2024-08-23 Thread via cfe-commits
gonzalobg wrote: > Sorry, I dont get it. Should I press the merge button? Because I dont have > one... or I can't find it No, @Artem-B will press it, I think there is nothing else for you to do. The current failures are not this PRs fault. @Artem-B could we merge this despite the failures? ht

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-23 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -std=c++23 -verify %s + +namespace t1 { +template struct enable_if { typedef void type; }; +template class Foo {}; +template constexpr bool check() { return true; } +template struct Bar {}; + +template void func(Bar()>::type>) {} +// expecte

[clang] Reland "[clang] Merge lifetimebound and GSL code paths for lifetime analysis (#104906)" (PR #105838)

2024-08-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/105838 Reland without the `EnableLifetimeWarnings` removal. I will remove the EnableLifetimeWarnings in a follow-up patch. I have added a test to prevent regression. >From c248c80164965e82807a8682d30ce387f7801cc4 Mon

[clang] Reland "[clang] Merge lifetimebound and GSL code paths for lifetime analysis (#104906)" (PR #105838)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Reland without the `EnableLifetimeWarnings` removal. I will remove the EnableLifetimeWarnings in a follow-up patch. I have added a test to prevent regression. --- Full diff: https://github.com/llvm/llvm-projec

[clang] Reland "[clang] Merge lifetimebound and GSL code paths for lifetime analysis (#104906)" (PR #105838)

2024-08-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff e3ce979f1b3ac1e7f2d0261d3abffbd12064eae6 c248c80164965e82807a8682d30ce387f7801cc4 --e

[clang] 05ce95e - [PS5][clang][test] x86_64-scei-ps5 -> x86_64-sie-ps5 in tests (#105810)

2024-08-23 Thread via cfe-commits
Author: Edd Dawson Date: 2024-08-23T15:58:00+01:00 New Revision: 05ce95ef0412ba8b3e3189db5ed130a9949bbefd URL: https://github.com/llvm/llvm-project/commit/05ce95ef0412ba8b3e3189db5ed130a9949bbefd DIFF: https://github.com/llvm/llvm-project/commit/05ce95ef0412ba8b3e3189db5ed130a9949bbefd.diff LO

[clang] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)

2024-08-23 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/105738 >From 6377cc2f64ba494e769848d257fe683fb0059e6c Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Thu, 22 Aug 2024 09:44:56 -0700 Subject: [PATCH] [Clang] Match MSVC handling of duplicate header search paths

[clang] [PS5][clang][test] x86_64-scei-ps5 -> x86_64-sie-ps5 in tests (PR #105810)

2024-08-23 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd closed https://github.com/llvm/llvm-project/pull/105810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)

2024-08-23 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann edited https://github.com/llvm/llvm-project/pull/105738 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23] Update status page for TS 18661 integration (PR #105693)

2024-08-23 Thread Joshua Cranmer via cfe-commits
https://github.com/jcranmer-intel approved this pull request. https://github.com/llvm/llvm-project/pull/105693 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland "[clang] Merge lifetimebound and GSL code paths for lifetime analysis (#104906)" (PR #105838)

2024-08-23 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/105838 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland "[clang] Merge lifetimebound and GSL code paths for lifetime analysis (#104906)" (PR #105838)

2024-08-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/105838 >From c248c80164965e82807a8682d30ce387f7801cc4 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 23 Aug 2024 16:20:45 +0200 Subject: [PATCH 1/2] Reland "[clang] Merge lifetimebound and GSL code paths for life

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-23 Thread via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -std=c++23 -verify %s + +namespace t1 { +template struct enable_if { typedef void type; }; +template class Foo {}; +template constexpr bool check() { return true; } +template struct Bar {}; + +template void func(Bar()>::type>) {} +// expecte

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-23 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/100692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-23 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: %clang_cc1 -std=c++23 -verify %s + +namespace t1 { +template struct enable_if { typedef void type; }; +template class Foo {}; +template constexpr bool check() { return true; } +template struct Bar {}; + +template void func(Bar()>::type>) {} +// expecte

[clang] [clang][rtsan] Reland realtime sanitizer codegen and driver (#102622) (PR #105841)

2024-08-23 Thread Chris Apple via cfe-commits
https://github.com/cjappl created https://github.com/llvm/llvm-project/pull/105841 This reverts commit a1e9b7e646b76bf844e8a9a101ebd27de11992ff This relands commit d010ec6af8162a8ae4e42d2cac5282f83db0ce07 No modifications from the original patch. It was determined that the ubsan build failure

[clang] f77e8f7 - [clang][rtsan] Reland realtime sanitizer codegen and driver (#102622)

2024-08-23 Thread via cfe-commits
Author: Chris Apple Date: 2024-08-23T08:16:52-07:00 New Revision: f77e8f765e425a575516c16e7034cb448d270fcc URL: https://github.com/llvm/llvm-project/commit/f77e8f765e425a575516c16e7034cb448d270fcc DIFF: https://github.com/llvm/llvm-project/commit/f77e8f765e425a575516c16e7034cb448d270fcc.diff L

[clang] [clang][rtsan] Reland realtime sanitizer codegen and driver (#102622) (PR #105841)

2024-08-23 Thread Chris Apple via cfe-commits
https://github.com/cjappl closed https://github.com/llvm/llvm-project/pull/105841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][rtsan] Reland realtime sanitizer codegen and driver (#102622) (PR #105841)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Chris Apple (cjappl) Changes This reverts commit a1e9b7e646b76bf844e8a9a101ebd27de11992ff This relands commit d010ec6af8162a8ae4e42d2cac5282f83db0ce07 No modifications from the original patch. It was determined that the ubsan buil

[clang] [clang][rtsan] Reland realtime sanitizer codegen and driver (#102622) (PR #105841)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Chris Apple (cjappl) Changes This reverts commit a1e9b7e646b76bf844e8a9a101ebd27de11992ff This relands commit d010ec6af8162a8ae4e42d2cac5282f83db0ce07 No modifications from the original patch. It was deter

[clang] 3faf5b9 - [C23] Update status page for TS 18661 integration (#105693)

2024-08-23 Thread via cfe-commits
Author: Aaron Ballman Date: 2024-08-23T11:17:34-04:00 New Revision: 3faf5b93cfd2b2723851191a244a9616d40771e7 URL: https://github.com/llvm/llvm-project/commit/3faf5b93cfd2b2723851191a244a9616d40771e7 DIFF: https://github.com/llvm/llvm-project/commit/3faf5b93cfd2b2723851191a244a9616d40771e7.diff

[clang] [C23] Update status page for TS 18661 integration (PR #105693)

2024-08-23 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/105693 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-23 Thread Chris Apple via cfe-commits
cjappl wrote: Relanded as f77e8f765e42 https://github.com/llvm/llvm-project/pull/102622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][NFC] Un-constify `MultiLevelTemplateArgumentList` (PR #104687)

2024-08-23 Thread via cfe-commits
cor3ntin wrote: @mizvekov do you think a refactor would help your future work or should @Endilll postpone for now? https://github.com/llvm/llvm-project/pull/104687 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] Deprecate -fheinous-gnu-extensions; introduce a new warning flag (PR #105821)

2024-08-23 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. LGTM @zatrazz https://github.com/llvm/llvm-project/pull/105821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6e78aef - [Clang] Implement P2747 constexpr placement new (#104586)

2024-08-23 Thread via cfe-commits
Author: cor3ntin Date: 2024-08-23T17:24:08+02:00 New Revision: 6e78aef646c22b7087cbf7939c8016f4f59614a1 URL: https://github.com/llvm/llvm-project/commit/6e78aef646c22b7087cbf7939c8016f4f59614a1 DIFF: https://github.com/llvm/llvm-project/commit/6e78aef646c22b7087cbf7939c8016f4f59614a1.diff LOG:

[clang] [Clang] Implement P2747 constexpr placement new (PR #104586)

2024-08-23 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/104586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Construct SmallVector with ArrayRef (NFC) (PR #105829)

2024-08-23 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/105829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Deprecate -fheinous-gnu-extensions; introduce a new warning flag (PR #105821)

2024-08-23 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/105821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [include-cleaner] Turn new/delete usages to ambiguous references (PR #105844)

2024-08-23 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet created https://github.com/llvm/llvm-project/pull/105844 In practice most of these expressions just resolve to implicitly provided `operator new` and standard says it's not necessary to include `` for that. Hence this is resulting in a lot of churn in cases where incl

[clang-tools-extra] [include-cleaner] Turn new/delete usages to ambiguous references (PR #105844)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: kadir çetinkaya (kadircet) Changes In practice most of these expressions just resolve to implicitly provided `operator new` and standard says it's not necessary to include `` for that. Hence this is resulting in a lot of ch

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Anshil Gandhi via cfe-commits
https://github.com/gandhi56 created https://github.com/llvm/llvm-project/pull/105845 Change-Id: I7d8fa4251c80a6f815f55a0998677d18ade25b72 >From 8830b6f390039c9a952a86ea52e8fe9559900448 Mon Sep 17 00:00:00 2001 From: Anshil Gandhi Date: Thu, 22 Aug 2024 18:57:33 + Subject: [PATCH] [AMDGPU]

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anshil Gandhi (gandhi56) Changes Change-Id: I7d8fa4251c80a6f815f55a0998677d18ade25b72 --- Full diff: https://github.com/llvm/llvm-project/pull/105845.diff 3 Files Affected: - (added) clang/test/CodeGenCUDA/gpu-rdc-amdgpu-attrs.cu (+12)

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Anshil Gandhi via cfe-commits
https://github.com/gandhi56 edited https://github.com/llvm/llvm-project/pull/105845 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 6e78aef646c22b7087cbf7939c8016f4f59614a1 8830b6f390039c9a952a86ea52e8fe9559900448 --e

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Anshil Gandhi via cfe-commits
https://github.com/gandhi56 updated https://github.com/llvm/llvm-project/pull/105845 >From d4b8e5b213b4ea9b5b615354d264b71ed76508d5 Mon Sep 17 00:00:00 2001 From: Anshil Gandhi Date: Thu, 22 Aug 2024 18:57:33 + Subject: [PATCH] [AMDGPU][LTO] Assume closed world after linking Change-Id: I7d

[clang] [clang] Implement `__is_virtual_base_of()` intrinsic (PR #100393)

2024-08-23 Thread Louis Dionne via cfe-commits
ldionne wrote: The libc++ part: https://github.com/llvm/llvm-project/pull/105847 https://github.com/llvm/llvm-project/pull/100393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5a25854 - [clangd] Construct SmallVector with ArrayRef (NFC) (#105829)

2024-08-23 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-08-23T08:45:29-07:00 New Revision: 5a25854ed18ec5a51df6d1f7a2366a574a6846b0 URL: https://github.com/llvm/llvm-project/commit/5a25854ed18ec5a51df6d1f7a2366a574a6846b0 DIFF: https://github.com/llvm/llvm-project/commit/5a25854ed18ec5a51df6d1f7a2366a574a6846b0.diff L

[clang-tools-extra] [clangd] Construct SmallVector with ArrayRef (NFC) (PR #105829)

2024-08-23 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/105829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b1560bd - Reland "[clang] Merge lifetimebound and GSL code paths for lifetime analysis (#104906)" (#105838)

2024-08-23 Thread via cfe-commits
Author: Haojian Wu Date: 2024-08-23T17:50:27+02:00 New Revision: b1560bdb2bc67006f3b8f7e84ee0356632bf8126 URL: https://github.com/llvm/llvm-project/commit/b1560bdb2bc67006f3b8f7e84ee0356632bf8126 DIFF: https://github.com/llvm/llvm-project/commit/b1560bdb2bc67006f3b8f7e84ee0356632bf8126.diff LO

[clang] Reland "[clang] Merge lifetimebound and GSL code paths for lifetime analysis (#104906)" (PR #105838)

2024-08-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/105838 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Shilei Tian via cfe-commits
@@ -761,7 +761,8 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) { if (EnableLowerModuleLDS) PM.addPass(AMDGPULowerModuleLDSPass(*this)); if (EnableAMDGPUAttributor && Level != OptimizationLevel::O0) - PM.addPass(AM

[clang] [Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::is_within_lifetime (PR #91895)

2024-08-23 Thread Mital Ashok via cfe-commits
@@ -0,0 +1,431 @@ +// RUN: %clang_cc1 -std=c++20 -Wno-unused %s -verify=expected,cxx20 -Wno-vla-cxx-extension +// RUN: %clang_cc1 -std=c++23 -Wno-unused %s -verify=expected,sincecxx23 -Wno-vla-cxx-extension +// RUN: %clang_cc1 -std=c++26 -Wno-unused %s -verify=expected,sincecxx2

[clang] [Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::is_within_lifetime (PR #91895)

2024-08-23 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,431 @@ +// RUN: %clang_cc1 -std=c++20 -Wno-unused %s -verify=expected,cxx20 -Wno-vla-cxx-extension +// RUN: %clang_cc1 -std=c++23 -Wno-unused %s -verify=expected,sincecxx23 -Wno-vla-cxx-extension +// RUN: %clang_cc1 -std=c++26 -Wno-unused %s -verify=expected,sincecxx2

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. LGTM with one nit https://github.com/llvm/llvm-project/pull/105845 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Shilei Tian via cfe-commits
https://github.com/shiltian requested changes to this pull request. Oops, replied the wrong PR. Sorry. https://github.com/llvm/llvm-project/pull/105845 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Shilei Tian via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: clang -x hip -O3 -fgpu-rdc %s -mllvm -debug-only=amdgpu-attributor -o - | FileCheck %s shiltian wrote: This should not be a clang test. You can have an opt test. https://github.com/llvm/llvm-project/pull/105845

[clang] [llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

2024-08-23 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/105845 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Deprecate -fheinous-gnu-extensions; introduce a new warning flag (PR #105821)

2024-08-23 Thread Reid Kleckner via cfe-commits
https://github.com/rnk approved this pull request. Thanks for doing this! https://github.com/llvm/llvm-project/pull/105821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix null pointer dereference in enum debug info generation (PR #105556)

2024-08-23 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/105556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Add a couple of tests for MMX/SSE intrinsics (PR #105852)

2024-08-23 Thread Paul T Robinson via cfe-commits
https://github.com/pogo59 created https://github.com/llvm/llvm-project/pull/105852 Certain intrinsics map to builtins that require an immediate (literal) argument; make sure we report non-literal arguments. Also verify that shift intrinsics map to the expected builtins. These have been kickin

[clang] [Headers][X86] Add a couple of tests for MMX/SSE intrinsics (PR #105852)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul T Robinson (pogo59) Changes Certain intrinsics map to builtins that require an immediate (literal) argument; make sure we report non-literal arguments. Also verify that shift intrinsics map to the expected builtins. These have been

[clang] [Headers][X86] Add a couple of tests for MMX/SSE intrinsics (PR #105852)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Paul T Robinson (pogo59) Changes Certain intrinsics map to builtins that require an immediate (literal) argument; make sure we report non-literal arguments. Also verify that shift intrinsics map to the expected builtins. These have

[clang] [Clang] Fix null pointer dereference in enum debug info generation (PR #97105)

2024-08-23 Thread via cfe-commits
https://github.com/smanna12 closed https://github.com/llvm/llvm-project/pull/97105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix null pointer dereference in enum debug info generation (PR #97105)

2024-08-23 Thread via cfe-commits
smanna12 wrote: I am unable to add new change in this PR. Follow-up is here: https://github.com/llvm/llvm-project/pull/105556. https://github.com/llvm/llvm-project/pull/97105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-08-23 Thread Max Coplan via cfe-commits
https://github.com/vegerot updated https://github.com/llvm/llvm-project/pull/97926 >From 55e3359cf82d766e8b361b6f167d6cc445853eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20=F0=9F=91=A8=F0=9F=8F=BD=E2=80=8D=F0=9F=92=BB=20Copl?= =?UTF-8?q?an?= Date: Sat, 6 Jul 2024 17:22:55 -0700 Subject: [

[clang] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-08-23 Thread Max Coplan via cfe-commits
https://github.com/vegerot ready_for_review https://github.com/llvm/llvm-project/pull/97926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-08-23 Thread Max Coplan via cfe-commits
vegerot wrote: @mordante @AaronBallman This diff is ready for review 🙂 https://github.com/llvm/llvm-project/pull/97926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] clang generates incorrect fix-its for API_AVAILABLE (PR #105855)

2024-08-23 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder created https://github.com/llvm/llvm-project/pull/105855 Apple's API_AVAILABLE macro has its own notion of platform names which are supported by __API_AVAILABLE_PLATFORM_ macros. They don't follow a consistent naming convention, but there's at least one tha

[clang] [Clang][Sema] clang generates incorrect fix-its for API_AVAILABLE (PR #105855)

2024-08-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ian Anderson (ian-twilightcoder) Changes Apple's API_AVAILABLE macro has its own notion of platform names which are supported by __API_AVAILABLE_PLATFORM_ macros. They don't follow a consistent naming convention, but there's at leas

[clang] [Clang][Sema] clang generates incorrect fix-its for API_AVAILABLE (PR #105855)

2024-08-23 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder edited https://github.com/llvm/llvm-project/pull/105855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] clang generates incorrect fix-its for API_AVAILABLE (PR #105855)

2024-08-23 Thread Ian Anderson via cfe-commits
@@ -488,22 +488,43 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, // Don't offer a fixit for declarations with availability attributes. if (Enclosing->hasAttr()) return; - if (!S.getPreprocessor().isMacroDefined("API_AVAILABLE"

[clang] [Clang][Sema] clang generates incorrect fix-its for API_AVAILABLE (PR #105855)

2024-08-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff a2d8743cc86f96f6b1cbd85798328bd3fb2bf4de 4cbf377e71fe7bd3503fc51c0217d5bb3ae6355e --e

[clang] [Clang] Fix null pointer dereference in enum debug info generation (PR #97105)

2024-08-23 Thread Tom Honermann via cfe-commits
@@ -98,3 +98,6 @@ enum E8 { A8 = -128, B8 = 127 } x8; // CHECK-NOT: DIFlagEnumClass // CHECK: !DIEnumerator(name: "A8", value: -128) +// Forward declaration of an enum class. +enum class Color : int; +// CHECK-NOT: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Color" -

[clang] [llvm] [NVPTX] Support __usAtomicCAS builtin (PR #99646)

2024-08-23 Thread Artem Belevich via cfe-commits
Artem-B wrote: I can land the patch. The buildkite failures appear to be unrelated (something in lldb tests). Let's wait till clang format checks are done. https://github.com/llvm/llvm-project/pull/99646 ___ cfe-commits mailing list cfe-commits@lists

[clang] [compiler-rt] [clang][compiler-rt][test] Removed dirname command substitutions from tests (PR #105754)

2024-08-23 Thread Florian Mayer via cfe-commits
@@ -1,8 +1,9 @@ -// RUN: %clang_hwasan -Wl,--build-id -g %s -o %t -// RUN: echo '[{"prefix": "'"$(realpath $(dirname %s))"'/", "link": "http://test.invalid/{file}:{line}"}]' > %t.linkify -// RUN: %env_hwasan_opts=symbolize=0 not %run %t 2>&1 | hwasan_symbolize --html --symbols $

[clang] [Clang] Fix null pointer dereference in enum debug info generation (PR #105556)

2024-08-23 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann approved this pull request. Per discussion in https://github.com/llvm/llvm-project/pull/97105, this looks good to me. However, please do update the PR title and adjust the commit message accordingly when merging the change as requested by @pogo59. https://github

[clang] [Clang] Assert non-null enum definition in CGDebugInfo (PR #105556)

2024-08-23 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/105556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Assert non-null enum definition in CGDebugInfo (PR #105556)

2024-08-23 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/105556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Assert non-null enum definition in CGDebugInfo (PR #105556)

2024-08-23 Thread via cfe-commits
smanna12 wrote: > Per discussion in #97105, this looks good to me. > > However, please do update the PR title and adjust the commit message > accordingly when merging the change as requested by @pogo59. Thanks @tahonermann and @pogo59 for reviews. I have updated title and commit messages. ht

[clang] [NFC] Fix an incorrect comment about operator precedence. (PR #105784)

2024-08-23 Thread Michael Park via cfe-commits
mpark wrote: > Thanks (Hi!). Do you have commit access or should I merge that for you? Hi Corentin! I have commit access 🙂 https://github.com/llvm/llvm-project/pull/105784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] 1821cb3 - [NFC] Fix an incorrect comment about operator precedence. (#105784)

2024-08-23 Thread via cfe-commits
Author: Michael Park Date: 2024-08-23T10:29:33-07:00 New Revision: 1821cb38995796e1b8d46357c2b26eff4ca0f88c URL: https://github.com/llvm/llvm-project/commit/1821cb38995796e1b8d46357c2b26eff4ca0f88c DIFF: https://github.com/llvm/llvm-project/commit/1821cb38995796e1b8d46357c2b26eff4ca0f88c.diff

[clang] [NFC] Fix an incorrect comment about operator precedence. (PR #105784)

2024-08-23 Thread Michael Park via cfe-commits
https://github.com/mpark closed https://github.com/llvm/llvm-project/pull/105784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxxabi] [libunwind] [libcxxabi][libunwind] Support for using LLVM libc (PR #101688)

2024-08-23 Thread Louis Dionne via cfe-commits
ldionne wrote: Gentle ping https://github.com/llvm/llvm-project/pull/101688 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-23 Thread Helena Kotas via cfe-commits
@@ -459,7 +467,412 @@ void SemaHLSL::handleResourceClassAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(HLSLResourceClassAttr::Create(getASTContext(), RC, ArgLoc)); } -void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) { +struct RegisterBindingFlags {

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-23 Thread Helena Kotas via cfe-commits
@@ -459,7 +467,412 @@ void SemaHLSL::handleResourceClassAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(HLSLResourceClassAttr::Create(getASTContext(), RC, ArgLoc)); } -void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) { +struct RegisterBindingFlags {

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-23 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. https://github.com/llvm/llvm-project/pull/97103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ebc4a66 - Implement resource binding type prefix mismatch diagnostic infrastructure (#97103)

2024-08-23 Thread via cfe-commits
Author: Joshua Batista Date: 2024-08-23T10:47:05-07:00 New Revision: ebc4a66e9b525f7efc03053e3c7472d3e3fb0412 URL: https://github.com/llvm/llvm-project/commit/ebc4a66e9b525f7efc03053e3c7472d3e3fb0412 DIFF: https://github.com/llvm/llvm-project/commit/ebc4a66e9b525f7efc03053e3c7472d3e3fb0412.diff

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-23 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 closed https://github.com/llvm/llvm-project/pull/97103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [include-cleaner] Turn new/delete usages to ambiguous references (PR #105844)

2024-08-23 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/105844 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   >