[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/151790 >From 12e745a621a7fbd30c0991bf52598455b886f37e Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Sat, 2 Aug 2025 12:02:49 +0800 Subject: [PATCH 1/2] [clang][diagnostics] Fix fix-it hint parenthesis place

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/151624 >From f7e79ed934bcb05548b6a4d303d6ed6284648f35 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Fri, 1 Aug 2025 01:19:18 -0700 Subject: [PATCH 1/2] [libtooling] Insert headers in global module fragment

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: Should I combine all into the same test case, or are 3 separate ones okay? I just realized the other tests seem to combine multiple checks into one gtest test. https://github.com/llvm/llvm-project/pull/151624 ___

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] Split out staticanalyzer portion of Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-08-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/21096 Here is th

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread via cfe-commits
https://github.com/JVApen approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread via cfe-commits
JVApen wrote: @HighCommander4 I don't have the power to complete on LLVM repository, can you do that? https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/151790 >From 12e745a621a7fbd30c0991bf52598455b886f37e Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Sat, 2 Aug 2025 12:02:49 +0800 Subject: [PATCH 1/2] [clang][diagnostics] Fix fix-it hint parenthesis place

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 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/test/FixIt/fixit-c++17.cpp clang/lib/Sema/SemaT

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 Thread Iris Shi via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -verify -std=c++17 -pedantic-errors %s +// RUN: cp %s %t +// RUN: not %clang_cc1 -x c++ -std=c++17 -fixit %t +// RUN: %clang_cc1 -Wall -pedantic-errors -x c++ -std=c++17 %t + +/* This is a test of the various code modification hints that only +

