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

2025-08-27 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply-To: @@ -1553,6 +1563,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) {

[clang] [clang-tools-extra] [clang] AST: fix getAs canonicalization of leaf types (PR #155028)

2025-08-27 Thread John McCall via cfe-commits
https://github.com/rjmccall approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/155028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-08-27 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina Message-ID: In-Reply-To: owenca wrote: See #151428. Maybe there's a

[clang] [llvm] [AMDGPU] Refactor insertWaveSizeFeature (PR #154850)

2025-08-27 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/154850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8c6b7af - [AMDGPU] Refactor insertWaveSizeFeature (#154850)

2025-08-27 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-27T00:30:15-07:00 New Revision: 8c6b7af50ec0a6a3c773da1a4fba26eeb568fe38 URL: https://github.com/llvm/llvm-project/commit/8c6b7af50ec0a6a3c773da1a4fba26eeb568fe38 DIFF: https://github.com/llvm/llvm-project/commit/8c6b7af50ec0a6a3c773da1a4fba26eeb568fe

[clang] [flang] [llvm] [AMDGPU] More radical feature initialization refactoring (PR #155222)

2025-08-27 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec edited https://github.com/llvm/llvm-project/pull/155222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Introduce __builtin_meow_synthesises_from_spaceship (PR #155612)

2025-08-27 Thread Louis Dionne via cfe-commits
ldionne wrote: This is clever: that way we know it's a pure optimization to call spaceship instead of less-than twice. IIUC you'd plan to use this from libc++ to optimize eg __find_equal even on user-defined types? https://github.com/llvm/llvm-project/pull/155612 __

[clang] [lldb] [llvm] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-27 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From 5d75d1679d492df1a72c4013afde052f7b6195dd Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 18 Aug 2025 15:12:45 +0100 Subject: [PATCH 1/5] [llvm][DebugInfo] Support DW_AT_linkage_names that are di

[clang] [Clang] Introduce __builtin_meow_synthesises_from_spaceship (PR #155612)

2025-08-27 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: > This is clever: that way we know it's a pure optimization to call spaceship > instead of less-than twice. IIUC you'd plan to use this from libc++ to > optimize eg __find_equal even on user-defined types? Yes, exactly. https://github.com/llvm/llvm-project/pull/155612 __

[clang] [CIR] Add initial support for virtual base classes (PR #155534)

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

[clang] [CIR] Add initial support for virtual base classes (PR #155534)

2025-08-27 Thread Erich Keane via cfe-commits
@@ -37,6 +37,12 @@ class CIRGenCXXABI { void setCXXABIThisValue(CIRGenFunction &cgf, mlir::Value thisPtr); + /// Emit the code to initialize hidden members required to handle virtual + /// inheritance, if needed by the ABI. + virtual void + initializeHiddenVirtualInheri

[clang] [CIR] Add initial support for virtual base classes (PR #155534)

2025-08-27 Thread Erich Keane via cfe-commits
@@ -238,31 +238,44 @@ void CIRGenFunction::emitCtorPrologue(const CXXConstructorDecl *cd, bool constructVBases = ctorType != Ctor_Base && classDecl->getNumVBases() != 0 && !classDecl->isAbstract(); - if (constructVBases) { -

[clang] [CIR] Add initial support for virtual base classes (PR #155534)

2025-08-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. 2 small comments, else this lgtm. https://github.com/llvm/llvm-project/pull/155534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang-tools-extra] [llvm] [TEST] Add clang tidy premerge CI [WIP] (PR #154223)

2025-08-27 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/154223 >From b9e917fb7da29c1dc70e0e89b972fc3e2a631b4f Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Thu, 21 Aug 2025 21:20:33 +0300 Subject: [PATCH 01/10] Add clang-tidy violations for testing purpose --- .../

[clang] [llvm] Remove some "DeprecatedSmallSet is deprecated" warnings from the build (PR #155407)

2025-08-27 Thread Nikita Popov via cfe-commits
nikic wrote: I think it's probably best to revert this change. https://github.com/llvm/llvm-project/pull/155407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread Timm Baeder via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread Timm Baeder via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread Timm Baeder via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [NFC][Clang][OpenMP] Add helper functions/utils for finding/comparing attach base-ptrs. (PR #155625)

2025-08-27 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba created https://github.com/llvm/llvm-project/pull/155625 These have been pulled out of the codegen PR #153683, to reduce the size of that PR. >From 8256e93c46ddd4e0fdd4125b769f040741e56890 Mon Sep 17 00:00:00 2001 From: Abhinav Gaba Date: Wed, 27 Aug 2025 07:02:

[clang] [NFC][Clang][OpenMP] Add helper functions/utils for finding/comparing attach base-ptrs. (PR #155625)

2025-08-27 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba ready_for_review https://github.com/llvm/llvm-project/pull/155625 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang][OpenMP] Add helper functions/utils for finding/comparing attach base-ptrs. (PR #155625)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhinav Gaba (abhinavgaba) Changes These have been pulled out of the codegen PR #153683, to reduce the size of that PR. --- Patch is 25.43 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/155625

[clang] [CIR] More atomic load and store (PR #155168)

2025-08-27 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/155168 >From 0b6f6f7897f0bd6d22252ffd05b3aa7bc7740f4e Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Sun, 24 Aug 2025 21:33:31 +0800 Subject: [PATCH] [CIR] More atomic load and store This patch adds support for `__atom

[clang] [llvm] Remove some "DeprecatedSmallSet is deprecated" warnings from the build (PR #155407)

2025-08-27 Thread David Sherwood via cfe-commits
david-arm wrote: > I think it's probably best to revert this change. OK thanks, I'll abandon the PR. https://github.com/llvm/llvm-project/pull/155407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [NFC][Clang][OpenMP] Add helper functions/utils for finding/comparing attach base-ptrs. (PR #155625)

2025-08-27 Thread Abhinav Gaba via cfe-commits
@@ -6765,12 +6765,256 @@ llvm::Value *CGOpenMPRuntime::emitNumThreadsForTargetDirective( namespace { LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); +/// Utility to compare expression locations. +/// Returns true if expr-loc of LHS is less-than that of RHS. +/// This function asser

[clang-tools-extra] [clang-tidy] Add check 'bugprone-cast-to-struct' (PR #153428)

2025-08-27 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/153428 From 95634ba1fa9690f3d95c45005c908e642c1ced79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Wed, 13 Aug 2025 15:13:13 +0200 Subject: [PATCH 1/5] [clang-tidy] Add check 'bugprone-cast-

[clang-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)

2025-08-27 Thread via cfe-commits
@@ -238,7 +231,13 @@ getFoldingRanges(const std::string &Code, bool LineFoldingOnly) { AddFoldingRange(Start, End, FoldingRange::REGION_KIND); } + auto Preprocessed = DirectiveStructure.stripDirectives(OrigStream); aketchum15 wrote: Done https://gith

[clang] [NFC][Clang][OpenMP] Add helper functions/utils for finding/comparing attach base-ptrs. (PR #155625)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Abhinav Gaba (abhinavgaba) Changes These have been pulled out of the codegen PR #153683, to reduce the size of that PR. --- Patch is 25.43 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pul

[clang-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)

2025-08-27 Thread via cfe-commits
https://github.com/aketchum15 updated https://github.com/llvm/llvm-project/pull/140959 >From f6abf494febe7becb42dd24071a3309c2d4b66d5 Mon Sep 17 00:00:00 2001 From: Ruihua Dong Date: Fri, 17 Jan 2025 12:52:19 +0500 Subject: [PATCH 1/8] [clangd] Implement simple folding of preprocessor branches

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread Yanzuo Liu via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [CIR] More atomic load and store (PR #155168)

2025-08-27 Thread Sirui Mu via cfe-commits
@@ -507,9 +509,11 @@ RValue CIRGenFunction::emitAtomicExpr(AtomicExpr *e) { } bool isStore = e->getOp() == AtomicExpr::AO__c11_atomic_store || - e->getOp() == AtomicExpr::AO__atomic_store; Lancern wrote: Updated. https://github.com/llvm/l

[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

2025-08-27 Thread Theodoros Theodoridis via cfe-commits
https://github.com/thetheodor updated https://github.com/llvm/llvm-project/pull/154814 >From 095073e292e212b938ae3e72c403faab09940a9c Mon Sep 17 00:00:00 2001 From: Theodoros Theodoridis Date: Tue, 12 Aug 2025 15:22:24 + Subject: [PATCH 01/10] [NVPTX] Change the alloca address space in NVP

[clang] [CIR] More atomic load and store (PR #155168)

2025-08-27 Thread Sirui Mu via cfe-commits
https://github.com/Lancern closed https://github.com/llvm/llvm-project/pull/155168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a2bc0ca - [CIR] More atomic load and store (#155168)

2025-08-27 Thread via cfe-commits
Author: Sirui Mu Date: 2025-08-27T22:45:38+08:00 New Revision: a2bc0ca233574895091675518943f19aed1133ee URL: https://github.com/llvm/llvm-project/commit/a2bc0ca233574895091675518943f19aed1133ee DIFF: https://github.com/llvm/llvm-project/commit/a2bc0ca233574895091675518943f19aed1133ee.diff LOG:

[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

2025-08-27 Thread Theodoros Theodoridis via cfe-commits
@@ -1803,10 +1803,7 @@ SDValue NVPTXTargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op, {Chain, DAG.getZExtOrTrunc(Size, DL, LocalVT), DAG.getTargetConstant(Align, DL, MVT::i32)}); - SDValue ASC = DAG.getAddrSpaceCast( - DL, Op.getVa

[clang] Fix unique_ptr aggregate initialization false positives (PR #155131)

2025-08-27 Thread via cfe-commits
vidur2 wrote: > > Im sorry about messing up the naming convention, I havent contributed too > > much to open source stuff. > > No harm done, this is part of the plan 🙂 Every contributor must learn these > sometime and this time it was your turn to do so. > > I read the suggested code changes

[clang] [NFC][Clang][OpenMP] Add helper functions/utils for finding/comparing attach base-ptrs. (PR #155625)

2025-08-27 Thread Krzysztof Parzyszek via cfe-commits
@@ -6920,6 +7198,22 @@ class MappableExprsHandler { /// Map between lambda declarations and their map type. llvm::DenseMap LambdasMap; + /// Map from component lists to their attach pointer expressions. + mutable llvm::DenseMap< + OMPClauseMappableExprCommon::Mappab

[clang] [NFC][Clang][OpenMP] Add helper functions/utils for finding/comparing attach base-ptrs. (PR #155625)

2025-08-27 Thread Krzysztof Parzyszek via cfe-commits
@@ -1156,6 +1157,73 @@ unsigned OMPClauseMappableExprCommon::getUniqueDeclarationsTotalNumber( return UniqueDecls.size(); } +QualType +OMPClauseMappableExprCommon::getComponentExprElementType(const Expr *Exp) { + assert(!isa(Exp) && + "Cannot get element-type from

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread Chaitanya Koparkar via cfe-commits
https://github.com/ckoparkar updated https://github.com/llvm/llvm-project/pull/155620 >From 131965becbc06c875557a51d48113d52df365f87 Mon Sep 17 00:00:00 2001 From: Chaitanya Koparkar Date: Wed, 27 Aug 2025 07:56:44 -0400 Subject: [PATCH 1/2] [clang] Update typechecking of builtin elementwise t

[clang] [llvm] Remove some "DeprecatedSmallSet is deprecated" warnings from the build (PR #155407)

2025-08-27 Thread David Sherwood via cfe-commits
https://github.com/david-arm closed https://github.com/llvm/llvm-project/pull/155407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] New bugprone-method-hiding check (PR #154746)

2025-08-27 Thread via cfe-commits
@@ -0,0 +1,30 @@ +.. title:: clang-tidy - bugprone-method-hiding + +bugprone-method-hiding += + +Finds derived class methods that hide a (non-virtual) base class method. + +In order to be considered "hiding", methods must have the same signature +(i.e. the

[clang] [llvm] Remove some "DeprecatedSmallSet is deprecated" warnings from the build (PR #155407)

2025-08-27 Thread Nikita Popov via cfe-commits
nikic wrote: https://github.com/llvm/llvm-project/pull/155622 https://github.com/llvm/llvm-project/pull/155407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] New bugprone-method-hiding check (PR #154746)

2025-08-27 Thread via cfe-commits
@@ -0,0 +1,129 @@ +//===--===// +// +// 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] [Serialization] Fix lazy template loading (PR #133057)

2025-08-27 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: > Yes it seems that the original target in question compiles successfully now. Ok, that's progress at least. I will then land the PR with the fix some time soon and we can take that item off the list. > Also all new errors seem to come from a rather special build mode. Hm, maybe

[clang] b424207 - [clang] Post-commit review for #150028 (#155351)

2025-08-27 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-27T09:48:57+02:00 New Revision: b424207cdddfa2cbfc9129bbe0a31e47cb04e6dc URL: https://github.com/llvm/llvm-project/commit/b424207cdddfa2cbfc9129bbe0a31e47cb04e6dc DIFF: https://github.com/llvm/llvm-project/commit/b424207cdddfa2cbfc9129bbe0a31e47cb04e6dc.diff L

[clang] [clang] Post-commit review for #150028 (PR #155351)

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

[clang] [flang] [llvm] [AMDGPU] More radical feature initialization refactoring (PR #155222)

2025-08-27 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/155222 >From 7ffe0f95db53bedcb1b92f9becf7e1f477cf430f Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Thu, 21 Aug 2025 14:56:23 -0700 Subject: [PATCH 1/2] [AMDGPU] Refactor insertWaveSizeFeature If a wavef

[clang] [clang][test] Add test for comma operator rejection in preprocessor conditionals (PR #155570)

2025-08-27 Thread NohHyeon Kwon via cfe-commits
https://github.com/swote-git created https://github.com/llvm/llvm-project/pull/155570 Add test coverage to ensure comma operators remain properly rejected in `#if` directives. Per CWG 1436, comma is not among the permitted operators in preprocessor conditional expressions. This test prevents

[clang] [clang][test] Add test for comma operator rejection in preprocessor conditionals (PR #155570)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: NohHyeon Kwon (swote-git) Changes Add test coverage to ensure comma operators remain properly rejected in `#if` directives. Per CWG 1436, comma is not among the permitted operators in preprocessor conditional expressions. This test preve

[clang] [clang][test] Add test for comma operator rejection in preprocessor conditionals (PR #155570)

2025-08-27 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [lldb] [llvm] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-27 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/149827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] New bugprone-method-hiding check (PR #154746)

2025-08-27 Thread via cfe-commits
@@ -0,0 +1,141 @@ +//===--===// +// +// 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] [clang][test] Add test for comma operator rejection in preprocessor conditionals (PR #155570)

2025-08-27 Thread NohHyeon Kwon via cfe-commits
swote-git wrote: Currently, this only about adding test code. While adding these tests, I noticed two potential improvements to the current error message `"comma operator in operand of #if"`: 1. The same message appears for `#elif`, `#ifdef`, etc. 2. Per CWG 1436, comma operators are explicitl

[clang] 9cca295 - [AMDGPU] More radical feature initialization refactoring (#155222)

2025-08-27 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-27T01:21:14-07:00 New Revision: 9cca295dccfa8bcefdd7f3ba512d5d042ae57ca8 URL: https://github.com/llvm/llvm-project/commit/9cca295dccfa8bcefdd7f3ba512d5d042ae57ca8 DIFF: https://github.com/llvm/llvm-project/commit/9cca295dccfa8bcefdd7f3ba512d5d042ae57c

[clang] [flang] [llvm] [AMDGPU] More radical feature initialization refactoring (PR #155222)

2025-08-27 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/155222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Error out in clang if wavefront64 is used on gfx1250 (PR #153693)

2025-08-27 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/153693 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] New bugprone-method-hiding check (PR #154746)

2025-08-27 Thread via cfe-commits
@@ -0,0 +1,141 @@ +//===--===// +// +// 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] [llvm] Remove some "DeprecatedSmallSet is deprecated" warnings from the build (PR #155407)

2025-08-27 Thread David Sherwood via cfe-commits
david-arm wrote: > Does this resolve _all_ of the warnings, or just some of them? If there are > still warnings it is probably better to revert the deprecation change entirely Only some of the warnings - I still see a lot of warnings coming from the inclusion of SmallSet.h in clang/include/cla

[clang] [llvm] [RISCV] Implement MC support for Zvfbfa extension (PR #151106)

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

[clang] [clang][bytecode] Handle vector assignments (PR #155573)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/155573.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+24-1) - (modified) clang/test/AST/ByteCode/vectors.cpp (+25) `

[clang] [LTO] Add unified LTO tests for the PS targets. (PR #148229)

2025-08-27 Thread Ying Yi via cfe-commits
https://github.com/MaggieYingYi updated https://github.com/llvm/llvm-project/pull/148229 >From 673cdd38180bbf2a9d7eab056d74aea2a6316c7f Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Mon, 9 Jun 2025 11:14:24 +0100 Subject: [PATCH] [LTO] Enhance unified/nonunified LTO checks. For the PS targets,

[clang] [clang][bytecode] Handle vector assignments (PR #155573)

2025-08-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/155573 None >From 1ad4ccd8e3cba0e894cdfc5a012147360516a112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 27 Aug 2025 10:29:40 +0200 Subject: [PATCH] [clang][bytecode] Handle vector assignmen

[clang] [llvm] [HLSL][DirectX] Remove uniformity bit from resource initialization intrinsics (PR #155332)

2025-08-27 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/155332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add initial support for virtual base classes (PR #155534)

2025-08-27 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/155534 >From dc7ae0c41669c04d1288a882929058ec08501042 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 11 Jul 2025 13:18:29 -0700 Subject: [PATCH 1/4] [CIR] Add initial support for virtual base classes This ad

[clang] [llvm] [NVPTX] Support i256 load/store with 256-bit vector load (PR #155198)

2025-08-27 Thread Artem Belevich via cfe-commits
@@ -1506,3 +1506,98 @@ define void @local_volatile_4xdouble(ptr addrspace(5) %a, ptr addrspace(5) %b) { store volatile <4 x double> %a.load, ptr addrspace(5) %b ret void } + +define void @test_i256_global(ptr addrspace(1) %a, ptr addrspace(1) %b) { Artem-B

[clang] [llvm] [NVPTX] Support i256 load/store with 256-bit vector load (PR #155198)

2025-08-27 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B approved this pull request. LGTM overall, with few nits. https://github.com/llvm/llvm-project/pull/155198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Support i256 load/store with 256-bit vector load (PR #155198)

2025-08-27 Thread Artem Belevich via cfe-commits
@@ -198,6 +198,12 @@ static bool IsPTXVectorType(MVT VT) { static std::optional> getVectorLoweringShape(EVT VectorEVT, const NVPTXSubtarget &STI, unsigned AddressSpace) { + const bool CanLowerTo256Bit = STI.has256BitVectorLoadStore(AddressSpace); + + if

[clang] [llvm] [NVPTX] Support i256 load/store with 256-bit vector load (PR #155198)

2025-08-27 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/155198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRISCV::CheckBuiltinFunctionCall. (PR #155710)

2025-08-27 Thread Craig Topper via cfe-commits
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/155710 We need to check that the FRM value is an integer constant expression with value 0-4. >From 41c79fa197820c96637f03c8c2f9cdcaeb3ff5cc Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 27 Aug 2025 15:36:08

[clang] [clang][OpenMP] 6.0: detect privatization of array section/assumed-size array (PR #152786)

2025-08-27 Thread David Pagan via cfe-commits
@@ -5177,6 +5190,17 @@ static std::pair getPrivateItem(Sema &S, Expr *&RefExpr, IsArrayExpr = ArraySubscript; } else if (auto *OASE = dyn_cast_or_null(RefExpr)) { Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); + if (S.getLangOpts().OpenMP >= 60 && !A

[clang] [llvm] [libclang][Cygwin] Provide unversioned DLL file alongside versioned one (PR #147132)

2025-08-27 Thread via cfe-commits
https://github.com/jeremyd2019 converted_to_draft https://github.com/llvm/llvm-project/pull/147132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add WarnOnModificationOfCopiedLoopVariable to performance-for-range-c… (PR #155731)

2025-08-27 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang-tools-extra] Add WarnOnModificationOfCopiedLoopVariable to performance-for-range-c… (PR #155731)

2025-08-27 Thread Julia Hansbrough via cfe-commits
https://github.com/flowerhack created https://github.com/llvm/llvm-project/pull/155731 …opy. Adds an option to performance-for-range-copy that alerts when a loop variable is copied and modified. This is a bugprone pattern because the programmer in this case often assumes they are modifying t

[clang-tools-extra] Add WarnOnModificationOfCopiedLoopVariable to performance-for-range-c… (PR #155731)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Julia Hansbrough (flowerhack) Changes …opy. Adds an option to performance-for-range-copy that alerts when a loop variable is copied and modified. This is a bugprone pattern because the programm

[clang] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRISCV::CheckBuiltinFunctionCall. (PR #155710)

2025-08-27 Thread Craig Topper via cfe-commits
https://github.com/topperc updated https://github.com/llvm/llvm-project/pull/155710 >From 41c79fa197820c96637f03c8c2f9cdcaeb3ff5cc Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 27 Aug 2025 15:36:08 -0700 Subject: [PATCH] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRI

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Nicolai Hähnle (nhaehnle) Changes Add builtins that expose the underlying llvm.amdgcn.inverse.ballot intrinsic that we've had for a while. This allows more explicitly writing code that selects or branches in terms of lane masks,

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nicolai Hähnle (nhaehnle) Changes Add builtins that expose the underlying llvm.amdgcn.inverse.ballot intrinsic that we've had for a while. This allows more explicitly writing code that selects or branches in terms of lane masks, which ca

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 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 cl,cpp -- clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread Nicolai Hähnle via cfe-commits
https://github.com/nhaehnle created https://github.com/llvm/llvm-project/pull/155724 Add builtins that expose the underlying llvm.amdgcn.inverse.ballot intrinsic that we've had for a while. This allows more explicitly writing code that selects or branches in terms of lane masks, which can lea

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread Nicolai Hähnle via cfe-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/155724 From cbebbccc6c0638e396ab0c03106aafaf531ec66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 27 Aug 2025 16:08:20 -0700 Subject: [PATCH] clang/AMDGPU: Add __builtin_amdgcn_inverse_b

[clang] [OpenACC] Partial Reduction recipe Lowering (PR #155635)

2025-08-27 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm, but some of the tests are going to fail after https://github.com/llvm/llvm-project/pull/155697 so we need to coordinate the merge order for these. https://github.com/llvm/llvm-project/pull/155635 __

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-08-27 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/155026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-08-27 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk ready_for_review https://github.com/llvm/llvm-project/pull/155026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-27 Thread Justin Stitt via cfe-commits
@@ -1480,6 +1480,14 @@ class DeclRefExpr final return DeclRefExprBits.IsImmediateEscalating; } + bool isOverflowBehaviorDiscarded() const { JustinStitt wrote: The purpose is to emit a different diagnostic for when an OBT is lost during assignment. ``

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-27 Thread Justin Stitt via cfe-commits
JustinStitt wrote: @efriedma-quic thanks for your review. I've tried to address the concerns you brought up and marked the review points as resolved. If I didn't properly fix the issues then please un-resolve the messages. I'm happy to iterate :) https://github.com/llvm/llvm-project/pull/14891

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/155713 None >From b7f1d3166b0be2d774382a1c7531a1c46c14d8a0 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 27 Aug 2025 18:50:41 -0400 Subject: [PATCH] [Driver] Enable outline atomics for OpenBSD/aarch64 --- clang

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/155713.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/OpenBSD.h (+5) - (modified) clang/test/Driver

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-27 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/148914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [NVPTX] Auto-upgrade nvvm.grid_constant to param attribute (PR #155489)

2025-08-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test` running on `ext_buildbot_hw_05-hip-docker` while building `clang,llvm,mlir` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/5420 Here is th

[clang] [clang] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/155737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Enable nullptr handle with negative elemsize in (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 created https://github.com/llvm/llvm-project/pull/155737 Fixes https://github.com/llvm/llvm-project/issues/152904 >From 0b13b0e77e184666d46450b264e1237e6c41a1de Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Wed, 27 Aug 2025 22:45:25 -0400 Subject: [PATCH] E

[clang] [Headers][X86] Allow integer/fp absolute intrinsics to be used in constexpr (PR #154662)

2025-08-27 Thread Ye Tian via cfe-commits
TianYe717 wrote: > This should have a release note, right? Thanks for pointing that out — happy to add a release note. I’m just wondering though: since this PR is part of the larger [[feature-request]](https://github.com/llvm/llvm-project/issues/30794), should we add a note for each sub-issue

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/155737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/155737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] f0dc266 - [NFC] [clangd] [C++20] [Modules] Improve logging message

2025-08-27 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-08-28T10:55:37+08:00 New Revision: f0dc2660997e9dc1dfb017951a1124c5db2e4c23 URL: https://github.com/llvm/llvm-project/commit/f0dc2660997e9dc1dfb017951a1124c5db2e4c23 DIFF: https://github.com/llvm/llvm-project/commit/f0dc2660997e9dc1dfb017951a1124c5db2e4c23.diff LO

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread A. Jiang via cfe-commits
@@ -0,0 +1,15 @@ +// RUN: not %clang_cc1 -std=c++20 -fsyntax-only %s 2>&1 \ +// RUN: | FileCheck %s --implicit-check-not='Assertion `NumElements.isPositive()` failed' + +// In C++20, constexpr dynamic allocation is permitted *only* if valid. +// A negative element count must be

[clang] [clang] Fix crash when `__builtin_function_start` is given an invalid first parameter (PR #155506)

2025-08-27 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/155506 >From 09779d0295dffc66b2c7341d71f33c2f0bd49fca Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 14 Aug 2025 21:50:47 +0800 Subject: [PATCH 1/2] [clang] Fix crash when __builtin_function_start is given an inv

[clang] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRISCV::CheckBuiltinFunctionCall. (PR #155710)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Craig Topper (topperc) Changes We need to check that the FRM value is an integer constant expression with value 0-4. --- Full diff: https://github.com/llvm/llvm-project/pull/155710.diff 1 Files Affected: - (modified) clang/lib

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -130,6 +132,44 @@ void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset( computeGlobalViewIndicesFromFlatOffset(offset, subType, layout, indices); } +static mlir::Type getAttributeType(mlir::Attribute attr) { + return mlir::cast(attr).getType(); +} + +cir::Record

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/155713 >From 13c3479ac3b8b13b2d2829c6ad9b77e736e77b9f Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 27 Aug 2025 18:50:41 -0400 Subject: [PATCH] [Driver] Enable outline atomics for OpenBSD/aarch64 --- clang/lib/D

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -130,6 +132,44 @@ void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset( computeGlobalViewIndicesFromFlatOffset(offset, subType, layout, indices); } +static mlir::Type getAttributeType(mlir::Attribute attr) { + return mlir::cast(attr).getType(); +} + +cir::Record

  1   2   3   4   >