[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] [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] 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] 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] 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] [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] [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] 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] 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 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 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 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] [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] [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] 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] 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 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] [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
@@ -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] 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] [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 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] 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-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-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-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] 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 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 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-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 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] 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] 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 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] [lldb] Fix objective-c ptrauth tests (PR #149218)

2025-08-02 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/149218 ___ 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 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] [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] 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] 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 07bc50ce05954e684dfc08d37d1af854f63e62e7 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] 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-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] [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
@@ -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
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
@@ -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
@@ -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 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] [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] [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] 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] 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] [llvm] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions (PR #151810)

2025-08-02 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151810 >From e5c7f722cc5eed23eb90e8df6af6333dd021 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 02:11:34 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions

[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 updated https://github.com/llvm/llvm-project/pull/151810 >From e5c7f722cc5eed23eb90e8df6af6333dd021 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 02:11:34 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions

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

2025-08-02 Thread Björn Schäpers 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] [llvm] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions (PR #151810)

2025-08-02 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151810 >From e5c7f722cc5eed23eb90e8df6af6333dd021 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 02:11:34 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions

[clang] b7b501e - Reapply "[clang] Remove %T from tests (#151614)"

2025-08-02 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-08-02T20:08:53Z New Revision: b7b501e54c1e711fb838a2e881ec1e6d99ce2e38 URL: https://github.com/llvm/llvm-project/commit/b7b501e54c1e711fb838a2e881ec1e6d99ce2e38 DIFF: https://github.com/llvm/llvm-project/commit/b7b501e54c1e711fb838a2e881ec1e6d99ce2e38.diff LOG

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-02 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > Something else to benchmark: > https://github.com/llvm/llvm-project/issues/109450. @firewave Here's the results: On trunk: ``` 6874 warnings generated. Suppressed 6874 warnings (6874 in non-user code). real0m5.298s user0m5.209s sys 0m0.089s ``` With this p

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-02 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,1109 @@ +//===- X86.cpp ===// +// +// 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: A

[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 updated https://github.com/llvm/llvm-project/pull/151810 >From e5c7f722cc5eed23eb90e8df6af6333dd021 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 02:11:34 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions

[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 updated https://github.com/llvm/llvm-project/pull/151810 >From e5c7f722cc5eed23eb90e8df6af6333dd021 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 02:11:34 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions

[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][seh]: Fix c++ destructors when c++ exceptions are disabled (PR #151836)

2025-08-02 Thread via cfe-commits
https://github.com/Qwinci created https://github.com/llvm/llvm-project/pull/151836 Don't generate calls to llvm.seh.scope.{begin,end} if c++ exceptions are disabled. Currently clang sometimes causes LLVM to crash due to invalid usage of the seh intrinsics when c++ objects with destructors are

[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 updated https://github.com/llvm/llvm-project/pull/151810 >From e5c7f722cc5eed23eb90e8df6af6333dd021 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Sat, 2 Aug 2025 02:11:34 -0700 Subject: [PATCH] [AMDGPU] v_cvt_scalef32_sr_pk16_* gfx1250 instructions

[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 edited 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] v_cvt_scalef32_pk16_* gfx1250 instructions (PR #151807)

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

[clang] bc463c0 - [AMDGPU] v_cvt_scalef32_pk16_* gfx1250 instructions (#151807)

2025-08-02 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-02T12:42:12-07:00 New Revision: bc463c059ccc5652c0c63e86f82d38d94efe1dbd URL: https://github.com/llvm/llvm-project/commit/bc463c059ccc5652c0c63e86f82d38d94efe1dbd DIFF: https://github.com/llvm/llvm-project/commit/bc463c059ccc5652c0c63e86f82d38d94efe1d

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

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

[clang] [clang-format][NFC] Maximize usage of isOneOf() in TokenAnnotator (PR #151658)

2025-08-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-debian-cpp20` running on `clang-debian-cpp20` while building `clang` at step 2 "checkout". Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/16070 Here is the relevant piece of the buil

[clang] d696f81 - [clang-format][NFC] Maximize usage of isOneOf() in TokenAnnotator (#151658)

2025-08-02 Thread via cfe-commits
Author: Owen Pan Date: 2025-08-02T12:18:04-07:00 New Revision: d696f8104e422f807d64b4d5d24c6e7bc22d429f URL: https://github.com/llvm/llvm-project/commit/d696f8104e422f807d64b4d5d24c6e7bc22d429f DIFF: https://github.com/llvm/llvm-project/commit/d696f8104e422f807d64b4d5d24c6e7bc22d429f.diff LOG:

[clang] [clang-format][NFC] Maximize usage of isOneOf() in TokenAnnotator (PR #151658)

2025-08-02 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/151658 ___ 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 Shafik Yaghmour 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] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-02 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > Could you please save this file (or make a gist) for later. https://godbolt.org/z/s7jPbGdWz https://github.com/llvm/llvm-project/pull/151035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[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] [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] [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] Try to load local and global variables directly (PR #151833)

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/151833 >From 3f106340a4f861e3c452cd1d7d8df52e7a3ddf38 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: [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][bytecode] Try to load local and global variables directly (PR #151833)

2025-08-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Instead of doing a GetPtrLocal + Load or GetPtrGlobal + Load pair, try to load the value directly. --- Full diff: https://github.com/llvm/llvm-project/pull/151833.diff 5 Files Affected: - (modified) clang

[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 created https://github.com/llvm/llvm-project/pull/151833 Instead of doing a GetPtrLocal + Load or GetPtrGlobal + Load pair, try to load the value directly. >From 3f106340a4f861e3c452cd1d7d8df52e7a3ddf38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= D

[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] [llvm] [AMDGPU] v_cvt_scalef32_pk16_* gfx1250 instructions (PR #151807)

2025-08-02 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec edited https://github.com/llvm/llvm-project/pull/151807 ___ 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 closed https://github.com/llvm/llvm-project/pull/151804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7598c25 - [AMDGPU] v_cvt_scale_pk16 gfx1250 instructions (#151804)

2025-08-02 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-02T10:45:02-07:00 New Revision: 7598c25b5a2a4e81a302cc775a7882c793cfe6fb URL: https://github.com/llvm/llvm-project/commit/7598c25b5a2a4e81a302cc775a7882c793cfe6fb DIFF: https://github.com/llvm/llvm-project/commit/7598c25b5a2a4e81a302cc775a7882c793cfe6

[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 Kazu Hirata via cfe-commits
kazutakahirata wrote: > As a side note, should we create a clang-tidy check to detect these cases > automatically: to use `llvm` algorithms instead of `std` and so on? Is it > documented that we should always prefer the `llvm` version? I see a lot of > work by @kazutakahirata and wish to make

[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] [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] [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] c304a2b - [clang][bytecode][NFC] Code size is always aligned (#151824)

2025-08-02 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-02T17:29:11+02:00 New Revision: c304a2bb0c83ce34c7a63d9812888fc89c3facb5 URL: https://github.com/llvm/llvm-project/commit/c304a2bb0c83ce34c7a63d9812888fc89c3facb5 DIFF: https://github.com/llvm/llvm-project/commit/c304a2bb0c83ce34c7a63d9812888fc89c3facb5.diff L

  1   2   3   >