[clang] 44500ae - [CIR] Use getDefiningOp() instead of dyn_cast(getDefiningOp()) (NFC) (#151217)

2025-08-02 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-08-02T09:21:05+02:00 New Revision: 44500ae265cb537905e53b02d8c1e6ef7154a3bd URL: https://github.com/llvm/llvm-project/commit/44500ae265cb537905e53b02d8c1e6ef7154a3bd DIFF: https://github.com/llvm/llvm-project/commit/44500ae265cb537905e53b02d8c1e6ef7154a3bd.diff

[clang] [CIR] Use getDefiningOp() instead of dyn_cast(getDefiningOp()) (NFC) (PR #151217)

2025-08-02 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/151217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Use llvm::none_of (NFC) (PR #151801)

2025-08-02 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. https://github.com/llvm/llvm-project/pull/151801 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis commented: LGTM but please let other people take a look. https://github.com/llvm/llvm-project/pull/151790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Skip declarations in system headers in RenamerClangTidyC… (PR #151772)

2025-08-02 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. https://github.com/llvm/llvm-project/pull/151772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2025-08-02 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 7371b05f23116292313f225aa6ac3dd26857683c Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] [clang] Support --sysroot= for ${arch}-windows-msvc targets I thin

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/151790 >From 12e745a621a7fbd30c0991bf52598455b886f37e Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Sat, 2 Aug 2025 12:02:49 +0800 Subject: [PATCH 1/3] [clang][diagnostics] Fix fix-it hint parenthesis place

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2025-08-02 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,h -- clang/test/Driver/msvc-sysroot.cpp clang/include/cl

[clang] [clang][seh]: Fix c++ destructors when c++ exceptions are disabled (PR #151836)

2025-08-02 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Is the problem happening when enabling async-exceptions but not cxx-exceptions on c++ objects? I'm not sure if it's a valid scenario. The designed requires `cxx-exceptions`, see descriptions in https://github.com/llvm/llvm-project/commit/797ad701522988e212495285dade8efac41a24

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

2025-08-02 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt approved this pull request. Again, can't give any comprehensive code critiques but you addressed my nits and such so LGTM. https://github.com/llvm/llvm-project/pull/151590 ___ cfe-commits mailing list cfe-commits@lists.l

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

2025-08-02 Thread Justin Stitt via cfe-commits
@@ -5076,6 +5075,78 @@ the configuration (without a prefix: ``Auto``). For example: TESTSUITE +.. _NumericLiteralCase: + +**NumericLiteralCase** (``NumericLiteralCaseStyle``) :versionbadge:`clang-format 21` :ref:`¶ ` + Controls character case in numeric literals. + + Pos

[clang] [CIR] Add CIRGen for cir.unreachable and cir.trap (PR #151363)

2025-08-02 Thread Sirui Mu via cfe-commits
@@ -1780,6 +1780,20 @@ LValue CIRGenFunction::emitLoadOfReferenceLValue(Address refAddr, pointeeBaseInfo); } +void CIRGenFunction::emitTrap(mlir::Location loc, bool createNewBlock) { Lancern wrote: I added a missing feature call for s

[clang] [CIR] Add CIRGen for cir.unreachable and cir.trap (PR #151363)

2025-08-02 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/151363 >From 8f9ec79eaf53e993558e06dd088ea9924c9ca8a3 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Thu, 31 Jul 2025 01:08:22 +0800 Subject: [PATCH] [CIR] Add CIRGen for cir.unreachable and cir.trap --- clang/lib/CIR

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/21099 Here is th

[clang-tools-extra] 0e40051 - [clang-tidy] Skip declarations in system headers in RenamerClangTidyC… (#151772)

2025-08-02 Thread via cfe-commits
Author: Carlos Galvez Date: 2025-08-02T12:20:25+02:00 New Revision: 0e40051565db1399b573b4bddc43c806ca86dc8d URL: https://github.com/llvm/llvm-project/commit/0e40051565db1399b573b4bddc43c806ca86dc8d DIFF: https://github.com/llvm/llvm-project/commit/0e40051565db1399b573b4bddc43c806ca86dc8d.diff

[clang] [clang] Proofread LanguageExtensions.rst (PR #151802)

2025-08-02 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/151802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream builtin lowering emitter & FAbs op (PR #151750)

2025-08-02 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/151750 >From 756f0656c3ad7788ed80ff9ccc091e19d07d63f8 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 1 Aug 2025 20:48:02 +0200 Subject: [PATCH 1/2] [CIR] Upstream builtin fabs op --- clang/include/clang/

[clang] [clang][NFC] Code Cleanup of inferred noreturn attributes in explicit specializations. (PR #151815)

2025-08-02 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 created https://github.com/llvm/llvm-project/pull/151815 Addressing https://github.com/llvm/llvm-project/pull/150003#discussion_r2249169463 >From c19d6a3025be9eda7a05d0ebfc459ae82272809e Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 2 Aug 2025 08:37:06

[clang] [clang][NFC] Code Cleanup of inferred noreturn attributes in explicit specializations. (PR #151815)

2025-08-02 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/151815 >From 5dbdca199d6c6d9b150bdb3bb447fab9e313962d Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 2 Aug 2025 08:37:06 -0400 Subject: [PATCH] Cleanup of inferred noreturn attributes in explicit speciali

[clang] [clang][NFC] Code Cleanup of inferred noreturn attributes in explicit specializations. (PR #151815)

2025-08-02 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/lib/Sema/SemaDecl.cpp `` View the

[clang] 41803a2 - [clang][bytecode] Replace MoveFn With DtorFn + memcpy (#151717)

2025-08-02 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-02T14:47:49+02:00 New Revision: 41803a24140c3c53bbc82c7b61c7b196cf9d113a URL: https://github.com/llvm/llvm-project/commit/41803a24140c3c53bbc82c7b61c7b196cf9d113a DIFF: https://github.com/llvm/llvm-project/commit/41803a24140c3c53bbc82c7b61c7b196cf9d113a.diff L

[clang] [clang][bytecode] Replace MoveFn With DtorFn + memcpy (PR #151717)

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

[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

2025-08-02 Thread Marco Elver via cfe-commits
@@ -1012,6 +1030,107 @@ void SExprBuilder::exitCFG(const CFGBlock *Last) { IncompleteArgs.clear(); } +bool SExprBuilder::isVariableReassigned(const VarDecl *VD) { + // Note: The search is performed lazily per-variable and result is cached. An + // alternative would have be

[clang] [llvm] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions (PR #151810)

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

[clang] [llvm] [AMDGPU] Add missing v_permlane_up_b32 test. NFC. (PR #151811)

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

[clang] [llvm] [AMDGPU] Add missing v_permlane_up_b32 test. NFC. (PR #151811)

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

[clang] d18511e - [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions (#151810)

2025-08-02 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-02T15:21:59-07:00 New Revision: d18511e10a0d737c13a7a017ef3d0655911fc22d URL: https://github.com/llvm/llvm-project/commit/d18511e10a0d737c13a7a017ef3d0655911fc22d DIFF: https://github.com/llvm/llvm-project/commit/d18511e10a0d737c13a7a017ef3d0655911fc2

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

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

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

2025-08-02 Thread Andy MacGregor via cfe-commits
@@ -0,0 +1,368 @@ +//===--- 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] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-02 Thread Andy MacGregor via cfe-commits
@@ -3872,6 +3887,10 @@ reformat(const FormatStyle &Style, StringRef Code, return IntegerLiteralSeparatorFixer().process(Env, Expanded); }); + Passes.emplace_back([&](const Environment &Env) { 30Wedge wrote: I ended up putting it in `NumericLiteralCaseF

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

2025-08-02 Thread Andy MacGregor via cfe-commits
https://github.com/30Wedge edited https://github.com/llvm/llvm-project/pull/151590 ___ 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-02 Thread Andy MacGregor via cfe-commits
@@ -0,0 +1,368 @@ +//===--- 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] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-02 Thread Andy MacGregor via cfe-commits
30Wedge wrote: > Most likely the docs were not generated with the script, but manually Yup! I manually edited ClangFormatStyleOptions.rst in the first commit. Much easier to have a script do it for you :slightly_smiling_face: In the fixup, this file is regenerated with: `python clang/docs/t

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

2025-08-02 Thread Andy MacGregor via cfe-commits
@@ -5076,6 +5075,78 @@ the configuration (without a prefix: ``Auto``). For example: TESTSUITE +.. _NumericLiteralCase: + +**NumericLiteralCase** (``NumericLiteralCaseStyle``) :versionbadge:`clang-format 21` :ref:`¶ ` + Controls character case in numeric literals. + + Pos

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

2025-08-02 Thread Andy MacGregor via cfe-commits
https://github.com/30Wedge edited https://github.com/llvm/llvm-project/pull/151590 ___ 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-02 Thread Andy MacGregor via cfe-commits
@@ -0,0 +1,368 @@ +//===--- 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] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-02 Thread Andy MacGregor via cfe-commits
https://github.com/30Wedge edited https://github.com/llvm/llvm-project/pull/151590 ___ 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-02 Thread Andy MacGregor via cfe-commits
@@ -3100,6 +3100,54 @@ struct FormatStyle { /// \version 11 TrailingCommaStyle InsertTrailingCommas; + /// Character case format for different components of a numeric literal. + /// + /// For all options, ``0`` leave the case unchanged, ``-1`` + /// uses lower case and

[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

2025-08-02 Thread Marco Elver via cfe-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/142955 >From e5e2f35fb5f528ab4bba0422825a8a8bd7e86a9f Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Wed, 21 May 2025 23:49:48 +0200 Subject: [PATCH] Thread Safety Analysis: Basic capability alias-analysis Add basic

[clang] [clang][Diagnostic] Clarify error message for auto (PR #149781)

2025-08-02 Thread Emily Dror via cfe-commits
https://github.com/emily-dror updated https://github.com/llvm/llvm-project/pull/149781 >From 90ae570afa7b323be99fd36fd833902f5de9918e Mon Sep 17 00:00:00 2001 From: Emily Dror Date: Mon, 21 Jul 2025 12:00:08 +0300 Subject: [PATCH 1/2] [clang][Diagnostic] Clarify error message for auto Show lin

[clang] [clang][Diagnostic] Clarify error message for auto (PR #149781)

2025-08-02 Thread Emily Dror via cfe-commits
https://github.com/emily-dror updated https://github.com/llvm/llvm-project/pull/149781 >From 90ae570afa7b323be99fd36fd833902f5de9918e Mon Sep 17 00:00:00 2001 From: Emily Dror Date: Mon, 21 Jul 2025 12:00:08 +0300 Subject: [PATCH 1/2] [clang][Diagnostic] Clarify error message for auto Show lin

[clang-tools-extra] [clang-tidy] Use llvm::none_of (NFC) (PR #151801)

2025-08-02 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151801 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] v_cvt_scale_pk16 gfx1250 instructions (PR #151804)

2025-08-02 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/151804 None >From 7c47bcb1f0ef99ccfa41d60e363ae6e635fd88b0 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 01:08:19 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scale_pk16 gfx1250 instructions --

[clang] [clang][bytecode] Use SmallVector for Function::Code (PR #151821)

2025-08-02 Thread via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: 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,h --

[clang] [clang][bytecode] Use SmallVector for Function::Code (PR #151821)

2025-08-02 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/151821 >From f021cf0e3bf1880dd31f0477e173a42aaa45d185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 2 Aug 2025 15:51:44 +0200 Subject: [PATC

[clang] [llvm] [AMDGPU] v_cvt_scalef32_pk16_* gfx1250 instructions (PR #151807)

2025-08-02 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151807 >From 41253bc2a507f36d7f313801ddcda7822907e378 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 01:48:31 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_pk16_* gfx1250 instructions ---

[clang] [clang][NFC] Remove leftover comment (PR #151822)

2025-08-02 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Thank you https://github.com/llvm/llvm-project/pull/151822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] v_cvt_scalef32_pk16_* gfx1250 instructions (PR #151807)

2025-08-02 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151807 >From 41253bc2a507f36d7f313801ddcda7822907e378 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 01:48:31 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_pk16_* gfx1250 instructions ---

[clang] [clang][bytecode] Use SmallVector for Function::Code (PR #151821)

2025-08-02 Thread Shafik Yaghmour via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -44,12 +44,12 @@ bool Context::isPotentialConstantExpr(State &Parent, const FunctionDecl *FD) { Compiler(*this, *P).compileFunc( FD, const_cast(Func)); - ++EvalID; - // And run it. - if (!Run(Parent, Func)) + i

[clang] [clang][bytecode] Use SmallVector for Function::Code (PR #151821)

2025-08-02 Thread Shafik Yaghmour via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/151821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd][NFC] added const and constexpr to HeaderSourceSwitch (PR #143193)

2025-08-02 Thread via cfe-commits
github-actions[bot] wrote: @JohnFinn 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] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/151624 >From f7e79ed934bcb05548b6a4d303d6ed6284648f35 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Fri, 1 Aug 2025 01:19:18 -0700 Subject: [PATCH 1/3] [libtooling] Insert headers in global module fragment

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
@@ -115,6 +134,7 @@ unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, return SM.getFileOffset(Tok.getLocation()); return 0; })); + return std::max(HeaderAndPPOffset, ModuleDecl); MythreyaK wrote: Thanks, d

[clang-tools-extra] [clangd] Extend call hierarchy for enum constants (PR #147042)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Thanks, LGTM! (I've seen the discussion about token selection starting at https://github.com/clangd/clangd/issues/2203#issuecomment-3027586074, but haven't had a chance to dig into it and respond yet. Feel free to start a new threa

[clang-tools-extra] 1da76b4 - [clangd][NFC] Make some local variables HeaderSourceSwitch.cpp const and constexpr (#143193)

2025-08-02 Thread via cfe-commits
Author: Jouni Date: 2025-08-03T00:23:19-04:00 New Revision: 1da76b42ae437235a6be2c75d91b8d4e04a6d1da URL: https://github.com/llvm/llvm-project/commit/1da76b42ae437235a6be2c75d91b8d4e04a6d1da DIFF: https://github.com/llvm/llvm-project/commit/1da76b42ae437235a6be2c75d91b8d4e04a6d1da.diff LOG: [c

[clang-tools-extra] [clangd][NFC] added const and constexpr to HeaderSourceSwitch (PR #143193)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/143193 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd][NFC] added const and constexpr to HeaderSourceSwitch (PR #143193)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143193 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Extend call hierarchy for enum constants (PR #147042)

2025-08-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang-tools-extra` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/21126

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
@@ -115,6 +134,7 @@ unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, return SM.getFileOffset(Tok.getLocation()); return 0; })); + return std::max(HeaderAndPPOffset, ModuleDecl); MythreyaK wrote: This does

[clang] [clang][bytecode] Try to load local and global variables directly (PR #151833)

2025-08-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/151833 >From d0356829a9749ff703577fff1ea8788f09aedf7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 2 Aug 2025 19:50:48 +0200 Subject: [PATCH] [clang][bytecode] Try to load local and global v

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/151624 >From f7e79ed934bcb05548b6a4d303d6ed6284648f35 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Fri, 1 Aug 2025 01:19:18 -0700 Subject: [PATCH 1/4] [libtooling] Insert headers in global module fragment

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Try to load local and global variables directly (PR #151833)

2025-08-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/151833 >From 8ad0af7e8efc3fe1c830a5199642010289a48822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 2 Aug 2025 19:50:48 +0200 Subject: [PATCH] [clang][bytecode] Try to load local and global v

[clang] [clang][bytecode] Remove unused includes (PR #151848)

2025-08-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/151848 UnsignedOrNone.h from PrimType.h and ASTLambda.h from Function.h. >From 6bcb1d155bff3880e252840af178949fd05bf4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 3 Aug 2025 08:12:27 +020

[clang] [clang][bytecode] Remove unused includes (PR #151848)

2025-08-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes UnsignedOrNone.h from PrimType.h and ASTLambda.h from Function.h. --- Full diff: https://github.com/llvm/llvm-project/pull/151848.diff 7 Files Affected: - (modified) clang/lib/AST/ByteCode/Context.cpp (+1)

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
@@ -83,13 +83,13 @@ bool checkAndConsumeModuleDecl(const SourceManager &SM, Lexer &Lex, return Matched; } -// Returns the offset after header guard directives and any comments -// before/after header guards (e.g. #ifndef/#define pair, #pragma once). If no -// header guard i

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/151624 >From f7e79ed934bcb05548b6a4d303d6ed6284648f35 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Fri, 1 Aug 2025 01:19:18 -0700 Subject: [PATCH 1/5] [libtooling] Insert headers in global module fragment

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Mythreya Kuricheti via cfe-commits
@@ -83,13 +83,13 @@ bool checkAndConsumeModuleDecl(const SourceManager &SM, Lexer &Lex, return Matched; } -// Returns the offset after header guard directives and any comments -// before/after header guards (e.g. #ifndef/#define pair, #pragma once). If no -// header guard i

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: (The merge interface has been tweaked to make me click past a scary-looking "you probably shouldn't be checking this" warning to merge before CI checks complete... so I'll just wait for the checks :laughing: ) https://github.com/llvm/llvm-project/pull/151624 _

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-08-02 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From 79849c3ba76ebf66fd7856fa92cd98af56ac49a6 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/13] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [clang][bytecode] Try to load local and global variables directly (PR #151833)

2025-08-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/151833 >From dbe3f1b3e1774d153dbfe8b7b0a2684162ee570d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 2 Aug 2025 19:50:48 +0200 Subject: [PATCH] [clang][bytecode] Try to load local and global v

[clang] [clang][bytecode] Try to load primitive values directly (PR #151833)

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

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. I couldn't resist making one comment :) https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
@@ -115,6 +134,7 @@ unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, return SM.getFileOffset(Tok.getLocation()); return 0; })); + return std::max(HeaderAndPPOffset, ModuleDecl); HighCommander4 wrote: Tech

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 7de0da4 - [clangd] Support invoking call hierarchy on enum constants (#147042)

2025-08-02 Thread via cfe-commits
Author: timon-ul Date: 2025-08-03T00:18:47-04:00 New Revision: 7de0da40c0938e1ea7c11a672ae5a329dcf92def URL: https://github.com/llvm/llvm-project/commit/7de0da40c0938e1ea7c11a672ae5a329dcf92def DIFF: https://github.com/llvm/llvm-project/commit/7de0da40c0938e1ea7c11a672ae5a329dcf92def.diff LOG:

[clang-tools-extra] [clangd] Extend call hierarchy for enum constants (PR #147042)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/147042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode][NFC] Code size is always aligned (PR #151824)

2025-08-02 Thread Timm Baeder via cfe-commits
@@ -137,21 +137,21 @@ int32_t ByteCodeEmitter::getOffset(LabelTy Label) { template static void emit(Program &P, std::vector &Code, const T &Val, bool &Success) { + size_t ValPos = Code.size(); size_t Size; if constexpr (std::is_pointer_v) -Size =

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread via cfe-commits
@@ -115,6 +134,7 @@ unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, return SM.getFileOffset(Tok.getLocation()); return 0; })); + return std::max(HeaderAndPPOffset, ModuleDecl); JVApen wrote: If rather sa

[clang] [Sema] Use llvm::iterator_range::empty (NFC) (PR #151852)

2025-08-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/151852.diff 5 Files Affected: - (modified) clang/lib/Sema/AnalysisBasedWarnings.cpp (+1-1) - (modified) clang/lib/Sema/SemaDecl.cpp (+2-2)

[clang] [Sema] Use llvm::iterator_range::empty (NFC) (PR #151852)

2025-08-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151852 None >From 04c37957a1020ce5f7ee511f68536c2c8ea80132 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 2 Aug 2025 23:23:12 -0700 Subject: [PATCH] [Sema] Use llvm::iterator_range::empty (NFC) --- cla

[clang] Insert headers in global module fragment (PR #151624)

2025-08-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/151624 >From f7e79ed934bcb05548b6a4d303d6ed6284648f35 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Fri, 1 Aug 2025 01:19:18 -0700 Subject: [PATCH 1/5] [libtooling] Insert headers in global module frag

[clang] 8259be6 - [clang][bytecode] Remove unused includes (#151848)

2025-08-02 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-03T08:52:03+02:00 New Revision: 8259be65c7d60d6ccba4ee168f275076061029e2 URL: https://github.com/llvm/llvm-project/commit/8259be65c7d60d6ccba4ee168f275076061029e2 DIFF: https://github.com/llvm/llvm-project/commit/8259be65c7d60d6ccba4ee168f275076061029e2.diff L

[clang] [clang][bytecode] Remove unused includes (PR #151848)

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

[clang] [CIR] Add CIRGen for cir.unreachable and cir.trap (PR #151363)

2025-08-02 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/151363 >From 6e74f1908cd9643151ca72e5ab059a4c5d547816 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Thu, 31 Jul 2025 01:08:22 +0800 Subject: [PATCH] [CIR] Add CIRGen for cir.unreachable and cir.trap --- clang/lib/CIR

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-02 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/151790 >From 12e745a621a7fbd30c0991bf52598455b886f37e Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Sat, 2 Aug 2025 12:02:49 +0800 Subject: [PATCH 1/4] [clang][diagnostics] Fix fix-it hint parenthesis place

  1   2   3   >