[clang] [Clang][CodeGen] Fix type for atomic float incdec operators (PR #107075)

2024-09-04 Thread Nikita Popov via cfe-commits
nikic wrote: Manual backport for reference: https://github.com/llvm/llvm-project/pull/107184 https://github.com/llvm/llvm-project/pull/107075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [CGOpenMPRuntime] Use DenseMap::operator[] (NFC) (PR #107185)

2024-09-04 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/107185 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Preserve the fully-substituted flag in PackIndexingType (PR #107181)

2024-09-04 Thread via cfe-commits
cor3ntin wrote: This looks reasonable but for pack expressions we added a `ExpandedToEmptyPack` instead and i think there is value in having consistency between types and expression packs indexing. WDYT? https://github.com/llvm/llvm-project/pull/107181 _

[clang] [Clang] Treat default template argument as constant expressions (PR #107073)

2024-09-04 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/107073 >From 5edd9a9abe019af2a14ccf9fbf43858f4141071b Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 3 Sep 2024 11:25:27 +0200 Subject: [PATCH 1/3] [Clang] Treat default template argument as constant expres

[clang] [Clang] Workaround dependent source location issues (PR #106925)

2024-09-04 Thread via cfe-commits
@@ -5443,11 +5443,24 @@ struct EnsureImmediateInvocationInDefaultArgs // Rewrite to source location to refer to the context in which they are used. ExprResult TransformSourceLocExpr(SourceLocExpr *E) { -if (E->getParentContext() == SemaRef.CurContext) +DeclContext

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-04 Thread Piyou Chen via cfe-commits
BeMg wrote: Support `priority` syntax for target_version https://github.com/llvm/llvm-project/pull/99040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-04 Thread Piyou Chen via cfe-commits
BeMg wrote: stack on https://github.com/llvm/llvm-project/pull/85786 https://github.com/llvm/llvm-project/pull/99040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Treat default template argument as constant expressions (PR #107073)

2024-09-04 Thread via cfe-commits
@@ -97,3 +97,29 @@ void foo() { } #endif + +#if __cplusplus >= 202002L +void GH107048() { + constexpr int x{}; + const int y{}; + auto b = []{}; + using A = decltype([]{}); + + int z; // expected-note {{'z' declared here}} + auto c = []{ +// expected-error@-1 {{no ma

[clang] [RISCV][FMV] Support target_clones (PR #85786)

2024-09-04 Thread Piyou Chen via cfe-commits
https://github.com/BeMg edited https://github.com/llvm/llvm-project/pull/85786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-09-04 Thread Jonas Gollenz via cfe-commits
jgollenz wrote: @seranu gentle ping :slightly_smiling_face: are you still working on this MR? https://github.com/llvm/llvm-project/pull/78957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-09-04 Thread via cfe-commits
seranu wrote: @jgollenz hey, I'm not currently working on this MR. https://github.com/llvm/llvm-project/pull/78957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Preserve the fully-substituted flag in PackIndexingType (PR #107181)

2024-09-04 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/107181 >From 40421929c74a1494ba358457a9e6579b48998112 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 4 Sep 2024 12:50:32 +0800 Subject: [PATCH 1/2] [Clang] Preserve the fully-substituted flag in PackIndexingTy

[clang] [Clang] Preserve the fully-substituted flag in PackIndexingType (PR #107181)

2024-09-04 Thread Younan Zhang via cfe-commits
zyn0217 wrote: > This looks reasonable but for pack expressions we added a > `ExpandedToEmptyPack` instead and i think there is value in having > consistency between types and expression packs indexing. WDYT? Makes sense to me :) https://github.com/llvm/llvm-project/pull/107181 __

[clang] [Clang] Preserve the ExpandsToEmpty flag in PackIndexingType (PR #107181)

2024-09-04 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/107181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Preserve the ExpandsToEmpty flag in PackIndexingType (PR #107181)

2024-09-04 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/107181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-04 Thread Malay Sanghi via cfe-commits
@@ -0,0 +1,115 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=i686-linux -mattr=+avx10.2-256 | FileCheck %s --check-prefix=X86 +; RUN: llc < %s -mtriple=x86_64-linux -mattr=+avx10.2-256 | FileCheck %s --check-prefix=X6

[clang] [Clang] Preserve the ExpandsToEmpty flag in PackIndexingType (PR #107181)

2024-09-04 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/107181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-04 Thread Malay Sanghi via cfe-commits
@@ -2122,6 +2122,36 @@ TARGET_BUILTIN(__builtin_ia32_vpdpwuud256, "V8iV8iV8iV8i", "nV:256:", "avxvnniin TARGET_BUILTIN(__builtin_ia32_vpdpwuuds128, "V4iV4iV4iV4i", "nV:128:", "avxvnniint16|avx10.2-256") TARGET_BUILTIN(__builtin_ia32_vpdpwuuds256, "V8iV8iV8iV8i", "nV:256:", "a

[clang] [Clang] Workaround dependent source location issues (PR #106925)

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

[clang] [Clang] Treat default template argument as constant expressions (PR #107073)

2024-09-04 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/107073 >From 5edd9a9abe019af2a14ccf9fbf43858f4141071b Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 3 Sep 2024 11:25:27 +0200 Subject: [PATCH 1/3] [Clang] Treat default template argument as constant expres

[clang] [C++20] [Modules] Offer -fmodules-embed-all-files option (PR #107194)

2024-09-04 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/107194 See https://discourse.llvm.org/t/rfc-modules-should-we-embed-sources-to-the-bmi/81029 for details. Close https://github.com/llvm/llvm-project/issues/72383 >From 8d0f91815f21d2badc86945b4be19ef21ce76efc Mon

[clang] [C++20] [Modules] Offer -fmodules-embed-all-files option (PR #107194)

2024-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes See https://discourse.llvm.org/t/rfc-modules-should-we-embed-sources-to-the-bmi/81029 for details. Close https://github.com/llvm/llvm-project/issues/72383 --- Full diff: https://github.com/llvm/llv

[clang] [C++20] [Modules] Offer -fmodules-embed-all-files option (PR #107194)

2024-09-04 Thread Chuanqi Xu via cfe-commits
@@ -3162,6 +3162,12 @@ def modules_reduced_bmi : Flag<["-"], "fexperimental-modules-reduced-bmi">, HelpText<"Generate the reduced BMI">, MarshallingInfoFlag>; +def fmodules_embed_all_files : Joined<["-"], "fmodules-embed-all-files">, ChuanqiXu9 wrote: I

[clang] 01e5684 - [clang] Respect the lifetimebound in assignment operator. (#106997)

2024-09-04 Thread via cfe-commits
Author: Haojian Wu Date: 2024-09-04T10:09:04+02:00 New Revision: 01e56849001b4ace984e9557abc82bc051e03677 URL: https://github.com/llvm/llvm-project/commit/01e56849001b4ace984e9557abc82bc051e03677 DIFF: https://github.com/llvm/llvm-project/commit/01e56849001b4ace984e9557abc82bc051e03677.diff LO

[clang] [clang] Respect the lifetimebound in assignment operator. (PR #106997)

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

[clang] [RISCV][FMV] Support target_clones (PR #85786)

2024-09-04 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/85786 >From 395ce72afbf9e4b12fcbfaf9cdbda8921c9ff72a Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Tue, 23 Jul 2024 19:59:06 -0700 Subject: [PATCH 01/16] [RISCV][FMV] Support target_clones --- .../clang/Basic/Diagnosti

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-09-04 Thread via cfe-commits
pidgeon777 wrote: Hopefully we're closer and closer to a merge, this really is a missing feature. I think this is the only LSP provider supporting just only one of the callHierarchy methods. https://github.com/llvm/llvm-project/pull/77556 ___ cfe-com

[clang] [Clang] Preserve the ExpandsToEmpty flag in PackIndexingType (PR #107181)

2024-09-04 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/107181 >From 40421929c74a1494ba358457a9e6579b48998112 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 4 Sep 2024 12:50:32 +0800 Subject: [PATCH 1/2] [Clang] Preserve the fully-substituted flag in PackIndexingTy

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-04 Thread Phoebe Wang via cfe-commits
@@ -2122,6 +2122,36 @@ TARGET_BUILTIN(__builtin_ia32_vpdpwuud256, "V8iV8iV8iV8i", "nV:256:", "avxvnniin TARGET_BUILTIN(__builtin_ia32_vpdpwuuds128, "V4iV4iV4iV4i", "nV:128:", "avxvnniint16|avx10.2-256") TARGET_BUILTIN(__builtin_ia32_vpdpwuuds256, "V8iV8iV8iV8i", "nV:256:", "a

[clang] aacdc65 - [Clang] Preserve the ExpandsToEmpty flag in PackIndexingType (#107181)

2024-09-04 Thread via cfe-commits
Author: Younan Zhang Date: 2024-09-04T16:34:27+08:00 New Revision: aacdc657fc255b2547bb37ee9bacde2df0452298 URL: https://github.com/llvm/llvm-project/commit/aacdc657fc255b2547bb37ee9bacde2df0452298 DIFF: https://github.com/llvm/llvm-project/commit/aacdc657fc255b2547bb37ee9bacde2df0452298.diff

[clang] [Clang] Preserve the ExpandsToEmpty flag in PackIndexingType (PR #107181)

2024-09-04 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/107181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8133d47 - [CGOpenMPRuntime] Use DenseMap::operator[] (NFC) (#107185)

2024-09-04 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-04T01:35:47-07:00 New Revision: 8133d47632f35df00933bfd3d3626b003206ede4 URL: https://github.com/llvm/llvm-project/commit/8133d47632f35df00933bfd3d3626b003206ede4 DIFF: https://github.com/llvm/llvm-project/commit/8133d47632f35df00933bfd3d3626b003206ede4.diff L

[clang] [CGOpenMPRuntime] Use DenseMap::operator[] (NFC) (PR #107185)

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

[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

2024-09-04 Thread Sebastian Kreutzer via cfe-commits
sebastiankreutzer wrote: Ping https://github.com/llvm/llvm-project/pull/90959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Treat default template argument as constant expressions (PR #107073)

2024-09-04 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/107073 >From 5edd9a9abe019af2a14ccf9fbf43858f4141071b Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 3 Sep 2024 11:25:27 +0200 Subject: [PATCH 1/3] [Clang] Treat default template argument as constant expres

[clang] 030e4d0 - [Clang] Treat default template argument as constant expressions (#107073)

2024-09-04 Thread via cfe-commits
Author: cor3ntin Date: 2024-09-04T10:38:18+02:00 New Revision: 030e4d0cdf4c43a6ec1ca301b5a358991fa2ac4f URL: https://github.com/llvm/llvm-project/commit/030e4d0cdf4c43a6ec1ca301b5a358991fa2ac4f DIFF: https://github.com/llvm/llvm-project/commit/030e4d0cdf4c43a6ec1ca301b5a358991fa2ac4f.diff LOG:

[clang] [Clang] Treat default template argument as constant expressions (PR #107073)

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

[clang] [Clang] Workaround dependent source location issues (PR #106925)

2024-09-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/3457 Here is the relevant piece of the b

[clang] [analyzer] [MallocChecker] suspect all release functions as candidate for suppression (PR #104599)

2024-09-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. I'm satisfied with the current state of this commit, but let's wait a few days for a review from @Szelethus (or anybody else interested). https://github.com/llvm/llvm-project/pull/104599 ___ cfe

[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)

2024-09-04 Thread via cfe-commits
https://github.com/JinjinLi868 updated https://github.com/llvm/llvm-project/pull/89051 >From 3c2e873551aa85abe9011996c5adfaac544d0104 Mon Sep 17 00:00:00 2001 From: JinjinLi868 Date: Wed, 4 Sep 2024 16:43:48 +0800 Subject: [PATCH] [clang] Fix half && bfloat16 convert node expr codegen Data typ

[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)

2024-09-04 Thread via cfe-commits
JinjinLi868 wrote: > > > > @JinjinLi868 are you still working on this? > > > > > > > > > yes, i am. could you give me some advice and can i help you ? > > > > > > Can we have a scalar only patch as @arsenm requested? > > ok, you mean, i remove the vector testcase for this patch. and just sav

[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)

2024-09-04 Thread via cfe-commits
JinjinLi868 wrote: > > ok, you mean, i remove the vector testcase for this patch. and just save > > the scalar testcase? > > No, keep the tests. Only keep the scalar behavior change. The previous > revision was essentially correct and minimal i have changed. just save the scalar on this patch

[clang] [llvm] [AArch64] Implement NEON vamin/vamax intrinsics (PR #99041)

2024-09-04 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: Ping? https://github.com/llvm/llvm-project/pull/99041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][HLSL] Add WaveIsFirstLane() intrinsic (PR #103299)

2024-09-04 Thread Nathan Gauër via cfe-commits
Keenuts wrote: Merging to unblock the structurizer work. Let me know if you had a specific SEMA check in mind to add in the end! https://github.com/llvm/llvm-project/pull/103299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] afb6daf - [clang][HLSL] Add WaveIsFirstLane() intrinsic (#103299)

2024-09-04 Thread via cfe-commits
Author: Nathan Gauër Date: 2024-09-04T11:27:03+02:00 New Revision: afb6dafc6b680fb204d40c7fee4b339aa8471010 URL: https://github.com/llvm/llvm-project/commit/afb6dafc6b680fb204d40c7fee4b339aa8471010 DIFF: https://github.com/llvm/llvm-project/commit/afb6dafc6b680fb204d40c7fee4b339aa8471010.diff

[clang] [llvm] [clang][HLSL] Add WaveIsFirstLane() intrinsic (PR #103299)

2024-09-04 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts closed https://github.com/llvm/llvm-project/pull/103299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CLANG][AArch64] Add the modal 8 bit floating-point scalar type (PR #97277)

2024-09-04 Thread via cfe-commits
@@ -1139,6 +1139,7 @@ class ASTContext : public RefCountedBase { CanQualType SatShortFractTy, SatFractTy, SatLongFractTy; CanQualType SatUnsignedShortFractTy, SatUnsignedFractTy, SatUnsignedLongFractTy; + CanQualType MFloat8Ty; CarolineConcatto wrote

[clang] 59093ca - [AARCH64][SVE] Add intrinsics for SVE LUTI instructions (#97058)

2024-09-04 Thread via cfe-commits
Author: Lukacma Date: 2024-09-04T10:39:43+01:00 New Revision: 59093cae8681fe5d3d951905887b67a99acf76e6 URL: https://github.com/llvm/llvm-project/commit/59093cae8681fe5d3d951905887b67a99acf76e6 DIFF: https://github.com/llvm/llvm-project/commit/59093cae8681fe5d3d951905887b67a99acf76e6.diff LOG:

[clang] [llvm] [AARCH64][SVE] Add intrinsics for SVE LUTI instructions (PR #97058)

2024-09-04 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/97058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3e948eb - [AArch64][NEON] Add intrinsics for LUTI (#96883)

2024-09-04 Thread via cfe-commits
Author: Lukacma Date: 2024-09-04T10:39:59+01:00 New Revision: 3e948eb3e88d89107406ca0812934bea42101e3a URL: https://github.com/llvm/llvm-project/commit/3e948eb3e88d89107406ca0812934bea42101e3a DIFF: https://github.com/llvm/llvm-project/commit/3e948eb3e88d89107406ca0812934bea42101e3a.diff LOG:

[clang] [llvm] [AArch64][NEON] Add intrinsics for LUTI (PR #96883)

2024-09-04 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/96883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-04 Thread Ilya Biryukov via cfe-commits
@@ -1419,6 +1419,28 @@ is not specified. }]; } +def ExplicitInitDocs : Documentation { + let Category = DocCatField; + let Content = [{ +The ``clang::explicit_init`` attribute indicates that the field must be +initialized explicitly by the caller when the class is construc

[clang] [clang] Catch missing format attributes (PR #105479)

2024-09-04 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From a204ad516eb74fbef26822175d5198f7d56f8064 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[clang-tools-extra] d25e24a - [clang-tidy] Suggest using reinterpret_cast in bugprone-casting-thro… (#106784)

2024-09-04 Thread via cfe-commits
Author: Carlos Galvez Date: 2024-09-04T11:49:16+02:00 New Revision: d25e24a0eb909b7604572d28d15cbe648ecccd90 URL: https://github.com/llvm/llvm-project/commit/d25e24a0eb909b7604572d28d15cbe648ecccd90 DIFF: https://github.com/llvm/llvm-project/commit/d25e24a0eb909b7604572d28d15cbe648ecccd90.diff

[clang-tools-extra] [clang-tidy] Suggest using reinterpret_cast in bugprone-casting-thro… (PR #106784)

2024-09-04 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/106784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-04 Thread Ilya Biryukov via cfe-commits
@@ -1472,3 +1472,25 @@ template struct Outer { }; }; Outer::Inner outerinner; + +void aggregate() { + struct B { +[[clang::explicit_init]] int f1; + }; + + struct S : B { // expected-warning {{uninitialized}} +int f2; +int f3 [[clang::explicit_init]]; + }; + +

[clang] [llvm] [AArch64] Implement intrinsics for SVE FAMIN/FAMAX (PR #99042)

2024-09-04 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: Rebased. https://github.com/llvm/llvm-project/pull/99042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] Extend diagnose_if to accept more detailed warning information (PR #70976)

2024-09-04 Thread Nikolas Klauser via cfe-commits
@@ -101,91 +102,164 @@ namespace clang { }; } -class DiagnosticMapping { - LLVM_PREFERRED_TYPE(diag::Severity) - unsigned Severity : 3; - LLVM_PREFERRED_TYPE(bool) - unsigned IsUser : 1; - LLVM_PREFERRED_TYPE(bool) - unsigned IsPragma : 1; - LLVM_PREFERRED_TYPE(bo

[clang] [clang] Diagnose dangling issues for the "Container" case. (PR #107213)

2024-09-04 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/107213 This pull request enhances the GSL lifetime analysis to detect situations where a dangling `Container` object is constructed: ```cpp std::vector bad = {std::string()}; // dangling ``` The assignment case is n

[clang] [clang] Diagnose dangling issues for the "Container" case. (PR #107213)

2024-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes This pull request enhances the GSL lifetime analysis to detect situations where a dangling `Container` object is constructed: ```cpp std::vector bad = {std::string()}; // dangling

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-04 Thread Malay Sanghi via cfe-commits
@@ -2122,6 +2122,36 @@ TARGET_BUILTIN(__builtin_ia32_vpdpwuud256, "V8iV8iV8iV8i", "nV:256:", "avxvnniin TARGET_BUILTIN(__builtin_ia32_vpdpwuuds128, "V4iV4iV4iV4i", "nV:128:", "avxvnniint16|avx10.2-256") TARGET_BUILTIN(__builtin_ia32_vpdpwuuds256, "V8iV8iV8iV8i", "nV:256:", "a

[clang] [llvm] [AArch64][NEON] Add intrinsics for LUTI (PR #96883)

2024-09-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/61

[clang] [Clang] Fix handling of placeholder variables name in init captures (PR #107055)

2024-09-04 Thread Nikita Popov via cfe-commits
nikic wrote: For reference, the manual cherry pick is https://github.com/llvm/llvm-project/pull/107214. https://github.com/llvm/llvm-project/pull/107055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] 4f130fa - [flang][Driver] support -fno-openmp (#107087)

2024-09-04 Thread via cfe-commits
Author: Tom Eccles Date: 2024-09-04T11:28:47+01:00 New Revision: 4f130fa943af8bf47f4401deff0d825a91dc7584 URL: https://github.com/llvm/llvm-project/commit/4f130fa943af8bf47f4401deff0d825a91dc7584 DIFF: https://github.com/llvm/llvm-project/commit/4f130fa943af8bf47f4401deff0d825a91dc7584.diff LO

[clang] [flang] [flang][Driver] support -fno-openmp (PR #107087)

2024-09-04 Thread Tom Eccles via cfe-commits
https://github.com/tblah closed https://github.com/llvm/llvm-project/pull/107087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix CLANG_BOOTSTRAP_TARGETS in Release.cmake (PR #106407)

2024-09-04 Thread Konrad Kleine via cfe-commits
https://github.com/kwk updated https://github.com/llvm/llvm-project/pull/106407 >From f64a72d67a201334cefc08b5725aa033f1610e70 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Wed, 28 Aug 2024 17:22:29 +0200 Subject: [PATCH] Fix CLANG_BOOTSTRAP_TARGETS in Release.cmake Take all `LLVM_RELEASE_

[clang] Fix CLANG_BOOTSTRAP_TARGETS in Release.cmake (PR #106407)

2024-09-04 Thread Konrad Kleine via cfe-commits
https://github.com/kwk deleted https://github.com/llvm/llvm-project/pull/106407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] Allow disabling of types from the command line (PR #107126)

2024-09-04 Thread Tom Eccles via cfe-commits
https://github.com/tblah approved this pull request. I agree with other reviewers that a generic option would be better than a list of particular types. But for me that's just a nit because these are hidden debug options anyway https://github.com/llvm/llvm-project/pull/107126 _

[clang] include REQUIRES guard to aarch64-neon-luti.c (PR #107217)

2024-09-04 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/107217 None >From 96dedc0b0b37ffc26313dd683c04179bbc751d9e Mon Sep 17 00:00:00 2001 From: Lukacma Date: Wed, 4 Sep 2024 11:54:04 +0100 Subject: [PATCH] include REQUIRES guard to aarch64-neon-luti.c --- clang/test/Co

[clang] include REQUIRES guard to aarch64-neon-luti.c (PR #107217)

2024-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Lukacma) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/107217.diff 1 Files Affected: - (modified) clang/test/CodeGen/aarch64-neon-luti.c (+1) ``diff diff --git a/clang/test/CodeGen/aarch64-neon-luti.

[clang] 6d35634 - include REQUIRES guard to aarch64-neon-luti.c (#107217)

2024-09-04 Thread via cfe-commits
Author: Lukacma Date: 2024-09-04T11:58:07+01:00 New Revision: 6d3563422ce6f431b837221932d32db4c9681fc5 URL: https://github.com/llvm/llvm-project/commit/6d3563422ce6f431b837221932d32db4c9681fc5 DIFF: https://github.com/llvm/llvm-project/commit/6d3563422ce6f431b837221932d32db4c9681fc5.diff LOG:

[clang] include REQUIRES guard to aarch64-neon-luti.c (PR #107217)

2024-09-04 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/107217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove the EnableLifetimeWarnings flag in lifetime analysis. (PR #105884)

2024-09-04 Thread Haojian Wu via cfe-commits
@@ -393,11 +392,9 @@ static void visitFunctionCallArguments(IndirectLocalPath &Path, Expr *Call, Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); if (Arg->isGLValue()) visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding, -

[clang] [clang] Remove the EnableLifetimeWarnings flag in lifetime analysis. (PR #105884)

2024-09-04 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/105884 >From 0ec87486d6a42ea0ddb128621afd023b9ca4ddd4 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 23 Aug 2024 21:42:20 +0200 Subject: [PATCH 1/4] [clang] Remove the EnableLifetimeWarnings flag in lifetime anal

[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)

2024-09-04 Thread Alex Voicu via cfe-commits
@@ -335,6 +335,9 @@ class LLVM_LIBRARY_VISIBILITY SPIRV32TargetInfo : public BaseSPIRVTargetInfo { PointerWidth = PointerAlign = 32; SizeType = TargetInfo::UnsignedInt; PtrDiffType = IntPtrType = TargetInfo::SignedInt; +// SPIR-V has core support for atomic ops

[clang] [clang] Remove the EnableLifetimeWarnings flag in lifetime analysis. (PR #105884)

2024-09-04 Thread Haojian Wu via cfe-commits
https://github.com/hokein edited https://github.com/llvm/llvm-project/pull/105884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Make lifetimebound and GSL analysis more coherent (PR #105884)

2024-09-04 Thread Haojian Wu via cfe-commits
https://github.com/hokein edited https://github.com/llvm/llvm-project/pull/105884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d94199c - [clang] Make lifetimebound and GSL analysis more coherent (#105884)

2024-09-04 Thread via cfe-commits
Author: Haojian Wu Date: 2024-09-04T13:49:48+02:00 New Revision: d94199c8ffba3f3895da7627d3dbbca62937310c URL: https://github.com/llvm/llvm-project/commit/d94199c8ffba3f3895da7627d3dbbca62937310c DIFF: https://github.com/llvm/llvm-project/commit/d94199c8ffba3f3895da7627d3dbbca62937310c.diff LO

[clang] [clang] Make lifetimebound and GSL analysis more coherent (PR #105884)

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

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-04 Thread Aaron Ballman via cfe-commits
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager &SourceMgr, return false; } +static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) { AaronBallman wrote: They don't support it: https://godbolt.org/z/9dxshKxj9 >

[clang] bb1b368 - [AArch64] Implement intrinsics for SVE FAMIN/FAMAX (#99042)

2024-09-04 Thread via cfe-commits
Author: Momchil Velikov Date: 2024-09-04T13:07:57+01:00 New Revision: bb1b368e0ad3da98b4c51018bdbcd6a83d8e646d URL: https://github.com/llvm/llvm-project/commit/bb1b368e0ad3da98b4c51018bdbcd6a83d8e646d DIFF: https://github.com/llvm/llvm-project/commit/bb1b368e0ad3da98b4c51018bdbcd6a83d8e646d.dif

[clang] [llvm] [AArch64] Implement intrinsics for SVE FAMIN/FAMAX (PR #99042)

2024-09-04 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov closed https://github.com/llvm/llvm-project/pull/99042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/106982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat requested changes to this pull request. Unfortunately I found several fundamental issues within the implementation of `extractActualValueFrom()` -- see inline comments for details. Moreover I'm not convinced that this "replace `LazyCompoundVal`s with actual values"

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
@@ -490,6 +491,47 @@ SVal SValBuilder::evalUnaryOp(ProgramStateRef state, UnaryOperator::Opcode opc, llvm_unreachable("Unexpected unary operator"); } +namespace { +/// Iterate through to store to find the actual value this LazyCompoundVal +/// corresponds to. Further readin

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
@@ -490,6 +491,47 @@ SVal SValBuilder::evalUnaryOp(ProgramStateRef state, UnaryOperator::Opcode opc, llvm_unreachable("Unexpected unary operator"); } +namespace { +/// Iterate through to store to find the actual value this LazyCompoundVal +/// corresponds to. Further readin

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
@@ -490,6 +491,47 @@ SVal SValBuilder::evalUnaryOp(ProgramStateRef state, UnaryOperator::Opcode opc, llvm_unreachable("Unexpected unary operator"); } +namespace { +/// Iterate through to store to find the actual value this LazyCompoundVal +/// corresponds to. Further readin

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
@@ -490,6 +491,47 @@ SVal SValBuilder::evalUnaryOp(ProgramStateRef state, UnaryOperator::Opcode opc, llvm_unreachable("Unexpected unary operator"); } +namespace { +/// Iterate through to store to find the actual value this LazyCompoundVal +/// corresponds to. Further readin

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
@@ -490,6 +491,47 @@ SVal SValBuilder::evalUnaryOp(ProgramStateRef state, UnaryOperator::Opcode opc, llvm_unreachable("Unexpected unary operator"); } +namespace { +/// Iterate through to store to find the actual value this LazyCompoundVal +/// corresponds to. Further readin

[clang] [analyzer] Implement binary operations on LazyCompoundVals (PR #106982)

2024-09-04 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/106982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is construct from a gsl-owner object in a container. (PR #104556)

2024-09-04 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/104556 >From aa8dda3e3ccd24f12e50509f79ade63b90cf97b5 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 19 Aug 2024 13:46:16 +0200 Subject: [PATCH] [clang] Diagnose dangling issues for cases where a gsl-pointer is c

[clang] [clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is construct from a gsl-owner object in a container. (PR #104556)

2024-09-04 Thread Haojian Wu via cfe-commits
@@ -344,9 +347,11 @@ static void handleGslAnnotatedTypes(IndirectLocalPath &Path, Expr *Call, break; } } -Path.push_back({Value ? IndirectLocalPathEntry::GslPointerInit - : IndirectLocalPathEntry::GslReferenceInit, -

[clang] [clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is construct from a gsl-owner object in a container. (PR #104556)

2024-09-04 Thread Haojian Wu via cfe-commits
@@ -360,29 +365,26 @@ static void handleGslAnnotatedTypes(IndirectLocalPath &Path, Expr *Call, if (auto *MCE = dyn_cast(Call)) { const auto *MD = cast_or_null(MCE->getDirectCallee()); if (MD && shouldTrackImplicitObjectArg(MD)) - VisitPointerArg(MD, MCE->getImpl

[clang] [llvm] [AArch64][NEON] Add intrinsics for LUTI (PR #96883)

2024-09-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-nfc` running on `bolt-worker` while building `clang,llvm` at step 8 "test-build-bolt-check-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/5762 Here is the relevan

[clang] [llvm] [SPARC] Align i128 to 16 bytes in SPARC datalayouts (PR #106951)

2024-09-04 Thread Sergei Barannikov via cfe-commits
s-barannikov wrote: I guess this is a breaking change? Following the discussion in the linked revision it looks like this also needs some AutoUpgrade changes. https://github.com/llvm/llvm-project/pull/106951 ___ cfe-commits mailing list cfe-commits@l

[clang] [llvm] [Offload] Move HIP and CUDA to new driver by default (PR #84420)

2024-09-04 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/84420 >From ac95806fa58d919a21f3724b10ba0634ff381d18 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 7 Mar 2024 15:48:00 -0600 Subject: [PATCH] [Offload] Move HIP and CUDA to new driver by default Summary: This

[clang] [clang][bytecode] Allow continuing when discarded MemberExpr Base fails (PR #107231)

2024-09-04 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/107231 We don't need the value in this case, since we're discarding it anyway. Allow continuing the interpretation but note the side effect. >From 696b77b7c85f79fddb2b88f04c78933acd769d12 Mon Sep 17 00:00:00 2001 Fro

[clang] [clang][bytecode] Allow continuing when discarded MemberExpr Base fails (PR #107231)

2024-09-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We don't need the value in this case, since we're discarding it anyway. Allow continuing the interpretation but note the side effect. --- Full diff: https://github.com/llvm/llvm-project/pull/107231.diff 17

[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)

2024-09-04 Thread Alex Voicu via cfe-commits
@@ -766,8 +766,17 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *Expr, Address Dest, // LLVM atomic instructions always have synch scope. If clang atomic // expression has no scope operand, use default LLVM synch scope. if (!ScopeModel) { +llvm::SyncSc

[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)

2024-09-04 Thread Alex Voicu via cfe-commits
@@ -188,6 +192,41 @@ void SPIRVTargetCodeGenInfo::setCUDAKernelCallingConvention( } } +llvm::SyncScope::ID +SPIRVTargetCodeGenInfo::getLLVMSyncScopeID(const LangOptions &, SyncScope Scope, + llvm::AtomicOrdering, +

  1   2   3   4   >