[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/141699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-05-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! Failing docs build in precommit CI appears to be unrelated https://github.com/llvm/llvm-project/pull/139429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-30 Thread CHANDRA GHALE via cfe-commits
chandraghale wrote: @alexey-bataev Added few more changes on top, to be on accordance with spec. Shared copy is updated with values from private copies until all updates are complete, before combining into the original list item. Hope the changes are fine with you. https://github.com/llvm/ll

[clang] 294a182 - [CIR][NFC] Fix warning about unhandled type (#142059)

2025-05-30 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-05-30T10:26:28-07:00 New Revision: 294a182021c6a9f93e1eebd173abb7fb6d840fc5 URL: https://github.com/llvm/llvm-project/commit/294a182021c6a9f93e1eebd173abb7fb6d840fc5 DIFF: https://github.com/llvm/llvm-project/commit/294a182021c6a9f93e1eebd173abb7fb6d840fc5.diff L

[clang] [CIR][NFC] Fix warning about unhandled type (PR #142059)

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

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-30 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/141411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-05-30 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/clangd/Hover.cpp clang-tools-extr

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-05-30 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Carrying over review request to @kadircet from the original combined patch at https://github.com/llvm/llvm-project/pull/128591#issuecomment-2782334206: > @kadircet, you were involved with earlier rounds of review on the old patch > (https://reviews.llvm.org/D143112) and d

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/23552 Here is the relevant piece of the build lo

[clang] [Doc][NFC] Fix a typo in SanitizerSpecialCaseList doc. (PR #142168)

2025-05-30 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao closed https://github.com/llvm/llvm-project/pull/142168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Work around a build issue with MSVC; NFC (PR #142195)

2025-05-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/142195 Microsoft helpfully defines `THIS` to `void` in two different platform SDK headers, at least one of which is reachable via . We have a user who ran into a build because of `THIS` unfortunate macro name col

[clang] Work around a build issue with MSVC; NFC (PR #142195)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-platform-windows Author: Aaron Ballman (AaronBallman) Changes Microsoft helpfully defines `THIS` to `void` in two different platform SDK headers, at least one of which is reachable via . We have a user who ran into a build because of `THIS`

[clang] Work around a build issue with MSVC; NFC (PR #142195)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes Microsoft helpfully defines `THIS` to `void` in two different platform SDK headers, at least one of which is reachable via . We have a user who ran into a build because of `THIS` unfortunate

[clang] Work around a build issue with MSVC; NFC (PR #142195)

2025-05-30 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Sure they don't have a `#define This ` somewhere :) ? https://github.com/llvm/llvm-project/pull/142195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [CIR] Upstream converting vector types (PR #142012)

2025-05-30 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142012 >From f1854921327247d4449fcac6375a3b43b8e69996 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 29 May 2025 20:58:56 +0200 Subject: [PATCH] [CIR] Upstream ConvertVectorExpr --- clang/lib/CIR/CodeGen

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-05-30 Thread Thurston Dang via cfe-commits
@@ -1245,30 +1245,23 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound, } llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( -SanitizerKind::SanitizerOrdinal CheckKindOrdinal) { - std::string Label; - switch (CheckKindOrdinal) {

[clang] [CIR] Upstream converting vector types (PR #142012)

2025-05-30 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/142012 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Move Diags.isIgnored check later in checkForRedundantLoop (PR #141470)

2025-05-30 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/141470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-05-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. This looks reasonable to me, but please wait for @erichkeane to sign off before landing https://github.com/llvm/llvm-project/pull/137882 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [UBSan][Ignorelist] Expanding =sanitize to fun. (PR #142074)

2025-05-30 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao edited https://github.com/llvm/llvm-project/pull/142074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes By design the `Location` data member of a `CheckerContext` is always a `ProgramPoint` which is tagged with the currently active checker (note that all checker classes are subclasses of `Pro

[clang] [clang][bytecode] Make some builtins no-ops (PR #141952)

2025-05-30 Thread Timm Baeder via cfe-commits
tbaederr wrote: Ah, sorry about that. Thanks. https://github.com/llvm/llvm-project/pull/141952 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

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

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

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

[clang] [clang][NFC] Move Diags.isIgnored check later in checkForRedundantLoop (PR #141470)

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

[clang] [libcxx] [Clang] Add __builtin_invoke and use it in libc++ (PR #116709)

2025-05-30 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: Gentle ping @AaronBallman @cor3ntin https://github.com/llvm/llvm-project/pull/116709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

2025-05-30 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/142132 By design the `Location` data member of a `CheckerContext` is always a `ProgramPoint` which is tagged with the currently active checker (note that all checker classes are subclasses of `ProgramPointTag`). Thi

[clang] [clang][NFC] Move Diags.isIgnored check later in checkForRedundantLoop (PR #141470)

2025-05-30 Thread Timm Baeder via cfe-commits
tbaederr wrote: > Can you elaborate in your summary. > > I am guessing because the other checks are a lot cheaper and this overall > improves performance? Yep. Updated the description. https://github.com/llvm/llvm-project/pull/141470 ___ cfe-commits

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

2025-05-30 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat ready_for_review https://github.com/llvm/llvm-project/pull/142132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d27a210 - Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (#136098)

2025-05-30 Thread via cfe-commits
Author: FYK Date: 2025-05-30T08:13:53-06:00 New Revision: d27a210a77af63568db9f829702b4b2c98473a46 URL: https://github.com/llvm/llvm-project/commit/d27a210a77af63568db9f829702b4b2c98473a46 DIFF: https://github.com/llvm/llvm-project/commit/d27a210a77af63568db9f829702b4b2c98473a46.diff LOG: Add

[clang] [CodeGen] Move CodeGenPGO behind unique_ptr (NFC) (PR #142155)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Nikita Popov (nikic) Changes The InstrProf headers are very expensive. Avoid including them in all of CodeGen/ by making the CodeGenPGO member behind a unqiue_ptr. This reduces clang build time by 0.8%: https://llvm-compile-time-

[clang] [CodeGen] Move CodeGenPGO behind unique_ptr (NFC) (PR #142155)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Nikita Popov (nikic) Changes The InstrProf headers are very expensive. Avoid including them in all of CodeGen/ by making the CodeGenPGO member behind a unqiue_ptr. This reduces clang build time by 0.8%: https://llvm-compile-time-t

[clang] [CodeGen] Move CodeGenPGO behind unique_ptr (NFC) (PR #142155)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikita Popov (nikic) Changes The InstrProf headers are very expensive. Avoid including them in all of CodeGen/ by making the CodeGenPGO member behind a unqiue_ptr. This reduces clang build time by 0.8%: https://llvm-compile-time-tracker.c

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-9-cmake-build-only` running on `rocm-docker-rhel-9` while building `clang,flang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/10879 Here i

[clang] [CodeGen] Move CodeGenPGO behind unique_ptr (NFC) (PR #142155)

2025-05-30 Thread Nikita Popov via cfe-commits
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/142155 The InstrProf headers are very expensive. Avoid including them in all of CodeGen/ by making the CodeGenPGO member behind a unqiue_ptr. This reduces clang build time by 0.8%: https://llvm-compile-time-tracker.com/

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-30 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu closed https://github.com/llvm/llvm-project/pull/136098 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Variable is unused when opt mode is on and assert is turned off (PR #142049)

2025-05-30 Thread Shafik Yaghmour via cfe-commits
@@ -764,7 +764,8 @@ static bool interp__builtin_addressof(InterpState &S, CodePtr OpPC, const InterpFrame *Frame, const CallExpr *Call) { assert(Call->getArg(0)->isLValue()); - PrimType PtrT = S.get

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang,flang,llvm` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/6370 Here is th

[clang] [NFC] Tweak docs for unique-object-duplication warning (PR #142158)

2025-05-30 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr created https://github.com/llvm/llvm-project/pull/142158 This improves the documentation for the unique-object-duplication warning. It clarifies the conditions for the warning to fire, provides clearer instructions on how to resolve it, and adjusts wording to be more

[clang] [flang] [llvm] Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (PR #142159)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Tarun Prabhu (tarunprabhu) Changes Reverts llvm/llvm-project#136098 --- Patch is 29.10 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/142159.diff 21 Files Affected: - (modified) clang

[clang] [NFC] Tweak docs for unique-object-duplication warning (PR #142158)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Devon Loehr (DKLoehr) Changes This improves the documentation for the unique-object-duplication warning. It clarifies the conditions for the warning to fire, provides clearer instructions on how to resolve it, and adjusts wording to be mo

[clang] [flang] [llvm] Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (PR #142159)

2025-05-30 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr approved this pull request. LG https://github.com/llvm/llvm-project/pull/142159 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 597340b - Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (#142159)

2025-05-30 Thread via cfe-commits
Author: Tarun Prabhu Date: 2025-05-30T08:27:08-06:00 New Revision: 597340b5b666bdee2887f56c111407b6737cbf34 URL: https://github.com/llvm/llvm-project/commit/597340b5b666bdee2887f56c111407b6737cbf34 DIFF: https://github.com/llvm/llvm-project/commit/597340b5b666bdee2887f56c111407b6737cbf34.diff

[clang] [flang] [llvm] Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (PR #142159)

2025-05-30 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu closed https://github.com/llvm/llvm-project/pull/142159 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `clang,flang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/10902 Here i

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-30 Thread Tarun Prabhu via cfe-commits
tarunprabhu wrote: @fanju110 The PR caused some buildbot failures, so I have [reverted](https://github.com/llvm/llvm-project/commit/597340b5b666bdee2887f56c111407b6737cbf34) it. You can see the error [here](https://lab.llvm.org/buildbot/#/builders/203/builds/12089/steps/7/logs/stdio). htt

[clang] [flang] [flang][driver] Introduce FCC_OVERRIDE_OPTIONS. (PR #140556)

2025-05-30 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,17 @@ +! RUN: env FCC_OVERRIDE_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-### " %flang -target x86_64-unknown-linux-gnu %s -O2 b -O3 2>&1 | FileCheck %s tarunprabhu wrote: Should this also be `--target`? ```suggestion ! RUN: env

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

2025-05-30 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. LGTM, thanks. https://github.com/llvm/llvm-project/pull/142132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (PR #142159)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver @llvm/pr-subscribers-clang-codegen Author: Tarun Prabhu (tarunprabhu) Changes Reverts llvm/llvm-project#136098 --- Patch is 29.10 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/142159.diff 21

[clang] [flang] [llvm] Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (PR #142159)

2025-05-30 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu created https://github.com/llvm/llvm-project/pull/142159 Reverts llvm/llvm-project#136098 >From b9503fe262c416111ee77be30767a791cf750fb8 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Fri, 30 May 2025 08:22:15 -0600 Subject: [PATCH] =?UTF-8?q?Revert=20"Add=20I

[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width= (PR #142073)

2025-05-30 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu closed https://github.com/llvm/llvm-project/pull/142073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width= (PR #142073)

2025-05-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang,flang,mlir` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/bui

[clang] [flang] [flang][driver] Introduce FCC_OVERRIDE_OPTIONS. (PR #140556)

2025-05-30 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu edited https://github.com/llvm/llvm-project/pull/140556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Enable support for nested struct members in C++ (PR #142205)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This enables us to compile C++ code with nested structures. The necessary support for this was already in place, but we were hitting an NYI error in a place where the implementation only needed to check

[clang] [CIR] Enable support for nested struct members in C++ (PR #142205)

2025-05-30 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/142205 This enables us to compile C++ code with nested structures. The necessary support for this was already in place, but we were hitting an NYI error in a place where the implementation only needed to check for

[clang] [CIR] Enable support for nested struct members in C++ (PR #142205)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This enables us to compile C++ code with nested structures. The necessary support for this was already in place, but we were hitting an NYI error in a place where the implementation only needed to check fo

[clang] [lldb] [lldb] Add filter option to AST dump command (PR #142164)

2025-05-30 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/142164 >From 662e07aa9bb6560f37c079ba6f13be17e7885b48 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 30 May 2025 15:44:09 +0100 Subject: [PATCH 1/5] [clang][Frontend] Add overload to ASTPrinter that doesn't

[clang] [lldb] [lldb] Add filter option to AST dump command (PR #142164)

2025-05-30 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/142164 >From 662e07aa9bb6560f37c079ba6f13be17e7885b48 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 30 May 2025 15:44:09 +0100 Subject: [PATCH 1/4] [clang][Frontend] Add overload to ASTPrinter that doesn't

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-05-30 Thread via cfe-commits
https://github.com/tcottin updated https://github.com/llvm/llvm-project/pull/140498 >From 8fadd8d51fa3d96c7fb82b9d749ef3f35441ac64 Mon Sep 17 00:00:00 2001 From: Tim Cottin Date: Mon, 19 May 2025 06:26:36 + Subject: [PATCH 1/2] [clangd] Improve Markup Rendering --- clang-tools-extra/clang

[clang] 6a47241 - [Doc][NFC] Fix a typo in SanitizerSpecialCaseList doc. (#142168)

2025-05-30 Thread via cfe-commits
Author: Qinkun Bao Date: 2025-05-30T12:01:26-04:00 New Revision: 6a47241c9983c46d805034821f04c34a475a254f URL: https://github.com/llvm/llvm-project/commit/6a47241c9983c46d805034821f04c34a475a254f DIFF: https://github.com/llvm/llvm-project/commit/6a47241c9983c46d805034821f04c34a475a254f.diff LO

[clang] [clang] Correct FixIt ranges for unused capture warnings (PR #141148)

2025-05-30 Thread Oliver Hunt via cfe-commits
@@ -972,6 +972,12 @@ class Sema final : public SemaBase { /// Calls \c Lexer::getLocForEndOfToken() SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0); + /// Calls \c Lexer::findNextToken() to find the next token, and if the + /// locations of bo

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

2025-05-30 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/141973 >From 70aa8d668cf610eb7d2486b60112591a19d3db89 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 23 May 2025 11:03:05 -0700 Subject: [PATCH 1/2] [CIR] Add support for global linkage and visibility This c

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-05-30 Thread Florian Mayer via cfe-commits
https://github.com/fmayer requested changes to this pull request. How is this going to be useful? We should make some effort to try to determine where the overhead comes from. I don't like that the specific array_bounds inline function is going away _even though we have a specific codepath for

[clang] [clang] Serialization: support hashing null template arguments (PR #141890)

2025-05-30 Thread Nikita Popov via cfe-commits
nikic wrote: For the record, the manual backport PR is at: https://github.com/llvm/llvm-project/pull/141957 https://github.com/llvm/llvm-project/pull/141890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

2025-05-30 Thread Tyler Rockwood via cfe-commits
rockwotj wrote: Based on #141114 and #141858 should this PR be reverted? https://github.com/llvm/llvm-project/pull/95474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Fix bug in builtin AS override (PR #138141)

2025-05-30 Thread Joe Nash via cfe-commits
Sisyph wrote: > Is there a test that needs to be added here? With just the change to BuiltinsAMDGPU.def, we will get errors in Clang :: CodeGenOpenCL/builtins-amdgcn-gfx950.cl Clang :: CodeGenOpenCL/builtins-amdgcn-load-to-lds.cl Clang :: SemaOpenCL/builtins-amdgcn-load-to-lds-err.cl wh

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-05-30 Thread Yutong Zhu via cfe-commits
YutongZhuu wrote: > LGTM! Failing docs build in precommit CI appears to be unrelated Hi, I don't have commit access, so I might need you to merge it for me :) https://github.com/llvm/llvm-project/pull/139429 ___ cfe-commits mailing list cfe-commits@li

[clang] [Clang] Improve testing of non std functions with name infinity (PR #123806)

2025-05-30 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/123806 >From 38031e9aed519f4fd3b21dff7e79c69a0150efd9 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 21 Jan 2025 20:11:21 +0100 Subject: [PATCH] [Clang] Improve testing of non std functions with name infi

[clang] [clang][Sema] Fix and reapply 'Declare builtins used in #pragma intrinsic #138205' (PR #142019)

2025-05-30 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/142019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang-tools-extra] [clang-doc] add tags to Mustache namespace template (PR #142045)

2025-05-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM. We may want to tweak the template some more, but we should get the test in place now and follow up if we want to change the aesthetics later. https://github.com/llvm/llvm-project/pull/142045 ___

[clang] clang.llvm.org/get_started.html: remove shallow clone misinformation (PR #142213)

2025-05-30 Thread via cfe-commits
https://github.com/nabijaczleweli created https://github.com/llvm/llvm-project/pull/142213 You can absolutely push from a shallow clone, this is just false From 0827ae2057b4a05d797587e09f6f198c01abe00f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Fri, 30 May 2025 22:50:5

[clang] clang.llvm.org/get_started.html: remove shallow clone misinformation (PR #142213)

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

[clang] [clang][Parser] Fix lookup of builtins with pragma intrinsic (PR #142019)

2025-05-30 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/142019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Work around a build issue with MSVC; NFC (PR #142195)

2025-05-30 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/142195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix and reapply 'Declare builtins used in #pragma intrinsic #138205' (PR #142019)

2025-05-30 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/142019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix and reapply 'Declare builtins used in #pragma intrinsic #138205' (PR #142019)

2025-05-30 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/142019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix and reapply 'Declare builtins used in #pragma intrinsic #138205' (PR #142019)

2025-05-30 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/142019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -14,6 +14,105 @@ namespace clang::CIRGen { +/// Record with information about how a bitfield should be accessed. This is +/// very similar to what LLVM codegen does, once CIR evolves it's possible we +/// can use a more higher level representation. +/// +/// Often we lay o

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,79 @@ +// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR +// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll +//

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -14,6 +14,105 @@ namespace clang::CIRGen { +/// Record with information about how a bitfield should be accessed. This is +/// very similar to what LLVM codegen does, once CIR evolves it's possible we +/// can use a more higher level representation. +/// +/// Often we lay o

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -172,6 +195,32 @@ CIRRecordLowering::CIRRecordLowering(CIRGenTypes &cirGenTypes, zeroInitializable(true), zeroInitializableAsBase(true), packed(packed), padded(false) {} +void CIRRecordLowering::setBitFieldInfo(const FieldDecl *fd, +

[clang] Enclose code in nondebug in #ifndef NDEBUG/#endif (PR #142189)

2025-05-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/6398 Here is the relevant pie

[clang] clang.llvm.org/get_started.html: remove shallow clone misinformation (PR #142213)

2025-05-30 Thread via cfe-commits
https://github.com/nabijaczleweli edited https://github.com/llvm/llvm-project/pull/142213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang.llvm.org/get_started.html: remove shallow clone misinformation (PR #142213)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: наб (nabijaczleweli) Changes You can absolutely push from a shallow clone, this is just false --- Full diff: https://github.com/llvm/llvm-project/pull/142213.diff 1 Files Affected: - (modified) clang/www/get_started.html (+1-1) `

[clang-tools-extra] [clang-tidy] Switch misc-confusable-identifiers check to a faster algorithm. (PR #130369)

2025-05-30 Thread Richard Smith via cfe-commits
zygoloid wrote: Ping x8 @PiotrZSL Any chance you'll find time to look at this soon, or should I look for other reviewers? https://github.com/llvm/llvm-project/pull/130369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-05-30 Thread Thurston Dang via cfe-commits
https://github.com/thurstond converted_to_draft https://github.com/llvm/llvm-project/pull/141997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
andykaylor wrote: @bcardosolopes, I have some general concerns about the way that we're representing bitfields and bitfield accesses. It seems fundamentally inconsistent with the way we represent unions. For example: ``` union U { char a; int b; long c; }; ``` becomes `!cir.record -> !c

[clang] [clang][Sema] Fix and reapply 'Declare builtins used in #pragma intrinsic #138205' (PR #142019)

2025-05-30 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/142019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Fix bug in builtin AS override (PR #138141)

2025-05-30 Thread Joe Nash via cfe-commits
https://github.com/Sisyph updated https://github.com/llvm/llvm-project/pull/138141 >From f5cdefe8200d9c9f567d6b4a276a5587e44ac1fa Mon Sep 17 00:00:00 2001 From: Joe Nash Date: Thu, 1 May 2025 10:00:47 -0400 Subject: [PATCH] [Sema] Fix bug in builtin AS override Fix the logic in rewriteBuiltinF

[clang] Enclose code in nondebug in #ifndef NDEBUG/#endif (PR #142189)

2025-05-30 Thread via cfe-commits
https://github.com/DeanSturtevant1 created https://github.com/llvm/llvm-project/pull/142189 A previous to InterpBuiltin.cpp fixed an unused variable warning by using [[maybe unused]] and (void). The code actually serves no useful purpose in non-debug builds, so let's not include it there. >F

[clang] [Sema] Fix bug in builtin AS override (PR #138141)

2025-05-30 Thread Joe Nash via cfe-commits
Sisyph wrote: Rebased, PTAL https://github.com/llvm/llvm-project/pull/138141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Fix bug in builtin AS override (PR #138141)

2025-05-30 Thread Krzysztof Drewniak via cfe-commits
krzysz00 wrote: Ok, so this is a pure bugfix Since this bit of infrastructure's kinda underdocumented, why did the `"t"` flag need to be removed and what does it mean? https://github.com/llvm/llvm-project/pull/138141 ___ cfe-commits mailing list cfe-

<    1   2   3   4   >