[clang] [sanitizer] Fix empty string in unsupported argument error for -fsanitize-trap (PR #136549)

2025-05-08 Thread Sinkevich Artem via cfe-commits
ArtSin wrote: PTAL @thurstond https://github.com/llvm/llvm-project/pull/136549 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Use BuiltinType::isFloatingPoint() in Type::isFloatingType() (PR #139035)

2025-05-08 Thread Timm Baeder via cfe-commits
tbaederr wrote: I considered that the comparison is inlined in `isFloatingType` for performance reasons, but the git log doesn't suggest anything like that. https://github.com/llvm/llvm-project/pull/139035 ___ cfe-commits mailing list cfe-commits@list

[clang] [git-clang-format] add fallback style argument option (PR #137609)

2025-05-08 Thread Andrej Pištek via cfe-commits
https://github.com/apdofficial edited https://github.com/llvm/llvm-project/pull/137609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Reorder type checks in classify() (PR #139046)

2025-05-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/139046 Move the member pointer check further below and remove Complex/Vector type checks and instead rely on the final return to handle those. >From 7ec6c9f5508766ffa1860fe84ac7c0c2a7e64d8e Mon Sep 17 00:00:00 2001 F

[clang] [clang][bytecode] Reorder type checks in classify() (PR #139046)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Move the member pointer check further below and remove Complex/Vector type checks and instead rely on the final return to handle those. --- Full diff: https://github.com/llvm/llvm-project/pull/139046.diff

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-08 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/137849 >From 5b3a9ed3ed2f258a178e0c17891e2d9ae4f21446 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Tue, 6 May 2025 17:47:07 +0800 Subject: [PATCH 1/3] [Clang][CodeGen] Enable pointer overflow check for GCC worka

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-08 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/137849 >From 5b3a9ed3ed2f258a178e0c17891e2d9ae4f21446 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Tue, 6 May 2025 17:47:07 +0800 Subject: [PATCH 1/4] [Clang][CodeGen] Enable pointer overflow check for GCC worka

[clang] [clang][bytecode] Slightly optimize integral casts of literals (PR #138879)

2025-05-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/138879 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] Filter out configuration file from compile commands (PR #131099)

2025-05-08 Thread Konrad Kleine via cfe-commits
kwk wrote: @aaupov ping https://github.com/llvm/llvm-project/pull/131099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [git-clang-format] add fallback style argument option (PR #137609)

2025-05-08 Thread Andrej Pištek via cfe-commits
apdofficial wrote: > @llvm/pr-subscribers-clang-format > > Author: Andrej Pištek (apdofficial) > Changes Please let me know whether the updated description is sufficient. If noy, I can update it. Thank you. https://github.com/llvm/llvm-project/pull/137609 _

[clang] [git-clang-format] add fallback style argument option (PR #137609)

2025-05-08 Thread Andrej Pištek via cfe-commits
https://github.com/apdofficial edited https://github.com/llvm/llvm-project/pull/137609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [git-clang-format] add fallback style argument option (PR #137609)

2025-05-08 Thread Andrej Pištek via cfe-commits
https://github.com/apdofficial edited https://github.com/llvm/llvm-project/pull/137609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-08 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/137849 >From 5b3a9ed3ed2f258a178e0c17891e2d9ae4f21446 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Tue, 6 May 2025 17:47:07 +0800 Subject: [PATCH 1/2] [Clang][CodeGen] Enable pointer overflow check for GCC worka

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-08 Thread Yingwei Zheng via cfe-commits
@@ -4169,10 +4169,10 @@ static Value *emitPointerArithmetic(CodeGenFunction &CGF, // The index is not pointer-sized. // The pointer type is not byte-sized. // - if (BinaryOperator::isNullPointerArithmeticExtension(CGF.getContext(), -

[clang] [clang][bytecode] Slightly optimize integral casts of literals (PR #138879)

2025-05-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/138879 >From d20a16354c6f61ecb62ce68239eb3f94adc6f6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 6 May 2025 16:37:34 +0200 Subject: [PATCH] We often see initializers like unsigned a = 10;

[clang] [clang-format] Handle C# where clause in SeparateDefinitionBlocks (PR #139034)

2025-05-08 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/139034 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-05-08 Thread Mallikarjuna Gouda via cfe-commits
mgoudar wrote: hi @brad0 I am seeing fails in https://lab.llvm.org/buildbot/#/builders/94 post this pr merge. test llvm/test/CodeGen/Mips/msa/arithmetic.ll fails with a crash. I am trying to reproduce at my side https://github.com/llvm/llvm-project/pull/134985 ___

[clang] [Clang][AArch64] Add fp8 variants for untyped NEON intrinsics (PR #128019)

2025-05-08 Thread Momchil Velikov via cfe-commits
@@ -5464,6 +5464,15 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, Builder.CreateStore(errorValue, swiftErrorTemp); } +// Mfloat8 type is loaded as scalar type, but is treated as single +// vector type for other operation

[clang] FEAT: 1 byte for "true" & "false" (PR #138713)

2025-05-08 Thread Alexander Potapenko via cfe-commits
ramosian-glider wrote: > Yeah! you are right that the size depends on the variable, but I never said > to create a variable. > Suppose I have two functions performing same process but one is returning > bool and other one is returning int. > > 1. bool fnc1() { return (_Bool)true; } > 2. int fnc

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-08 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 HEAD~1 HEAD --extensions cpp,c -- clang/lib/CodeGen/CGExprScalar.cpp clang/test/Code

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Ties Stuij via cfe-commits
https://github.com/stuij created https://github.com/llvm/llvm-project/pull/139055 This patch adds initial support for the recently announced tiny-A Armv9 Cortex-A320. For more information, including the Technical Reference Manual, see: https://developer.arm.com/Processors/Cortex-A320 >From 1

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Jack Styles via cfe-commits
@@ -1109,10 +1125,12 @@ class ProcessorAlias { def : ProcessorModel<"generic", CortexA510Model, ProcessorFeatures.Generic, [FeatureFuseAES, FeatureFuseAdrpAdd, FeaturePostRAScheduler, FeatureEnableSelectOptimize]>; -def : ProcessorMod

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/139057 When checking the constraints of a potential redeclaration we inject the template parameter as template arguments to compare them. This would make clang: - try to expand these injected parameters (which ar

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes When checking the constraints of a potential redeclaration we inject the template parameter as template arguments to compare them. This would make clang: - try to expand these injected parameters (which are

[clang] [Clang] Ignore -fchar8_t in C (PR #138716)

2025-05-08 Thread via cfe-commits
@@ -5,6 +5,7 @@ // RUN: %clang_cc1 -std=c++17 -verify %s // RUN: %clang_cc1 -std=c++17 -verify %s -fno-char8_t // RUN: %clang_cc1 -std=c++20 -verify %s -fno-char8_t +// RUN: %clang_cc1 -x c -verify %s -fchar8_t cor3ntin wrote: #139058 https://github.com/llvm/

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread Younan Zhang via cfe-commits
@@ -76,9 +77,18 @@ enum class TemplateSubstitutionKind : char { class MultiLevelTemplateArgumentList { /// The template argument list at a certain template depth +enum ListProperties { + /// A 'Final' substitution means that Subst* nodes won't be built + //

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: Thanks for working on it. Will take a closer look later https://github.com/llvm/llvm-project/pull/139057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] b3ef15a - [RISCV] Fix generation of DWARF info for vector segmented types (#137941)

2025-05-08 Thread via cfe-commits
Author: Kirill Radkin Date: 2025-05-08T18:29:27+08:00 New Revision: b3ef15aa00c94aa937cb40cd7f9483140c62514d URL: https://github.com/llvm/llvm-project/commit/b3ef15aa00c94aa937cb40cd7f9483140c62514d DIFF: https://github.com/llvm/llvm-project/commit/b3ef15aa00c94aa937cb40cd7f9483140c62514d.diff

[clang] [RISCV] Fix generation of DWARF info for vector segmented types (PR #137941)

2025-05-08 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng closed https://github.com/llvm/llvm-project/pull/137941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Ignore -fchar8_t in C (PR #138716)

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

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2025-05-08 Thread Paul Heidekrüger via cfe-commits
https://github.com/paulhdk updated https://github.com/llvm/llvm-project/pull/95220 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-se

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Ties Stuij via cfe-commits
@@ -1109,10 +1125,12 @@ class ProcessorAlias { def : ProcessorModel<"generic", CortexA510Model, ProcessorFeatures.Generic, [FeatureFuseAES, FeatureFuseAdrpAdd, FeaturePostRAScheduler, FeatureEnableSelectOptimize]>; -def : ProcessorMod

[clang] [clang][bytecode] Slightly optimize integral casts of literals (PR #138879)

2025-05-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/138879 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] [RISCV] Fix generation of DWARF info for vector segmented types (PR #137941)

2025-05-08 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/137941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Fix generation of DWARF info for vector segmented types (PR #137941)

2025-05-08 Thread via cfe-commits
github-actions[bot] wrote: @kr-sc Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build, y

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/139057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland [Clang] Deprecate `__is_trivially_relocatable` (PR #139061)

2025-05-08 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/139061 The C++26 standard relocatable type traits has slightly different semantics, so we introduced a new ``__builtin_is_cpp_trivially_relocatable`` when implementing trivial relocation in #127636. However, having mu

[clang] Reland [Clang] Deprecate `__is_trivially_relocatable` (PR #139061)

2025-05-08 Thread via cfe-commits
cor3ntin wrote: Ensure that the ps4 targets tests are run everywhere https://github.com/llvm/llvm-project/pull/139061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread David Green via cfe-commits
https://github.com/davemgreen commented: Can you add a release-note that this new CPU has been added? https://github.com/llvm/llvm-project/pull/139055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread David Green via cfe-commits
@@ -1262,7 +1262,7 @@ INSTANTIATE_TEST_SUITE_P( AArch64CPUAliasTestParams::PrintToStringParamName); // Note: number of CPUs includes aliases. -static constexpr unsigned NumAArch64CPUArchs = 89; +static constexpr unsigned NumAArch64CPUArchs = 90; davemgreen

[clang] [git-clang-format] add fallback style argument option (PR #137609)

2025-05-08 Thread Andrej Pištek via cfe-commits
https://github.com/apdofficial edited https://github.com/llvm/llvm-project/pull/137609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Jonathan Thackray via cfe-commits
@@ -228,6 +228,7 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) { .Case("0xd14", "cortex-r82ae") .Case("0xd02", "cortex-a34") .Case("0xd04", "cortex-a35") +.Case("0xd8f", "cortex-a320") jthackray wr

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread Younan Zhang via cfe-commits
@@ -2060,14 +2064,17 @@ TemplateName TemplateInstantiator::TransformTemplateName( return Arg.getAsTemplate(); } - auto [AssociatedDecl, Final] = + auto [AssociatedDecl, Final, ArgumentsAreInjectedTemplateParams] = TemplateArgs.getAssociatedD

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/139057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] Fix crash with invalid concept requirement (PR #138877)

2025-05-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Does this also fix: #138823 I don't believe so, at least from my testing on godbolt (which should have my changes, from the git hash they have with --version). https://github.com/llvm/llvm-project/pull/138877 ___ cfe-commits mai

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread Younan Zhang via cfe-commits
@@ -6884,7 +6884,7 @@ TreeTransform::TransformPackIndexingType(TypeLocBuilder &TLB, assert(!Unexpanded.empty() && "Pack expansion without parameter packs?"); // Determine whether the set of unexpanded parameter packs can and should // be expanded. -bool ShouldE

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Ties Stuij via cfe-commits
https://github.com/stuij edited https://github.com/llvm/llvm-project/pull/139055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Ties Stuij via cfe-commits
https://github.com/stuij updated https://github.com/llvm/llvm-project/pull/139055 >From ae088a5bd5a336ea3e04732e236e867f3bfcb747 Mon Sep 17 00:00:00 2001 From: Ties Stuij Date: Tue, 14 Jan 2025 11:32:33 + Subject: [PATCH] [AARCH64] Add support for Cortex-A320 This patch adds initial suppor

[clang] 245def9 - [Clang][NFC] Put potentially expensive check behind NDEBUG

2025-05-08 Thread Corentin Jabot via cfe-commits
Author: Corentin Jabot Date: 2025-05-08T13:27:50+02:00 New Revision: 245def9def7b025644a8cf991ba24c53a50822c6 URL: https://github.com/llvm/llvm-project/commit/245def9def7b025644a8cf991ba24c53a50822c6 DIFF: https://github.com/llvm/llvm-project/commit/245def9def7b025644a8cf991ba24c53a50822c6.diff

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Thank you for your patience! > > In general, I think adding a new qualifier to Clang needs to come with > > significant justification for the implementation and maintenance costs. In > > this specific case, those costs are somewhat amortized because we already > > have

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread David Green via cfe-commits
https://github.com/davemgreen edited https://github.com/llvm/llvm-project/pull/139055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Ties Stuij (stuij) Changes This patch adds initial support for the recently announced tiny-A Armv9 Cortex-A320. For more information, including the Technical Reference Manual, see: https://developer.arm.

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Younan Zhang (zyn0217) Changes Instead of merely suggesting the template arguments are invalid, we now provide an explanation of why the explicit template argument is invalid, following the last diagnostic note. For example, ```

[clang] [analyzer] Workaround for slowdown spikes (unintended scope increase) (PR #136720)

2025-05-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/136720 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans

[clang] [clang][bytecode] Slightly optimize integral casts of literals (PR #138879)

2025-05-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/138879 >From c06949b212d3ce4a09bb978d1e5eceb4f4a1b1f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 6 May 2025 16:37:34 +0200 Subject: [PATCH] We often see initializers like unsigned a = 10;

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-05-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/139066 >From a6ee1af04225063bab4d853611c7a57b1db37aa9 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Thu, 8 May 2025 19:42:51 +0800 Subject: [PATCH] [Clang] Do not eat SFINAE diagnostics for explicit template argum

[clang] [analyzer] Workaround for slowdown spikes (unintended scope increase) (PR #136720)

2025-05-08 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource approved this pull request. Thank you! https://github.com/llvm/llvm-project/pull/136720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-05-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/139066 Instead of merely suggesting the template arguments are invalid, we now provide an explanation of why the explicit template argument is invalid, following the last diagnostic note. For example, ```cpp templat

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes Instead of merely suggesting the template arguments are invalid, we now provide an explanation of why the explicit template argument is invalid, following the last diagnostic note. For example, ```cpp temp

[clang] [analyzer] Workaround for slowdown spikes (unintended scope increase) (PR #136720)

2025-05-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/136720 From 011008bd03f66e9afdfb3eec24a1c1c8a4018f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Tue, 22 Apr 2025 16:46:05 +0200 Subject: [PATCH 1/7] [analyzer] Workaround for unintended slowdo

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: I think this LGTM in general, but please wait for some time in case @erichkeane @mizvekov have some ideas https://github.com/llvm/llvm-project/pull/139057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [clang-tools-extra] [clang][dataflow][WIP] Add bugprone-dataflow-dead-code check (PR #139068)

2025-05-08 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 HEAD~1 HEAD --extensions cpp,h -- clang-tools-extra/clang-tidy/bugprone/DataflowDeadC

[clang] [clang-tools-extra] [clang][dataflow][WIP] Add bugprone-dataflow-dead-code check (PR #139068)

2025-05-08 Thread via cfe-commits
https://github.com/Discookie updated https://github.com/llvm/llvm-project/pull/139068 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread via cfe-commits
cor3ntin wrote: Note that I tried #106585 - but it doesn't fix this issue (and the present patch does not address the tests cases of @sdkrystian's PR) https://github.com/llvm/llvm-project/pull/139057 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread via cfe-commits
@@ -6884,7 +6884,7 @@ TreeTransform::TransformPackIndexingType(TypeLocBuilder &TLB, assert(!Unexpanded.empty() && "Pack expansion without parameter packs?"); // Determine whether the set of unexpanded parameter packs can and should // be expanded. -bool ShouldE

[clang] [clang-tools-extra] [clang][dataflow][WIP] Add bugprone-dataflow-dead-code check (PR #139068)

2025-05-08 Thread via cfe-commits
https://github.com/Discookie created https://github.com/llvm/llvm-project/pull/139068 Finds instances of always-true and always-false conditions in branch statements, a straightforward use case for the dataflow framework. This check is a work in progress - the core of the check is simple, but

[clang] [clang-tools-extra] [clang][dataflow][WIP] Add bugprone-dataflow-dead-code check (PR #139068)

2025-05-08 Thread via cfe-commits
https://github.com/Discookie updated https://github.com/llvm/llvm-project/pull/139068 >From faca1abebdd4ca3b2b6e2032df8987c8e84a5680 Mon Sep 17 00:00:00 2001 From: Viktor Date: Thu, 8 May 2025 12:08:37 + Subject: [PATCH 1/2] [clang][dataflow] Add bugprone-dataflow-dead-code check --- .../

[clang] Reland [Clang] Deprecate `__is_trivially_relocatable` (PR #139061)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes The C++26 standard relocatable type traits has slightly different semantics, so we introduced a new ``__builtin_is_cpp_trivially_relocatable`` when implementing trivial relocation in #127636. However, having mul

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-05-08 Thread Aaron Ballman via cfe-commits
@@ -1538,11 +1533,44 @@ def CUDAShared : InheritableAttr { } def : MutualExclusions<[CUDAConstant, CUDAShared, HIPManaged]>; -def SYCLKernel : InheritableAttr { - let Spellings = [Clang<"sycl_kernel">]; - let Subjects = SubjectList<[FunctionTmpl]>; - let LangOpts = [SYCLDev

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-05-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/137882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-05-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: CC @erichkeane and @jdoerfert for other opinions on the direction this is heading, but my initial thoughts are that this is not unreasonable. But I'd love to hear from others! https://github.com/llvm/llvm-project/pull/137882 __

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-05-08 Thread Lucas Ramirez via cfe-commits
https://github.com/lucas-rami updated https://github.com/llvm/llvm-project/pull/138284 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,san

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-08 Thread Alexandre Ganea via cfe-commits
aganea wrote: Since the [MSVC flag](https://learn.microsoft.com/en-us/cpp/build/reference/hotpatch-create-hotpatchable-image?view=msvc-170) `/HOTPATCH` has been supported in LLVM and clang-cl for quite a while now (see [this](https://reviews.llvm.org/D116511), and #77245 and #87639) the descr

[clang] [Clang][counted_by] Add support for 'counted_by' on struct pointers (PR #137250)

2025-05-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/137250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-05-08 Thread Aaron Ballman via cfe-commits
@@ -1538,11 +1533,44 @@ def CUDAShared : InheritableAttr { } def : MutualExclusions<[CUDAConstant, CUDAShared, HIPManaged]>; -def SYCLKernel : InheritableAttr { - let Spellings = [Clang<"sycl_kernel">]; - let Subjects = SubjectList<[FunctionTmpl]>; - let LangOpts = [SYCLDev

[clang] [clang-tools-extra] [clang][dataflow] Add bugprone-dataflow-dead-code check (PR #139068)

2025-05-08 Thread via cfe-commits
https://github.com/Discookie edited https://github.com/llvm/llvm-project/pull/139068 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Handle C# where clause in SeparateDefinitionBlocks (PR #139034)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #61956 --- Full diff: https://github.com/llvm/llvm-project/pull/139034.diff 2 Files Affected: - (modified) clang/lib/Format/DefinitionBlockSeparator.cpp (+6) - (modified) clang/unittests/Format/Defi

[clang] [clang-format] Handle C# where clause in SeparateDefinitionBlocks (PR #139034)

2025-05-08 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/139034 Fix #61956 >From 11a3f6f44914e40b49f9ce00256724ce1fb82fa1 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 8 May 2025 00:12:44 -0700 Subject: [PATCH] [clang-format] Handle C# where clause in SeparateDefinitio

[clang] [clang][NFC] Use BuiltinType::isFloatingPoint() in Type::isFloatingType() (PR #139035)

2025-05-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/139035 They both used to do the same comparison of getKind() to Half and Ibm128. Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; fo

[clang] [clang][NFC] Use BuiltinType::isFloatingPoint() in Type::isFloatingType() (PR #139035)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes They both used to do the same comparison of getKind() to Half and Ibm128. --- Full diff: https://github.com/llvm/llvm-project/pull/139035.diff 1 Files Affected: - (modified) clang/lib/AST/Type.cpp (+1-2)

[clang] [clang] UEFI default ABI (PR #138364)

2025-05-08 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/138364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Use BuiltinType::isFloatingPoint() in Type::isFloatingType() (PR #139035)

2025-05-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/139035 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-05-08 Thread Erich Keane via cfe-commits
@@ -12166,6 +12174,15 @@ static void DiagnoseBadDeduction(Sema &S, NamedDecl *Found, Decl *Templated, diag::note_ovl_candidate_explicit_arg_mismatch_unnamed) << (index + 1); } + +if (PartialDiagnosticAt *PDiag = DeductionFailure.getSFINAEDiagnost

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-05-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I like the change, it is a very positive difference. I'm not quite sure I get the partial-diagnostic/generating the string, and https://github.com/llvm/llvm-project/pull/139066 ___ cfe-commits mailing list cf

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-05-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/139066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-05-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > @AaronBallman oh thanks for the review! one problem at the moment is that the > tests cover features that are dependent on the ptrauth options parsing PR, as > well as the null value authentication work, etc > > I'm not sure the best path forward for dealing with all the

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-08 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/139057 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Jack Styles via cfe-commits
https://github.com/Stylie777 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/139055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Add initial ARM64EC support (PR #138583)

2025-05-08 Thread Martin Storsjö via cfe-commits
@@ -1181,7 +1228,9 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext) #endif +#ifndef __arm64ec__ mstorsjo wrote: Thanks, that's indeed cleaner when one clearly see which bits are the arm64ec version of that line. https://github.com/llvm/llvm-project/pull/1385

[clang] refactor(libclang): add CXS_StringRef (PR #139093)

2025-05-08 Thread via cfe-commits
https://github.com/illusory0x0 edited https://github.com/llvm/llvm-project/pull/139093 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-05-08 Thread via cfe-commits
macurtis-amd wrote: @nikic ping ping ping https://github.com/llvm/llvm-project/pull/133301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] execute `evalCast` for all kinds of Region which has a binding in RegionStore (PR #139095)

2025-05-08 Thread via cfe-commits
https://github.com/flovent created https://github.com/llvm/llvm-project/pull/139095 This PR aims to fix crash caused by `std::bit_cast`(#137417) and `__builtin_bit_cast`(#71174). The crash caused by `std::bit_cast` is actually due to the `__builtin_bit_cast` used in its implementation (see th

[clang] [clang][analyzer] execute `evalCast` for all kinds of Region which has a binding in RegionStore (PR #139095)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (flovent) Changes This PR aims to fix crash caused by `std::bit_cast`(#137417) and `__builtin_bit_cast`(#71174). The crash caused by `std::bit_cast` is actually due to the `__builtin_bit_cast` used in its implement

[clang] [clang][analyzer] execute `evalCast` for all kinds of Region which has a binding in RegionStore (PR #139095)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (flovent) Changes This PR aims to fix crash caused by `std::bit_cast`(#137417) and `__builtin_bit_cast`(#71174). The crash caused by `std::bit_cast` is actually due to the `__builtin_bit_cast` used in its implementation (see the cod

[clang-tools-extra] [clang-tidy] Add flag to specify an alternative to std::forward (PR #138755)

2025-05-08 Thread Dimitrije Dobrota via cfe-commits
https://github.com/DimitrijeDobrota edited https://github.com/llvm/llvm-project/pull/138755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2ec0883 - Revert "[MIPS] Add FeatureMSA to i6400 and i6500 cores (#134985)"

2025-05-08 Thread Kirill Stoimenov via cfe-commits
Author: Kirill Stoimenov Date: 2025-05-08T15:39:10Z New Revision: 2ec08836d1fd78e9efcdfd6f1307f35c8ec633e7 URL: https://github.com/llvm/llvm-project/commit/2ec08836d1fd78e9efcdfd6f1307f35c8ec633e7 DIFF: https://github.com/llvm/llvm-project/commit/2ec08836d1fd78e9efcdfd6f1307f35c8ec633e7.diff L

[clang] [CIR] Cleanup support for C functions (PR #136854)

2025-05-08 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/136854 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-ser

[clang] [flang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-05-08 Thread via cfe-commits
@@ -0,0 +1,84 @@ +//===-- llvm/Target/TargetVerifier.h - LLVM IR Target Verifier --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [CIR] Cleanup support for C functions (PR #136854)

2025-05-08 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/136854 >From dbe66e5e48f769589592e22bcfb8c122910d91d1 Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Thu, 8 May 2025 23:40:15 +0800 Subject: [PATCH] [CIR] Cleanup support for C functions --- clang/lib/CIR/C

[clang] [clang][Unit Test] Updating Negative Stat Caching Diagnostic Unit Test (PR #138955)

2025-05-08 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/138955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >