[clang] [llvm] Reland: [llvm][clang] Allocate a new stack instead of spawning a new thread to get more stack space (PR #136046)

2025-04-17 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 -- llvm/include/llvm/Support/ProgramStack.h llvm/lib/S

[clang] [clang] Fix Name Mangling Crashes (PR #134486)

2025-04-17 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/134486 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2 (PR #123193)

2025-04-17 Thread Pengcheng Wang via cfe-commits
@@ -126,6 +126,7 @@ Changes to the PowerPC Backend Changes to the RISC-V Backend - + wangpc-pp wrote: Remove this extra blank line. https://github.com/llvm/llvm-project/pull/123193 ___ c

[clang-tools-extra] [clang-tidy][NFC] fix `clang-tidy` warnings in `clang-tools-extra/clang-tidy` directory (PR #136097)

2025-04-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/136097 Mostly stylistic changes to `clang-tidy` source code. Command run: `python3 clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -p build/ -j $(nproc) clang-tools-extra/clang-tidy` >From 479e98e5cc3bfe6992d1aa

[clang-tools-extra] [clangd] Header not found error message now contains file path (PR #136096)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Tongsheng Wu (tongshengw) Changes IncludeCleaner header not found messages now show file path. [https://github.com/clangd/clangd/issues/2334](https://github.com/clangd/clangd/issues/2334) New error messages: ``` E[03:32:43.219

[clang-tools-extra] [clangd] Header not found error message now contains file path (PR #136096)

2025-04-17 Thread Tongsheng Wu via cfe-commits
https://github.com/tongshengw created https://github.com/llvm/llvm-project/pull/136096 IncludeCleaner header not found messages now show file path. [https://github.com/clangd/clangd/issues/2334](https://github.com/clangd/clangd/issues/2334) New error messages: ``` E[03:32:43.219] IncludeCleane

[clang-tools-extra] [clangd] Header not found error message now contains file path (PR #136096)

2025-04-17 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] [flang] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-flang-driver Author: FYK (fanju110) Changes This patch implements IR-based Profile-Guided Optimization support in Flang through the following flags: - `-fprofile-generate` for instrumentation-based profile generation

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

2025-04-17 Thread via cfe-commits
https://github.com/fanju110 created https://github.com/llvm/llvm-project/pull/136098 This patch implements IR-based Profile-Guided Optimization support in Flang through the following flags: - `-fprofile-generate` for instrumentation-based profile generation - `-fprofile-use=/file` for profi

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

2025-04-17 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-format] Fix a bug in parsing C-style cast lambda (PR #136099)

2025-04-17 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/136099 Fix #135959 >From 53033b278f89a508d079614eadd58b103211d5dd Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 17 Apr 2025 00:35:19 -0700 Subject: [PATCH] [clang-format] Fix a bug in parsing C-style cast lambda

[clang] [clang-format] Fix a bug in parsing C-style cast lambda (PR #136099)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #135959 --- Full diff: https://github.com/llvm/llvm-project/pull/136099.diff 2 Files Affected: - (modified) clang/lib/Format/UnwrappedLineParser.cpp (+2-1) - (modified) clang/unittests/Format/TokenA

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2 (PR #123193)

2025-04-17 Thread Pengcheng Wang via cfe-commits
@@ -558,6 +558,34 @@ def XIANGSHAN_NANHU : RISCVProcessorModel<"xiangshan-nanhu", TuneZExtWFusion, TuneShiftedZExtWFusion]>; +def XIANGSHAN_KUNMINGHU : RISCVProcessorModel<"xiangshan-kunmi

[clang] [clang][bytecode] Enter a non-constant context when revisiting (PR #136104)

2025-04-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/136104 >From 33e4c2f88d8446604c091002c1992b097e3e477c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Apr 2025 09:38:57 +0200 Subject: [PATCH] [clang][bytecode] Enter a non-constant context

[clang-tools-extra] [clangd] Improve `BlockEnd` inlayhint presentation (PR #136106)

2025-04-17 Thread via cfe-commits
https://github.com/MythreyaK created https://github.com/llvm/llvm-project/pull/136106 Previous iteration of this PR was [here](https://github.com/llvm/llvm-project/pull/72345). I retained their first commit as-is, rebased it, and added my changes based on the comments in the thread [here](ht

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2 (PR #123193)

2025-04-17 Thread via cfe-commits
https://github.com/liliumShade updated https://github.com/llvm/llvm-project/pull/123193 >From 08f81150949fb97411d6cc6e58c2b9f293cc1bf5 Mon Sep 17 00:00:00 2001 From: Chyaka Date: Thu, 16 Jan 2025 19:02:54 +0800 Subject: [PATCH 1/5] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2

[clang] [HLSL] Add a warning for implicit bindings (PR #135909)

2025-04-17 Thread Justin Bogner via cfe-commits
https://github.com/bogner closed https://github.com/llvm/llvm-project/pull/135909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in FormatToken::isObjCAccessSpecifier() (PR #136109)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #136092 --- Full diff: https://github.com/llvm/llvm-project/pull/136109.diff 2 Files Affected: - (modified) clang/lib/Format/FormatToken.h (+3-2) - (modified) clang/unittests/Format/TokenAnnotatorTe

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-04-17 Thread Mallikarjuna Gouda via cfe-commits
https://github.com/mgoudar updated https://github.com/llvm/llvm-project/pull/134985 >From 36a78bb9fe38781fa8ea126aeae5b7ed48140651 Mon Sep 17 00:00:00 2001 From: Mallikarjuna Gouda Date: Tue, 1 Apr 2025 12:35:27 +0530 Subject: [PATCH 1/3] [MIPS] Add FeatureMSA to i6400 and i6500 cores i6400 an

[clang] 2a91d04 - Revert "[Clang] Bypass TAD during overload resolution if a perfect match exists" (#136113)

2025-04-17 Thread via cfe-commits
Author: cor3ntin Date: 2025-04-17T11:00:56+02:00 New Revision: 2a91d04b022f1295fe2057bc88dc89987e6a6e04 URL: https://github.com/llvm/llvm-project/commit/2a91d04b022f1295fe2057bc88dc89987e6a6e04 DIFF: https://github.com/llvm/llvm-project/commit/2a91d04b022f1295fe2057bc88dc89987e6a6e04.diff LOG:

[clang] Revert "[Clang] Bypass TAD during overload resolution if a perfect match exists" (PR #136113)

2025-04-17 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/136113 Reverts llvm/llvm-project#136018 Still some bots failing https://lab.llvm.org/buildbot/#/builders/52/builds/7643 >From 61705818e19b6a2e35a4a65f1104d26ce0c1929a Mon Sep 17 00:00:00 2001 From: cor3ntin Date: Th

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Mallikarjuna Gouda (mgoudar) Changes Enable 'FeatureMSA' for MIPS i6400 and i6500 cpu. MIPS i6400 and i6500 cores implements MSA (MIPS SIMD ARCHITECTURE) by default. --- Full diff: https://github.com/llvm/llvm-project/pull/134985.d

[clang] [CLANG][MS-STRUCT] bitfield padding warning presents padding to exact bit count (PR #136062)

2025-04-17 Thread Theo de Magalhaes via cfe-commits
https://github.com/theomagellan updated https://github.com/llvm/llvm-project/pull/136062 >From 842f0fbed0043ad0aa1679d8a30bc13d64eb25cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20de=20Magalhaes?= Date: Thu, 17 Apr 2025 01:45:12 +0200 Subject: [PATCH] fix(ms_struct): bitfield padding w

[clang] Revert "[Clang] Bypass TAD during overload resolution if a perfect match exists" (PR #136113)

2025-04-17 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/136113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2 (PR #123193)

2025-04-17 Thread via cfe-commits
@@ -558,6 +558,34 @@ def XIANGSHAN_NANHU : RISCVProcessorModel<"xiangshan-nanhu", TuneZExtWFusion, TuneShiftedZExtWFusion]>; +def XIANGSHAN_KUNMINGHU : RISCVProcessorModel<"xiangshan-kunmi

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mallikarjuna Gouda (mgoudar) Changes Enable 'FeatureMSA' for MIPS i6400 and i6500 cpu. MIPS i6400 and i6500 cores implements MSA (MIPS SIMD ARCHITECTURE) by default. --- Full diff: https://github.com/llvm/llvm-project/pull/134985.diff 2

[clang] [clang][bytecode] Enter a non-constant context when revisiting (PR #136104)

2025-04-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/136104 Otherwise, things like __builtin_is_constant_evaluated() return the wrong value. >From d55ada6a4b88db3579570a4f1fbd43ae38a715b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Apr 20

[clang] Revert "[Clang] Bypass TAD during overload resolution if a perfect match exists" (PR #136113)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Reverts llvm/llvm-project#136018 Still some bots failing https://lab.llvm.org/buildbot/#/builders/52/builds/7643 --- Patch is 78.11 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llv

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-17 Thread Aaron Ballman via cfe-commits
@@ -8623,6 +8624,13 @@ inline bool Type::isIntegralOrEnumerationType() const { inline bool Type::isBooleanType() const { if (const auto *BT = dyn_cast(CanonicalType)) return BT->getKind() == BuiltinType::Bool; + if (const EnumType *ET = dyn_cast(CanonicalType)) { +//

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-17 Thread Aaron Ballman via cfe-commits
@@ -2336,16 +2336,9 @@ bool Type::isArithmeticType() const { } bool Type::hasBooleanRepresentation() const { - if (isBooleanType()) -return true; - - if (const EnumType *ET = getAs()) -return ET->getDecl()->getIntegerType()->isBooleanType(); - - if (const AtomicType

[libclc] [libclc] Set OpenCL C version for each target (PR #135733)

2025-04-17 Thread Matt Arsenault via cfe-commits
@@ -387,21 +387,39 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} ) message( STATUS " device: ${d} ( ${${d}_aliases} )" ) -if ( ARCH STREQUAL spirv OR ARCH STREQUAL spirv64 ) +# 1.2 is Clang's default OpenCL C language standard to compile for. +set( opencl_lang_std

[clang] [Clang][AArch64] Add fp8 variants for untyped NEON intrinsics (PR #128019)

2025-04-17 Thread Paul Walker via cfe-commits
@@ -5464,6 +5464,15 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, Builder.CreateStore(errorValue, swiftErrorTemp); } +// Mfloat8 type is loaded as scalar type, but is treated as single +// vector type for other operation

[libclc] [libclc] Set OpenCL C version for each target (PR #135733)

2025-04-17 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm commented: I'd expect the libclc build (or any other runtime support library) to consistently use the same language version independent of the target. If the target doesn't support that version (which IIRC isn't actually a hard error anywhere) and fails to compile on

[clang-tools-extra] [clang-tidy] Fix bugprone-tagged-union-member-count false-positive (PR #135831)

2025-04-17 Thread via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?Message-ID: In-Reply-To: https://github.com/tigbr updated https://github.com/llvm/llvm-project/pull/135831 >From 525459a04dd6e7d0079095ac531c7cd712ac91d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20T=C3=B3thv=C3=

[clang-tools-extra] [clangd] Store documentation when indexing standard library (PR #133681)

2025-04-17 Thread kadir çetinkaya via cfe-commits
kadircet wrote: > The described options seem a bit more involved than necessary to fix this > bug, given that it's just the value of the `StoreAllDocumentation` flag > that's a problem. Maybe I miscommunicated something, but I was talking about a change like https://github.com/kadircet/llvm-p

[clang] [clang] Handle instantiated members to determine visibility (PR #136128)

2025-04-17 Thread Andrew Savonichev via cfe-commits
https://github.com/asavonic created https://github.com/llvm/llvm-project/pull/136128 As reported in issue #103477, visibility of instantiated member functions used to be ignored when calculating visibility of a specialization. This patch modifies `getLVForClassMember` to look up for a source t

[clang-tools-extra] [include-cleaner] rename enabled flags to `disable-*` (PR #132991)

2025-04-17 Thread Mohamed Emad via cfe-commits
https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/132991 >From c476948593a80ed31765cdd711a626e4e03930ab Mon Sep 17 00:00:00 2001 From: hulxv Date: Tue, 25 Mar 2025 22:56:51 +0200 Subject: [PATCH 1/2] [include-cleaner] rename enabled flags to `disable-*` --- .../includ

[clang] [clang][bytecode] Reject assignments in C (PR #136126)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Similar to what the current interpreter does. --- Full diff: https://github.com/llvm/llvm-project/pull/136126.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+5-1) - (added) clang

[clang] [clang][ExprConst] Diagnose ptr subs with non-zero offset (PR #135938)

2025-04-17 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/135938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)

2025-04-17 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/135957 >From b194133f44768a61a7af6486dc40deae2de73f9a Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Wed, 16 Apr 2025 05:59:24 -0700 Subject: [PATCH 1/6] [clang] Implement StmtPrinter for EmbedExpr Tr

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/136038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement dump() for MemberPointer APValues (PR #136130)

2025-04-17 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Can you do the JSONNodeDumper as well so the two stay somewhat in-sync? https://github.com/llvm/llvm-project/pull/136130 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [CIR] cir.call with scalar return type (PR #135552)

2025-04-17 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/135552 >From 0d5b4290c6bbcf8654e6898bb20182c252243e07 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Sun, 13 Apr 2025 23:34:21 +0800 Subject: [PATCH] [CIR] cir.call with scalar return type This patch introduces support

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

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

[clang] [clang][bytecode] Enter a non-constant context when revisiting (PR #136104)

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

[clang] [Clang][AArch64] Add fp8 variants for untyped NEON intrinsics (PR #128019)

2025-04-17 Thread Paul Walker via cfe-commits
paulwalker-arm wrote: For my education can you explain why the fp8 variants are broken out into their own definitions. Taking `VREV64_MF8` as an example, it looks like you should be able to add the new type strings to the current definition? https://github.com/llvm/llvm-project/pull/128019 __

[clang] [llvm] [LLVM] Add intrinsics for v_cvt_pk_norm_{i16, u16}_f16 (PR #135631)

2025-04-17 Thread Acim Maravic via cfe-commits
https://github.com/Acim-Maravic updated https://github.com/llvm/llvm-project/pull/135631 >From df4b39ea8558dcf18a0e6c2947c5f33eb356e77f Mon Sep 17 00:00:00 2001 From: Acim Maravic Date: Mon, 14 Apr 2025 16:29:11 +0200 Subject: [PATCH] [LLVM] Add intrinsics for v_cvt_pk_norm_{i16,u16}_f16 Added

[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)

2025-04-17 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/135957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-04-17 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > This patch is cruelly missing some tests. Is there a place for tests of this > kind? I haven't found an obvious one for other headers. You may consider adding a test here https://github.com/llvm/llvm-test-suite/tree/main/External/HIP. If possible, I would be happy to see std

[clang] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-04-17 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: LGTM. The addition of the device version of std::__glibcxx_assert_fail() seems reasonable and straightforward. WDYT @Artem-B https://github.com/llvm/llvm-project/pull/136133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] 90ddb54 - [clang][bytecode] Enter a non-constant context when revisiting (#136104)

2025-04-17 Thread via cfe-commits
Author: Timm Baeder Date: 2025-04-17T12:50:28+02:00 New Revision: 90ddb5444030b8d7cca6e91a27994e4fa9a6525d URL: https://github.com/llvm/llvm-project/commit/90ddb5444030b8d7cca6e91a27994e4fa9a6525d DIFF: https://github.com/llvm/llvm-project/commit/90ddb5444030b8d7cca6e91a27994e4fa9a6525d.diff L

[clang] c536967 - Split _Countof tests into two files; NFC

2025-04-17 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-04-17T07:13:31-04:00 New Revision: c536967af123c30b43f186133e8719e0090f24a6 URL: https://github.com/llvm/llvm-project/commit/c536967af123c30b43f186133e8719e0090f24a6 DIFF: https://github.com/llvm/llvm-project/commit/c536967af123c30b43f186133e8719e0090f24a6.diff

[clang] [clang] Implement dump() for MemberPointer APValues (PR #136130)

2025-04-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/136130 Print the member pointer decl and the path. >From ae8fac6c80a757a5ee3a0fa6e59d7546f71ce116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Apr 2025 13:44:50 +0200 Subject: [PATCH] [c

[clang] [clang] Implement dump() for MemberPointer APValues (PR #136130)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Print the member pointer decl and the path. --- Full diff: https://github.com/llvm/llvm-project/pull/136130.diff 3 Files Affected: - (modified) clang/lib/AST/TextNodeDumper.cpp (+14-2) - (modified) clang/

[clang] 4bd9b9e - Fix failing bot with changes to _Countof testing

2025-04-17 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-04-17T07:32:12-04:00 New Revision: 4bd9b9e9adf9db1a326e2f2fa616c714beb83c4f URL: https://github.com/llvm/llvm-project/commit/4bd9b9e9adf9db1a326e2f2fa616c714beb83c4f DIFF: https://github.com/llvm/llvm-project/commit/4bd9b9e9adf9db1a326e2f2fa616c714beb83c4f.diff

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2 (PR #123193)

2025-04-17 Thread Pengcheng Wang via cfe-commits
@@ -558,6 +558,34 @@ def XIANGSHAN_NANHU : RISCVProcessorModel<"xiangshan-nanhu", TuneZExtWFusion, TuneShiftedZExtWFusion]>; +def XIANGSHAN_KUNMINGHU : RISCVProcessorModel<"xiangshan-kunmi

[clang] [clang] Implement dump() for MemberPointer APValues (PR #136130)

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

[clang] fb00fa5 - [clang] Implement dump() for MemberPointer APValues (#136130)

2025-04-17 Thread via cfe-commits
Author: Timm Baeder Date: 2025-04-17T14:52:23+02:00 New Revision: fb00fa56b51b191d026eec104905e416bf34bbda URL: https://github.com/llvm/llvm-project/commit/fb00fa56b51b191d026eec104905e416bf34bbda DIFF: https://github.com/llvm/llvm-project/commit/fb00fa56b51b191d026eec104905e416bf34bbda.diff L

[clang] [llvm] [LLVM] Add intrinsics for v_cvt_pk_norm_{i16, u16}_f16 (PR #135631)

2025-04-17 Thread via cfe-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 'HEAD~1' HEAD llvm/test/CodeGen/AMDGPU/l

[clang] [clang] Handle instantiated members to determine visibility (PR #136128)

2025-04-17 Thread Andrew Savonichev via cfe-commits
https://github.com/asavonic updated https://github.com/llvm/llvm-project/pull/136128 >From 79a70bb55f864a14a7bc7d4ec99af44b86b801ba Mon Sep 17 00:00:00 2001 From: Andrew Savonichev Date: Thu, 17 Apr 2025 20:18:52 +0900 Subject: [PATCH] [clang] Handle instantiated members to determine visibility

[clang-tools-extra] [clang-tidy] Fix bugprone-tagged-union-member-count false-positive (PR #135831)

2025-04-17 Thread Baranov Victor via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?Message-ID: In-Reply-To: vbvictor wrote: I'm not sure if we need to check explicitly if some `struct`/`enum` comes from `std` since all `std` namespace is already placed in system headers unless some niece cases like `std

[clang] [clang][bytecode] Reject assignments in C (PR #136126)

2025-04-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/136126 Similar to what the current interpreter does. >From 646321191ac22da6ff4c83031ea995da4a2f8756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Apr 2025 13:02:45 +0200 Subject: [PATCH]

[clang] [clang] Handle instantiated members to determine visibility (PR #136128)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andrew Savonichev (asavonic) Changes As reported in issue #103477, visibility of instantiated member functions used to be ignored when calculating visibility of a specialization. This patch modifies `getLVForClassMember` to look up for a

[clang-tools-extra] [include-cleaner] rename enabled flags to `disable-*` (PR #132991)

2025-04-17 Thread Mohamed Emad via cfe-commits
hulxv wrote: > Do we need a deprecation period for this change? This will break anyone using > the old names in scripts and whatnot. > > Also, the changes will need something in the release notes so users know > about the new names. Is there a specific way to mark flags as deprecated? I didn'

[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)

2025-04-17 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! Precommit CI failures appear to be unrelated. https://github.com/llvm/llvm-project/pull/135957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] 51295d6 - [clang][bytecode] Reject assignments in C (#136126)

2025-04-17 Thread via cfe-commits
Author: Timm Baeder Date: 2025-04-17T13:39:27+02:00 New Revision: 51295d6d56f938b878ca0e2bb0a749eb801e8202 URL: https://github.com/llvm/llvm-project/commit/51295d6d56f938b878ca0e2bb0a749eb801e8202 DIFF: https://github.com/llvm/llvm-project/commit/51295d6d56f938b878ca0e2bb0a749eb801e8202.diff L

[clang] [clang][bytecode] Reject assignments in C (PR #136126)

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

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-17 Thread Aaron Ballman via cfe-commits
@@ -8623,6 +8624,13 @@ inline bool Type::isIntegralOrEnumerationType() const { inline bool Type::isBooleanType() const { if (const auto *BT = dyn_cast(CanonicalType)) return BT->getKind() == BuiltinType::Bool; + if (const EnumType *ET = dyn_cast(CanonicalType)) { ---

[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)

2025-04-17 Thread Mariya Podchishchaeva via cfe-commits
@@ -435,6 +435,7 @@ ExprResult Parser::createEmbedExpr() { ExprResult Res; ASTContext &Context = Actions.getASTContext(); SourceLocation StartLoc = ConsumeAnnotationToken(); + Fznamznon wrote: ```suggestion ``` https://github.com/llvm/llvm-project/pull/

[clang] [clang] Handle instantiated members to determine visibility (PR #136128)

2025-04-17 Thread Andrew Savonichev via cfe-commits
https://github.com/asavonic converted_to_draft https://github.com/llvm/llvm-project/pull/136128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement dump() for MemberPointer APValues (PR #136130)

2025-04-17 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM assuming precommit CI is happy too. https://github.com/llvm/llvm-project/pull/136130 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-04-17 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez created https://github.com/llvm/llvm-project/pull/136133 libstdc++ 15 uses the non-constexpr function std::__glibcxx_assert_fail() to trigger compilation errors when the __glibcxx_assert(cond) macro is used in a constantly evaluated context. Compilation fails when

[clang] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-04-17 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: This patch is cruelly missing some tests. Is there a place for tests of this kind? I haven't found an obvious one for other headers. https://github.com/llvm/llvm-project/pull/136133 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [clang] Implement dump() for MemberPointer APValues (PR #136130)

2025-04-17 Thread Timm Baeder via cfe-commits
tbaederr wrote: > Can you do the JSONNodeDumper as well so the two stay somewhat in-sync? Looks like that goes through `APValue::printPretty()`, so nothing to do for that. https://github.com/llvm/llvm-project/pull/136130 ___ cfe-commits mailing list

[clang] [clang] Handle instantiated members to determine visibility (PR #136128)

2025-04-17 Thread Andrew Savonichev via cfe-commits
asavonic wrote: Libcxx tests failed. I'll check them tomorrow. ``` Failed Tests (15): llvm-libc++-shared.cfg.in :: libcxx/containers/views/mdspan/extents/assert.conversion.pass.cpp llvm-libc++-shared.cfg.in :: libcxx/containers/views/mdspan/extents/assert.ctor_from_array.pass.cpp llvm-lib

[clang] [clang] Fix a use-after-free in expression evaluation (PR #118480)

2025-04-17 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > > ping, is this still a problem? > > > > > > yes, this is still happening. but I am currently lacking cycles to dig > > deeper into expression evaluation to see if this is the right fix given the > > reproducer. @VitaNuo was to take a look with some limited capacity, b

[clang] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-04-17 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: See https://github.com/gcc-mirror/gcc/blob/c237297ee596545552f48ec9582d7d16703d8949/libstdc%2B%2B-v3/include/bits/c%2B%2Bconfig#L645-L659 for the problematic libstdc++ snippet https://github.com/llvm/llvm-project/pull/136133 ___ cfe

[clang] 4041791 - [clang] Implement StmtPrinter for EmbedExpr (#135957)

2025-04-17 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2025-04-17T15:15:07+02:00 New Revision: 40417915a161e87b398f1cc3e9b7c159207abd77 URL: https://github.com/llvm/llvm-project/commit/40417915a161e87b398f1cc3e9b7c159207abd77 DIFF: https://github.com/llvm/llvm-project/commit/40417915a161e87b398f1cc3e9b7c159207abd

[clang] 9bd0c87 - [clang-format] Fix a bug in BWACS_MultiLine (#135906)

2025-04-17 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-16T18:48:10-07:00 New Revision: 9bd0c8726a5e3fd4f76e84692bd920dfca7a8d7f URL: https://github.com/llvm/llvm-project/commit/9bd0c8726a5e3fd4f76e84692bd920dfca7a8d7f DIFF: https://github.com/llvm/llvm-project/commit/9bd0c8726a5e3fd4f76e84692bd920dfca7a8d7f.diff LOG:

[clang] [clang] [CodeGen] fix crash when Ty isDependentType in CodeGenFunction::EmitAutoVarAlloca (PR #135643)

2025-04-17 Thread via cfe-commits
https://github.com/MacroModel closed https://github.com/llvm/llvm-project/pull/135643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Adds a RecursiveASTEnterExitVisitor (PR #136136)

2025-04-17 Thread Christopher Taylor via cfe-commits
https://github.com/ct-clmsn edited https://github.com/llvm/llvm-project/pull/136136 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Adds a RecursiveASTEnterExitVisitor data type (PR #136136)

2025-04-17 Thread Christopher Taylor via cfe-commits
https://github.com/ct-clmsn edited https://github.com/llvm/llvm-project/pull/136136 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement dump() for MemberPointer APValues (PR #136130)

2025-04-17 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Can you do the JSONNodeDumper as well so the two stay somewhat in-sync? > > Looks like that goes through `APValue::printPretty()`, so nothing to do for > that. Ah, good to know, thanks! https://github.com/llvm/llvm-project/pull/136130 __

[clang] [clang] Adds a RecursiveASTEnterExitVisitor (PR #136136)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Christopher Taylor (ct-clmsn) Changes @Sirraide : This is my first PR to clang and llvm. The PR creates a RecursiveASTVisitor type called `RecursiveASTEnterExitVisitor` that allows users to implement Visit methods before visiting an AST n

[clang] [clang] Adds a RecursiveASTEnterExitVisitor (PR #136136)

2025-04-17 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] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Juan Manuel Martinez Caamaño (jmmartinez) Changes libstdc++ 15 uses the non-constexpr function std::__glibcxx_assert_fail() to trigger compilation errors when the __glibcxx_assert(cond) macro is used in a constantly evaluated context. Com

[clang] [llvm] [DLCov 2/5] Implement DebugLoc coverage tracking (PR #107279)

2025-04-17 Thread Stephen Tozer via cfe-commits
SLTozer wrote: > It would be great to also have some documentation that shows step by step how > you've used these abilities to find the bugs you've found. SGTM - I think that should come in a separate patch. I have a branch with all my changes on it (not stable, I rebase semi-regularly) [her

[clang] [clang][bytecode] Check if operator delete calls are in the right frame (PR #136141)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This is only permitted in a std::allocator::deallocate frame. --- Full diff: https://github.com/llvm/llvm-project/pull/136141.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+

[clang] [clang][ExprConst] Diagnose ptr subs with non-zero offset (PR #135938)

2025-04-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/135938 >From 4a7fbbc62ee5b90627d053a641182d62bac38d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 16 Apr 2025 10:34:33 +0200 Subject: [PATCH] [clang][ExprConst] Diagnose ptr subs with non-z

[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)

2025-04-17 Thread Stephen Tozer via cfe-commits
SLTozer wrote: > Is this ready to go? I can't recall if we ultimately accepted the RFC. My interpretation of the RFC is that there was a general acceptance of `-Og = -O1 + -fextend-variable-liveness`, so with the acceptance here I believe this is ready! https://github.com/llvm/llvm-project/pu

[clang] [clang-tools-extra] [lldb] Reland [clang] Unify `SourceLocation` and `IdentifierInfo*` pair-like data structures to `IdentifierLoc` (PR #136077)

2025-04-17 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/136077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Mark the file opened by DeserializedDeclsSourceRangePrinter as a text file (PR #135842)

2025-04-17 Thread Zibi Sarbinowski via cfe-commits
zibi2 wrote: The 2 failing checks above don't seem to be related and they happen in other PRs. I'm going to merge this in. https://github.com/llvm/llvm-project/pull/135842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] Mark the file opened by DeserializedDeclsSourceRangePrinter as a text file (PR #135842)

2025-04-17 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 closed https://github.com/llvm/llvm-project/pull/135842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bd0b903 - Mark the file opened by DeserializedDeclsSourceRangePrinter as a text file (#135842)

2025-04-17 Thread via cfe-commits
Author: Zibi Sarbinowski Date: 2025-04-17T10:08:57-04:00 New Revision: bd0b903a91721570e0bc98f7ed8b0aaf2f2a628b URL: https://github.com/llvm/llvm-project/commit/bd0b903a91721570e0bc98f7ed8b0aaf2f2a628b DIFF: https://github.com/llvm/llvm-project/commit/bd0b903a91721570e0bc98f7ed8b0aaf2f2a628b.di

[clang] [clang] Handle instantiated members to determine visibility (PR #136128)

2025-04-17 Thread Erich Keane via cfe-commits
erichkeane wrote: This seems reasonable to me, but I'd like to see if @mizvekov has thoughts? https://github.com/llvm/llvm-project/pull/136128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)

2025-04-17 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer updated https://github.com/llvm/llvm-project/pull/118026 >From 351971bbff4e77b0f36cd92cd1a881584d17a9e7 Mon Sep 17 00:00:00 2001 From: Stephen Tozer Date: Thu, 28 Nov 2024 13:53:20 + Subject: [PATCH 1/2] Enable -fextend-lifetimes at -Og --- clang/docs/CommandGui

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-17 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. I'm not sure I did a great job reviewing all the layout code, but didn't see anything of concern. I'm somewhat fearful that we're pulling in existing "scary" code from Classic-CodeGen that is a 'thar be dragons' though. At the same tim

[clang] Fixed issue #128882: don't warn if 1st argument to 'getcwd' is NULL (PR #135720)

2025-04-17 Thread Balazs Benics via cfe-commits
@@ -105,9 +105,6 @@ void errno_getcwd(char *Buf, size_t Sz) { clang_analyzer_eval(errno != 0); // expected-warning{{TRUE}} clang_analyzer_eval(Path == NULL); // expected-warning{{TRUE}} if (errno) {} // no warning - } else if (Path == NULL) {

[clang] Fixed issue #128882: don't warn if 1st argument to 'getcwd' is NULL (PR #135720)

2025-04-17 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/135720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-17 Thread Henrich Lauko via cfe-commits
@@ -225,17 +235,108 @@ void RecordType::complete(ArrayRef members, bool packed, bool padded) { //===--===// llvm::TypeSize -RecordType::getTypeSizeInBits(const ::mlir::DataLayout &dataLayout, -

  1   2   3   4   5   >