[clang-tools-extra] [clang-tidy] Fix `bugprone-sizeof-expression` crash on arrays of dependent type (PR #159701)

2025-09-18 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/159701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 avg intrinsics (PR #157464)

2025-09-18 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 origin/main HEAD --extensions cpp,h,c -- clang/lib/AST/ByteCode/InterpBuiltin.cpp cla

[clang] [LifetimeSafety] Add support for GSL Pointer types (PR #154009)

2025-09-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/154009 >From c13b6a0a04a311b284c484ed6cda63cf76657805 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 4 Sep 2025 14:27:37 + Subject: [PATCH 1/2] all-lvalues-have-origin >From 83a9c8091d3d0a267963e87a8a0b5e

[clang] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-hlsl Author: Corentin Jabot (cor3ntin) Changes In the standard, constraint satisfaction checking is done on the normalized form of a constraint. Clang instead substitutes on the non-normalized form, which causes us to report

[clang] [HIP][Clang] Remove __AMDGCN_WAVEFRONT_SIZE macros (PR #157463)

2025-09-18 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a ready_for_review https://github.com/llvm/llvm-project/pull/157463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UnretainedCallArgsChecker] Treat boolean literal as safe (PR #159705)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/159705.diff 3 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefCallArgsChecker.cpp (+2) - (modified) clang/test/Analy

[clang] [alpha.webkit.UnretainedCallArgsChecker] Treat boolean literal as safe (PR #159705)

2025-09-18 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/159705 None >From f380677be861539cf9977d42e3e3c1b5921f4e41 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Thu, 18 Sep 2025 22:44:25 -0700 Subject: [PATCH] [alpha.webkit.UnretainedCallArgsChecker] Treat boolean liter

[clang] [Clang][CIR] fix enumeration value 'OMPGroupPrivate' not handled in switch (PR #159694)

2025-09-18 Thread Maksim Levental via cfe-commits
https://github.com/makslevental closed https://github.com/llvm/llvm-project/pull/159694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6d2366c - [Clang][CIR] fix enumeration value 'OMPGroupPrivate' not handled in switch (#159694)

2025-09-18 Thread via cfe-commits
Author: Maksim Levental Date: 2025-09-19T00:36:11-05:00 New Revision: 6d2366c5cc06cb7475538c8cd3d6f08e6d04dc27 URL: https://github.com/llvm/llvm-project/commit/6d2366c5cc06cb7475538c8cd3d6f08e6d04dc27 DIFF: https://github.com/llvm/llvm-project/commit/6d2366c5cc06cb7475538c8cd3d6f08e6d04dc27.dif

[clang] [clang] diagnose invalid std::tuple_size sizes (PR #159677)

2025-09-18 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Can you please add a more complete description of the actual underlying problem something along the lines of what I added here: https://github.com/llvm/llvm-project/pull/159579#issuecomment-3310185185 It took me and others a bit to get the original problem

[clang] [Clang][CIR] fix enumeration value 'OMPGroupPrivate' not handled in switch (PR #159694)

2025-09-18 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/159694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream TypeInfo attribute (PR #159426)

2025-09-18 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/159426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream TypeInfo attribute (PR #159426)

2025-09-18 Thread Henrich Lauko via cfe-commits
@@ -2741,6 +2739,20 @@ LogicalResult cir::AtomicCmpXchg::verify() { return success(); } +//===--===// +// TypeInfoAttr +//===--===// + +Log

[clang] [CIR] Upstream TypeInfo attribute (PR #159426)

2025-09-18 Thread Henrich Lauko via cfe-commits
@@ -779,4 +779,54 @@ def CIR_AddressPointAttr : CIR_Attr<"AddressPoint", "address_point"> { }]; } +//===--===// +// TypeInfoAttr +//===--=

[clang] [CIR] Upstream TypeInfo attribute (PR #159426)

2025-09-18 Thread Henrich Lauko via cfe-commits
@@ -521,6 +522,21 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::GlobalViewAttr globalAttr) { llvm_unreachable("Expecting pointer or integer type for GlobalViewAttr"); } +// TypeInfoAttr visitor. +mlir::Value CIRAttrToValue::visitCirAttr(cir::TypeInfoAttr typeinfoAttr) {

[clang] [CIR] Upstream TypeInfo attribute (PR #159426)

2025-09-18 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm % minor nits https://github.com/llvm/llvm-project/pull/159426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix merging of anonymous members of class templates. (PR #155948)

2025-09-18 Thread Michael Park via cfe-commits
https://github.com/mpark closed https://github.com/llvm/llvm-project/pull/155948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream TypeInfo attribute (PR #159426)

2025-09-18 Thread Henrich Lauko via cfe-commits
@@ -521,6 +522,20 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::GlobalViewAttr globalAttr) { llvm_unreachable("Expecting pointer or integer type for GlobalViewAttr"); } +// TypeInfoAttr visitor. +mlir::Value CIRAttrToValue::visitCirAttr(cir::TypeInfoAttr typeinfoArr) { -

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-18 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/159246 >From 6e82f232ece789939c4886754345a9eb3469cac6 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Wed, 17 Sep 2025 05:48:57 + Subject: [PATCH 1/4] RISCV: the builtins support for MIPS RV64 P8700 execut

[clang-tools-extra] [clang-tidy] Fix `bugprone-sizeof-expression` crash on arrays of dependent type (PR #159701)

2025-09-18 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/159701 >From 4be37e6a2d9964238ff6d67f5ea2883c79123c84 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Fri, 19 Sep 2025 04:26:30 + Subject: [PATCH 1/3] [clang-tidy] Fix `bugprone-sizeof-expression` crash o

[clang] [llvm] [AMDGPU] Add the support for 45-bit buffer resource (PR #159702)

2025-09-18 Thread Matt Arsenault via cfe-commits
@@ -1431,7 +1431,7 @@ def int_amdgcn_make_buffer_rsrc : DefaultAttrsIntrinsic < [llvm_anyptr_ty], [llvm_anyptr_ty, // base llvm_i16_ty,// stride (and swizzle control) - llvm_i32_ty,// NumRecords / extent + llvm_i64_ty,// NumRecords / extent --

[clang] [llvm] [AMDGPU] Add the support for 45-bit buffer resource (PR #159702)

2025-09-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/159702 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Add the support for OSObjectPtr (PR #159484)

2025-09-18 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/159484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix `bugprone-sizeof-expression` crash on arrays of dependent type (PR #159701)

2025-09-18 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/159701 >From 4be37e6a2d9964238ff6d67f5ea2883c79123c84 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Fri, 19 Sep 2025 04:26:30 + Subject: [PATCH 1/2] [clang-tidy] Fix `bugprone-sizeof-expression` crash o

[clang] 9d933c7 - [WebKit checkers] Add the support for OSObjectPtr (#159484)

2025-09-18 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-09-18T21:46:22-07:00 New Revision: 9d933c794af32362dbbbefe53825054b533d7b2c URL: https://github.com/llvm/llvm-project/commit/9d933c794af32362dbbbefe53825054b533d7b2c DIFF: https://github.com/llvm/llvm-project/commit/9d933c794af32362dbbbefe53825054b533d7b2c.diff

[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

2025-09-18 Thread Vedant Paranjape via cfe-commits
@@ -3963,6 +3963,61 @@ static Value *foldSelectIntoAddConstant(SelectInst &SI, return nullptr; } +// fcmp + sel patterns into max/min intrinsic. +static Value *foldSelectICmpIntoMaxMin(SelectInst &SI, + InstCombiner::BuilderTy &Builder)

[clang] a2efa7a - [C++20][Modules] Fix merging of anonymous members of class templates. (#155948)

2025-09-18 Thread via cfe-commits
Author: Michael Park Date: 2025-09-18T19:57:16-07:00 New Revision: a2efa7ab207d78bf753b4a9651070fee283d8217 URL: https://github.com/llvm/llvm-project/commit/a2efa7ab207d78bf753b4a9651070fee283d8217 DIFF: https://github.com/llvm/llvm-project/commit/a2efa7ab207d78bf753b4a9651070fee283d8217.diff

[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

2025-09-18 Thread Vedant Paranjape via cfe-commits
https://github.com/VedantParanjape updated https://github.com/llvm/llvm-project/pull/159652 >From c179dfaf6064ec8018c1c12aa7657858e573e57f Mon Sep 17 00:00:00 2001 From: Vedant Paranjape Date: Tue, 16 Sep 2025 04:17:22 -0400 Subject: [PATCH 1/7] [InstCombine] fold float clamp pattern into llvm.

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-18 Thread via cfe-commits
@@ -0,0 +1,35 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 +// RUN: %clang_cc1 -triple riscv32-linux-elf -O3 -target-feature +xmipsexectl -emit-llvm -o - %s | FileCheck %s + +// CHECK-LABEL: define dso_local void @test

[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

2025-09-18 Thread Vedant Paranjape via cfe-commits
https://github.com/VedantParanjape updated https://github.com/llvm/llvm-project/pull/159652 >From c179dfaf6064ec8018c1c12aa7657858e573e57f Mon Sep 17 00:00:00 2001 From: Vedant Paranjape Date: Tue, 16 Sep 2025 04:17:22 -0400 Subject: [PATCH 1/6] [InstCombine] fold float clamp pattern into llvm.

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-18 Thread via cfe-commits
@@ -3435,6 +3524,22 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, } return LHS.lshr(RHS.getZExtValue()); }); + case clang::X86::BI__builtin_ia32_packsswb128: + case clang::X86::BI__builtin_ia32_packsswb256: + case c

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-18 Thread via cfe-commits
@@ -3435,6 +3524,22 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, } return LHS.lshr(RHS.getZExtValue()); }); + case clang::X86::BI__builtin_ia32_packsswb128: + case clang::X86::BI__builtin_ia32_packsswb256: + case c

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-18 Thread Pengcheng Wang via cfe-commits
@@ -0,0 +1,35 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 +// RUN: %clang_cc1 -triple riscv32-linux-elf -O3 -target-feature +xmipsexectl -emit-llvm -o - %s | FileCheck %s + +// CHECK-LABEL: define dso_local void @test

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-18 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/159246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-18 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp edited https://github.com/llvm/llvm-project/pull/159246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Implement MC for Base P extension (PR #123271)

2025-09-18 Thread Qihan Cai via cfe-commits
https://github.com/realqhc closed https://github.com/llvm/llvm-project/pull/123271 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][mlir] Expand to cover pointer of builder (PR #159423)

2025-09-18 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar updated https://github.com/llvm/llvm-project/pull/159423 >From f23c42bea591a122ab366a749c4959e44b405d50 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Wed, 17 Sep 2025 18:53:01 + Subject: [PATCH 1/2] [clang-tidy][mlir] Expand to cover pointer of builder Pr

[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

2025-09-18 Thread Matt Arsenault via cfe-commits
arsenm wrote: This is a canonicalize introducing transformation. If %arg0 is a denormal, and the transformed result will be flushed but it wouldn't in the original https://github.com/llvm/llvm-project/pull/159652 ___ cfe-commits mailing list cfe-comm

[clang] [clang][ExtractAPI] Fix for nested types are not enabled. (PR #159698)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: NagaChaitanya Vellanki (chaitanyav) Changes Keep anonymous structs/unions embedded in var declarators Fixes #61477 --- Full diff: https://github.com/llvm/llvm-project/pull/159698.diff 1 Files Affected: - (modified) clang/include/clang

[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

2025-09-18 Thread Vedant Paranjape via cfe-commits
VedantParanjape wrote: > This is a canonicalize introducing transformation. If %arg0 is a denormal, > and the transformed result will be flushed but it wouldn't in the original that's a fair point, I was not aware of this while working. Will having a flush-all attribute on this instruction gua

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-18 Thread via cfe-commits
ukalappa-mips wrote: @topperc , @wangpc-pp and @mshockwave ,any further comment's ? https://github.com/llvm/llvm-project/pull/159246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread via cfe-commits
@@ -0,0 +1,419 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-18 Thread Burhan Söğüt via cfe-commits
@@ -0,0 +1,94 @@ +// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR + +void if0() { + int x = 0; + + if constexpr (0 == 0) { +// CIR: cir.scope { +// CIR-NEXT: %

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-09-18 Thread Vasiliy Kulikov via cfe-commits
segoon wrote: > What's the differences between this check and `modernize-pass-by-value`? > Although the names are different, they are essentially checking similar > things. Sorry, as you didn't comment a specific line of code, I cannot reply directly to you. The checks are about the same std:

[clang] [clang][bytecode] Remove InterpFrame::IsBottom flag (PR #159279)

2025-09-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/159279 The bottom frame is the one without a parent. No need to save that information separately. >From 89660bb96ee87cfd7634765a44c220b85702f201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 avg intrinsics (PR #157464)

2025-09-18 Thread Bhasawut Singhaphan via cfe-commits
@@ -690,50 +690,40 @@ _mm512_maskz_adds_epu16 (__mmask32 __U, __m512i __A, __m512i __B) (__v32hi)_mm512_setzero_si512()); } -static __inline__ __m512i __DEFAULT_FN_ATTRS512 -_mm512_avg_epu8 (__m512i __A, __m512i __B) -{ - return (__m51

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-09-18 Thread Ingo Müller via cfe-commits
ingomueller-net wrote: I can reproduce locally. This only happens with the CMake build, so it is unrelated to #159289, which fixed the bazel build. I'll take a look into the CMake targets now. https://github.com/llvm/llvm-project/pull/131804 ___ cfe-

[clang] [X86][bytecode] Allow SSE/AVX BLEND imm intrinsics to be used in constexpr (PR #157776)

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

[clang] 226b0a9 - [Headers][X86] Add constexpr support for some AVX512 masked extension/truncation intrinsics. (#158663)

2025-09-18 Thread via cfe-commits
Author: moorabbit Date: 2025-09-18T11:07:58Z New Revision: 226b0a9170267cbad13a695fa591cfe6ee56d304 URL: https://github.com/llvm/llvm-project/commit/226b0a9170267cbad13a695fa591cfe6ee56d304 DIFF: https://github.com/llvm/llvm-project/commit/226b0a9170267cbad13a695fa591cfe6ee56d304.diff LOG: [H

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-18 Thread Tomáš Slanina via cfe-commits
https://github.com/itzexpoexpo updated https://github.com/llvm/llvm-project/pull/154580 From 000ea7fb5703f9a409d64c2ba61e556e21187cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Slanina?= Date: Wed, 20 Aug 2025 19:28:23 +0200 Subject: [PATCH 01/16] [clang-format] Add option Allo

[clang] [analyzer] Improve messaging in security.VAList (PR #157846)

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

[clang] [clang][bytecode] Check strlen impl for primitive arrays (PR #157494)

2025-09-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/157494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-18 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/141776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix clang_cmake_builddir (PR #155844)

2025-09-18 Thread Nathan Gauër via cfe-commits
Keenuts wrote: Thanks, I can reproduce with the following steps: ``` $ cmake -Hllvm -GNinja -B/tmp/nix-llvm/ -DBUILD_TESTING=OFF \ -DCLANGD_BUILD_XPC:BOOL=FALSE -DLLVM_ENABLE_RTTI:BOOL=TRUE \ -DLLVM_INCLUDE_TESTS:BOOL=FALSE -DCMAKE_BUILD_TYPE=Debug \ -DLLVM_OPTIMIZED_TABLEGEN=1 -DLLVM_ENAB

[clang-tools-extra] [clang-tidy][NFC] Enable `modernize-use-auto` in clang-tidy config and fix warnings (PR #157468)

2025-09-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/157468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix __cpuidex conflict with other offloading targets (PR #157741)

2025-09-18 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex ready_for_review https://github.com/llvm/llvm-project/pull/157741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-09-18 Thread via cfe-commits
owenca wrote: Please change "lower case" to "lowercase" and "upper case" to "uppercase". https://github.com/llvm/llvm-project/pull/151590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

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

2025-09-18 Thread Matheus Izvekov via cfe-commits
@@ -282,6 +287,11 @@ class TypeConstraint { } }; +/// Insertion operator for diagnostics. This allows sending TemplateName's mizvekov wrote: ```suggestion /// Insertion operator for diagnostics. This allows sending ConceptReferences ``` https://github.co

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/158462 >From a1941312179171a8752c27f886158ce4fd90db33 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 14 Sep 2025 14:33:59 +0800 Subject: [PATCH 1/8] [clang-tidy] Add new check `modernize-use-structured-binding` --

[clang] [flang] [flang][driver] Accelerate complex division when `-ffast-math` is specified (PR #159689)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Shunsuke Watanabe (s-watanabe314) Changes This patch accelerates complex division by passing `-complex-range=basic` to the frontend when the `-ffast-math` option is specified. This behavior is the same as `-fcomplex-arithmetic=basi

[clang] [flang] [flang][driver] Accelerate complex division when `-ffast-math` is specified (PR #159689)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shunsuke Watanabe (s-watanabe314) Changes This patch accelerates complex division by passing `-complex-range=basic` to the frontend when the `-ffast-math` option is specified. This behavior is the same as `-fcomplex-arithmetic=basic`. A w

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,419 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,419 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,419 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] 725d9e8 - [webkit.UncountedLambdaCapturesChecker] Treat arguments of std::ranges::all_of as [[clang::noescape]] (#158419)

2025-09-18 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-09-18T17:08:51-07:00 New Revision: 725d9e80770e4a8e5888e38a380ff0f7033aa9e0 URL: https://github.com/llvm/llvm-project/commit/725d9e80770e4a8e5888e38a380ff0f7033aa9e0 DIFF: https://github.com/llvm/llvm-project/commit/725d9e80770e4a8e5888e38a380ff0f7033aa9e0.diff

[clang] [flang] [flang][driver] Accelerate complex division when `-ffast-math` is specified (PR #159689)

2025-09-18 Thread Shunsuke Watanabe via cfe-commits
https://github.com/s-watanabe314 created https://github.com/llvm/llvm-project/pull/159689 This patch accelerates complex division by passing `-complex-range=basic` to the frontend when the `-ffast-math` option is specified. This behavior is the same as `-fcomplex-arithmetic=basic`. A warning i

[clang] [llvm] [Clang]: Enable speculative devirtualization (PR #159685)

2025-09-18 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 origin/main HEAD --extensions cpp,h -- clang/lib/CodeGen/BackendUtil.cpp clang/lib/Co

[clang] [llvm] [Clang]: Enable speculative devirtualization (PR #159685)

2025-09-18 Thread Hassnaa Hamdi via cfe-commits
https://github.com/hassnaaHamdi created https://github.com/llvm/llvm-project/pull/159685 None >From 0b5d559f7d2ad8de2c12787904b5f09d5682006e Mon Sep 17 00:00:00 2001 From: Hassnaa Hamdi Date: Mon, 15 Sep 2025 23:41:28 + Subject: [PATCH 1/2] [WPD]: Enable speculative devirtualizatoin. - Ad

[clang] [webkit.UncountedLambdaCapturesChecker] Treat arguments of std::ranges::all_of as [[clang::noescape]] (PR #158419)

2025-09-18 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/158419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [OpenMP][MLIR] Preserve to/from under alloc in declare mapper (PR #159680)

2025-09-18 Thread Akash Banerjee via cfe-commits
https://github.com/TIFitis updated https://github.com/llvm/llvm-project/pull/159680 >From d7cb68c2296535e8e2318bc45f78ae3c6ba60b95 Mon Sep 17 00:00:00 2001 From: Akash Banerjee Date: Fri, 19 Sep 2025 01:07:48 +0100 Subject: [PATCH 1/2] [OpenMP][MLIR] Preserve to/from under alloc in declare map

[clang] [clang] diagnose invalid std::tuple_size sizes (PR #159677)

2025-09-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/159677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [OpenMP][MLIR] Preserve to/from under alloc in declare mapper (PR #159680)

2025-09-18 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 origin/main HEAD --extensions cpp -- offload/test/offloading/declare_mapper_alloc_par

[clang] [llvm] [SYCL] Add offload wrapping for SYCL kind. (PR #147508)

2025-09-18 Thread Alexey Bader via cfe-commits
@@ -52,6 +54,23 @@ LLVM_ABI llvm::Error wrapHIPBinary(llvm::Module &M, llvm::ArrayRef Images, EntryArrayTy EntryArray, llvm::StringRef Suffix = "", bool EmitSurfacesAndText

[clang] [llvm] [mlir] [OpenMP][MLIR] Preserve to/from under alloc in declare mapper (PR #159680)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-offload @llvm/pr-subscribers-mlir-llvm Author: Akash Banerjee (TIFitis) Changes When a parent is mapped as `alloc`, declare mapper’s child `to/from` flags are dropped, so device updates aren’t copied back to host. Fix - In OpenMPIRBuilder’s `emitUserDe

[clang] [llvm] [mlir] [OpenMP][MLIR] Preserve to/from under alloc in declare mapper (PR #159680)

2025-09-18 Thread Akash Banerjee via cfe-commits
https://github.com/TIFitis created https://github.com/llvm/llvm-project/pull/159680 When a parent is mapped as `alloc`, declare mapper’s child `to/from` flags are dropped, so device updates aren’t copied back to host. Fix - In OpenMPIRBuilder’s `emitUserDefinedMapper` alloc branch, clear `TO/

[clang] [compiler-rt] [clang] Add flag to disable container overflow checks at compile time. (PR #159662)

2025-09-18 Thread Paddy McDonald via cfe-commits
https://github.com/padriff edited https://github.com/llvm/llvm-project/pull/159662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Treat arguments of std::ranges::all_of as [[clang::noescape]] (PR #158419)

2025-09-18 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/158419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [openmp] [offload][OpenMP] Remove device code for num_threads strict (PR #157893)

2025-09-18 Thread Robert Imschweiler via cfe-commits
https://github.com/ro-i auto_merge_enabled https://github.com/llvm/llvm-project/pull/157893 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add checker 'core.NullPointerArithm' (PR #157129)

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

[clang] Clang AST updates for more details (PR #152372)

2025-09-18 Thread Reid Kleckner via cfe-commits
rnk wrote: > This seems large enough that it might warrant an RFC with a more detailed > motivation > > https://clang.llvm.org/get_involved.html#:~:text=The%20Clang%20community%20uses,will%20proceed%20or%20not. > > @erichkeane @rnk I think I agree with Aaron's feedback back in August, all tho

[clang] [libcxx] [Clang] Allow __builtin_fma/fmaf/fmal to be used in a constant expression (PR #158048)

2025-09-18 Thread Nikolas Klauser via cfe-commits
@@ -194,11 +194,19 @@ int main(int, char**) { ASSERT_NOT_CONSTEXPR_CXX23(std::fminf(1.0f, 0.0f) == 0.0f); ASSERT_NOT_CONSTEXPR_CXX23(std::fminl(1.0L, 0.0L) == 0.0L); +#if !__has_constexpr_builtin(__builtin_fma) ASSERT_NOT_CONSTEXPR_CXX23(std::fma(1.0f, 1.0f, 1.0f) == 2.

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

2025-09-18 Thread via cfe-commits
https://github.com/shreya-jain updated https://github.com/llvm/llvm-project/pull/156773 >From 927b2f61b8f5e0163c065ee4cbbf7ebb6956c34b Mon Sep 17 00:00:00 2001 From: shreya-jain Date: Wed, 3 Sep 2025 00:36:02 -0700 Subject: [PATCH 01/10] Update UnsafeBufferUsage.h --- clang/include/clang/Anal

[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

2025-09-18 Thread Vedant Paranjape via cfe-commits
https://github.com/VedantParanjape updated https://github.com/llvm/llvm-project/pull/159652 >From c179dfaf6064ec8018c1c12aa7657858e573e57f Mon Sep 17 00:00:00 2001 From: Vedant Paranjape Date: Tue, 16 Sep 2025 04:17:22 -0400 Subject: [PATCH 1/3] [InstCombine] fold float clamp pattern into llvm.

[clang] [clang] Move `-fprofile-instrument-use-path=` check to driver (PR #159667)

2025-09-18 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 origin/main HEAD --extensions c,cpp -- clang/lib/CodeGen/CodeGenModule.cpp clang/lib/

[clang] [WebKit checkers] Add the support for OSObjectPtr (PR #159484)

2025-09-18 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. I left a few nits, otherwise LGTM! https://github.com/llvm/llvm-project/pull/159484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [WebKit checkers] Add the support for OSObjectPtr (PR #159484)

2025-09-18 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud edited https://github.com/llvm/llvm-project/pull/159484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Add the support for OSObjectPtr (PR #159484)

2025-09-18 Thread Rashmi Mudduluru via cfe-commits
@@ -170,7 +171,8 @@ bool isCtorOfRetainPtr(const clang::FunctionDecl *F) { const std::string &FunctionName = safeGetName(F); return FunctionName == "RetainPtr" || FunctionName == "adoptNS" || FunctionName == "adoptCF" || FunctionName == "retainPtr" || - Fun

[clang] [clang] Move `-fprofile-instrument-use-path=` check to driver (PR #159667)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Jan Svoboda (jansvoboda11) Changes The frontend currently opens the path provided via `-fprofile-instrument-use-path=` to learn the kind of the instrumentation data and set the `CodeGenOptions::ProfileUse` value. This happens duri

[clang] [clang] Move `-fprofile-instrument-use-path=` check to driver (PR #159667)

2025-09-18 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/159667 The frontend currently opens the path provided via `-fprofile-instrument-use-path=` to learn the kind of the instrumentation data and set the `CodeGenOptions::ProfileUse` value. This happens during comman

[clang] 5437d90 - [CIR] Upstream FPToFPBuiltin ATanOp (#157496)

2025-09-18 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-11T18:01:12+02:00 New Revision: 5437d90bb72e38ad767dd2e130d23675130a7857 URL: https://github.com/llvm/llvm-project/commit/5437d90bb72e38ad767dd2e130d23675130a7857 DIFF: https://github.com/llvm/llvm-project/commit/5437d90bb72e38ad767dd2e130d23675130a7857.diff LO

[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

2025-09-18 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 origin/main HEAD --extensions h,cpp -- clang/unittests/Interpreter/OutOfProcessInterp

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector insertion intrinsics to be used in constexpr #157709 (PR #158778)

2025-09-18 Thread Simon Pilgrim via cfe-commits
@@ -2937,6 +2937,50 @@ static bool interp__builtin_elementwise_triop( return true; } +static bool interp__builtin_x86_insert_subvector(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/158462 >From a1941312179171a8752c27f886158ce4fd90db33 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 14 Sep 2025 14:33:59 +0800 Subject: [PATCH 1/5] [clang-tidy] Add new check `modernize-use-structured-binding` --

[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

2025-09-18 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/157358 >From 4410aeb08dc14a4f29c9ec0e8730a1bde3386665 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Mon, 8 Sep 2025 00:19:44 +0530 Subject: [PATCH 1/5] [clang-repl] Adding custom lambda in launchExecutor --- clang/inc

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread via cfe-commits
flovent wrote: It's tested in llvm codebase with `-DLLVM_ENABLE_PROJECTS="bolt;clang;clang-tools-extra;compiler-rt"`, since plenty of llvm code it's written in pre-c++17 standard. It provides ~431 warnings and fixits with check option `modernize-use-structured-binding.PairTypes: 'std::pair;

[clang] [HLSL] Add support for input semantics in structs (PR #153224)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Nathan Gauër (Keenuts) Changes This commit adds the support for semantics annotations on structs, but only for inputs. Due to the current semantics implemented, we cannot test much more than nesting/shadowing. Once user semantics a

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-18 Thread Alexey Bataev via cfe-commits
@@ -1497,6 +1497,11 @@ def err_omp_multiple_step_or_linear_modifier : Error< "multiple %select{'step size'|'linear modifier'}0 found in linear clause">; def err_omp_deprecate_old_syntax: Error< "old syntax '%0' on '%1' clause was deprecated, use new syntax '%2'">; +def warn

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPBUSD Argument Types (PR #155194)

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

[clang] 7ebfcbd - Allow for custom code model in clang::Interpreter (#156977)

2025-09-18 Thread via cfe-commits
Author: Jeaye Wilkerson Date: 2025-09-12T18:34:14+03:00 New Revision: 7ebfcbd0ec525810d3874b5826ac1cb53f14c6e4 URL: https://github.com/llvm/llvm-project/commit/7ebfcbd0ec525810d3874b5826ac1cb53f14c6e4 DIFF: https://github.com/llvm/llvm-project/commit/7ebfcbd0ec525810d3874b5826ac1cb53f14c6e4.dif

[clang] [llvm] [mlir] Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end (#155339)" (PR #159278)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-llvm Author: Weibo He (NewSigma) Changes Update a test in inline/ML, which seem to be enabled only in specific environments. Reapply #155339 --- Patch is 156.17 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-proj

  1   2   3   4   5   >