[clang] [llvm] Remove GtestMatchers and GtestMatchersTest (PR #162524)

2025-10-08 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier created https://github.com/llvm/llvm-project/pull/162524 This PR removes the unused GtestMatchers and GtestMatchersTest, fixing issue #161939. >From f5fd20eead09a4c19040f9ec88eafa63261b9ceb Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Wed, 8 Oct 20

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-10-08 Thread Jinjie Huang via cfe-commits
https://github.com/Jinjie-Huang edited https://github.com/llvm/llvm-project/pull/162491 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-08 Thread Oliver Hunt via cfe-commits
@@ -2200,6 +2200,30 @@ static bool BuiltinCpu(Sema &S, const TargetInfo &TI, CallExpr *TheCall, return false; } +/// Checks that __builtin_bswapg was called with a single argument, which is an +/// unsigned integer, and overrides the return value type to the integer type. +

[clang] [llvm] [OpenMP 60] Update parsing and semantic support for `nowait` clause to accept optional argument (PR #159628)

2025-10-08 Thread Fazlay Rabbi via cfe-commits
https://github.com/mdfazlay edited https://github.com/llvm/llvm-project/pull/159628 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP 60] Update parsing and semantic support for `nowait` clause to accept optional argument (PR #159628)

2025-10-08 Thread Fazlay Rabbi via cfe-commits
@@ -18107,9 +18109,26 @@ OMPClause *SemaOpenMP::ActOnOpenMPClause(OpenMPClauseKind Kind, } OMPClause *SemaOpenMP::ActOnOpenMPNowaitClause(SourceLocation StartLoc, - SourceLocation EndLoc) { +

[clang] [clang][bytecode][x86] Merge interp__builtin_ia32_pmul/interp__builtin_ia32_pmadd implementations (PR #162504)

2025-10-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/162504 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #158853)

2025-10-08 Thread Timm Baeder via cfe-commits
@@ -2867,6 +2897,94 @@ static bool interp__builtin_elementwise_triop( return true; } +//_builtin_extract +static bool interp__builtin_x86_extract_vector(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang] [llvm] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #158853)

2025-10-08 Thread Timm Baeder via cfe-commits
@@ -712,6 +712,36 @@ static bool interp__builtin_expect(InterpState &S, CodePtr OpPC, return true; } + +/// rotateleft(value, amount) +static bool interp__builtin_rotate(InterpState &S, CodePtr OpPC, + const InterpFrame *Frame, +

[clang] [clang] fix transform for constant template parameter type subst node (PR #162587)

2025-10-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 4 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/17252 Here is the relevant piece

[clang] [CIR] Implement zero-initialization of padding in constant records (PR #162483)

2025-10-08 Thread Bruno Cardoso Lopes via cfe-commits
@@ -0,0 +1,90 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll +// RUN: FileCheck --input

[clang] [llvm] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #158853)

2025-10-08 Thread via cfe-commits
@@ -2836,6 +2837,99 @@ static bool interp__builtin_elementwise_triop( return true; } +//_builtin_extract +static bool interp__builtin_x86_extract_vector(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[libcxx] [libcxxabi] [libunwind] [runtimes][NFC] Consistently declare main() functions in tests (PR #162548)

2025-10-08 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt approved this pull request. LGTM, only question is whether this should be `const char**` https://github.com/llvm/llvm-project/pull/162548 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add SSE/AVX VPTEST/VTESTPD/VTESTPS intrinsics to be used in constexpr (PR #160428)

2025-10-08 Thread Simon Pilgrim via cfe-commits
@@ -2568,9 +2567,8 @@ _mm_testz_pd(__m128d __a, __m128d __b) /// \param __b ///A 128-bit vector of [2 x double]. /// \returns the CF flag in the EFLAGS register. -static __inline int __DEFAULT_FN_ATTRS128 -_mm_testc_pd(__m128d __a, __m128d __b) -{ +static __inline int __DEF

[clang] Fix cycle in importing template specialization on auto type with typename (PR #162514)

2025-10-08 Thread Oliver Hunt via cfe-commits
@@ -4058,7 +4059,13 @@ ExpectedDecl ASTNodeImporter::VisitFunctionDecl(FunctionDecl *D) { } Error Err = Error::success(); + if (!UsedDifferentProtoType) { +Importer.DeclTypeCycles.insert(D); ojhunt wrote: I kind of want an RAII guard for this, but I

[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

2025-10-08 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. Seems reasonable, I'm assuming the other targets have the same behavior as before since we don't split on function AS. https://github.com/llvm/llvm-project/pull/162529 ___ cfe-commits mailing list

[clang] [CIR] Call base class destructors (PR #162562)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds handling for calling virtual and non-virtual base class destructors. Non-virtual base class destructors are call from the base (D2) destructor body for derived classes. Virtual base class destruc

[clang-tools-extra] a1c09a9 - [clang-tidy] Deprecate 'zircon' module (#162012)

2025-10-08 Thread via cfe-commits
Author: Baranov Victor Date: 2025-10-09T01:40:41+03:00 New Revision: a1c09a95cf5acb81ed1fcd4cca63476f7c871cb2 URL: https://github.com/llvm/llvm-project/commit/a1c09a95cf5acb81ed1fcd4cca63476f7c871cb2 DIFF: https://github.com/llvm/llvm-project/commit/a1c09a95cf5acb81ed1fcd4cca63476f7c871cb2.diff

[clang] [llvm] [NFC][SpecialCaseList] Split Matcher into RegexMatcher and GlobMatcher (PR #162303)

2025-10-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka auto_merge_disabled https://github.com/llvm/llvm-project/pull/162303 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 86ad98c - [clang][Driver][RISCV] Rename `getRISCFeaturesFromMcpu`. NFCI (#162545)

2025-10-08 Thread via cfe-commits
Author: Min-Yih Hsu Date: 2025-10-08T14:10:21-07:00 New Revision: 86ad98c37aee575bc21460a367f3e9b824f289cb URL: https://github.com/llvm/llvm-project/commit/86ad98c37aee575bc21460a367f3e9b824f289cb DIFF: https://github.com/llvm/llvm-project/commit/86ad98c37aee575bc21460a367f3e9b824f289cb.diff L

[clang] [llvm] [NFC][SpecialCaseList] Split Matcher into RegexMatcher and GlobMatcher (PR #162303)

2025-10-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/162303 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Sort attributes according to source position before printing (PR #162556)

2025-10-08 Thread Giuliano Belinassi via cfe-commits
https://github.com/giulianobelinassi converted_to_draft https://github.com/llvm/llvm-project/pull/162556 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Sort attributes according to source position before printing (PR #162556)

2025-10-08 Thread Giuliano Belinassi via cfe-commits
https://github.com/giulianobelinassi created https://github.com/llvm/llvm-project/pull/162556 Previously, clang print the attributes in some order that caused problems if the attribute order mattered, such as in the following example: ``` extern const char _libc_intl_domainname[]; extern typeo

[clang] [clang-fuzzer] Remove Dockerfile (PR #162555)

2025-10-08 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/162555 Was going through Dockerfiles to see where we are missing FROM lines with fully qualified names and came across this one. I think it is safe to say it has not been used in a very long time or maintained

[clang] [AST matchers] matchers for absl Status / StatusOr (PR #160953)

2025-10-08 Thread Florian Mayer via cfe-commits
fmayer wrote: FWIW there is also a file for Gtest (next to this one). But I have no real opinion about the namespace, and am happy to just colocate it with the model. https://github.com/llvm/llvm-project/pull/160953

[clang] [compiler-rt] [llvm] Dataflow Sanitizer support for SystemZ. (PR #162195)

2025-10-08 Thread via cfe-commits
@@ -44,9 +44,24 @@ struct DFsanMapUnmapCallback { // duplicated as MappingDesc::ALLOCATOR in dfsan_platform.h. #if defined(__aarch64__) const uptr kAllocatorSpace = 0xE000ULL; +#elif defined(__s390x__) +const uptr kAllocatorSpace = 0x4400ULL; #else const uptr

[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

2025-10-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/162528 >From 22d4680619e8b41b2985090d78c3ddcd687a2eef Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Tue, 7 Oct 2025 20:26:05 +0200 Subject: [PATCH 1/3] [CIR] Upstream Exception CXXTryStmt --- clang/include/cla

[clang-tools-extra] [clang-tidy] Add more constexpr options to `readability-identifier-naming` (PR #162160)

2025-10-08 Thread Alex White via cfe-commits
https://github.com/MilkeeyCat updated https://github.com/llvm/llvm-project/pull/162160 >From 3a2ce43e69ab29cbf7ecb0b1f45bbba460ed07ec Mon Sep 17 00:00:00 2001 From: MilkeeyCat Date: Mon, 6 Oct 2025 22:38:59 +0300 Subject: [PATCH] [clang-tidy] Add more constexpr options to `readability-identifi

[clang] [clang] Allow custom bug report messages (PR #157536)

2025-10-08 Thread Alan Zhao via cfe-commits
alanzhao1 wrote: > Note that there are a couple of clang regression tests that check for the > "PLEASE submit a bug report" text; any patch here also needs to update those > tests. Unless I'm missing something this patch as is should be fine - it only changes the text if the macro is set. ht

[clang] [clang] Fix catching pointers by reference on mingw targets (PR #162546)

2025-10-08 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: @rjmccall Can you briefly look to make sure this makes sense? (This is Itanium unwind on Windows.) For why we're doing this, see 5add20cefac7d1b06e7892ce0d97767a23db4e1a ... but I don't really have enough context to say much beyond the explanation i

[clang] Always honor fp-contract pragmas on PlayStation (PR #162549)

2025-10-08 Thread via cfe-commits
https://github.com/wjristow created https://github.com/llvm/llvm-project/pull/162549 The pragma: #pragma clang fp contract (off) can be used to disable FMA, but when cross-statement FMA is enabled in `fast` fp contract mode (via `-ffast-math`, for example), the effect of that pragma is su

[clang] [Clang][Sema] Add a nullptr check in template name (PR #162377)

2025-10-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik closed https://github.com/llvm/llvm-project/pull/162377 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 37af81f - [Clang][Sema] Add a nullptr check in template name (#162377)

2025-10-08 Thread via cfe-commits
Author: Shafik Yaghmour Date: 2025-10-08T13:57:16-07:00 New Revision: 37af81fbb54aed5a7433c8c48217b1d54384c3cf URL: https://github.com/llvm/llvm-project/commit/37af81fbb54aed5a7433c8c48217b1d54384c3cf DIFF: https://github.com/llvm/llvm-project/commit/37af81fbb54aed5a7433c8c48217b1d54384c3cf.dif

[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

2025-10-08 Thread Nick Sarnie via cfe-commits
@@ -0,0 +1,22 @@ +// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple x86_64-unknown-linux -fopenmp-targets=spirv64-intel -emit-llvm-bc %s -o %t-host.bc +// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple spirv64-intel -fopenmp-targets=spirv64-intel -emit-llvm %s -fopenmp-is-targ

[clang] [Clang][Sema] Add a nullptr check in template name (PR #162377)

2025-10-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/162377 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

2025-10-08 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/162529 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [runtimes][NFC] Consistently declare main() functions in tests (PR #162548)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: Louis Dionne (ldionne) Changes In the libc++ test suite, we consistently declare main() functions with full parameters and explicitly return from the function. This helps code that compiles the tests with -ffreestanding, where main() is

[clang] [llvm] [NFC][SpecialCaseList] Split Matcher into RegexMatcher and GlobMatcher (PR #162303)

2025-10-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/162303 >From ead4c27e169ad9009527390b2ac7f21dd25a1fac Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 7 Oct 2025 08:25:57 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20change?= =?U

[clang] [clang] Fix catching pointers by reference on mingw targets (PR #162546)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Martin Storsjö (mstorsjo) Changes For this specific case, when catching a pointer data type, by reference, Clang generates a special code pattern, which directly accesses the exception data by skipping past the `_Unwind_Exception`

[clang] [alpha.webkit.UnretainedCallArgsChecker] Treat NSStringFromSelector and alike as trivial and returns a retained value (PR #161135)

2025-10-08 Thread Rashmi Mudduluru via cfe-commits
@@ -84,6 +84,15 @@ typedef CVImageBufferRef CVPixelBufferRef; typedef signed int CVReturn; CVReturn CVPixelBufferCreateWithIOSurface(CFAllocatorRef allocator, IOSurfaceRef surface, CFDictionaryRef pixelBufferAttributes, CF_RETURNS_RETAINED CVPixelBufferRef * pixelBufferOut);

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #161671)

2025-10-08 Thread Lei Wang via cfe-commits
wlei-llvm wrote: > @wlei-llvm #162272 should fix it :) I checked this fixes our breakages, thanks for the quick fix! https://github.com/llvm/llvm-project/pull/161671 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bi

[clang] [clang][Driver][RISCV] Rename `getRISCFeaturesFromMcpu`. NFCI (PR #162545)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Min-Yih Hsu (mshockwave) Changes This function, which has a typo in the name btw, is no longer doing what it was created to do: instead of deducting non-extension target features from `-mcpu` -- a task that was (more or less) subsumed by

[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

2025-10-08 Thread Andy Kaylor via cfe-commits
@@ -1087,6 +1083,139 @@ LogicalResult cir::ScopeOp::verify() { return success(); } +//===--===// +// TryOp +//===--===// + +void cir::TryOp

[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

2025-10-08 Thread Andy Kaylor via cfe-commits
@@ -4296,6 +4202,66 @@ def CIR_AllocExceptionOp : CIR_Op<"alloc.exception"> { }]; } +//===--===// +// TryOp +//===--===// + +// Represents

[clang] Fix array bound checker false negative (PR #161723)

2025-10-08 Thread Ziqing Luo via cfe-commits
@@ -0,0 +1,51 @@ +// RUN: %clang_analyze_cc1 -std=c++11 -Wno-array-bounds -analyzer-config unroll-loops=true -analyzer-config security.ArrayBound:AggressiveReport=true -analyzer-checker=unix,core,security.ArrayBound -verify %s + +// Test the interactions of `security.ArrayBound

[clang] [AMDGPU] Support for type inferring image load/store builtins for AMDGPU (PR #140210)

2025-10-08 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/140210 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8a32e58 - Delete unintentional doc file added in 6bbd7ea

2025-10-08 Thread Utkarsh Saxena via cfe-commits
Author: Utkarsh Saxena Date: 2025-10-08T20:05:55Z New Revision: 8a32e58425b3c94e9177d7cae538700d029f69bd URL: https://github.com/llvm/llvm-project/commit/8a32e58425b3c94e9177d7cae538700d029f69bd DIFF: https://github.com/llvm/llvm-project/commit/8a32e58425b3c94e9177d7cae538700d029f69bd.diff LOG

[clang] [llvm] [AllocToken, Clang] Implement TypeHashPointerSplit mode (PR #156840)

2025-10-08 Thread Marco Elver via cfe-commits
https://github.com/melver closed https://github.com/llvm/llvm-project/pull/156840 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix test to require x86 (PR #162318)

2025-10-08 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu closed https://github.com/llvm/llvm-project/pull/162318 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Add new check: `readability-redundant-typename` (PR #161574)

2025-10-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/161574 >From 82c842a3e8f0f2e9dcfacca0eada9f6aeacd38d8 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Wed, 1 Oct 2025 18:35:35 + Subject: [PATCH 01/22] [clang-tidy] Add new check: `readability-redundant-

[clang] [llvm] [NFC][SpecialCaseList] Hide more details in private section (PR #162302)

2025-10-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/162302 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-10-08 Thread Kamau Bridgeman via cfe-commits
https://github.com/kamaub updated https://github.com/llvm/llvm-project/pull/141604 >From b4e809b6303e29e41b4058c3bfc9d51e409dd9f9 Mon Sep 17 00:00:00 2001 From: Kamau Bridgeman Date: Tue, 27 May 2025 09:39:07 -0400 Subject: [PATCH 1/5] [WIP] Support the inline asm 'a' constraint on PowerPC Thi

[clang] [llvm] [Clang] Wire up -fsanitize=alloc-token (PR #156839)

2025-10-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/17230 Here is the relevant piece

[clang] [llvm] workflows/release-binaries: Enable Windows x86 builds (PR #128274)

2025-10-08 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/128274 >From 2110f92892dd72dfbe1a7d87116faa3693c7c586 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 22 Feb 2025 03:08:24 + Subject: [PATCH 01/68] workflows/release-binaries: Enable Windows x86 builds ---

[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

2025-10-08 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/162529 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

2025-10-08 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/162529 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [UEFI] Add driver path to program paths list (PR #162387)

2025-10-08 Thread Fangrui Song via cfe-commits
@@ -12,3 +12,8 @@ // CHECK-SAME: "/entry:EfiMain" // CHECK-SAME: "/tsaware:no" // CHECK-SAME: "/debug" + +// RUN: %clang -### --target=x86_64-unknown-uefi -print-search-dirs 2>&1 \ +// RUN: | FileCheck -check-prefixes=PROGPATH %s +// PROGPATH-DAG: InstalledDir: [[DRIVER_INS

[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

2025-10-08 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/162529 >From 67ae789e8f20acfb2f36b270d475177c72d65688 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Wed, 8 Oct 2025 07:52:02 -0700 Subject: [PATCH] [OMPIRBuilder] Fix reduction codegen for SPIR-V Signed-off-by: S

[clang] 81c6f53 - [CIR] Add support for destructing class members (#162196)

2025-10-08 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-10-08T11:46:31-07:00 New Revision: 81c6f53c19cd29c401355a1c5764b35bfdea6164 URL: https://github.com/llvm/llvm-project/commit/81c6f53c19cd29c401355a1c5764b35bfdea6164 DIFF: https://github.com/llvm/llvm-project/commit/81c6f53c19cd29c401355a1c5764b35bfdea6164.diff L

[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

2025-10-08 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex created https://github.com/llvm/llvm-project/pull/162529 None >From a83625bd8806e2397310ec60ff54374ad3879754 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Wed, 8 Oct 2025 07:52:02 -0700 Subject: [PATCH] [OMPIRBuilder] Fix reduction codegen for SPIR-V Signed-off

[clang] [llvm] Remove GtestMatchers and GtestMatchersTest (PR #162524)

2025-10-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook approved this pull request. https://github.com/llvm/llvm-project/pull/162524 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove GtestMatchers and GtestMatchersTest (PR #162524)

2025-10-08 Thread Victor Chernyakin via cfe-commits
localspook wrote: To make it so that the linked issue is automatically closed when this PR is merged, you should have in your PR message the phrase "Fixes #161939". GitHub [won't understand it](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request

[clang] [llvm] Remove GtestMatchers and GtestMatchersTest (PR #162524)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thibault Monnier (Thibault-Monnier) Changes This PR removes the unused GtestMatchers and GtestMatchersTest, fixing issue #161939. --- Patch is 27.82 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/p

[clang] [analyzer] Avoid use of `CallEvent`s with obsolete state (PR #160707)

2025-10-08 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > You probably shouldn't write a lot of code that you're about to delete > anyway. So in my opinion it doesn't make sense to make a unit test or a debug > checker just for this patch. > > Maybe just assert that the states are the same before you pass it to the > checker in ev

[clang] [-Wunsafe-buffer-usage] Add unique_ptr accesses (PR #156773)

2025-10-08 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/156773 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-10-08 Thread Arjun Ramesh via cfe-commits
https://github.com/arjunr2 updated https://github.com/llvm/llvm-project/pull/156087 >From cb996a12aa20c65980f620381731fad1622e0417 Mon Sep 17 00:00:00 2001 From: Arjun Ramesh Date: Sat, 30 Aug 2025 01:01:02 -0400 Subject: [PATCH 1/5] Support for `wasm32-wali-linux-musl target` in `clang`, `lld

[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

2025-10-08 Thread via cfe-commits
@@ -332,6 +332,53 @@ TEST_F(FormatTestComments, UnderstandsSingleLineComments) { verifyNoCrash(StringRef("/*\\\0\n/", 6)); } +TEST_F(FormatTestComments, InsertsSpaceBeforeClosingBlockComment) { + FormatStyle Style = getLLVMStyle(); + Style.SpaceBeforeClosingBlockComment =

[clang] [clang] Only build clang-tblgen if it is actually needed (PR #161952)

2025-10-08 Thread David Spickett via cfe-commits
DavidSpickett wrote: I will recuse myself from reviewing since I had input to the patch already, but want to highlight this that I said earlier: > In theory someone could be relying on there being another clang-tblgen in > bin, maybe for installs, but that seems like a thing we can afford to b

[clang] [llvm] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #158853)

2025-10-08 Thread via cfe-commits
@@ -2836,6 +2837,99 @@ static bool interp__builtin_elementwise_triop( return true; } +//_builtin_extract +static bool interp__builtin_x86_extract_vector(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang] [clang][Driver] Add -gdwarf-6 option (PR #162454)

2025-10-08 Thread David Blaikie via cfe-commits
https://github.com/dwblaikie approved this pull request. https://github.com/llvm/llvm-project/pull/162454 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [UEFI] Add driver path to program paths list (PR #162387)

2025-10-08 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/162387 >From 16870c2b51aed1dc3369ef0390bb7e3851a71e80 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Tue, 7 Oct 2025 21:48:08 + Subject: [PATCH 1/3] [UEFI] Add driver path to program paths list UEFI toolchain drive

[clang] [OpenACC] Fix issue with array-section type generation (PR #162499)

2025-10-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/162499 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

2025-10-08 Thread via cfe-commits
https://github.com/Men-cotton updated https://github.com/llvm/llvm-project/pull/162105 >From 3cfb708e7c24650fbfac9a44cedba23848fc51b8 Mon Sep 17 00:00:00 2001 From: mencotton Date: Tue, 7 Oct 2025 23:14:20 +0900 Subject: [PATCH] [clang-format] Add option to insert space before closing block co

[clang] [OpenACC] Fix issue with array-section type generation (PR #162499)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes When an array section bound was in a list of bound-types we improperly generated the list of types of the bounds because getPointeeOrElementType gets the LOWEST level of type (t

[clang] [OpenACC] Fix issue with array-section type generation (PR #162499)

2025-10-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane created https://github.com/llvm/llvm-project/pull/162499 When an array section bound was in a list of bound-types we improperly generated the list of types of the bounds because getPointeeOrElementType gets the LOWEST level of type (that is, digs through ALL ar

[clang] [llvm] [IR] Mark vector intrinsics speculatable (PR #162334)

2025-10-08 Thread Paul Walker via cfe-commits
@@ -10,30 +10,30 @@ // CHECK-C-SAME: i32 noundef [[SLICE_BASE:%.*]], [[PG:%.*]], ptr noundef [[PTR:%.*]], i64 noundef [[VNUM:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { // CHECK-C-NEXT: entry: // CHECK-C-NEXT:[[TMP0:%.*]] = tail call i64 @llvm.vscale.i64() -// CHECK-C

[clang] [clang-tools-extra] [clang-tidy] Add new check: `readability-redundant-typename` (PR #161574)

2025-10-08 Thread Victor Chernyakin via cfe-commits
@@ -208,6 +208,13 @@ New checks Detect redundant parentheses. +- New :doc:`readability-redundant-typename + ` check. + + Finds redundant uses of the ``typename`` keyword. Can be used localspook wrote: I've thought about that, and I'm a bit conflicted, bu

[clang] [clang] introduce constexpr step limit opt-out (PR #160440)

2025-10-08 Thread Aaron Ballman via cfe-commits
@@ -4028,7 +4028,7 @@ Controlling implementation limits Sets the limit for the number of full-expressions evaluated in a single constant expression evaluation. This also controls the maximum size of array and dynamic array allocation that can be constant evaluated. - The

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-08 Thread via cfe-commits
@@ -13,6 +13,10 @@ Coding guidelines that recommend against defaulted lambda captures include: * Item 31 of Effective Modern C++ by Scott Meyers +This check does not lint for variable-length array (VLA) captures. VLAs are not EugeneZelenko wrote: How about

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-08 Thread JJ Marr via cfe-commits
https://github.com/jjmarr-amd edited https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] New parameter allow-unrecognized-arguments (PR #162201)

2025-10-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > This is another attempt at fixing #108455. Please see the initial discussion > in the following PR: #111453 Thanks for investigating fixes here! > This parameter is used to suppress the `Unknown argument '...'` error that > clang will emit whenever it encounters an unkno

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-08 Thread JJ Marr via cfe-commits
@@ -0,0 +1,94 @@ +//===--===// +// +// 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: Apac

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-10-08 Thread Jinjie Huang via cfe-commits
https://github.com/Jinjie-Huang updated https://github.com/llvm/llvm-project/pull/162491 >From 2663a533bafda57b8fe6996897a4adab64e1 Mon Sep 17 00:00:00 2001 From: huangjinjie Date: Wed, 8 Oct 2025 23:04:29 +0800 Subject: [PATCH] support header shadowing detection --- clang/include/clang/B

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-08 Thread Manuel Carrasco via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco Message-ID: In-Reply-To: @@ -168,19 +168,39 @@ void AMDGCN::Linker::constru

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-10-08 Thread Jinjie Huang via cfe-commits
https://github.com/Jinjie-Huang updated https://github.com/llvm/llvm-project/pull/162491 >From 92f34226a128ff9f8ce8faf8bff045311ae06a4f Mon Sep 17 00:00:00 2001 From: huangjinjie Date: Wed, 8 Oct 2025 23:00:22 +0800 Subject: [PATCH] support header shadowing detection --- clang/include/clang/B

[clang] [analyzer] Avoid use of `CallEvent`s with obsolete state (PR #160707)

2025-10-08 Thread Artem Dergachev via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: haoNoQ wrote: Actually maybe just keep the strict bare minimum of information in the call event? Like a `SmallVector` of args, a potential return value as `Optional`, the runtime definition that

[clang] [clang-tools-extra] [clang-tidy] Add new check: `readability-redundant-typename` (PR #161574)

2025-10-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/161574 >From 82c842a3e8f0f2e9dcfacca0eada9f6aeacd38d8 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Wed, 1 Oct 2025 18:35:35 + Subject: [PATCH 01/21] [clang-tidy] Add new check: `readability-redundant-

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-10-08 Thread Jinjie Huang via cfe-commits
https://github.com/Jinjie-Huang edited https://github.com/llvm/llvm-project/pull/162491 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Extend test coverage for SVE/SME builtin usage. (PR #156908)

2025-10-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 13 "test-build-stage2-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/b

[clang] 8ba7384 - [Clang][CodeGen] Introduce the AllocToken SanitizerKind (#162098)

2025-10-08 Thread Marco Elver via cfe-commits
Author: Marco Elver Date: 2025-10-08T16:38:57+02:00 New Revision: 8ba73840e7f94539ff39f78408e030d21b8f3d6f URL: https://github.com/llvm/llvm-project/commit/8ba73840e7f94539ff39f78408e030d21b8f3d6f DIFF: https://github.com/llvm/llvm-project/commit/8ba73840e7f94539ff39f78408e030d21b8f3d6f.diff L

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jinjie Huang (Jinjie-Huang) Changes When including a header file, multiple files with the same name may exist across different search paths. The compiler usually picks the first match it finds (typically following MSVC rules for current/

[clang] [llvm] [IR] Mark vector intrinsics speculatable (PR #162334)

2025-10-08 Thread Ramkumar Ramachandra via cfe-commits
@@ -10,30 +10,30 @@ // CHECK-C-SAME: i32 noundef [[SLICE_BASE:%.*]], [[PG:%.*]], ptr noundef [[PTR:%.*]], i64 noundef [[VNUM:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { // CHECK-C-NEXT: entry: // CHECK-C-NEXT:[[TMP0:%.*]] = tail call i64 @llvm.vscale.i64() -// CHECK-C

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-08 Thread JJ Marr via cfe-commits
@@ -0,0 +1,94 @@ +//===--===// +// +// 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: Apac

[clang] [clang] Accept empty enum in MSVC compatible C (PR #159981)

2025-10-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Thank you for working on this! I'd like to see extra test coverage to ensure that an empty enum has the same ABI properties in Clang as it does in MSVC. e.g., the size of the enumeration is still the same as the size of an int, an object of that type

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 PMADDWD/PMADDUBSW intrinsics (PR #161563)

2025-10-08 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM - cheers! https://github.com/llvm/llvm-project/pull/161563 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86][bytecode] Replace interp__builtin_parity/clrsb/bitreverse/ffs with static bool interp__builtin_elementwise_int_unaryop callback (PR #162346)

2025-10-08 Thread via cfe-commits
donneypr wrote: Thank you @RKSimon @tbaederr , have a great rest of your day!! https://github.com/llvm/llvm-project/pull/162346 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7815df1 - [Clang] Fix brittle print-header-json.c test (#162484)

2025-10-08 Thread via cfe-commits
Author: Marco Elver Date: 2025-10-08T16:16:29+02:00 New Revision: 7815df19deaadceaa55aaa578361afaebfd3cb87 URL: https://github.com/llvm/llvm-project/commit/7815df19deaadceaa55aaa578361afaebfd3cb87 DIFF: https://github.com/llvm/llvm-project/commit/7815df19deaadceaa55aaa578361afaebfd3cb87.diff L

[clang] [clang][x86][bytecode] Replace interp__builtin_parity/clrsb/bitreverse/ffs with static bool interp__builtin_elementwise_int_unaryop callback (PR #162346)

2025-10-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/162346 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Refactor the analysis into smaller files (PR #162474)

2025-10-08 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: * **#162474** https://app.graphite.dev/github/pr/llvm/llvm-project/162474?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/162474

[clang] [Clang] Fix brittle print-header-json.c test (PR #162484)

2025-10-08 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/162484 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement zero-initialization of padding in constant records (PR #162483)

2025-10-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes This adds the zero initialization as required by the C standard. --- Full diff: https://github.com/llvm/llvm-project/pull/162483.diff 3 Files Affected: - (modified) clang/include/clang/CIR/MissingFeatures.h

  1   2   >