[clang] 5934a6e - [Headers][X86] Reformat ia32intrin.h doc to match the other headers (#77525)

2024-01-10 Thread via cfe-commits
Author: Paul T Robinson Date: 2024-01-10T10:53:11-05:00 New Revision: 5934a6ee5967f795634d5161d46da8412be96404 URL: https://github.com/llvm/llvm-project/commit/5934a6ee5967f795634d5161d46da8412be96404 DIFF: https://github.com/llvm/llvm-project/commit/5934a6ee5967f795634d5161d46da8412be96404.dif

[clang] [Headers][X86] Reformat ia32intrin.h doc to match the other headers (PR #77525)

2024-01-10 Thread Paul T Robinson via cfe-commits
https://github.com/pogo59 closed https://github.com/llvm/llvm-project/pull/77525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-10 Thread Louis Dionne via cfe-commits
@@ -978,6 +978,20 @@ bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) { } else { break; } + // Pack indexing + if (getLangOpts().CPlusPlus26 && Tok.is(tok::ellipsis) && ldionne wrote: @philnik777 This would requir

[clang-tools-extra] Add new check: do not return 0; at the end of main() in C++ (PR #77586)

2024-01-10 Thread Bhuminjay Soni via cfe-commits
11happy wrote: Sure Sure, I will take up another issue. https://github.com/llvm/llvm-project/pull/77586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-10 Thread Erich Keane via cfe-commits
@@ -978,6 +978,20 @@ bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) { } else { break; } + // Pack indexing + if (getLangOpts().CPlusPlus26 && Tok.is(tok::ellipsis) && erichkeane wrote: Would a change like that b

[clang] [OpenACC] Implement 'var' parsing correctly, support array sections (PR #77617)

2024-01-10 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: > @alexey-bataev : In particular I'd like to make you aware of what I've done > here, since this is similar to the work you've done before/will affect it. It > is currently my thought to make the OMPArraySectionExpr type a generic > 'ArraySectionExpr' type in the not-so-di

[llvm] [flang] [lld] [clang] [AMDGPU] Introduce GFX9/10.1/10.3/11 Generic Targets (PR #76955)

2024-01-10 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh edited https://github.com/llvm/llvm-project/pull/76955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [flang] [lld] [clang] [AMDGPU] Introduce Code Object V6 (PR #76954)

2024-01-10 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh edited https://github.com/llvm/llvm-project/pull/76954 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-10 Thread Louis Dionne via cfe-commits
@@ -978,6 +978,20 @@ bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) { } else { break; } + // Pack indexing + if (getLangOpts().CPlusPlus26 && Tok.is(tok::ellipsis) && ldionne wrote: I think it might be possible

[clang] [OpenACC] Implement 'var' parsing correctly, support array sections (PR #77617)

2024-01-10 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/77617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-10 Thread Nikolas Klauser via cfe-commits
@@ -978,6 +978,20 @@ bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) { } else { break; } + // Pack indexing + if (getLangOpts().CPlusPlus26 && Tok.is(tok::ellipsis) && philnik777 wrote: > @philnik777 This would r

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-10 Thread via cfe-commits
@@ -4193,6 +4194,13 @@ void CXXNameMangler::mangleType(const PackExpansionType *T) { mangleType(T->getPattern()); } +void CXXNameMangler::mangleType(const PackIndexingType *T) { cor3ntin wrote: I did open an issue there https://github.com/itanium-cxx-abi/c

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Hi, this breaks our build. I don't know how to update the expectation to match Current expectation: DCHECK_OK(foo); // expected-error@components/reporting/util/status_macros.h:* {{{CHECK,DCHECK,ASSERT,EXPECT}_OK do not accept a type other than Status or StatusOr.}} https

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread via cfe-commits
sethp wrote: @ZequanWu would either of these work for you?: ```c++ DCHECK_OK(foo); // expected-error@components/reporting/util/status_macros.h:* {{{CHECK,DCHECK,ASSERT,EXPECT}_OK do not accept a type other than Status or StatusOr.}}} ``` or ```c++ DCHECK_OK(foo); // expected-error-re@comp

[libcxx] [llvm] [clang] [compiler-rt] [mlir] [asan] Enable StackSafetyAnalysis by default (PR #77210)

2024-01-10 Thread Kirill Stoimenov via cfe-commits
https://github.com/kstoimenov approved this pull request. https://github.com/llvm/llvm-project/pull/77210 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang][Headers] Update refs to ACLE in comments (PR #66662)

2024-01-10 Thread Volodymyr Turanskyy via cfe-commits
@@ -32,7 +32,7 @@ extern "C" { #define __isb(i) __builtin_arm_isb(i) #endif -/* 8.4 Hints */ +/* 7.4 Hints */ voltur01 wrote: HTML version has the extra `.` https://arm-software.github.io/acle/main/acle.html#hints but the PDF one does not https://github.co

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread via cfe-commits
sethp wrote: Though, maybe we should revert this change, and gate it behind a new suffix (`expected-error-ext`?), since it is a breaking change to the verifier's mini-language. https://github.com/llvm/llvm-project/pull/77326 ___ cfe-commits mailing

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread Zequan Wu via cfe-commits
ZequanWu wrote: > @ZequanWu would either of these work for you? > > ```c++ > DCHECK_OK(foo); // > expected-error@components/reporting/util/status_macros.h:* > {{{CHECK,DCHECK,ASSERT,EXPECT}_OK do not accept a type other than Status or > StatusOr.}}} > ``` > > or > > ```c++ > DCHECK_OK(foo

[libcxx] [libc] [lld] [clang-tools-extra] [libclc] [lldb] [llvm] [clang] [compiler-rt] [flang] [mlir] [libunwind] [mlir][tensor] Enhance pack/unpack simplification for identity outer_dims_perm cases.

2024-01-10 Thread Han-Chung Wang via cfe-commits
https://github.com/hanhanW closed https://github.com/llvm/llvm-project/pull/77409 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [Flang] Support -mrvv-vector-bits flag (PR #77588)

2024-01-10 Thread Andrzej Warzyński via cfe-commits
banach-space wrote: Thanks for addressing my comment! The overall logic LGTM, but please wait for somebody to review the finer RISC-V details before landing this. https://github.com/llvm/llvm-project/pull/77588 ___ cfe-commits mailing list cfe-commi

[clang] Objective C: use C++ exceptions on MinGW+GNUstep (PR #77255)

2024-01-10 Thread Frederik Carlier via cfe-commits
qmfrederik wrote: @davidchisnall Apologies, that was a fat-finger mistake while addressing the latest feedback. CI is green now. https://github.com/llvm/llvm-project/pull/77255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread via cfe-commits
sethp wrote: Of course, thank you for tracking it down! https://github.com/llvm/llvm-project/pull/77326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-10 Thread via cfe-commits
@@ -4193,6 +4194,13 @@ void CXXNameMangler::mangleType(const PackExpansionType *T) { mangleType(T->getPattern()); } +void CXXNameMangler::mangleType(const PackIndexingType *T) { cor3ntin wrote: @rnk I was told that you could help with the microsoft abi for

[clang] [OpenACC] Implement 'var' parsing correctly, support array sections (PR #77617)

2024-01-10 Thread Erich Keane via cfe-commits
erichkeane wrote: > > @alexey-bataev : In particular I'd like to make you aware of what I've done > > here, since this is similar to the work you've done before/will affect it. > > It is currently my thought to make the OMPArraySectionExpr type a generic > > 'ArraySectionExpr' type in the not-

[llvm] [clang-tools-extra] [flang] [clang] [flang] GETLOG runtime and extension implementation: get login username (PR #74628)

2024-01-10 Thread Yi Wu via cfe-commits
yi-wu-arm wrote: > This patch broke the Solaris build: > > ``` > FAILED: > tools/flang/runtime/CMakeFiles/obj.FortranRuntime.dir/extensions.cpp.o > [...] > /vol/llvm/src/llvm-project/dist/flang/runtime/extensions.cpp:60:24: error: > use of undeclared identifier 'LOGIN_NAME_MAX' >60 | co

[clang] [clang]not lookup name containing a dependent type (PR #77587)

2024-01-10 Thread via cfe-commits
@@ -475,13 +475,21 @@ struct S { #if __cplusplus >= 201103L namespace dependent_conversion_function_id_lookup { - template struct A { + struct A1 { cor3ntin wrote: can you add a comment with the number of the relevant github issue(s) ? thanks https://githu

[clang] 1d5106d - Objective C: use C++ exceptions on MinGW+GNUstep (#77255)

2024-01-10 Thread via cfe-commits
Author: Frederik Carlier Date: 2024-01-10T16:52:13Z New Revision: 1d5106d69cf475215887c42834158d710e586f1b URL: https://github.com/llvm/llvm-project/commit/1d5106d69cf475215887c42834158d710e586f1b DIFF: https://github.com/llvm/llvm-project/commit/1d5106d69cf475215887c42834158d710e586f1b.diff L

[clang] Objective C: use C++ exceptions on MinGW+GNUstep (PR #77255)

2024-01-10 Thread David Chisnall via cfe-commits
https://github.com/davidchisnall closed https://github.com/llvm/llvm-project/pull/77255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [flang] [mlir] [lldb] [clang-tools-extra] [llvm] [libcxx] [lld] [compiler-rt] [clang] [clang] Add `intrin0.h` header to mimic `intrin0.h` used by MSVC STL for clang-cl (PR #75711)

2024-01-10 Thread Max Winkler via cfe-commits
MaxEW707 wrote: > Users (Chromium included) use recent versions of Clang that are not vendored > by Microsoft. Users can also use the LLVM OSS releases. I think most users > probably won't notice the compile time regression, and it will silently go > away the next time the update MSVC, but if

[clang] [clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (PR #77580)

2024-01-10 Thread Balázs Kéri via cfe-commits
@@ -324,6 +355,57 @@ void error_fseek_0(void) { fclose(F); } +void error_fseeko_0(void) { + FILE *F = fopen("file", "r"); + if (!F) +return; + int rc = fseeko(F, 0, SEEK_SET); + if (rc) { +int IsFEof = feof(F), IsFError = ferror(F); +// Get ferror or no error

[clang] [clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (PR #77580)

2024-01-10 Thread Balázs Kéri via cfe-commits
@@ -324,6 +355,57 @@ void error_fseek_0(void) { fclose(F); } +void error_fseeko_0(void) { + FILE *F = fopen("file", "r"); + if (!F) +return; + int rc = fseeko(F, 0, SEEK_SET); + if (rc) { +int IsFEof = feof(F), IsFError = ferror(F); +// Get ferror or no error

[clang] [clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (PR #77580)

2024-01-10 Thread Balázs Kéri via cfe-commits
https://github.com/balazske deleted https://github.com/llvm/llvm-project/pull/77580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add function 'fprintf' to StreamChecker. (PR #77613)

2024-01-10 Thread via cfe-commits
https://github.com/NagyDonat approved this pull request. I don't see any issue. https://github.com/llvm/llvm-project/pull/77613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (PR #77580)

2024-01-10 Thread Balázs Kéri via cfe-commits
@@ -324,6 +355,57 @@ void error_fseek_0(void) { fclose(F); } +void error_fseeko_0(void) { + FILE *F = fopen("file", "r"); + if (!F) +return; + int rc = fseeko(F, 0, SEEK_SET); + if (rc) { +int IsFEof = feof(F), IsFError = ferror(F); +// Get ferror or no error

[clang] [clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (PR #77580)

2024-01-10 Thread Balázs Kéri via cfe-commits
@@ -324,6 +355,57 @@ void error_fseek_0(void) { fclose(F); } +void error_fseeko_0(void) { + FILE *F = fopen("file", "r"); + if (!F) +return; + int rc = fseeko(F, 0, SEEK_SET); + if (rc) { +int IsFEof = feof(F), IsFError = ferror(F); +// Get ferror or no error

[clang] [clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (PR #77580)

2024-01-10 Thread Balázs Kéri via cfe-commits
@@ -268,8 +268,12 @@ class StreamChecker : public Checkerhttps://github.com/llvm/llvm-project/pull/77580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 14e7dac - [Clang][LLVM][AArch64]SVE2.1 update the intrinsics according to acle[1] (#76844)

2024-01-10 Thread via cfe-commits
Author: CarolineConcatto Date: 2024-01-10T17:12:14Z New Revision: 14e7dac92a32f900a66cb868be89c964b687a825 URL: https://github.com/llvm/llvm-project/commit/14e7dac92a32f900a66cb868be89c964b687a825 DIFF: https://github.com/llvm/llvm-project/commit/14e7dac92a32f900a66cb868be89c964b687a825.diff L

[llvm] [clang] [Clang][LLVM][AArch64]SVE2.1 update the intrinsics according to acle[1] (PR #76844)

2024-01-10 Thread via cfe-commits
https://github.com/CarolineConcatto closed https://github.com/llvm/llvm-project/pull/76844 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Rename and enable boolean get, set, create and undef for sme2 (PR #77338)

2024-01-10 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 updated https://github.com/llvm/llvm-project/pull/77338 >From 091048a63e9c4ac21fd38b8e7483953c602c714f Mon Sep 17 00:00:00 2001 From: Sam Tebbs Date: Fri, 5 Jan 2024 10:47:01 + Subject: [PATCH 1/2] [Clang] Rename and enable boolean get, set, create and undef f

[clang] [Clang] Rename and enable boolean get, set, create and undef for sme2 (PR #77338)

2024-01-10 Thread Sam Tebbs via cfe-commits
@@ -1321,12 +1321,17 @@ def SVSET_3_BF16 : SInst<"svset3[_{d}]", "33id", "b", MergeNone, "", [IsTupleSet def SVSET_4_BF16 : SInst<"svset4[_{d}]", "44id", "b", MergeNone, "", [IsTupleSet], [ImmCheck<1, ImmCheck0_3>]>; } -let TargetGuard = "sve2p1" in { - def SVGET_2_B : SIns

[flang] [clang] [Flang] Support -mrvv-vector-bits flag (PR #77588)

2024-01-10 Thread Philip Reames via cfe-commits
https://github.com/preames approved this pull request. LGTM We should explore options for merging the option processing code for options supported by both clang and flang, but that's explicitly future work. https://github.com/llvm/llvm-project/pull/77588 _

[clang] [clang][Interp] Implement __builtin_addressof (PR #77303)

2024-01-10 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/77303 >From aa7ebd9f13d8b7a58f87dc8b00b99acca7f69196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 11 Dec 2023 15:12:37 +0100 Subject: [PATC

[llvm] [clang] [SPARC] Support reserving arbitrary general purpose registers (PR #74927)

2024-01-10 Thread Jessica Clarke via cfe-commits
@@ -1125,6 +1130,10 @@ Register SparcTargetLowering::getRegisterByName(const char* RegName, LLT VT, .Case("g4", SP::G4).Case("g5", SP::G5).Case("g6", SP::G6).Case("g7", SP::G7) .Default(0); + const SparcRegisterInfo *TRI = Subtarget->getRegisterInfo(); + if (!TRI->

[clang] [analyzer] Add std::any checker (PR #76580)

2024-01-10 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/76580 From a19329050600d4d89cc698b686d7aaa13e0c22c2 Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 29 Dec 2023 17:54:34 +0100 Subject: [PATCH 01/19] [analyzer] Add std::any checker --- clang/docs/analyzer/chec

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/77637 The test checks that objects in arrays are destructed in reverse order during stack unwinding. >From 545ee4900e48b186e1c9fff93dc62a459ee19754 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Wed, 10 Jan

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes The test checks that objects in arrays are destructed in reverse order during stack unwinding. --- Full diff: https://github.com/llvm/llvm-project/pull/77637.diff 2 Files Affected: - (added) clang/t

[clang] 2c60d59 - [Flang] Support -mrvv-vector-bits flag (#77588)

2024-01-10 Thread via cfe-commits
Author: Luke Lau Date: 2024-01-11T00:37:01+07:00 New Revision: 2c60d59864ed8b2b26c4f0683ee7a1816c6d951e URL: https://github.com/llvm/llvm-project/commit/2c60d59864ed8b2b26c4f0683ee7a1816c6d951e DIFF: https://github.com/llvm/llvm-project/commit/2c60d59864ed8b2b26c4f0683ee7a1816c6d951e.diff LOG:

[flang] [clang] [Flang] Support -mrvv-vector-bits flag (PR #77588)

2024-01-10 Thread Luke Lau via cfe-commits
https://github.com/lukel97 closed https://github.com/llvm/llvm-project/pull/77588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Erich Keane via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK,CXX98 +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -f

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/77637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: The test should also validate the non-catch case! The destruction order is also relevant for the 'try' block's cleanup as well. So there is probably two different 'check' sections here that need to happen. https://github.com/llvm/llvm-project/pull/776

[clang] [analyzer] Add std::any checker (PR #76580)

2024-01-10 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/76580 From a19329050600d4d89cc698b686d7aaa13e0c22c2 Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 29 Dec 2023 17:54:34 +0100 Subject: [PATCH 01/20] [analyzer] Add std::any checker --- clang/docs/analyzer/chec

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Our C++ DR test suite has little codegen tests (around 3 or 4, depending on how you count). This rather simple DR about order of destruction of stack unwinding aims to establish a precedent for how such test should be written. Specific points I'd like to highlight: 1. Use of `ll

[clang] [llvm] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 Thread Luke Lau via cfe-commits
https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/77645 We have two structs for representing the version of an extension in RISCVISAInfo, with the exact same fields. This patch deduplicates them. > [!NOTE] > When renaming the struct, I also dropped the struct's name f

[clang] [llvm] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support @llvm/pr-subscribers-clang Author: Luke Lau (lukel97) Changes We have two structs for representing the version of an extension in RISCVISAInfo, with the exact same fields. This patch deduplicates them. > [!NOTE] > When renaming the struct,

[clang] [analyzer] Add std::any checker (PR #76580)

2024-01-10 Thread Gábor Spaits via cfe-commits
@@ -0,0 +1,201 @@ +//===- StdAnyChecker.cpp -*- 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: Ap

[llvm] [clang] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 Thread Luke Lau via cfe-commits
https://github.com/lukel97 edited https://github.com/llvm/llvm-project/pull/77645 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 Thread Luke Lau via cfe-commits
https://github.com/lukel97 edited https://github.com/llvm/llvm-project/pull/77645 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 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 14e291000f96c20e35ef494bd407f459b4617fca 916d4f271982501b7236d60b90c9fa822f7aa2a6 --

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: @erichkeane Defect report reads > The test should also validate the non-catch case! The destruction order is > also relevant for the 'try' block's cleanup as well. So there is probably two > different 'check' sections here that need to happen. So I think while both your points a

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK,CXX98 +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -f

[llvm] [clang] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 Thread Luke Lau via cfe-commits
https://github.com/lukel97 updated https://github.com/llvm/llvm-project/pull/77645 >From 916d4f271982501b7236d60b90c9fa822f7aa2a6 Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Thu, 11 Jan 2024 00:44:19 +0700 Subject: [PATCH 1/2] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC We have t

[llvm] [clang] [AArch64][SME] Fix multi vector cvt builtins (PR #77656)

2024-01-10 Thread Matthew Devereau via cfe-commits
https://github.com/MDevereau created https://github.com/llvm/llvm-project/pull/77656 This fixes cvt multi vector builtins that erroneously had inverted return vectors and vector parameters. This caused the incorrect instructions to be emitted. >From 67be98b05d771dabe11af54b69532641fa548fb1 Mo

[llvm] [clang] [AArch64][SME] Fix multi vector cvt builtins (PR #77656)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Matthew Devereau (MDevereau) Changes This fixes cvt multi vector builtins that erroneously had inverted return vectors and vector parameters. This caused the incorrect instructions to be emitted. --- Patch is 38.88 KiB, truncated to 2

[clang] [clang][ExtractAPI] Add support C unions in non C++ parsing mode (PR #77451)

2024-01-10 Thread via cfe-commits
https://github.com/QuietMisdreavus edited https://github.com/llvm/llvm-project/pull/77451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] Add support C unions in non C++ parsing mode (PR #77451)

2024-01-10 Thread via cfe-commits
https://github.com/QuietMisdreavus approved this pull request. https://github.com/llvm/llvm-project/pull/77451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] Add support C unions in non C++ parsing mode (PR #77451)

2024-01-10 Thread via cfe-commits
@@ -1267,30 +1271,31 @@ class APISet { DeclarationFragments Declaration, DeclarationFragments SubHeading, bool IsFromSystemHeader); - /// Create and add a struct field record into the API set. + /// Create and add a record field r

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Erich Keane via cfe-commits
erichkeane wrote: > @erichkeane Defect report reads > > > The destruction of fully-constructed array elements when array > > initialization is terminated by an exception is required by 14.3 > > [[except.ctor](https://wg21.link/except.ctor#2)] paragraph 2, but the order > > in which they are t

[clang] cac6b1a - [OpenACC] Implement 'var' parsing correctly, support array sections (#77617)

2024-01-10 Thread via cfe-commits
Author: Erich Keane Date: 2024-01-10T10:26:49-08:00 New Revision: cac6b1a5420d76f4635696372849dbbf07a77376 URL: https://github.com/llvm/llvm-project/commit/cac6b1a5420d76f4635696372849dbbf07a77376 DIFF: https://github.com/llvm/llvm-project/commit/cac6b1a5420d76f4635696372849dbbf07a77376.diff L

[clang] [OpenACC] Implement 'var' parsing correctly, support array sections (PR #77617)

2024-01-10 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/77617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Make cap on block visits configurable by caller. (PR #77481)

2024-01-10 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand updated https://github.com/llvm/llvm-project/pull/77481 >From 34121d09cbb833c6462d516767f14b2cd05db82d Mon Sep 17 00:00:00 2001 From: Yitzhak Mandelbaum Date: Thu, 4 Jan 2024 15:36:40 + Subject: [PATCH 1/2] [clang][dataflow] Make cap on block visits configurable by

[clang] [clang][dataflow] Fix bug in `Value` comparison. (PR #76746)

2024-01-10 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand updated https://github.com/llvm/llvm-project/pull/76746 >From 3524e2bc42aa6f83a8ecb3ad892d4a7a33f31f03 Mon Sep 17 00:00:00 2001 From: Yitzhak Mandelbaum Date: Tue, 2 Jan 2024 19:27:21 + Subject: [PATCH 1/2] [clang][dataflow] Fix bug in `Value` comparison. Makes valu

[clang] [clang][dataflow] Fix bug in `Value` comparison. (PR #76746)

2024-01-10 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 11ac97c67a9315dce48fd938d68ae991e3559f10 b2a6821ea88f6ed3b38c6dca1e5c7aaeef4159a2 --

[clang-tools-extra] [llvm] [Matrix] Convert column-vector ops feeding dot product to row-vectors. (PR #72647)

2024-01-10 Thread Visoiu Mistrih Francis via cfe-commits
@@ -1391,7 +1394,26 @@ class LowerMatrixIntrinsics { return TTI.getMemoryOpCost(Instruction::Load, VecTy, Align(1), 0) - N * TTI.getMemoryOpCost(Instruction::Load, EltTy, Align(1), 0); }; -auto LHSCost = GetCostForArg(LHS, LShape.NumColumns); + --

[clang] [CMake] Deprecate GCC_INSTALL_PREFIX (PR #77537)

2024-01-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/77537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake] Deprecate GCC_INSTALL_PREFIX (PR #77537)

2024-01-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/77537 >From 8bd31c3cdb6ce41194b063c9ac13e5e2fbfbcc02 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 17 Aug 2023 14:01:02 -0700 Subject: [PATCH] [CMake] Deprecate GCC_INSTALL_PREFIX Part of https://reviews.llvm

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/77637 >From 545ee4900e48b186e1c9fff93dc62a459ee19754 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Wed, 10 Jan 2024 20:27:53 +0300 Subject: [PATCH 1/2] [clang] Add test for CWG1807 The test checks that objec

[clang] [CMake] Deprecate GCC_INSTALL_PREFIX (PR #77537)

2024-01-10 Thread Fangrui Song via cfe-commits
MaskRay wrote: > Seems okay to me, but it would be good to include an update to the release > notes, which ideally shows an example of what replacing the cmake flag with a > config file would look like. Thanks for the feedback. I have added pseudocode how GCC installation detection works in t

[clang] [CMake] Deprecate GCC_INSTALL_PREFIX (PR #77537)

2024-01-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/77537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3358c77 - [CMake] Deprecate GCC_INSTALL_PREFIX (#77537)

2024-01-10 Thread via cfe-commits
Author: Fangrui Song Date: 2024-01-10T11:01:55-08:00 New Revision: 3358c77b01fff71c586cc998dd80e06662d9e854 URL: https://github.com/llvm/llvm-project/commit/3358c77b01fff71c586cc998dd80e06662d9e854 DIFF: https://github.com/llvm/llvm-project/commit/3358c77b01fff71c586cc998dd80e06662d9e854.diff

[clang] [CMake] Deprecate GCC_INSTALL_PREFIX (PR #77537)

2024-01-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/77537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libc] [flang] [llvm] [libcxx] [clang-tools-extra] [lld] [lldb] [clang] [libc++][ranges] P2116R9: Implements `views::enumerate` (PR #73617)

2024-01-10 Thread Louis Dionne via cfe-commits
https://github.com/ldionne ready_for_review https://github.com/llvm/llvm-project/pull/73617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [llvm] [lldb] [clang-tools-extra] [libc] [libclc] [mlir] [openmp] [lld] [clang] [libcxx] [libcxxabi] [flang] [libunwind] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-10 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/15] [libc++] Implement ranges::contains_subrange --- libcxx

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/77637 >From 545ee4900e48b186e1c9fff93dc62a459ee19754 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Wed, 10 Jan 2024 20:27:53 +0300 Subject: [PATCH 1/3] [clang] Add test for CWG1807 The test checks that objec

[libc] [clang-tools-extra] [flang] [libcxx] [lld] [compiler-rt] [libunwind] [llvm] [libclc] [lldb] [clang] [clang] Add tests for DRs about complete-class context (PR #77444)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/77444 >From 1cbf8eec15112cd6871fcfb69425c62f08c8f681 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 9 Jan 2024 14:17:21 +0300 Subject: [PATCH 1/3] [clang] Add tests for DRs about complete-class context MI

[lldb] [libcxx] [clang-tools-extra] [flang] [libc] [lld] [llvm] [compiler-rt] [clang] [libc++][variant] P2637R3: Member `visit` (`std::variant`) (PR #76447)

2024-01-10 Thread Louis Dionne via cfe-commits
https://github.com/ldionne ready_for_review https://github.com/llvm/llvm-project/pull/76447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[lldb] [libcxx] [clang-tools-extra] [libcxxabi] [mlir] [flang] [libc] [lld] [libclc] [libunwind] [llvm] [openmp] [compiler-rt] [clang] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-10 Thread Louis Dionne via cfe-commits
https://github.com/ldionne ready_for_review https://github.com/llvm/llvm-project/pull/66963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [mlir] [compiler-rt] [llvm] [clang] [asan] Enable StackSafetyAnalysis by default (PR #77210)

2024-01-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/77210 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libc] [flang] [llvm] [libcxx] [clang-tools-extra] [clang] [libc++][format] P2637R3: Member `visit` (`std::basic_format_arg`) (PR #76449)

2024-01-10 Thread Louis Dionne via cfe-commits
https://github.com/ldionne ready_for_review https://github.com/llvm/llvm-project/pull/76449 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e80b943 - [clang][Interp] Fix discarded integral and floating casts (#77295)

2024-01-10 Thread via cfe-commits
Author: Timm Baeder Date: 2024-01-10T20:19:04+01:00 New Revision: e80b9436476bba714e843461e03227b222185f7b URL: https://github.com/llvm/llvm-project/commit/e80b9436476bba714e843461e03227b222185f7b DIFF: https://github.com/llvm/llvm-project/commit/e80b9436476bba714e843461e03227b222185f7b.diff L

[clang] [clang][Interp] Fix discarded integral and floating casts (PR #77295)

2024-01-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/77295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Improve comments in C++ DR test suite (PR #77670)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/77670 Previously, we've been mentioning tests that were placed in their own files in corresponding `drNNxx.cpp` file. This patch makes sure we do this consistently, and improves upon existing practice by specifying th

[clang] [clang][NFC] Improve comments in C++ DR test suite (PR #77670)

2024-01-10 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: This PR is created to check it against CI https://github.com/llvm/llvm-project/pull/77670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Improve comments in C++ DR test suite (PR #77670)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes Previously, we've been mentioning tests that were placed in their own files in corresponding `drNNxx.cpp` file. This patch makes sure we do this consistently, and improves upon existing practice by spe

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread Erich Keane via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK,CXX98 +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -f

[clang] [llvm] [PseudoProbe] Mix and reorder block and call probe ID in lexical order (PR #75092)

2024-01-10 Thread Lei Wang via cfe-commits
https://github.com/wlei-llvm updated https://github.com/llvm/llvm-project/pull/75092 >From ccfee2d0c5399b03b53ef79a4645ab0d10efeafd Mon Sep 17 00:00:00 2001 From: wlei Date: Sun, 10 Dec 2023 18:30:42 -0800 Subject: [PATCH 1/2] [PseudoProbe] Mix and reorder block and call probe ID in lexical or

[clang] [clang][NFC] Improve comments in C++ DR test suite (PR #77670)

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

[clang] [llvm] [PseudoProbe] Mix and reorder block and call probe ID in lexical order (PR #75092)

2024-01-10 Thread Lei Wang via cfe-commits
wlei-llvm wrote: > > Agreed with this concern. To do this, we probably also need a flag in the > > binary, because otherwise if we use the new toolchain for prof-gen but the > > binary built on the old toolchain, we then would generate a profile with > > this flag on but the order is the old o

[clang] [llvm] [JITLink][RISCV] Implement eh_frame handling (PR #68253)

2024-01-10 Thread Ivan Kosarev via cfe-commits
kosarev wrote: It seems after this change we started to fail on `LLVM :: ExecutionEngine/JITLink/RISCV/ELF_ehframe.s` when using debug libgcxx. Tagging #68594. ``` /usr/include/c++/11/bits/stl_algo.h:2217: In function: std::pair<_FIter, _FIter> std::equal_range(_FIter, _FIter, const _Tp&,

[flang] [clang] [clang-tools-extra] [llvm] [flang] Add EXECUTE_COMMAND_LINE runtime and lowering intrinsics implementation (PR #74077)

2024-01-10 Thread Dan McGregor via cfe-commits
@@ -0,0 +1,206 @@ +//===-- runtime/execute.cpp ---===// +// +// 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: Ap

<    1   2   3   4   5   6   >