[clang] [clang-format] Fix a bug in SkipMacroDefinitionBody (PR #154787)

2025-08-21 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/154787 Fixes #154683 >From 04dab5e8cf9646e88970350ee602cc82535322bc Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 21 Aug 2025 08:58:12 -0700 Subject: [PATCH] [clang-format] Fix a bug in SkipMacroDefinitionBody Fi

[clang] [clang-format] Fix a bug in SkipMacroDefinitionBody (PR #154787)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes Fixes #154683 --- Full diff: https://github.com/llvm/llvm-project/pull/154787.diff 2 Files Affected: - (modified) clang/lib/Format/UnwrappedLineParser.cpp (+6-3) - (modified) clang/unittests/Format/Format

[clang] [llvm] [Driver][AMDGPU][HIP][SPIRV] Disable optimizations for AMDGCN SPIR-V (PR #154765)

2025-08-21 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > This seems like a pretty massive work-around. Could you be more specific > about what the issue is? I'd expect LLVM optimizations to preserve everything > we need, and if they don't it's because we're breaking the rules / overriding > symbols with `-mlink-builtin-bitcode`. Th

[clang] [clang][bytecode] Guard strcmp against differing element types (PR #154777)

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

[clang] fc62990 - [CIR] Upstream GotoSolver pass (#154596)

2025-08-21 Thread via cfe-commits
Author: Andres-Salamanca Date: 2025-08-21T11:02:29-05:00 New Revision: fc6299065794d05bcab8f6bb9628441b3d071131 URL: https://github.com/llvm/llvm-project/commit/fc6299065794d05bcab8f6bb9628441b3d071131 DIFF: https://github.com/llvm/llvm-project/commit/fc6299065794d05bcab8f6bb9628441b3d071131.di

[clang] 3923adf - [clang][bytecode] Guard strcmp against differing element types (#154777)

2025-08-21 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-21T18:02:08+02:00 New Revision: 3923adfa3f6d06d52e543b1c54d8b831a49ec29f URL: https://github.com/llvm/llvm-project/commit/3923adfa3f6d06d52e543b1c54d8b831a49ec29f DIFF: https://github.com/llvm/llvm-project/commit/3923adfa3f6d06d52e543b1c54d8b831a49ec29f.diff L

[clang] [CIR] Upstream GotoSolver pass (PR #154596)

2025-08-21 Thread via cfe-commits
https://github.com/Andres-Salamanca closed https://github.com/llvm/llvm-project/pull/154596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add DMF builtins for build and disassemble (PR #153097)

2025-08-21 Thread Maryam Moghadas via cfe-commits
https://github.com/maryammo approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/153097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add DMF builtins for build and disassemble (PR #153097)

2025-08-21 Thread Maryam Moghadas via cfe-commits
@@ -93,18 +93,36 @@ void test_pmdmxvi8gerx4spp(unsigned char *vdmrp, unsigned char *vpp, vector unsi *((__dmr1024 *)resp) = vdmr; } -// CHECK-LABEL: @test_dmf_basic -// CHECK-NEXT: entry: -// CHECK-NEXT: [[TMP0:%.*]] = tail call <1024 x i1> @llvm.ppc.mma.dmsetdmrz() -// CHE

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

2025-08-21 Thread Andy MacGregor via cfe-commits
https://github.com/30Wedge updated https://github.com/llvm/llvm-project/pull/151590 >From e816bb79765a31ecaf8d5c4236a485cb7303dc62 Mon Sep 17 00:00:00 2001 From: Andy MacGregor Date: Thu, 31 Jul 2025 16:24:06 -0400 Subject: [PATCH] [clang-format] Add an option to format integer literal case --

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

2025-08-21 Thread Andy MacGregor via cfe-commits
https://github.com/30Wedge updated https://github.com/llvm/llvm-project/pull/151590 >From 152f3acfe9747e2c957e30a13130b7048ca989de Mon Sep 17 00:00:00 2001 From: Andy MacGregor Date: Thu, 31 Jul 2025 16:24:06 -0400 Subject: [PATCH] [clang-format] Add an option to format integer literal case --

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

2025-08-21 Thread Andy MacGregor via cfe-commits
@@ -0,0 +1,190 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2

[clang] [compiler-rt] Change compiler-rt lib search path for Hexagon-linux (PR #154530)

2025-08-21 Thread via cfe-commits
@@ -547,11 +548,8 @@ HexagonToolChain::getSmallDataThreshold(const ArgList &Args) { } std::string HexagonToolChain::getCompilerRTPath() const { - SmallString<128> Dir(getDriver().SysRoot); - llvm::sys::path::append(Dir, "usr", "lib"); - if (!SelectedMultilibs.empty()) { -

[clang] [OpenCLCpp] Remove address-space from friend declaration (PR #153459)

2025-08-21 Thread via cfe-commits
https://github.com/piotrrak edited https://github.com/llvm/llvm-project/pull/153459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add DMF builtins for build and disassemble (PR #153097)

2025-08-21 Thread Maryam Moghadas via cfe-commits
@@ -12117,6 +12140,24 @@ SDValue PPCTargetLowering::LowerDMFVectorLoad(SDValue Op, return DAG.getMergeValues({DmrPValue, TF}, dl); } +SDValue PPCTargetLowering::DMFInsert1024(const SmallVectorImpl &Pairs, + const SDLoc &dl, +

[clang] [Clang]Throw frontend error for target feature mismatch when using `flatten` attribute (PR #150044)

2025-08-21 Thread Abhishek Kaushik via cfe-commits
https://github.com/abhishek-kaushik22 updated https://github.com/llvm/llvm-project/pull/150044 >From 480f5521ff5f0767ea295ef61a054f35961be3b0 Mon Sep 17 00:00:00 2001 From: Abhishek Kaushik Date: Tue, 22 Jul 2025 21:03:17 +0530 Subject: [PATCH 1/3] [Clang]Throw frontend error for target feature

[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)

2025-08-21 Thread Nikolas Klauser via cfe-commits
@@ -16,7 +16,8 @@ #define _NULLPTR_T #ifdef __cplusplus -#if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) +#if __cplusplus >= 201103L || \ +(defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED))

[clang] [flang] [flang] add -floop-interchange and enable it with opt levels (PR #140182)

2025-08-21 Thread Tom Eccles via cfe-commits
tblah wrote: Weighing in with my personal opinion here: - If this can be shown to miss compile any known application then that's grounds for imediately disabling the pass until it can be fixed. - If this only breaks some very obscure fortran formulation that it is unlikely for a human to write

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-08-21 Thread John McCall via cfe-commits
https://github.com/rjmccall requested changes to this pull request. (flagging that changes are requested, since I failed to do so on my earlier comment) https://github.com/llvm/llvm-project/pull/152532 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-08-21 Thread John McCall via cfe-commits
https://github.com/rjmccall edited https://github.com/llvm/llvm-project/pull/152532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

[clang] [flang] [Flang][Flang-Driver]Fix to add atomic control options in non-fc1 mode (PR #154638)

2025-08-21 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. LGTM. Thanks https://github.com/llvm/llvm-project/pull/154638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)

2025-08-21 Thread Aaron Ballman via cfe-commits
@@ -16,7 +16,8 @@ #define _NULLPTR_T #ifdef __cplusplus -#if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) +#if __cplusplus >= 201103L || \ +(defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED))

[clang] [flang] [flang] add -floop-interchange and enable it with opt levels (PR #140182)

2025-08-21 Thread Sebastian Pop via cfe-commits
sebpop wrote: Thank you for raising these issues to my attention, I will be working on fixing these bugs. I believe those bugs may not impact Fortran programs as generated by flang: 1. One data point is our internal runs of SPEC Cpu benchmarks on which interchange does trigger with flang, and

[clang] bce9b6d - [Flang][Flang-Driver]Fix to add atomic control options in non-fc1 mode (#154638)

2025-08-21 Thread via cfe-commits
Author: Anchu Rajendran S Date: 2025-08-21T10:15:33-07:00 New Revision: bce9b6d1771bbcf6d250935fdaab1dfa0922fd72 URL: https://github.com/llvm/llvm-project/commit/bce9b6d1771bbcf6d250935fdaab1dfa0922fd72 DIFF: https://github.com/llvm/llvm-project/commit/bce9b6d1771bbcf6d250935fdaab1dfa0922fd72.d

[clang] [flang] [Flang][Flang-Driver]Fix to add atomic control options in non-fc1 mode (PR #154638)

2025-08-21 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj closed https://github.com/llvm/llvm-project/pull/154638 ___ 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-21 Thread via cfe-commits
@@ -0,0 +1,148 @@ +//===--- MethodHidingCheck.cpp - clang-tidy ===// EugeneZelenko wrote: ```suggestion //===--===// ``` https://github.com/llvm/llvm-project/pull/154

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

2025-08-21 Thread via cfe-commits
@@ -0,0 +1,37 @@ +//===--- MethodHidingCheck.h - clang-tidy *- C++ -*-===// EugeneZelenko wrote: ```suggestion //===--===// ``` https://github.com/llvm/llvm-project/pull/1547

[clang] [llvm] [PowerPC] Add DMF builtins for build and disassemble (PR #153097)

2025-08-21 Thread Maryam Moghadas via cfe-commits
https://github.com/maryammo edited https://github.com/llvm/llvm-project/pull/153097 ___ 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-21 Thread Carlos Galvez via cfe-commits
@@ -4,6 +4,9 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/or its affiliates +// May 2025 modified by Siemens and/or its affiliates b

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

2025-08-21 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply-To: owenca wrote: > Could you please provide the used config too? Might be necessary to add some > more test cases around this It's the default config. No `.clang-format` file. The inconsistency is that empty records are merged but short, non-e

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-08-21 Thread John McCall via cfe-commits
@@ -1798,7 +1798,7 @@ llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { SkippedChecks.set(SanitizerKind::Null, nullCheck); EmitTypeCheck(CodeGenFunction::TCK_ConstructorCall, E->getAllocatedTypeSourceInfo()->getTypeLoc().getBeginLoc(), -

[clang] [Clang][Codegen][NFC] Apply rule of three to some classes (PR #154671)

2025-08-21 Thread Thurston Dang via cfe-commits
https://github.com/thurstond approved this pull request. https://github.com/llvm/llvm-project/pull/154671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-08-21 Thread John McCall via cfe-commits
https://github.com/rjmccall commented: So this is interesting, because I agree that the diagnostic message is misleading, but I'm not sure this is the right solution. The replaceable global `operator new` functions are required to return a pointer that's appropriately aligned to some target-sp

[clang] [compiler-rt] Change compiler-rt lib search path for Hexagon-linux (PR #154530)

2025-08-21 Thread Brian Cain via cfe-commits
@@ -547,11 +548,8 @@ HexagonToolChain::getSmallDataThreshold(const ArgList &Args) { } std::string HexagonToolChain::getCompilerRTPath() const { - SmallString<128> Dir(getDriver().SysRoot); - llvm::sys::path::append(Dir, "usr", "lib"); - if (!SelectedMultilibs.empty()) { -

[clang] [clang][bytecode] Guard strcmp against differing element types (PR #154777)

2025-08-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/154777 >From f0365feffd401d92c4b1d12af3377afe5a1af41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 21 Aug 2025 16:54:58 +0200 Subject: [PATCH] [clang][bytecode] Guard strcmp against differin

[clang] [llvm] [PowerPC] Add DMF builtins for build and disassemble (PR #153097)

2025-08-21 Thread Maryam Moghadas via cfe-commits
@@ -11292,6 +11292,25 @@ SDValue PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, return DAG.getMergeValues(RetOps, dl); } + case Intrinsic::ppc_mma_build_dmr: { +SmallVector Pairs; +SmallVector Chains; +for (int i = 1; i < 9; i += 2) { + SDValue

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

2025-08-21 Thread Andy MacGregor via cfe-commits
@@ -0,0 +1,35 @@ +//===--- NumericLiteralCaseFixer.h -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.

[clang] [clang][bytecode] Implement Pointer::getType() for function pointers (PR #154788)

2025-08-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/154788 Fixes #152920 >From 9dd7e0633c0b3486ac9a509d2dab5fe7b4896b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 21 Aug 2025 18:09:01 +0200 Subject: [PATCH] [clang][bytecode] Implement Poin

[clang] [clang][bytecode] Implement Pointer::getType() for function pointers (PR #154788)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Fixes #152920 --- Full diff: https://github.com/llvm/llvm-project/pull/154788.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Pointer.h (+2) - (modified) clang/test/AST/ByteCode/functions.cpp (

[clang] Reapply "[Clang] Take libstdc++ into account during GCC detection" #154368 (PR #154487)

2025-08-21 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. Please copy the original description to the description . https://github.com/llvm/llvm-project/pull/154487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

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

2025-08-21 Thread via cfe-commits
@@ -4,6 +4,9 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/or its affiliates +// May 2025 modified by Siemens and/or its affiliates b

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

2025-08-21 Thread Tomáš Slanina via cfe-commits
itzexpoexpo wrote: Right, I see what you mean now, it also ignores explicitly specified `SplitEmptyRecords: true`. For now I'll open an issue and potentially look into making a PR. https://github.com/llvm/llvm-project/pull/154580 ___ cfe-commits mail

[clang] c5466c6 - [CIR] Add CIR vtable attribute (#154415)

2025-08-21 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-08-21T09:52:14-07:00 New Revision: c5466c64d42ba58d2a2a7df5f8032d2c8b017d83 URL: https://github.com/llvm/llvm-project/commit/c5466c64d42ba58d2a2a7df5f8032d2c8b017d83 DIFF: https://github.com/llvm/llvm-project/commit/c5466c64d42ba58d2a2a7df5f8032d2c8b017d83.diff L

[clang] [compiler-rt] Change compiler-rt lib search path for Hexagon-linux (PR #154530)

2025-08-21 Thread via cfe-commits
@@ -594,6 +592,9 @@ void HexagonToolChain::getHexagonLibraryPaths(const ArgList &Args, LibPaths.push_back(LibDirCpu); LibPaths.push_back(LibDir); } + if (getTriple().isMusl()) { +LibPaths.push_back(getCompilerRTPath()); + } } quic-k wrote: oh

[clang] [clang][bytecode] Fix a crash with typeid pointers (PR #154692)

2025-08-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/154692 ___ 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-08-21 Thread Andy MacGregor via cfe-commits
30Wedge wrote: Apologies for force push and squashing. I didn't know that the "update branch" would merge `main` into this feature branch. I lost the fixup commits while reconciling with the local branch. https://github.com/llvm/llvm-project/pull/151590

[clang] [clang] fix runtime check for NNS transform (PR #154418)

2025-08-21 Thread Jordan Rupprecht via cfe-commits
rupprecht wrote: Verified this on unreduced input, thanks! https://github.com/llvm/llvm-project/pull/154418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-08-21 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/154715 >From 20acfd4109a453060f3678e536234de94012f19c Mon Sep 17 00:00:00 2001 From: AditiRM Date: Thu, 21 Aug 2025 09:40:59 + Subject: [PATCH 1/6] Implement frontend for bcd builtins --- clang/include/clang/Basi

[clang] f2aedc2 - [clang][DebugInfo][test] Move debug-info tests from CodeGenCXX to DebugInfo directory (#154538)

2025-08-21 Thread via cfe-commits
Author: Michael Buch Date: 2025-08-21T09:26:08+01:00 New Revision: f2aedc21f9fc9f3cd67116b0de35d09aa9f15fe4 URL: https://github.com/llvm/llvm-project/commit/f2aedc21f9fc9f3cd67116b0de35d09aa9f15fe4 DIFF: https://github.com/llvm/llvm-project/commit/f2aedc21f9fc9f3cd67116b0de35d09aa9f15fe4.diff

[clang] [Headers][X86] Update FMA3/FMA4 scalar intrinsics to use __builtin_elementwise_fma and support constexpr (PR #154731)

2025-08-21 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 HEAD~1 HEAD --extensions cpp,c,h -- clang/lib/CodeGen/TargetBuiltins/X86.cpp clang/li

[clang-tools-extra] [clang-tidy] Support direct initialization in modernize smart pointer (PR #154732)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Liu Ke (Sockke) Changes Support for direct initialization detection in modernize smart pointer checks. --- Full diff: https://github.com/llvm/llvm-project/pull/154732.diff 3 Files Affected: - (modified) clang-tools-extra/cl

[clang] [clang][bytecode] Check for unknown size array pointers in InitField* (PR #154689)

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

[clang] 2ea5ec7 - [clang][bytecode] Fix a crash in Destroy op (#154695)

2025-08-21 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-21T13:23:57+02:00 New Revision: 2ea5ec78db3e76f2c31309d89b7697ec02a8ab5e URL: https://github.com/llvm/llvm-project/commit/2ea5ec78db3e76f2c31309d89b7697ec02a8ab5e DIFF: https://github.com/llvm/llvm-project/commit/2ea5ec78db3e76f2c31309d89b7697ec02a8ab5e.diff L

[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)

2025-08-21 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > libc++ failure appears to be unrelated: > > ``` > > FAIL: llvm-libc++-shared.cfg.in :: > > libcxx/utilities/tuple/no_specializations.verify.cpp (9116 of 10798) > > TEST 'llvm-libc++-shared.cfg.in :: > > libcxx/utilities/tuple/no_specializations.ve

[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-21 Thread Balazs Benics via cfe-commits
https://github.com/steakhal milestoned https://github.com/llvm/llvm-project/pull/151908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-21 Thread Balazs Benics via cfe-commits
steakhal wrote: @tru I have this (https://github.com/llvm/llvm-project/commit/0a1eff2ecedcb11acb3e9d4b75ee1e1bebd69a70) simple patch that I want to backport to clang-21, however, it broke the CI build on main, so there was a followup patch (https://github.com/llvm/llvm-project/commit/6c9f1ce4

[clang] [clang] Remove hasValue() check in `RecordExprEvaluator::VisitCXXConstructExpr()` (PR #154610)

2025-08-21 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 milestoned https://github.com/llvm/llvm-project/pull/154610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][analyzer][NFC] Const-correct CheckerContext API (PR #154741)

2025-08-21 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto created https://github.com/llvm/llvm-project/pull/154741 Improve const-correctness of CheckerContext API by defining the missing `const` overloads to its accessor member functions. This NFC change is triggered by a work on a downstream checker that operated on a `cons

[clang] [Clang][analyzer][NFC] Const-correct CheckerContext API (PR #154741)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Arseniy Zaostrovnykh (necto) Changes Improve const-correctness of CheckerContext API by defining the missing `const` overloads to its accessor member functions. This NFC change is triggered by a work on a downstream checker that operated

[clang] [Clang][analyzer][NFC] Const-correct CheckerContext API (PR #154741)

2025-08-21 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/154741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C99] Update documentation for scope of variables in loops; NFC (PR #154744)

2025-08-21 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/154744 I tracked down the document which changed the way variables are handled in for loops for C99, it was the same document that allowed mixing code and declarations but the editor's report made it seem like th

[clang] [llvm] Singleton hack of fixing static initialisation order ficaso (PR #154541)

2025-08-21 Thread via cfe-commits
https://github.com/Dalmurii updated https://github.com/llvm/llvm-project/pull/154541 >From 4bc8f7c83dfd53cc1984d722e78fbc1f19fbf991 Mon Sep 17 00:00:00 2001 From: ae2f Date: Wed, 20 Aug 2025 22:26:09 +0900 Subject: [PATCH 1/5] Fix of [Static Initialization Order Fiasco Issue](https://github.co

[clang] [clang] Remove hasValue() check in `RecordExprEvaluator::VisitCXXConstructExpr()` (PR #154610)

2025-08-21 Thread Timm Baeder via cfe-commits
tbaederr wrote: Does a release note make sense if the patch gets backported to the release branch anyway? https://github.com/llvm/llvm-project/pull/154610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

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

2025-08-21 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] [C99] Update documentation for scope of variables in loops; NFC (PR #154744)

2025-08-21 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/154744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a33e505 - [C99] Update documentation for scope of variables in loops; NFC (#154744)

2025-08-21 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-08-21T12:46:57Z New Revision: a33e505c1a852524dc065a7b4cb07ca6dccd6bf0 URL: https://github.com/llvm/llvm-project/commit/a33e505c1a852524dc065a7b4cb07ca6dccd6bf0 DIFF: https://github.com/llvm/llvm-project/commit/a33e505c1a852524dc065a7b4cb07ca6dccd6bf0.diff LOG:

[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)

2025-08-21 Thread Nikolas Klauser via cfe-commits
@@ -16,7 +16,8 @@ #define _NULLPTR_T #ifdef __cplusplus -#if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) +#if __cplusplus >= 201103L || \ +(defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED))

[clang] [llvm] Singleton hack of fixing static initialisation order ficaso (PR #154541)

2025-08-21 Thread via cfe-commits
https://github.com/Dalmurii updated https://github.com/llvm/llvm-project/pull/154541 >From 4bc8f7c83dfd53cc1984d722e78fbc1f19fbf991 Mon Sep 17 00:00:00 2001 From: ae2f Date: Wed, 20 Aug 2025 22:26:09 +0900 Subject: [PATCH 1/5] Fix of [Static Initialization Order Fiasco Issue](https://github.co

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

2025-08-21 Thread Balázs Kéri via cfe-commits
balazske wrote: > * Consider extending this to C++. It was already considered in https://github.com/llvm/llvm-project/pull/153428#discussion_r2276041093. > * Consider ignoring char/u8* types by default. Consider supporting typedefs > (you may need to resolve them 1 by 1). For the ignore `ch

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

2025-08-21 Thread Aaron Ballman via cfe-commits
@@ -4,6 +4,9 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/or its affiliates +// May 2025 modified by Siemens and/or its affiliates b

[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

2025-08-21 Thread Valentyn Yukhymenko via cfe-commits
@@ -985,6 +985,20 @@ auto buildTransferMatchSwitch() { isOptionalMemberCallWithNameMatcher(hasName("isNull")), transferOptionalIsNullCall) + // NullableValue::makeValue, NullableValue::makeValueInplace + // Only NullableValue has these methods, bu

[clang] [Clang]Throw frontend error for target feature mismatch when using `flatten` attribute (PR #150044)

2025-08-21 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -verify -o - AaronBallman wrote: ```suggestion // RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -verify -o /dev/null ``` https://github.com/llvm/llvm-project/pull/150044 ___

[clang] [clang][bytecode] Implement ia32_select* builtins (PR #154758)

2025-08-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/154758 ___ 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-21 Thread via cfe-commits
@@ -4,6 +4,9 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/or its affiliates +// May 2025 modified by Siemens and/or its affiliates b

[clang] [llvm] [Driver][AMDGPU][HIP][SPIRV] Disable optimizations for AMDGCN SPIR-V (PR #154765)

2025-08-21 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/154765 >From 3e0abe10c53e08cc1ebf16662d8d58cd7245f70f Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 15 May 2025 23:27:42 +0100 Subject: [PATCH 1/2] Add pass which forwards unimplemented math builtins / libcalls

[clang] [CIR] Add CIR vtable attribute (PR #154415)

2025-08-21 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/154415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][Dialect] Add SourceLangAttr (PR #152511)

2025-08-21 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/152511 ___ 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 check 'bugprone-cast-to-struct' (PR #153428)

2025-08-21 Thread Balázs Kéri via cfe-commits
balazske wrote: `CStyleCastExpr` is probably never implicit, `TK_IgnoreUnlessSpelledInSource` is not needed? https://github.com/llvm/llvm-project/pull/153428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [CIR] Upstream DivOp for ComplexType (PR #153796)

2025-08-21 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/153796 >From 6613d4c0d735461a0b5ef04da544f6ddf3f38541 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed, 13 Aug 2025 20:22:38 +0200 Subject: [PATCH 1/4] [CIR] Upstream DivOp for ComplexType --- clang/include

[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)

2025-08-21 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: libc++ failure appears to be unrelated: ``` FAIL: llvm-libc++-shared.cfg.in :: libcxx/utilities/tuple/no_specializations.verify.cpp (9116 of 10798) TEST 'llvm-libc++-shared.cfg.in :: libcxx/utilities/tuple/no_specializations.verify.cpp' FAILED **

[clang-tools-extra] [clang-tidy] Support direct initialization in modernize smart pointer (PR #154732)

2025-08-21 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 HEAD~1 HEAD --extensions cpp -- clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCh

[clang] [clang][bytecode] Fix an out-of-bounds access with ia32_pmul* (PR #154750)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes ... builtins. We used to access the I'th index of the output vector, but that doesn't work since the output vector is only half the size of the input vector. --- Full diff: https://github.com/llvm/llvm-proje

[clang] [clang][bytecode] Fix an out-of-bounds access with ia32_pmul* (PR #154750)

2025-08-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/154750 ... builtins. We used to access the I'th index of the output vector, but that doesn't work since the output vector is only half the size of the input vector. >From be53d0ef17b1bfe57d83863a86986b02a8b316c5 Mon

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

2025-08-21 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 HEAD~1 HEAD --extensions h,cpp -- clang-tools-extra/clang-tidy/bugprone/MethodHidingC

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

2025-08-21 Thread Aaron Ballman via cfe-commits
@@ -1,3 +1,9 @@ +# 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: Apache-2.0 WITH LLVM-exception +# SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/o

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

2025-08-21 Thread Baranov Victor via cfe-commits
@@ -4,6 +4,9 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/or its affiliates +// May 2025 modified by Siemens and/or its affiliates b

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

2025-08-21 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,148 @@ +//===--- MethodHidingCheck.cpp - clang-tidy ===// +// +// SPDX-FileCopyrightText: 2025 Siemens Corporation and/or its affiliates AaronBallman wrote: And here (I'll stop commenting) https://github.com/llvm/llvm-proje

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

2025-08-21 Thread Aaron Ballman via cfe-commits
@@ -4,6 +4,9 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/or its affiliates +// May 2025 modified by Siemens and/or its affiliates b

[clang] [C99] Update documentation for scope of variables in loops; NFC (PR #154744)

2025-08-21 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman auto_merge_enabled https://github.com/llvm/llvm-project/pull/154744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7d167f4 - [C++] Expose nullptr_t from stddef.h in C++ mode (#154599)

2025-08-21 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-08-21T09:11:41-04:00 New Revision: 7d167f45643b37a627e2aef49f718a5a2debd5d3 URL: https://github.com/llvm/llvm-project/commit/7d167f45643b37a627e2aef49f718a5a2debd5d3 DIFF: https://github.com/llvm/llvm-project/commit/7d167f45643b37a627e2aef49f718a5a2debd5d3.diff

[clang] [Clang][analyzer][NFC] Const-correct CheckerContext API (PR #154741)

2025-08-21 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 HEAD~1 HEAD --extensions h -- clang/include/clang/StaticAnalyzer/Core/BugReporter/Bug

[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)

2025-08-21 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/154599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add CIR vtable attribute (PR #154415)

2025-08-21 Thread Morris Hafner via cfe-commits
https://github.com/mmha approved this pull request. https://github.com/llvm/llvm-project/pull/154415 ___ 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-21 Thread Baranov Victor via cfe-commits
@@ -4,6 +4,9 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // +// SPDX-FileCopyrightText: Portions Copyright 2025 Siemens and/or its affiliates +// May 2025 modified by Siemens and/or its affiliates b

[clang] [Clang][analyzer][NFC] Const-correct CheckerContext API (PR #154741)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Arseniy Zaostrovnykh (necto) Changes Improve const-correctness of CheckerContext API by defining the missing `const` overloads to its accessor member functions. This NFC change is triggered by a work on a downstream chec

[clang] [clang] Implement -Walloc-size diagnostic option (PR #150028)

2025-08-21 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! Please give @erichkeane a chance to sign off before landing, though https://github.com/llvm/llvm-project/pull/150028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [llvm] [Driver][HIP][HIPSTDPAR][Windows] Link the HIP RT even when `-nostdlib` (PR #154630)

2025-08-21 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/154630 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] add -floop-interchange and enable it with opt levels (PR #140182)

2025-08-21 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: > There are fundamental flaws in DA's implementation, particularly in how it > handles wrapping of SCEVs. So the real question here is: how important or realistic is this for Fortran? https://github.com/llvm/llvm-project/pull/140182

[clang] [CIR] Upstream GotoSolver pass (PR #154596)

2025-08-21 Thread Morris Hafner via cfe-commits
https://github.com/mmha approved this pull request. LGTM, just one nit https://github.com/llvm/llvm-project/pull/154596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >