[clang] 616613c - [Clang] [Sema] Fix a crash when a `friend` function is redefined as deleted (#135679)

2025-04-16 Thread via cfe-commits
Author: Sirraide Date: 2025-04-16T14:08:59+02:00 New Revision: 616613c80b75614736d0781d12c0e1237d79738f URL: https://github.com/llvm/llvm-project/commit/616613c80b75614736d0781d12c0e1237d79738f DIFF: https://github.com/llvm/llvm-project/commit/616613c80b75614736d0781d12c0e1237d79738f.diff LOG:

[clang] [Clang] [Sema] Fix a crash when a `friend` function is redefined as deleted (PR #135679)

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

[clang] [Clang] [Sema] Fix a crash when a `friend` function is redefined as deleted (PR #135679)

2025-04-16 Thread via cfe-commits
@@ -271,3 +271,33 @@ void operators() { if (to_int_int) {} // expected-error {{attempt to use a deleted function: deleted (TO, operator bool)}} static_cast(to_int_int); // expected-error {{static_cast from 'TO' to 'bool' uses deleted function: deleted (TO, operator bool)}}

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/10523 Here is the relevant p

[clang] [llvm] [AARCH64] Add FEAT_SSVE_FEXPA and fix unsupported features list (PR #134368)

2025-04-16 Thread via cfe-commits
@@ -74,12 +74,11 @@ def SVEUnsupported : AArch64Unsupported { } let F = [HasSME2p2, HasSVE2p2_or_SME2p2, HasNonStreamingSVE_or_SME2p2, - HasNonStreamingSVE2p2_or_SME2p2, HasNonStreamingSVE2_or_SSVE_BitPerm, - HasSME_MOP4, HasSME_TMOP] in + HasNonStreami

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

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

[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

2025-04-16 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @mysterymath In the meantime, can you please help us test the Fuchsia CI with this patch? I appreciate your help :) https://github.com/llvm/llvm-project/pull/135914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-16 Thread via cfe-commits
@@ -3107,6 +3107,24 @@ let TargetPrefix = "aarch64" in { } } + class SME_OuterProduct_TMOP_Intrinsic + : DefaultAttrsIntrinsic<[], + [llvm_i32_ty, + llvm_anyvector_ty, + LLVMMatchType<0>, + LLVMMatchType<0>, + llvm_nxv16i8

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-16 Thread via cfe-commits
@@ -104,6 +104,16 @@ class sme_outer_product_pseudo let usesCustomInserter = 1; } +class sme_sparse_outer_product_pseudo +: Pseudo<(outs), (ins i32imm:$tile, zn_ty:$zn, zm_ty:$zm, ZK:$zk, i32imm:$idx), []>, + Sched<[]> { + // Translated to the actual instructions

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-16 Thread via cfe-commits
https://github.com/CarolineConcatto commented: Thank you Jonathan for the changes, we are almost there. https://github.com/llvm/llvm-project/pull/135145 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-16 Thread via cfe-commits
@@ -0,0 +1,162 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 +; RUN: llc -force-streaming -verify-machineinstrs < %s | FileCheck %s + +target triple = "aarch64-linux" + +define void @stmopa_za32_s8( %zn1, %zn2, %zm, %z

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

2025-04-16 Thread Fraser Cormack 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

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

2025-04-16 Thread Fraser Cormack 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

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

2025-04-16 Thread Fraser Cormack 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

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

2025-04-16 Thread Fraser Cormack 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

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

2025-04-16 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/135733 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-04-16 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck commented: Yes I think on reflection it's probably okay to compile for the highest supported OpenCL C version. I believe they're supersets of one another, so a 3.0 builtins library would still contain all of the 1.2 builtins? I might be missing some of the nitty

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

2025-04-16 Thread Fraser Cormack 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][bytecode] Fix comparing zero-sized pointers (PR #135929)

2025-04-16 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/135929 Add the appropriate diagnostic and fix the d-d case. >From 685749dcf6fbbb4905922ce002180217947ca8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 16 Apr 2025 08:37:23 +0200 Subject: [

[clang] [Lex] Use llvm::make_second_range (NFC) (PR #135902)

2025-04-16 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/14569 Here is the relevant piece of the build lo

[clang] [clang][bytecode] Fix comparing zero-sized pointers (PR #135929)

2025-04-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Add the appropriate diagnostic and fix the d-d case. --- Full diff: https://github.com/llvm/llvm-project/pull/135929.diff 4 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.h (+14-16) - (modifie

[clang] [clang] fix unresolved dependent template specialization mangling (PR #135111)

2025-04-16 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: https://godbolt.org/z/sY44dG6Ya is the reproducer. It is not super small but still should give an idea as the stack is quite similar to stuff touched by this PR. https://github.com/llvm/llvm-project/pull/135111 ___ cfe-commits mailing li

[clang] 3d7e56f - [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (#135145)

2025-04-16 Thread via cfe-commits
Author: Jonathan Thackray Date: 2025-04-16T10:59:07+01:00 New Revision: 3d7e56fd28cd2195e7f330f933d491530e274401 URL: https://github.com/llvm/llvm-project/commit/3d7e56fd28cd2195e7f330f933d491530e274401 DIFF: https://github.com/llvm/llvm-project/commit/3d7e56fd28cd2195e7f330f933d491530e274401.d

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-16 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray closed https://github.com/llvm/llvm-project/pull/135145 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-16 Thread via cfe-commits
R-Goc wrote: It appears that gcc only disallows '&' in identifiers in C++26 mode. Not sure how relevant that is to clang. [bugzilla](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110343) https://github.com/llvm/llvm-project/pull/135407 ___ cfe-commits

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

2025-04-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Spencer (Bigcheese) Changes Reland https://github.com/llvm/llvm-project/pull/133173. This changes the assembly code to use `.cfi_{start,end}proc` directly in a file scope asm statement and restricts enabling it to MachO to help en

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

2025-04-16 Thread Theo de Magalhaes via cfe-commits
https://github.com/theomagellan created https://github.com/llvm/llvm-project/pull/136062 Aims to fix #131647. >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_struc

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

2025-04-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Theo de Magalhaes (theomagellan) Changes Aims to fix #131647. --- Full diff: https://github.com/llvm/llvm-project/pull/136062.diff 2 Files Affected: - (modified) clang/lib/AST/RecordLayoutBuilder.cpp (+3-1) - (modified) clang/test/Sema

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

2025-04-16 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/135842 >From b162b0476058c40b2fcbf7ef397696caead11a7f Mon Sep 17 00:00:00 2001 From: Zibi Sarbinowski Date: Tue, 15 Apr 2025 19:10:02 + Subject: [PATCH 1/3] Mark the file opened by DeserializedDeclsSourceRangePrinte

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

2025-04-16 Thread Theo de Magalhaes via cfe-commits
https://github.com/theomagellan converted_to_draft https://github.com/llvm/llvm-project/pull/136062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] eef9782 - [clang-doc][NFC] clean unused variable in HTML generator (#135505)

2025-04-16 Thread via cfe-commits
Author: Mohamed Emad Date: 2025-04-16T17:16:12-07:00 New Revision: eef978290ccb847c67bf0431e5fdd1dc4c7d408d URL: https://github.com/llvm/llvm-project/commit/eef978290ccb847c67bf0431e5fdd1dc4c7d408d DIFF: https://github.com/llvm/llvm-project/commit/eef978290ccb847c67bf0431e5fdd1dc4c7d408d.diff

[clang] [llvm] [SYCL] Add clang-linker-wrapper changes to call clang-sycl-linker for SYCL offloads (PR #135683)

2025-04-16 Thread Arvind Sudarsanam via cfe-commits
https://github.com/asudarsa updated https://github.com/llvm/llvm-project/pull/135683 >From 597fda606efbcf10304fed4adc5dd85da34b3de3 Mon Sep 17 00:00:00 2001 From: Arvind Sudarsanam Date: Mon, 14 Apr 2025 14:16:05 -0700 Subject: [PATCH 1/6] [SYCL] Add clang-linker-wrapper changes to call clang-

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-16 Thread James Y Knight via cfe-commits
jyknight wrote: > It appears that gcc only disallows '$' in identifiers in C++26 mode. Not sure > how relevant that is to clang. > [bugzilla](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110343) Or am I > misreading that thread? As far as I can tell, GCC has _not_ disallowed '$' in identifier

[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

2025-04-16 Thread Daniel Thornburgh via cfe-commits
mysterymath wrote: > @mysterymath In the meantime, can you please help us test the Fuchsia CI with > this patch? I appreciate your help :) We're not really set up to run the full Fuchsia CI with specific upstream patches, and it's a bit too flaky and expensive to be much good for that anyway.

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

2025-04-16 Thread via cfe-commits
@@ -96,6 +96,12 @@ C++ Language Changes asm((std::string_view("nop")) ::: (std::string_view("memory"))); } +- Clang now implements the changes to overload resolution proposed by section 1 and 2 of + `P3606 `_. If a non-template candidate

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

2025-04-16 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,35 @@ +// Regression test for https://github.com/llvm/llvm-project/issues/59819 + +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/MyClass.md --check-prefix=MD-MYC

[clang-tools-extra] [clang-doc] Add Start and End Line Numbers (PR #135081)

2025-04-16 Thread Paul Kirth via cfe-commits
ilovepi wrote: any progress here? https://github.com/llvm/llvm-project/pull/135081 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement the `faceforward` intrinsic (PR #135878)

2025-04-16 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng updated https://github.com/llvm/llvm-project/pull/135878 >From 69aee464d31dcf585c355808053b0c4d1c7d7f3c Mon Sep 17 00:00:00 2001 From: kmpeng Date: Mon, 7 Apr 2025 14:46:07 -0700 Subject: [PATCH 1/3] create int_spv_faceforward intrinsic, create faceforward lowering &

[clang] [llvm] [MTE] decide whether to tag global in AsmPrinter (PR #135891)

2025-04-16 Thread Florian Mayer via cfe-commits
fmayer wrote: > Should we add AsmPrinter tests to replace the ones we're removing from Clang? We have memtag-globals-asm.cpp https://github.com/llvm/llvm-project/pull/135891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [llvm] [SYCL] Add clang-linker-wrapper changes to call clang-sycl-linker for SYCL offloads (PR #135683)

2025-04-16 Thread Arvind Sudarsanam via cfe-commits
asudarsa wrote: Hi @jhuber6 I added a constraint that Images of SYCL offloading kind cannot be linked with images of other kind. This is a valid constraint in the current state of SYCL upstreaming effort. We will aim to remove this constraint soon. This makes the clang-linker-wrapper code ch

[clang] [llvm] [SYCL] Add clang-linker-wrapper changes to call clang-sycl-linker for SYCL offloads (PR #135683)

2025-04-16 Thread Arvind Sudarsanam via cfe-commits
https://github.com/asudarsa ready_for_review https://github.com/llvm/llvm-project/pull/135683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][RootSignature] Add infastructure to parse parameters (PR #133800)

2025-04-16 Thread Justin Bogner via cfe-commits
bogner wrote: I'm not entirely convinced the generic `ParsedParamState` is the right level of abstraction. In some ways the declarative nature is nice, but I think it's quite a bit more complex than a simple recursive descent here. Warning - lots of untested and never compiled code follows. C

[clang] [llvm] [WIP] Correct lowering of `fp128` intrinsics (PR #76558)

2025-04-16 Thread Trevor Gross via cfe-commits
@@ -0,0 +1,331 @@ +; RUN: llc < %s -mtriple=aarch64-unknown-none -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-USELD +; RUN: llc < %s -mtriple=i686-unknown -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-NOTLD +; RUN: llc < %s -mtriple=powerpc-unknown -veri

[clang] [llvm] [SYCL] Add clang-linker-wrapper changes to call clang-sycl-linker for SYCL offloads (PR #135683)

2025-04-16 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/135683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] clean unused variable in HTML generator (PR #135505)

2025-04-16 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/135505 ___ 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-16 Thread Michele Scandale 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] Bypass TAD during overload resolution if a perfect match exists (PR #136018)

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

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-04-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-win` running on `as-worker-93` while building `clang,compiler-rt,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/2721 Here i

[clang] [lldb] [llvm] Test "Revert "[CI] monolithic-linux improvements"" (PR #136078)

2025-04-16 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/136078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [llvm] Test "Revert "[CI] monolithic-linux improvements"" (PR #136078)

2025-04-16 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: Subsumed by 1fd7e4c517141ddfb527e7560e02fd5856244971. https://github.com/llvm/llvm-project/pull/136078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-04-16 Thread Nathan Ridge via cfe-commits
HighCommander4 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. I revised the patch to add a new parameter to `createStaticIndexingAction()` (now called `createIndexingAct

[clang] [Clang][CodeGen][OpenCL] Add `-fno-delete-null-pointer-checks` to avoid UB. NFC. (PR #135602)

2025-04-16 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw closed https://github.com/llvm/llvm-project/pull/135602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

2025-04-16 Thread Younan Zhang via cfe-commits
zyn0217 wrote: > We're not really set up to run the full Fuchsia CI with specific upstream > patches, and it's a bit too flaky and expensive to be much good for that > anyway. For now, it's better as post-submit than pre-submit, I'm afraid. > > So long as this fixes the issue in the reproducer

[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

2025-04-16 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/135914 >From 7d39d1a66c171bc6e44742c0baea5bcab777bacd Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 16 Apr 2025 13:27:54 +0800 Subject: [PATCH 1/3] Reapply "[Clang] Fix dependent local class instantiation bug

[clang] [clang] convergent attribute does not require "all threads" (PR #135803)

2025-04-16 Thread Sameer Sahasrabuddhe via cfe-commits
https://github.com/ssahasra closed https://github.com/llvm/llvm-project/pull/135803 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 377ec36 - [Clang] Bypass TAD during overload resolution if a perfect match exists (#136018)

2025-04-16 Thread via cfe-commits
Author: cor3ntin Date: 2025-04-17T08:09:55+02:00 New Revision: 377ec36b323ea99ca316cb5cf79c0a0c93eebc37 URL: https://github.com/llvm/llvm-project/commit/377ec36b323ea99ca316cb5cf79c0a0c93eebc37 DIFF: https://github.com/llvm/llvm-project/commit/377ec36b323ea99ca316cb5cf79c0a0c93eebc37.diff LOG:

[clang] [llvm] [mlir] [NVPTX] Add support for Shared Cluster Memory address space. (PR #135444)

2025-04-16 Thread Artem Belevich via cfe-commits
@@ -982,8 +982,9 @@ void NVPTXDAGToDAGISel::SelectAddrSpaceCast(SDNode *N) { case ADDRESS_SPACE_SHARED: Opc = TM.is64Bit() ? NVPTX::cvta_shared_64 : NVPTX::cvta_shared; break; -case ADDRESS_SPACE_DSHARED: - Opc = TM.is64Bit() ? NVPTX::cvta_dshared_64 :

[clang] Revert "[NFC][CFI] Dump test output to debug llvm-clang-win-x-aarch64 failure" (PR #136029)

2025-04-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Vitaly Buka (vitalybuka) Changes Reverts llvm/llvm-project#136002 Not needed any more. --- Full diff: https://github.com/llvm/llvm-project/pull/136029.diff 1 Files Affected: - (modified) clang/test/Driver/sanitizer-ld.c (-8)

[clang] d1a80de - Reapply "[Clang] Fix dependent local class instantiation bugs" (#135914)

2025-04-16 Thread via cfe-commits
Author: Younan Zhang Date: 2025-04-17T14:34:32+08:00 New Revision: d1a80deae674300d1011ccb6d6ee7030eaf8e713 URL: https://github.com/llvm/llvm-project/commit/d1a80deae674300d1011ccb6d6ee7030eaf8e713 DIFF: https://github.com/llvm/llvm-project/commit/d1a80deae674300d1011ccb6d6ee7030eaf8e713.diff

[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

2025-04-16 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/135914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] enhance loop analysis to handle variable changes inside lambdas (PR #135573)

2025-04-16 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/135573 >From 27e98b9fbfb808ab19cf688d48d688801d9647c1 Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Thu, 17 Apr 2025 00:40:34 +0300 Subject: [PATCH] [Clang] enhance loop analysis to handle variable changes

[clang] 8e67d8f - [Clang][CodeGen][OpenCL] Add `-fno-delete-null-pointer-checks` to avoid UB. NFC. (#135602)

2025-04-16 Thread via cfe-commits
Author: Yingwei Zheng Date: 2025-04-17T14:29:09+08:00 New Revision: 8e67d8fdf3a31b42f52ec12d995490f866b4449b URL: https://github.com/llvm/llvm-project/commit/8e67d8fdf3a31b42f52ec12d995490f866b4449b DIFF: https://github.com/llvm/llvm-project/commit/8e67d8fdf3a31b42f52ec12d995490f866b4449b.diff

[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

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

[clang-tools-extra] [NFC][clang-tidy] Remove {{^}} clauses in some tests (3/N) (PR #135826)

2025-04-16 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/135826 ___ 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-16 Thread Timm Baeder via cfe-commits
@@ -5238,6 +5238,14 @@ inline bool IsEnumDeclScoped(EnumDecl *ED) { return ED->isScoped(); } +/// Return the integer type corresponding to the given decl. +/// +/// We use this function to break a cycle between the inline definitions in +/// Type.h and Decl.h. +inline QualTy

[clang] [Clang] enhance loop analysis to handle variable changes inside lambdas (PR #135573)

2025-04-16 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/135573 >From f3a021b0acbb028b647e5fab02ff053ad88b Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Wed, 16 Apr 2025 01:08:55 +0300 Subject: [PATCH] [Clang] enhance loop analysis to handle variable changes

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

2025-04-16 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-tools-extra,clang` at step 4 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/20331 Here is the relevant p

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-16 Thread Yingwei Zheng via cfe-commits
dtcxzyw wrote: > > This patch adds support for GCC bound member functions extension: > > https://gcc.gnu.org/onlinedocs/gcc/Bound-member-functions.html > > Related issue: #22495 Closes #82727 > > I think this requires an RFC justifying carrying the extension. It's a > non-conforming extension

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

2025-04-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `clang-tools-extra,clang` at step 7 "build-default". Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/7690 Here is the rel

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

2025-04-16 Thread Reid Kleckner via cfe-commits
https://github.com/rnk approved this pull request. Is this ready to go? I can't recall if we ultimately accepted the RFC. https://github.com/llvm/llvm-project/pull/118026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

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

2025-04-16 Thread Mariya Podchishchaeva via cfe-commits
@@ -136,3 +136,43 @@ constexpr struct HasChar c = { c-error {{constexpr initializer evaluates to 255 which is not exactly representable in type 'signed char'}} }; + +#if __cplusplus +namespace std { +typedef decltype(sizeof(int)) size_t; + +tem

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

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

[clang] [Clang] enhance loop analysis to handle variable changes inside lambdas (PR #135573)

2025-04-16 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/135573 >From 6a4bfc48c306928cc0fb516cd340e06fa83d54e8 Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Wed, 16 Apr 2025 15:57:00 +0300 Subject: [PATCH] [Clang] enhance loop analysis to handle variable changes

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-16 Thread Erich Keane via cfe-commits
erichkeane wrote: I too don't think this is an extension that we really want. It is a pretty awful extension that does some pretty awful things to the language (and isn't implemented in a way that 'works right' in GCC anyway). Unless there is a REALLY important workload that we absolutely ne

[clang] [HLSL] Use hlsl_device address space for getpointer. (PR #127675)

2025-04-16 Thread Steven Perron via cfe-commits
s-perron wrote: @hekota Do you have any more things that need to be fixed? https://github.com/llvm/llvm-project/pull/127675 ___ 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-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes Tries to avoid memory leaks caused by saving filename earlier by allocating memory in the preprocessor. Fixes https://github.com/llvm/llvm-project/issues/132641 --- Full diff: https://github.com/

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

2025-04-16 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/135957 Tries to avoid memory leaks caused by saving filename earlier by allocating memory in the preprocessor. Fixes https://github.com/llvm/llvm-project/issues/132641 >From b194133f44768a61a7af6486dc40deae2de73f9a

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

2025-04-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-win` running on `as-builder-10` while building `clang-tools-extra,clang` at step 8 "build-default". Full details are available at: https://lab.llvm.org/buildbot/#/builders/197/builds/4082 Here is the relev

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

2025-04-16 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/include/clang/AST/Expr.h clang/include/clang/

[clang] [NFC][Clang] Introduce type aliases to replace use of auto in clang/lib/CodeGen/CGCall.cpp. (PR #135861)

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

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

2025-04-16 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-tools-extra,clang` at step 4 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/14580 Here is the relevant p

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

2025-04-16 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: This might also fix https://github.com/llvm/llvm-project/issues/107869 since a similar fix was proposed earlier to fix it. I don't have any experience with clangd to verify though. https://github.com/llvm/llvm-project/pull/135957 __

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

2025-04-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu` running on `doug-worker-1a` while building `clang-tools-extra,clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/181/builds/17702 H

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

2025-04-16 Thread Erich Keane via cfe-commits
@@ -14794,9 +14803,36 @@ void ASTContext::getFunctionFeatureMap(llvm::StringMap &FeatureMap, } } -static SYCLKernelInfo BuildSYCLKernelInfo(CanQualType KernelNameType, +static SYCLKernelInfo BuildSYCLKernelInfo(ASTContext &Context, +

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

2025-04-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang-tools-extra,clang` at step 4 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16121 Here is the re

[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

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

[clang] [llvm] [AARCH64] Add FEAT_SSVE_FEXPA and fix unsupported features list (PR #134368)

2025-04-16 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/134368 >From c1d652f7bb3f6ff272eca6dabc762b9504d7126a Mon Sep 17 00:00:00 2001 From: Marian Lukac Date: Fri, 4 Apr 2025 11:18:23 + Subject: [PATCH 1/2] [AARCH64] Add support for FEAT_SSVE_FEXPA extension and updat

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-16 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman requested changes to this pull request. > This patch adds support for GCC bound member functions extension: > https://gcc.gnu.org/onlinedocs/gcc/Bound-member-functions.html > > Related issue: #22495 Closes #82727 I think this requires an RFC justifying carrying

[clang] [Clang] [Sema] Fix a crash when a `friend` function is redefined as deleted (PR #135679)

2025-04-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/18406 Here is th

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-16 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/135407 >From c7e0132617ab01c12b393876b39381171996b793 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 11 Apr 2025 13:03:07 -0400 Subject: [PATCH 1/5] Disable -fdollars-in-identifiers by default Clang used

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-16 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > If you don't want to do anything fancy, can you just add a warning in > Lexer::LexTokenInternal if we see a '$' (where we set the token type to > tok::unknown)? That should be easy to implement, and have zero impact on > lexer performance. Okay, that's pretty reasonable.

[clang] [llvm] [clang][OpenMP][SPIR-V] Fix AS of globals and set the default AS to 4 (PR #135251)

2025-04-16 Thread Nick Sarnie via cfe-commits
sarnex wrote: Ping on this one @jhuber6 @AlexVlx, thanks! https://github.com/llvm/llvm-project/pull/135251 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-16 Thread Erich Keane via cfe-commits
erichkeane wrote: We're in agreement on all of the 'standards discussion needed' part, and we've filed bugs for them, so i've removed them. So now we're down to 3 differences, which I will spawn email threads for between us and the OpenACC chair. https://github.com/llvm/llvm-project/pull/1353

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

2025-04-16 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/2] [clang] Implement StmtPrinter for EmbedExpr Tr

[clang] ab7e0c0 - [clang][bytecode] Implement __builtin_wmem{cpy,move} (#135969)

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

[clang] [clang][bytecode] Implement __builtin_wmem{cpy, move} (PR #135969)

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

[clang] [NFC][Driver][CFI] Update boolean expression (PR #135881)

2025-04-16 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/135881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Revert "[clang] Unify `SourceLocation` and `IdentifierInfo*` pair-like data structures to `IdentifierLoc`" (PR #135974)

2025-04-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes Reverts llvm/llvm-project#135808 Example from the LLDB macOS CI: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/24084/execution/node/54/log/?consoleFull ``` /Users/ec2-user/jenkins/wo

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

2025-04-16 Thread Michael Buch via cfe-commits
Michael137 wrote: Reverted in https://github.com/llvm/llvm-project/pull/135974 since it's breaking the LLDB build. Let me know if you need help reproducing https://github.com/llvm/llvm-project/pull/135808 ___ cfe-commits mailing list cfe-commits@lists

[clang] [clang-tools-extra] Revert "[clang] Unify `SourceLocation` and `IdentifierInfo*` pair-like data structures to `IdentifierLoc`" (PR #135974)

2025-04-16 Thread Michael Buch via cfe-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/135974 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >