[clang] [llvm] Fix/172104 clang cl simd intrinsics (PR #172116)

2025-12-12 Thread Priyanshu Singh via cfe-commits
https://github.com/dev-priyanshu15 updated https://github.com/llvm/llvm-project/pull/172116 >From 4d15af1f63bf72dcedd4ff18b9c9a63cf3e7c7e6 Mon Sep 17 00:00:00 2001 From: spriyanshucoder Date: Sat, 13 Dec 2025 03:50:18 +0530 Subject: [PATCH 1/2] [LLVM][LoopVectorize] Fix SIGFPE crash in getPred

[clang] [llvm] Fix/172104 clang cl simd intrinsics (PR #172116)

2025-12-12 Thread Priyanshu Singh via cfe-commits
@@ -153,9 +153,13 @@ bool X86TargetInfo::initFeatureMap( llvm::StringMap &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector &FeaturesVec) const { // FIXME: This *really* should not be here. - // X86_64 always has SSE2. - if (getTriple().getArch()

[clang] [llvm] Fix/172104 clang cl simd intrinsics (PR #172116)

2025-12-12 Thread Priyanshu Singh via cfe-commits
https://github.com/dev-priyanshu15 updated https://github.com/llvm/llvm-project/pull/172116 504 Gateway Time-out The server didn't respond in time. ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [llvm] [clang][driver][darwin] Base the system prefix on the SDK, not the target (PR #171970)

2025-12-12 Thread Ian Anderson via cfe-commits
ian-twilightcoder wrote: I'm tempted to make the system prefix finding a little more generous. 1. Don't match on arch, call it a match if the triple matches vendor-os-env 2. Fall back on the default SupportedTarget's `SystemPrefix` if there isn't a match Any opinions? https://github.com/llvm/ll

[clang] [Clang] Fix crash on malformed std::partial_ordering static members (PR #172001)

2025-12-12 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt requested changes to this pull request. LGTM, just some super minor nits on style, and I'd just like a few more tests - you've added logic to be safe against `using partial_ordering = int`, etc so we should make sure that's tested. https://github.com/llvm/llvm-project

[clang] [Clang] Fix crash on malformed std::partial_ordering static members (PR #172001)

2025-12-12 Thread Oliver Hunt via cfe-commits
@@ -67,3 +67,28 @@ struct comparable_t { expected-note {{defaulted 'operator<=>' is implicitly deleted because defaulted comparison of vector types is not supported}} }; } // namespace GH137452 + +namespace GH1

[clang] [Clang] Fix crash on malformed std::partial_ordering static members (PR #172001)

2025-12-12 Thread Oliver Hunt via cfe-commits
@@ -83,7 +83,14 @@ ComparisonCategoryInfo::ValueInfo *ComparisonCategoryInfo::lookupValueInfo( &Ctx.Idents.get(ComparisonCategories::getResultString(ValueKind))); if (Lookup.empty() || !isa(Lookup.front())) return nullptr; - Objects.emplace_back(ValueKind, cast(Lo

[clang] [Clang] Fix crash on malformed std::partial_ordering static members (PR #172001)

2025-12-12 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/172001 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash on malformed std::partial_ordering static members (PR #172001)

2025-12-12 Thread Oliver Hunt via cfe-commits
@@ -67,3 +67,28 @@ struct comparable_t { expected-note {{defaulted 'operator<=>' is implicitly deleted because defaulted comparison of vector types is not supported}} }; } // namespace GH137452 + +namespace GH1

[clang] [llvm][RISCV] Add frm range check for xsfvfnrclipxfqf (PR #172135)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/172135.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaRISCV.cpp (+10) ``diff diff --git a/clang/lib/Sema/SemaRISCV.cpp b/

[clang] [llvm][RISCV] Add frm range check for xsfvfnrclipxfqf (PR #172135)

2025-12-12 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/172135 None >From 3e4c3c13eba70ff8b347bcc8c40cdb4ad0b80e75 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Fri, 12 Dec 2025 23:08:16 -0800 Subject: [PATCH] [llvm][RISCV] Add frm range check for xsfvfnrclipxfqf --- c

[clang] [CIR] Move CIR CXXABI lowering to a standlone pass (PR #172133)

2025-12-12 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 3050 tests passed * 7 tests skipped All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details. tools/clang/lib/CIR/Lowering/DirectToLLVM/CMakeFiles/obj.clangCIRLoweringDire

[clang] [llvm][RISCV] Add bf16 vfabs and vfneg intrinsics for zvfbfa. (PR #172130)

2025-12-12 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/172130 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST][RISCV] Preserve RISC-V intrinsic pragma in AST (PR #171981)

2025-12-12 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/171981 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Move CIR CXXABI lowering to a standlone pass (PR #172133)

2025-12-12 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/172133 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for data member comparison (PR #171897)

2025-12-12 Thread Andy Kaylor via cfe-commits
@@ -108,4 +112,12 @@ mlir::Operation *LowerItaniumCXXABI::lowerGetRuntimeMember( cir::CastKind::bitcast, memberBytesPtr); } +mlir::Value +LowerItaniumCXXABI::lowerDataMemberCmp(cir::CmpOp op, mlir::Value loweredLhs, +

[clang] [Clang][CodeGen] Preserve alignment information for pointer arithmetics (PR #152575)

2025-12-12 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: CC @fmayer After this patch we have a change in Ubsan: before: https://godbolt.org/z/E1rG51cc1 after: https://godbolt.org/z/rj47nMbno gcc: https://godbolt.org/z/hxbaPhTrM https://github.com/llvm/llvm-project/pull/152575 ___ cfe-com

[clang] [CIR] Move CIR CXXABI lowering to a standlone pass (PR #172133)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This moves the code that handles CXXABI-specific lowering in ConvertCIRToLLVMPass into a standlone CIR-to-CIR transform pass. The handling of these operations was already performing a CIR-to-CIR transfor

[clang] [CIR] Move CIR CXXABI lowering to a standlone pass (PR #172133)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This moves the code that handles CXXABI-specific lowering in ConvertCIRToLLVMPass into a standlone CIR-to-CIR transform pass. The handling of these operations was already performing a CIR-to-CIR transforma

[clang] [CIR] Move CIR CXXABI lowering to a standlone pass (PR #172133)

2025-12-12 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/172133 This moves the code that handles CXXABI-specific lowering in ConvertCIRToLLVMPass into a standlone CIR-to-CIR transform pass. The handling of these operations was already performing a CIR-to-CIR transformati

[clang] [CIR][X86] Add support for permd builtins (PR #172132)

2025-12-12 Thread Zhihui Yang via cfe-commits
https://github.com/YGGkk updated https://github.com/llvm/llvm-project/pull/172132 >From 7bb370ddc58d5364fa1c636f3c29a40e54a943e5 Mon Sep 17 00:00:00 2001 From: Zhihui Yang Date: Fri, 12 Dec 2025 22:21:52 -0800 Subject: [PATCH 1/3] [CIR][X86] Add support for permd builtins --- clang/lib/CIR/Co

[clang] [CIR][X86] Add support for permd builtins (PR #172132)

2025-12-12 Thread Zhihui Yang via cfe-commits
https://github.com/YGGkk updated https://github.com/llvm/llvm-project/pull/172132 >From 7bb370ddc58d5364fa1c636f3c29a40e54a943e5 Mon Sep 17 00:00:00 2001 From: Zhihui Yang Date: Fri, 12 Dec 2025 22:21:52 -0800 Subject: [PATCH 1/2] [CIR][X86] Add support for permd builtins --- clang/lib/CIR/Co

[clang] [CIR][X86] Add support for permd builtins (PR #172132)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zhihui Yang (YGGkk) Changes Part of https://github.com/llvm/llvm-project/issues/167765 --- Full diff: https://github.com/llvm/llvm-project/pull/172132.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp (+16-1

[clang] [CIR][X86] Add support for permd builtins (PR #172132)

2025-12-12 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] [CIR][X86] Add support for permd builtins (PR #172132)

2025-12-12 Thread Zhihui Yang via cfe-commits
https://github.com/YGGkk created https://github.com/llvm/llvm-project/pull/172132 Part of https://github.com/llvm/llvm-project/issues/167765 >From 7bb370ddc58d5364fa1c636f3c29a40e54a943e5 Mon Sep 17 00:00:00 2001 From: Zhihui Yang Date: Fri, 12 Dec 2025 22:21:52 -0800 Subject: [PATCH] [CIR][X8

[clang] [CIR][X86] Add support for alignd builtins (PR #171621)

2025-12-12 Thread Zhihui Yang via cfe-commits
https://github.com/YGGkk updated https://github.com/llvm/llvm-project/pull/171621 >From b2a8864d269f727ae4e85188d68a3a1230f43d0b Mon Sep 17 00:00:00 2001 From: Zhihui Yang Date: Wed, 10 Dec 2025 05:46:30 -0800 Subject: [PATCH 1/5] [CIR][X86] Add support for alignd builtins --- clang/lib/CIR/C

[clang] [AST][RISCV] Preserve RISC-V intrinsic pragma in AST (PR #171981)

2025-12-12 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 85089 tests passed * 1174 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.PCH/riscv-rvv-vectors.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 1 rm -rf /ho

[clang] [CIR][X86] Add support for alignd builtins (PR #171621)

2025-12-12 Thread Zhihui Yang via cfe-commits
https://github.com/YGGkk updated https://github.com/llvm/llvm-project/pull/171621 >From b2a8864d269f727ae4e85188d68a3a1230f43d0b Mon Sep 17 00:00:00 2001 From: Zhihui Yang Date: Wed, 10 Dec 2025 05:46:30 -0800 Subject: [PATCH 1/5] [CIR][X86] Add support for alignd builtins --- clang/lib/CIR/C

[clang] [llvm][RISCV] Add bf16 vfabs and vfneg intrinsics for zvfbfa. (PR #172130)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes These are pseudoinstruction aliases for vfsgnjx and vfsgnjn. --- Patch is 108.72 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/172130.diff 9 Files Affe

[clang] [llvm][RISCV] Add bf16 vfabs and vfneg intrinsics for zvfbfa. (PR #172130)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes These are pseudoinstruction aliases for vfsgnjx and vfsgnjn. --- Patch is 108.72 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/172130.diff 9 Files Affected: -

[clang] [AST][RISCV] Preserve RISC-V intrinsic pragma in AST (PR #171981)

2025-12-12 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 origin/main HEAD --extensions c,h,cpp -- clang/test/PCH/riscv-rvv-vectors.c clang/inc

[clang] [AST][RISCV] Preserve RISC-V intrinsic pragma in AST (PR #171981)

2025-12-12 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/171981 >From 959b7f73fc6a7c542640256927571f767a3a4f68 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Fri, 12 Dec 2025 01:15:38 -0800 Subject: [PATCH 1/3] [AST][RISCV] Preserve RISC-V intrinsic pragma in AST RISC-V ve

[clang-tools-extra] [clang-tidy] Moved Multiple Inheritence check from fuchsia to misc module (PR #171565)

2025-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang-tools-extra` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/20287 Here is the rel

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-12-12 Thread Stefan Weigl-Bosker via cfe-commits
@@ -45,7 +45,15 @@ class DiskBackedIndexStorage : public BackgroundIndexStorage { if (EC != OK) { elog("Failed to create directory {0} for index storage: {1}", DiskShardRoot, EC.message()); + return; } +// Create a .gitignore file in the dire

[clang] [flang] [llvm] Fix/172049 loop vectorize sigfpe (PR #172094)

2025-12-12 Thread Luke Lau via cfe-commits
https://github.com/lukel97 edited https://github.com/llvm/llvm-project/pull/172094 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Fix/172049 loop vectorize sigfpe (PR #172094)

2025-12-12 Thread Luke Lau via cfe-commits
https://github.com/lukel97 edited https://github.com/llvm/llvm-project/pull/172094 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Fix/172049 loop vectorize sigfpe (PR #172094)

2025-12-12 Thread Luke Lau via cfe-commits
https://github.com/lukel97 edited https://github.com/llvm/llvm-project/pull/172094 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Fix/172049 loop vectorize sigfpe (PR #172094)

2025-12-12 Thread Luke Lau via cfe-commits
@@ -2907,6 +2907,10 @@ uint64_t LoopVectorizationCostModel::getPredBlockCostDivisor( uint64_t BBFreq = getBFI().getBlockFreq(BB).getFrequency(); assert(HeaderFreq >= BBFreq && "Header has smaller block freq than dominated BB?"); + // Guard against division by zer

[clang] [flang] [llvm] Fix/172049 loop vectorize sigfpe (PR #172094)

2025-12-12 Thread Luke Lau via cfe-commits
https://github.com/lukel97 requested changes to this pull request. Hi thanks for submitting a PR for this. Unfortunately I think the issue that was filed for this may be slightly out of date. Were you definitely able to recreate the crash after 0fbb45e7d6dcccf88248d6be5e4f167ddb3e3fa8? https:/

[clang-tools-extra] [clang-tidy] Moved Multiple Inheritence check from fuchsia to misc module (PR #171565)

2025-12-12 Thread via cfe-commits
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/171565 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] e0379b8 - [clang-tidy] Moved Multiple Inheritence check from fuchsia to misc module (#171565)

2025-12-12 Thread via cfe-commits
Author: Bala_Bhuvan_Varma Date: 2025-12-13T12:04:54+08:00 New Revision: e0379b8f91e52e978208887e2f74ea9efda3180d URL: https://github.com/llvm/llvm-project/commit/e0379b8f91e52e978208887e2f74ea9efda3180d DIFF: https://github.com/llvm/llvm-project/commit/e0379b8f91e52e978208887e2f74ea9efda3180d.d

[clang] [llvm] [llvm][clang] Sandbox filesystem reads (PR #165350)

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

[clang-tools-extra] [clang-tidy] Moved Multiple Inheritence check from fuchsia to misc module (PR #171565)

2025-12-12 Thread via cfe-commits
Bhuvan1527 wrote: @zeyi2 , please trigger the pr merge. I don't have permission to merge. Thank you https://github.com/llvm/llvm-project/pull/171565 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [Driver] Enable outline atomics for NetBSD/aarch64 (PR #156143)

2025-12-12 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/156143 >From 27c75631d0197603aa5faaadb227e0310874d014 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 30 Aug 2025 00:34:30 -0400 Subject: [PATCH] [Driver] Enable outline atomics for NetBSD/aarch64 --- clang/lib/Dr

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-12 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/171769 >From 2be205229095de49af648763ad47f65641e0731f Mon Sep 17 00:00:00 2001 From: Michael Park Date: Wed, 10 Dec 2025 17:58:04 -0800 Subject: [PATCH] [C++20][Modules] Improve namespace handling performance for module

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-12 Thread Michael Park via cfe-commits
mpark wrote: I've added a `TODO` to try to generalize this optimization to other redeclarable decls. https://github.com/llvm/llvm-project/pull/171769 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[clang-tools-extra] [clang-tidy][NFC] Remove obsolete FIXME comment (PR #172120)

2025-12-12 Thread via cfe-commits
https://github.com/zeyi2 approved this pull request. https://github.com/llvm/llvm-project/pull/172120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-12-12 Thread Duncan Ogilvie via cfe-commits
https://github.com/mrexodia updated https://github.com/llvm/llvm-project/pull/170003 >From 1d0f1896d717bbd206f5adda36a5428ae65666b2 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sat, 29 Nov 2025 17:07:37 +0100 Subject: [PATCH] Add .gitignore file in .cache/clangd/index --- clang-tools-e

[clang-tools-extra] [clang-tidy][NFC] Remove obsolete FIXME comment (PR #172120)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes This comment was written 12 years ago. It's no longer correct to say that diagnostic reporting is under heavy development, and we seem to be doing just fine without tablegenned IDs, so I think w

[clang-tools-extra] [clang-tidy][NFC] Remove obsolete FIXME comment (PR #172120)

2025-12-12 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/172120 This comment was written 12 years ago. It's no longer correct to say that diagnostic reporting is under heavy development, and we seem to be doing just fine without tablegenned IDs, so I think we can simply

[clang] [flang] [llvm] Fix/172104 clang cl simd intrinsics (PR #172116)

2025-12-12 Thread Andrew Pinski via cfe-commits
@@ -153,9 +153,13 @@ bool X86TargetInfo::initFeatureMap( llvm::StringMap &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector &FeaturesVec) const { // FIXME: This *really* should not be here. - // X86_64 always has SSE2. - if (getTriple().getArch()

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-12-12 Thread Duncan Ogilvie via cfe-commits
https://github.com/mrexodia updated https://github.com/llvm/llvm-project/pull/170003 >From 9429f24e4b7a703e0f898cfe555ec5ef448c69f2 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sat, 29 Nov 2025 17:07:37 +0100 Subject: [PATCH] Add .gitignore file in .cache/clangd/index --- clang-tools-e

[clang] [flang] [llvm] Fix/172104 clang cl simd intrinsics (PR #172116)

2025-12-12 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval requested changes to this pull request. Flang changes are out of scope of this PR. https://github.com/llvm/llvm-project/pull/172116 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/ma

[clang] [libc] [libc] Support opaque FILE* on baremetal (PR #168931)

2025-12-12 Thread Alexander Richardson via cfe-commits
@@ -0,0 +1,32 @@ +//===-- Implementation of fputc for baremetal ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

2025-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv7-global-isel` running on `linaro-clang-armv7-global-isel` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/39/builds/9085 Here is the relev

[clang] [lld] [llvm] [LTO][LLD] Prevent invalid LTO libfunc transforms (PR #164916)

2025-12-12 Thread Paul Kirth via cfe-commits
@@ -279,9 +279,31 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, RegisterPassPlugins(Conf.PassPlugins, PB); std::unique_ptr TLII( - new TargetLibraryInfoImpl(TM->getTargetTriple(), TM->Options.VecLib)); + new TargetLibraryInfoI

[clang] [lld] [llvm] [LTO][LLD] Prevent invalid LTO libfunc transforms (PR #164916)

2025-12-12 Thread Paul Kirth via cfe-commits
@@ -365,7 +387,8 @@ static bool isEmptyModule(const Module &Mod) { bool lto::opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod, bool IsThinLTO, ModuleSummaryIndex *ExportSummary, const ModuleSummaryIndex *ImportSummary, -

[clang] [lld] [llvm] [LTO][LLD] Prevent invalid LTO libfunc transforms (PR #164916)

2025-12-12 Thread Paul Kirth via cfe-commits
@@ -2701,14 +2701,30 @@ static void markBuffersAsDontNeed(Ctx &ctx, bool skipLinkedOutput) { template void LinkerDriver::compileBitcodeFiles(bool skipLinkedOutput) { llvm::TimeTraceScope timeScope("LTO"); + // Capture the triple before moving the bitcode into the bitcode c

[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

2025-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/18979 Here is the relevant piece of the build log f

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-12-12 Thread Duncan Ogilvie via cfe-commits
https://github.com/mrexodia updated https://github.com/llvm/llvm-project/pull/170003 >From cfcbfbafda0e37a4cb54456024cec1035d071c6c Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sat, 29 Nov 2025 17:07:37 +0100 Subject: [PATCH] Add .gitignore file in .cache/clangd/index --- .../clangd/in

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-12-12 Thread Erich Keane via cfe-commits
@@ -16412,28 +16438,53 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation, FD->getAttr(); if (FD->isDefaulted()) { Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_invalid) - << SKEPAttr << /*defaulted function

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-12-12 Thread Denis Mikhailov via cfe-commits
@@ -467,6 +468,58 @@ hasAnyOverloadedOperatorNameFunc(ArrayRef NameRefs) { return HasOverloadOpNameMatcher(vectorFromRefs(NameRefs)); } +static std::vector> +vectorFromMatcherRefs(ArrayRef *> MatcherRefs) { + std::vector> Matchers; + Matchers.reserve(MatcherRefs.size()); +

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-12-12 Thread Denis Mikhailov via cfe-commits
@@ -467,6 +468,58 @@ hasAnyOverloadedOperatorNameFunc(ArrayRef NameRefs) { return HasOverloadOpNameMatcher(vectorFromRefs(NameRefs)); } +static std::vector> +vectorFromMatcherRefs(ArrayRef *> MatcherRefs) { + std::vector> Matchers; + Matchers.reserve(MatcherRefs.size()); +

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-12-12 Thread Denis Mikhailov via cfe-commits
@@ -467,6 +468,58 @@ hasAnyOverloadedOperatorNameFunc(ArrayRef NameRefs) { return HasOverloadOpNameMatcher(vectorFromRefs(NameRefs)); } +static std::vector> +vectorFromMatcherRefs(ArrayRef *> MatcherRefs) { + std::vector> Matchers; + Matchers.reserve(MatcherRefs.size()); +

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-12-12 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/152403 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-12-12 Thread Erich Keane via cfe-commits
@@ -16412,28 +16438,53 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation, FD->getAttr(); if (FD->isDefaulted()) { Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_invalid) - << SKEPAttr << /*defaulted function

[clang] [openmp] Build and ship OpenMP with LLVM releases (PR #160581)

2025-12-12 Thread Tom Stellard via cfe-commits
https://github.com/tstellar approved this pull request. The builds pass, so this is fine with me. https://github.com/llvm/llvm-project/pull/160581 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] e23e570 - [webkit.UncountedLambdaCapturesChecker] Ignore a lambda which gets called immediately (#162977)

2025-12-12 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-12-12T14:58:38-08:00 New Revision: e23e5705e69aa7c6e4f35394b673977cca97308a URL: https://github.com/llvm/llvm-project/commit/e23e5705e69aa7c6e4f35394b673977cca97308a DIFF: https://github.com/llvm/llvm-project/commit/e23e5705e69aa7c6e4f35394b673977cca97308a.diff

[clang] [llvm] AMDGPU: Add builtin/intrinsic global_(load|store)_b128 (PR #172090)

2025-12-12 Thread Shilei Tian via cfe-commits
https://github.com/shiltian requested changes to this pull request. I think using a string for a user-facing interface is a bad design. The Sema check also doesn't check whether the scope string is valid or not. This should be something like a memory order value for those GCC atomic builtins.

[clang] [llvm] [win][x64] Fix import call optimization for calls to dllimports and global function pointers (PR #160604)

2025-12-12 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/160604 >From 78a7bf052fa49eaf9a566aa5b109754300c77a51 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Fri, 12 Dec 2025 09:45:37 -0800 Subject: [PATCH] [win][x64] Fix import call optimization for calls to dlli

[clang] [CodeGen][ObjC] Initial WebAssembly Support for GNUstep (PR #169043)

2025-12-12 Thread Derek Schuff via cfe-commits
dschuff wrote: > I would like to avoid defining two new personality functions for ObjC and > ObjCXX on WASM. Can't we just differentiate and emit code based on the target > triple? If objc follows exactly the same ABI and runtime as C++ then maybe it can just use the same personality function

[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

2025-12-12 Thread Tom Honermann via cfe-commits
@@ -16412,28 +16438,53 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation, FD->getAttr(); if (FD->isDefaulted()) { Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_invalid) - << SKEPAttr << /*defaulted function

[clang] [flang] [llvm] Fix/172049 loop vectorize sigfpe (PR #172094)

2025-12-12 Thread Priyanshu Singh via cfe-commits
https://github.com/dev-priyanshu15 updated https://github.com/llvm/llvm-project/pull/172094 >From 5bc0f4afb423c085addebd009aaff9c8733b3931 Mon Sep 17 00:00:00 2001 From: spriyanshucoder Date: Sat, 13 Dec 2025 02:50:35 +0530 Subject: [PATCH 1/3] [flang][OpenMP] Fix regression in OpenMP master re

[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

2025-12-12 Thread Naveen Seth Hanig via cfe-commits
@@ -161,43 +164,107 @@ DependencyScanningTool::getModuleDependencies( StringRef ModuleName, ArrayRef CommandLine, StringRef CWD, const llvm::DenseSet &AlreadySeen, LookupModuleOutputCallback LookupModuleOutput) { - FullDependencyConsumer Consumer(AlreadySeen); - C

[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

2025-12-12 Thread Naveen Seth Hanig via cfe-commits
@@ -713,38 +714,31 @@ bool DependencyScanningAction::runInvocation( return Result; } -bool CompilerInstanceWithContext::initialize(DiagnosticConsumer *DC) { - if (DC) { -DiagConsumer = DC; - } else { -DiagPrinterWithOS = -std::make_unique(CommandLine); -

[clang] [compiler-rt] Add SignalSanitizer (PR #172086)

2025-12-12 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 51520 tests passed * 871 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CodeGen/allow-ubsan-check.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 5 c:\_wor

[clang] [flang] Fix/172072 auto function param (PR #172092)

2025-12-12 Thread Priyanshu Singh via cfe-commits
https://github.com/dev-priyanshu15 updated https://github.com/llvm/llvm-project/pull/172092 >From 5bc0f4afb423c085addebd009aaff9c8733b3931 Mon Sep 17 00:00:00 2001 From: spriyanshucoder Date: Sat, 13 Dec 2025 02:50:35 +0530 Subject: [PATCH 1/2] [flang][OpenMP] Fix regression in OpenMP master re

[clang] [flang] Fix/172072 auto function param (PR #172092)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-fir-hlfir Author: Priyanshu Singh (dev-priyanshu15) Changes [clang][libclang] Fix auto function parameter type reporting When auto is used as a function parameter type, clang-c API was incorrectly reporting it as TypeRef with kind unexposed instea

[clang] [flang] Fix/172072 auto function param (PR #172092)

2025-12-12 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] [compiler-rt] Add SignalSanitizer (PR #172086)

2025-12-12 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 85092 tests passed * 1170 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CodeGen/allow-ubsan-check.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 5 /home/g

[clang] [flang] Fix/172072 auto function param (PR #172092)

2025-12-12 Thread Priyanshu Singh via cfe-commits
https://github.com/dev-priyanshu15 created https://github.com/llvm/llvm-project/pull/172092 [clang][libclang] Fix auto function parameter type reporting When auto is used as a function parameter type, clang-c API was incorrectly reporting it as TypeRef with kind unexposed instead of reporting i

[clang] [-Wunsafe-buffer-usage] Check isValueDependent before EvaluateAsBooleanCondition (PR #172091)

2025-12-12 Thread Ziqing Luo via cfe-commits
@@ -156,6 +156,8 @@ void safe_examples(std::string s1, int *p) { snprintf(a, 10, "%s%d%s%p%s", __PRETTY_FUNCTION__, *p, "hello", s1.c_str()); // no warn snprintf(&c, 1, "%s%d%s%p%s", __PRETTY_FUNCTION__, *p, "hello", s1.c_str()); // no warn

[clang] [-Wunsafe-buffer-usage] Check isValueDependent before EvaluateAsBooleanCondition (PR #172091)

2025-12-12 Thread Ziqing Luo via cfe-commits
@@ -2106,6 +2108,10 @@ class UnsafeLibcFunctionCallGadget : public WarningGadget { // function that is not in any namespace: if (!FD->isInStdNamespace() && !IsGlobalAndNotInAnyNamespace) return false; +// If the call has a sole null-terminated argument, e.g.,

[clang] [-Wunsafe-buffer-usage] Check isValueDependent before EvaluateAsBooleanCondition (PR #172091)

2025-12-12 Thread Ziqing Luo via cfe-commits
@@ -781,40 +817,6 @@ struct LibcFunNamePrefixSuffixParser { } }; -// Constant fold a conditional expression 'cond ? A : B' to ziqingluo-90 wrote: Pulled the two functions out of the `libc_func_matchers ` namespace since they are more general. https://gith

[clang] UBSan: Use ubsan_interface.h for synthetic debug info (PR #171929)

2025-12-12 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/171929 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [-Wunsafe-buffer-usage] Check isValueDependent before EvaluateAsBooleanCondition (PR #172091)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Ziqing Luo (ziqingluo-90) Changes The function `EvaluateAsBooleanCondition` assumes (asserts) that the input `Expr` is not in a dependent context. So it is caller's responsibility to check the condition before the call. This com

[clang] [-Wunsafe-buffer-usage] Check isValueDependent before EvaluateAsBooleanCondition (PR #172091)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ziqing Luo (ziqingluo-90) Changes The function `EvaluateAsBooleanCondition` assumes (asserts) that the input `Expr` is not in a dependent context. So it is caller's responsibility to check the condition before the call. This commit fixes

[clang] [-Wunsafe-buffer-usage] Check isValueDependent before EvaluateAsBooleanCondition (PR #172091)

2025-12-12 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/172091 >From 00349cc36ead6258c94499f8b7702deb5f0ff7c8 Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Fri, 12 Dec 2025 13:45:07 -0800 Subject: [PATCH] [-Wunsafe-buffer-usage] Check isValueDependent before Evaluat

[clang] [llvm] AMDGPU: Add builtin/intrinsic global_(load|store)_b128 (PR #172090)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (macurtis-amd) Changes Add clang builtins and associated llvm intrinsics for scoped load/store of 128bits New builtins: 1. `__builtin_amdgcn_global_load_b128` ([documentation](https://github.com/macurtis-amd/llvm-project/blo

[clang] [llvm] AMDGPU: Add builtin/intrinsic global_(load|store)_b128 (PR #172090)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-tablegen Author: None (macurtis-amd) Changes Add clang builtins and associated llvm intrinsics for scoped load/store of 128bits New builtins: 1. `__builtin_amdgcn_global_load_b128` ([documentation](https://github.com/macurtis-amd/llvm-project/blob/glo

[clang] [llvm] AMDGPU: Add builtin/intrinsic global_(load|store)_b128 (PR #172090)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: None (macurtis-amd) Changes Add clang builtins and associated llvm intrinsics for scoped load/store of 128bits New builtins: 1. `__builtin_amdgcn_global_load_b128` ([documentation](https://github.com/macurtis-amd/llvm-project/blob/glob

[clang] [llvm] AMDGPU: Add builtin/intrinsic global_(load|store)_b128 (PR #172090)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-globalisel Author: None (macurtis-amd) Changes Add clang builtins and associated llvm intrinsics for scoped load/store of 128bits New builtins: 1. `__builtin_amdgcn_global_load_b128` ([documentation](https://github.com/macurtis-amd/llvm-project/b

[clang] [CIR][X86] Implement lowering for `_AddressOfReturnAddress` builtin (PR #171974)

2025-12-12 Thread Andy Kaylor via cfe-commits
@@ -1706,7 +1706,12 @@ CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, const CallExpr *expr) { cir::SyncScopeKind::SingleThread)); return mlir::Value{}; } - case X86::BI_AddressOfReturnAddress: + case X86::BI_AddressOfReturnAd

[clang] [-Wunsafe-buffer-usage] Check isValueDependent before EvaluateAsBooleanCondition (PR #172091)

2025-12-12 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 created https://github.com/llvm/llvm-project/pull/172091 The function `EvaluateAsBooleanCondition` assumes (asserts) that the input `Expr` is not in a dependent context. So it is caller's responsibility to check the condition before the call. This commit fixes

[clang-tools-extra] [clangd] Add option to fuzzy-match macros in code-complete (PR #169880)

2025-12-12 Thread Baranov Victor via cfe-commits
@@ -102,6 +102,10 @@ Hover Code completion ^^^ +- Added a new ``MacroFilter`` configuration option to ``Completion`` to vbvictor wrote: nit: it's probably better to keep empty lines for separations. ```suggestion ^^^ - Added a new `

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-12-12 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. Thank you for raising this once again. Would be good to add release notes here: https://github.com/llvm/llvm-project/blob/333ee931df888c7e0c62249290b20c17cb33d10b/clang-tools-extra/docs/ReleaseNotes.rst?plain=1#L89-L90 https://github.com/l

[clang] [CIR] Add support for EmbedExpr for ScalarExpr (PR #172088)

2025-12-12 Thread Amr Hesham via cfe-commits
@@ -263,8 +263,14 @@ class ScalarExprEmitter : public StmtVisitor { return {}; } mlir::Value VisitEmbedExpr(EmbedExpr *e) { -cgf.cgm.errorNYI(e->getSourceRange(), "ScalarExprEmitter: embed"); -return {}; +assert(e->getDataElementCount() == 1); +auto it

[clang] [alpha.webkit.UncountedLocalVarsChecker] Ignore a VarDecl in "if" with trivial "then" (PR #171764)

2025-12-12 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/171764 >From ef9a5c9e9593fdb1fc0f414ba8f73be108f46c1a Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Wed, 10 Dec 2025 21:21:11 -0800 Subject: [PATCH 1/7] [alpha.webkit.UncountedLocalVarsChecker] Ignore a VarDecl in "

[clang] [CIR] Add support for EmbedExpr for ScalarExpr (PR #172088)

2025-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Add support for the EmbedExpr for ScalarExpr --- Full diff: https://github.com/llvm/llvm-project/pull/172088.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp (+8-2) - (add

[clang] [CIR] Add support for EmbedExpr for ScalarExpr (PR #172088)

2025-12-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/172088 Add support for the EmbedExpr for ScalarExpr >From 66572f01651b5c4fbaa01710918f36bddd9668a0 Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Fri, 12 Dec 2025 22:34:24 +0100 Subject: [PATCH] [CIR] Add suppor

  1   2   3   4   5   >