[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow SSE/AVX FP MAX/MIN intrinsics to be used in constexpr (PR #171966)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: NagaChaitanya Vellanki (chaitanyav) Changes * Implemented a generic function interp__builtin_elementwise_fp_binop * NaN, Infinity, Denormal cases can be integrated into the lambda in future. For, now these cases are hardcoded in the generi

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow SSE/AVX FP MAX/MIN intrinsics to be used in constexpr (PR #171966)

2025-12-11 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav ready_for_review https://github.com/llvm/llvm-project/pull/171966 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] clangd: Extend reference search with constructor calls through forwarding (PR #169742)

2025-12-11 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: I built this patch locally and tried it on a real-world project, and I think we may be missing a piece of the implementation, though I'm not sure what it is yet. Here's what I'm seeing. Given the following files: header.hpp: ```c++ #include struct Waldo { Waldo(int lo

[clang-tools-extra] [clang-doc] Add JSON output to existing template tests (PR #171936)

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

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-11 Thread via cfe-commits
MarwanTarik wrote: I've resolved the issues. Please review the updated changes. https://github.com/llvm/llvm-project/pull/171694 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,61 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -std=c++14 -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -std=c++14 -emit-llvm -o - %s -fexperimental-new-constant-interpreter | FileCheck %s + +int b = 10; +const int f =

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 commented: Generally looks good, but I have a few questions. https://github.com/llvm/llvm-project/pull/169869 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,92 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s -fexperimental-new-constant-interpreter + +constexpr bool test_constexpr_valid() { + co

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,92 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s -fexperimental-new-constant-interpreter + +constexpr bool test_constexpr_valid() { + co

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/169869 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-11 Thread via cfe-commits
https://github.com/MarwanTarik updated https://github.com/llvm/llvm-project/pull/171694 >From 82529b8bfd35c9e8059b49e2f17b3c837232cf09 Mon Sep 17 00:00:00 2001 From: MarwanTarik Date: Wed, 10 Dec 2025 22:21:55 +0200 Subject: [PATCH 1/4] Upstream CIR Codgen for convert to mask X86 builtins ---

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-11 Thread via cfe-commits
@@ -3226,6 +3226,18 @@ __m256i test_mm256_movm_epi8(__mmask32 __A) { return _mm256_movm_epi8(__A); } +__m512i test_mm512_movm_epi8(__mmask64 __A) { + // CIR-LABEL: _mm512_movm_epi8 + // CIR: %{{.*}} = cir.cast bitcast %{{.*}} : !u64i -> !cir.vector x 64> + // CIR: %{{.*

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

2025-12-11 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/171970 >From a3c355994f8f1af3e8e1976752f01fa77f8c730c Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Wed, 10 Dec 2025 13:58:52 -0800 Subject: [PATCH 1/2] [clang][driver][darwin] Base the system prefix on t

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #162741)

2025-12-11 Thread Matheus Gabriel Werny via cfe-commits
Spixmaster wrote: You mentioned it here, https://github.com/llvm/llvm-project/issues/115622#issuecomment-3128156626 . https://github.com/llvm/llvm-project/pull/162741 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-b

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-11 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/171070 >From 4ccd199ffecced16cfff596c771088ccbdc1c85f Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 4 Dec 2025 22:50:39 +0800 Subject: [PATCH 1/7] [clang-tidy] Fix implicit-bool-conversion false positives with C23 logic

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

2025-12-11 Thread Ian Anderson via cfe-commits
@@ -181,6 +192,7 @@ class DarwinSDKInfo { VersionTuple Version; VersionTuple MaximumDeploymentTarget; llvm::Triple::OSType OS; + std::unordered_map SystemPrefixes; ian-twilightcoder wrote: I'm not really sure if this makes better sense as a `SmallDenseM

[clang-tools-extra] [clang-tidy] Support comments in WarningsAsErrors (PR #171816)

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

[clang-tools-extra] 3383004 - [clang-tidy] Support comments in WarningsAsErrors (#171816)

2025-12-11 Thread via cfe-commits
Author: mitchell Date: 2025-12-12T14:58:08+08:00 New Revision: 3383004a958d51890443ec48e87f0f8e5a76d139 URL: https://github.com/llvm/llvm-project/commit/3383004a958d51890443ec48e87f0f8e5a76d139 DIFF: https://github.com/llvm/llvm-project/commit/3383004a958d51890443ec48e87f0f8e5a76d139.diff LOG:

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

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Ian Anderson (ian-twilightcoder) Changes The search path prefix is really a property of the SDK, and not the target triple. The target is just being used as a proxy for the SDK. That's problemmatic when the SDK being used doesn't m

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

2025-12-11 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder created https://github.com/llvm/llvm-project/pull/171970 The search path prefix is really a property of the SDK, and not the target triple. The target is just being used as a proxy for the SDK. That's problemmatic when the SDK being used doesn't match the t

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

2025-12-11 Thread Fangrui Song via cfe-commits
@@ -195,10 +195,10 @@ BitcodeCompiler::BitcodeCompiler(Ctx &ctx) : ctx(ctx) { ctx.arg.thinLTOEmitImportsFiles); } - constexpr llvm::lto::LTO::LTOKind ltoModes[3] = -{llvm::lto::LTO::LTOKind::LTOK_UnifiedThin, - llvm::lto::LTO::LTOKind::LTOK_UnifiedRegular, -

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread Timm Baeder via cfe-commits
tbaederr wrote: Not sure who would review the implementation in the current interpreter. @efriedma-quic maybe? Does @philnik777 have an opinion on this patch? https://github.com/llvm/llvm-project/pull/169869 ___ cfe-commits mailing list cfe-commits@l

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread Timm Baeder via cfe-commits
@@ -20055,6 +20055,46 @@ class VoidExprEvaluator // The argument is not evaluated! return true; +case Builtin::BI__builtin_assume_dereferenceable: { + assert(E->getType()->isVoidType()); + assert(E->getNumArgs() == 2); + + APSInt ReqSizeVal; +

[clang] [Clang] make most enums trivially equality comparable (PR #169079)

2025-12-11 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: It looks reasonable but since this is ostensiably about `std::byte` we should have a test that verifies this does what we expect w/ `std::byte`. Yes, it should be an enum but if it fails in the future then we know we have a problem. We need to write tests t

[clang] [clang][ExprConstant] Reject integral casts of addr-label-diffs... (PR #171437)

2025-12-11 Thread Timm Baeder via cfe-commits
@@ -12,7 +12,7 @@ // CHECK: | |-value: AddrLabelDiff &&l2 - &&l1 int Test(void) { - constexpr char ar = &&l2 - &&l1; + constexpr long long ar = &&l2 - &&l1; tbaederr wrote: This patch rejects those casts in the same way we've always rejected widening ca

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

2025-12-11 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder closed https://github.com/llvm/llvm-project/pull/171714 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [PAC][libunwind][AArch64] Keep LR signed when stored in context struct (PR #171717)

2025-12-11 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/171717 >From 083ec8a6aebc78d2bd0d94c9992785e75dfeb9a5 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Mon, 8 Dec 2025 16:31:10 +0300 Subject: [PATCH] [PAC][libunwind][AArch64] Keep LR signed when stored in contex

[clang] [NFC][HIP] Disable device-side kernel launches for HIP (PR #171043)

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

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

2025-12-11 Thread via cfe-commits
@@ -0,0 +1,46 @@ +.. title:: clang-tidy - misc-multiple-inheritance + +misc-multiple-inheritance + + +Warns if a class inherits from multiple classes that are not pure virtual. + +For example, declaring a class that inherits from multiple concrete class

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

2025-12-11 Thread via cfe-commits
Bhuvan1527 wrote: Added the miscModule in the LINK_LIBS https://github.com/llvm/llvm-project/pull/171565 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

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

2025-12-11 Thread via cfe-commits
@@ -3,44 +3,7 @@ fuchsia-multiple-inheritance -Warns if a class inherits from multiple classes that are not pure virtual. +The `fuchsia-multiple-inheritance` check is an alias, please See +:doc:`misc-multiple-inheritance <../misc/multiple-inheritan

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

2025-12-11 Thread via cfe-commits
@@ -3,44 +3,7 @@ fuchsia-multiple-inheritance -Warns if a class inherits from multiple classes that are not pure virtual. +The `fuchsia-multiple-inheritance` check is an alias, please See +:doc:`misc-multiple-inheritance <../misc/multiple-inheritan

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

2025-12-11 Thread via cfe-commits
@@ -0,0 +1,46 @@ +.. title:: clang-tidy - misc-multiple-inheritance + +misc-multiple-inheritance + Bhuvan1527 wrote: Addressed in the latest commit. https://github.com/llvm/llvm-project/pull/171565

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

2025-12-11 Thread via cfe-commits
https://github.com/Bhuvan1527 updated https://github.com/llvm/llvm-project/pull/171565 >From 88b8b46bc7e4c0d2745d292479cebd387b5e73bd Mon Sep 17 00:00:00 2001 From: bhuvan1527 Date: Wed, 10 Dec 2025 11:28:32 +0530 Subject: [PATCH 1/2] [clang-tidy] Moved Multiple Inheritence check from fuchsia

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

2025-12-11 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/171714 >From 547f5ed4b6bc5fc79efc17684f900086a3c86f35 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Wed, 10 Dec 2025 13:58:52 -0800 Subject: [PATCH 1/2] [clang][driver][darwin] Base the system prefix on t

[clang-tools-extra] [clang-tidy] Support comments in WarningsAsErrors (PR #171816)

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

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-12-11 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,67 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] [clang-tidy] Support comments in WarningsAsErrors (PR #171816)

2025-12-11 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/171816 >From 8e3055437d6e29c0dce4ab49e02c083053ae3360 Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 11 Dec 2025 20:08:59 +0800 Subject: [PATCH 1/3] [clang-tidy] Support comments in WarningsAsErrors --- .../clang-tidy/C

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-11 Thread via cfe-commits
https://github.com/MarwanTarik updated https://github.com/llvm/llvm-project/pull/171694 >From 82529b8bfd35c9e8059b49e2f17b3c837232cf09 Mon Sep 17 00:00:00 2001 From: MarwanTarik Date: Wed, 10 Dec 2025 22:21:55 +0200 Subject: [PATCH] Upstream CIR Codgen for convert to mask X86 builtins --- cla

[clang] [OpenMP][CIR] Add basic infrastructure for CIR lowering (PR #171902)

2025-12-11 Thread Kareem Ergawy via cfe-commits
ergawy wrote: Exciting stuff! Thanks for giving this a start! https://github.com/llvm/llvm-project/pull/171902 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-12-11 Thread NagaChaitanya Vellanki via cfe-commits
chaitanyav wrote: @tbaederr please review. https://github.com/llvm/llvm-project/pull/169869 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Fix build error: multi-line comment in opencl-c.h (PR #171953)

2025-12-11 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/171953 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-11 Thread Priyanshu Kumar via cfe-commits
@@ -1662,12 +1662,43 @@ CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, const CallExpr *expr) { case X86::BI__builtin_ia32_cmpnltsd: case X86::BI__builtin_ia32_cmpnlesd: case X86::BI__builtin_ia32_cmpordsd: +cgm.errorNYI(expr->getSourceRange(), +

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-11 Thread Phoebe Wang via cfe-commits
@@ -5707,6 +5707,28 @@ let Predicates = [UseSSE41, OptForSize] in { (ROUNDSDmi addr:$src1, timm:$src2)>; } +multiclass test { phoebewang wrote: Any reason to pass `BasePredicate`? https://github.com/llvm/llvm-project/pull/171227 _

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

2025-12-11 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] [NFC] Fix build error: multi-line comment in opencl-c.h (PR #171953)

2025-12-11 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/171953 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Fix build error: multi-line comment in opencl-c.h (PR #171953)

2025-12-11 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/171953 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Fix build error: multi-line comment in opencl-c.h (PR #171953)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Wenju He (wenju-he) Changes opencl-c.h:13798:80: error: multi-line // comment [-Werror,-Wcomment] 13798 | #endif // defined(__opencl_c_ext_fp16_global_atomic_min_max) &&\ --- Full diff: https://github.com/llvm/llvm-projec

[clang] [NFC] Fix build error: multi-line comment in opencl-c.h (PR #171953)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Wenju He (wenju-he) Changes opencl-c.h:13798:80: error: multi-line // comment [-Werror,-Wcomment] 13798 | #endif // defined(__opencl_c_ext_fp16_global_atomic_min_max) &&\ --- Full diff: https://github.com/llvm/llvm-

[clang] [NFC] Fix build error: multi-line comment in opencl-c.h (PR #171953)

2025-12-11 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/171953 opencl-c.h:13798:80: error: multi-line // comment [-Werror,-Wcomment] 13798 | #endif // defined(__opencl_c_ext_fp16_global_atomic_min_max) && \ >From f80f6a6d08bc2774ca1a1bd9ae34d4dad504ef6a Mo

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

2025-12-11 Thread Michael Park via cfe-commits
mpark wrote: > > > Why is the namespace decl special? Can we make this optimization more > > > general? > > > > > > I did try to generalize it for all redeclarable decls, but it failed a > > bunch of unit tests. My understanding is that namespaces are indeed special > > in this aspect, acco

[clang] [lld] [llvm] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

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

[clang] [lld] [llvm] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-11 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/151650 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add the DXC matrix orientation flags (PR #171550)

2025-12-11 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/18942 Here is the relevant piece of the build log f

[clang] [HLSL] Add the DXC matrix orientation flags (PR #171550)

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

[clang] 2b1fa68 - [HLSL] Add the DXC matrix orientation flags (#171550)

2025-12-11 Thread via cfe-commits
Author: Farzon Lotfi Date: 2025-12-11T21:03:46-05:00 New Revision: 2b1fa68ad0f7ec270f1c876402eeb822e7e44cc7 URL: https://github.com/llvm/llvm-project/commit/2b1fa68ad0f7ec270f1c876402eeb822e7e44cc7 DIFF: https://github.com/llvm/llvm-project/commit/2b1fa68ad0f7ec270f1c876402eeb822e7e44cc7.diff

[clang-tools-extra] [clang-tidy] Fix some false negatives in `readability-redundant-typename` (PR #171947)

2025-12-11 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. https://github.com/llvm/llvm-project/pull/171947 ___ 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-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/171897 >From 9ee83ee60062a6a9c75dffb25816268939b3e31a Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Tue, 9 Dec 2025 14:45:09 -0800 Subject: [PATCH 1/2] [CIR] Add support for data member comparison This adds supp

[clang-tools-extra] [clang-tidy] Fix some false negatives in `readability-redundant-typename` (PR #171947)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes #169166 reported some false positives in this check. They stemmed from the fact that it assumed `TypedefTypeLoc`s and `TagTypeLoc`s couldn't be dependent. Turns out, this incorrect assump

[clang-tools-extra] [clang-tidy] Fix some false negatives in `readability-redundant-typename` (PR #171947)

2025-12-11 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/171947 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix some false negatives in `readability-redundant-typename` (PR #171947)

2025-12-11 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/171947 #169166 reported some false positives in this check. They stemmed from the fact that it assumed `TypedefTypeLoc`s and `TagTypeLoc`s couldn't be dependent. Turns out, this incorrect assumption leads to some f

[clang] [compiler-rt] [llvm] [dfsan] Add dataflow sanitizer support for SystemZ (PR #168991)

2025-12-11 Thread via cfe-commits
https://github.com/anoopkg6 updated https://github.com/llvm/llvm-project/pull/168991 >From d74f52c41feb63998f1ba0062ac13e5d325842d1 Mon Sep 17 00:00:00 2001 From: anoopkg6 Date: Fri, 21 Nov 2025 01:35:59 +0100 Subject: [PATCH 1/2] [dfsan] Add dataflow sanitizer support for SystemZ on top of #1

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

2025-12-11 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/171769 >From dcad405a933799eb7f00a1b3547125922d875e83 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] [OpenACC][CIR] 'bind' lowering with identifier (PR #171749)

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

[clang] [OpenACC][CIR] 'bind' lowering with identifier (PR #171749)

2025-12-11 Thread Razvan Lupusoru via cfe-commits
@@ -18,22 +19,126 @@ void Func5(){} void Func6(){} #pragma acc routine(Func6) seq device_type(radeon) bind("BIND6_R") device_type(multicore, host) bind("BIND6_M") -// CHECK: cir.func{{.*}} @[[F1_NAME:.*Func1[^\(]*]]({{.*}}){{.*}} attributes {acc.routine_info = #acc.routine_i

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

2025-12-11 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 cpp -- clang/lib/Serialization/ASTReader.cpp clang/lib/

[clang] [CIR] Make CIR-to-LLVM a one shot conversion (PR #171083)

2025-12-11 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/171083 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement function personality attribute and its lowering (PR #171001)

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

[clang] b2f3614 - [CIR] Implement function personality attribute and its lowering (#171001)

2025-12-11 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-12-12T01:55:47+01:00 New Revision: b2f36149d820ab8d2c74de328ced4821408eca7f URL: https://github.com/llvm/llvm-project/commit/b2f36149d820ab8d2c74de328ced4821408eca7f DIFF: https://github.com/llvm/llvm-project/commit/b2f36149d820ab8d2c74de328ced4821408eca7f.diff

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

2025-12-11 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/171769 >From fe394090ade2d7e90298ae96e0480eff787bddb8 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] [llvm] [llvm][clang] Sandbox filesystem reads (PR #165350)

2025-12-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `reverse-iteration` running on `hexagon-build-03` while building `clang,llvm` at step 6 "check_all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/110/builds/6756 Here is the relevant piece of the bu

[clang] [llvm] [X86] Remove rest of AMX-TRANSPOSE (PR #171906)

2025-12-11 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/171906 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-12-11 Thread Dan Liew via cfe-commits
delcypher wrote: > @delcypher I don't know what is the desired behavior for > CreateTrapFailureMessageFor, so keeping as is. I think the current behavior of synthetic trap frames in debug info using the file that the trap was emitted in makes the most sense. https://github.com/llvm/llvm-proje

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

2025-12-11 Thread Florian Mayer via cfe-commits
https://github.com/fmayer approved this pull request. 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] UBSan: Use ubsan_interface.h for synthetic debug info (PR #171929)

2025-12-11 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/171929 >From afc9f9ada28fba44343ea3992bbfc4215ba51388 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 11 Dec 2025 15:43:54 -0800 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?

[clang-tools-extra] [clang-doc] Create a partial for the navbar (PR #171669)

2025-12-11 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-tools-extra` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/39/builds/9067 Here

[clang] [CIR] Implement function personality attribute and its lowering (PR #171001)

2025-12-11 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/171001 >From 42dfff7ea8649d6279afbcb17cc4ed006259e51e Mon Sep 17 00:00:00 2001 From: xlauko Date: Sat, 6 Dec 2025 22:25:53 +0100 Subject: [PATCH] [CIR] Implement function personality attribute and its lowering --- cl

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

2025-12-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @delcypher I don't know what is the desired behavior for CreateTrapFailureMessageFor, so keeping as is. https://github.com/llvm/llvm-project/pull/171929 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-11 Thread Gergo Stomfai via cfe-commits
https://github.com/stomfaig updated https://github.com/llvm/llvm-project/pull/171227 >From 62647bf9b0323e8ca161dd87657e56e5d6aa20b1 Mon Sep 17 00:00:00 2001 From: stomfaig Date: Sun, 7 Dec 2025 23:37:58 + Subject: [PATCH 01/15] adding initial handlers --- clang/lib/CodeGen/TargetBuiltins/

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

2025-12-11 Thread Florian Mayer via cfe-commits
@@ -6642,8 +6650,11 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( else Label = SanitizerHandlerToCheckLabel(Handler); - if (any_of(Ordinals, [&](auto Ord) { return AnnotateDebugInfo.has(Ord); })) -return DI->CreateSyntheticInlineAt(CheckDebugLoc

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

2025-12-11 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] UBSan: Use ubsan_interface.h for synthetic debug info (PR #171929)

2025-12-11 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka unassigned 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] [CIR] Upstream support for data member comparison (PR #171897)

2025-12-11 Thread Henrich Lauko 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] [OpenACC][CIR] 'bind' lowering with identifier (PR #171749)

2025-12-11 Thread Razvan Lupusoru via cfe-commits
razvanlupusoru wrote: > SO, in order to implement this, I've decided that the 'called as' (bound) > function must have the same signature as the one marked by the 'routine'. > This is trivially sensible in non-member functions, however requires a bit > more thought for member(and thus lambda-c

[clang] [OpenMP][CIR] Add basic infrastructure for CIR lowering (PR #171902)

2025-12-11 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/171902 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP][CIR] Add basic infrastructure for CIR lowering (PR #171902)

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

[clang] [-Wunsafe-buffer-usage] Ignore consteval functions (PR #171503)

2025-12-11 Thread Florian Mayer via cfe-commits
fmayer wrote: nit: add `[clang]` to the description? https://github.com/llvm/llvm-project/pull/171503 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-12-11 Thread Naveen Seth Hanig via cfe-commits
@@ -13,6 +13,7 @@ #include "clang/Driver/Driver.h" #include "clang/Frontend/FrontendActions.h" #include "llvm/ADT/ScopeExit.h" +#include "llvm/Support/VirtualFileSystem.h" naveen-seth wrote: Thanks, removed! https://github.com/llvm/llvm-project/pull/171238 __

[clang] [CIR] Add emitDeclInvariant for global with constant storage (PR #171915)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: None (adams381) Changes Implement emitDeclInvariant to emit llvm.invariant.start intrinsic for global variables with constant storage. This enables optimizations by marking when a global becomes read-only after initialization. ## Chang

[clang] [CIR] Add emitDeclInvariant for global with constant storage (PR #171915)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (adams381) Changes Implement emitDeclInvariant to emit llvm.invariant.start intrinsic for global variables with constant storage. This enables optimizations by marking when a global becomes read-only after initialization. ## Changes

[clang] [CIR] Add emitDeclInvariant for global with constant storage (PR #171915)

2025-12-11 Thread via cfe-commits
https://github.com/adams381 created https://github.com/llvm/llvm-project/pull/171915 Implement emitDeclInvariant to emit llvm.invariant.start intrinsic for global variables with constant storage. This enables optimizations by marking when a global becomes read-only after initialization. ## Ch

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-11 Thread Priyanshu Kumar via cfe-commits
@@ -1602,12 +1514,40 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_cmpnltsd: case X86::BI__builtin_ia32_cmpnlesd: case X86::BI__builtin_ia32_cmpordsd: - case X86::BI__builtin_ia32_vcvtph2ps_mask: - case X86::BI__builti

[clang] [Clang] [Lexer] Detect SSE4.2 availability at runtime in fastParseASCIIIdentifier (PR #171914)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thibault Monnier (Thibault-Monnier) Changes This change attempts to maximize usage of the SSE fast path in `fastParseASCIIIdentifier`. If the binary is compiled with SSE4.2 enabled, then the behavior is the exact same, ensuring we have n

[clang] [Clang] [Lexer] Detect SSE4.2 availability at runtime in fastParseASCIIIdentifier (PR #171914)

2025-12-11 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier created https://github.com/llvm/llvm-project/pull/171914 This change attempts to maximize usage of the SSE fast path in `fastParseASCIIIdentifier`. If the binary is compiled with SSE4.2 enabled, then the behavior is the exact same, ensuring we have no regre

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-11 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 updated https://github.com/llvm/llvm-project/pull/171615 >From ea26e94f1ab429798860705ddd65d4e8f58c4103 Mon Sep 17 00:00:00 2001 From: Priyanshu3820 <[email protected]> Date: Wed, 10 Dec 2025 18:34:52 +0530 Subject: [PATCH 01/12] Implement convert_half buil

[clang] [ExposeObjCDirect] Adding a flag to expose symbols with objc_direct (PR #170616)

2025-12-11 Thread John McCall via cfe-commits
https://github.com/rjmccall commented: I'm not sure how I feel about this use of "expose" to specifically mean "don't put the prefix byte on it". What linkage and visibility do these end up getting? The patch otherwise seems fine. https://github.com/llvm/llvm-project/pull/170616 __

[clang] [llvm] [X86] Remove rest of AMX-TRANSPOSE (PR #171906)

2025-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Mikołaj Piróg (mikolaj-pirog) Changes This is a followup to https://github.com/llvm/llvm-project/pull/165556 I've missed some parts of amx-transpose during initial removal --- Full diff: https://github.com/llvm/llvm-project/pull/171

[clang] [llvm] [X86] Remove rest of AMX-TRANSPOSE (PR #171906)

2025-12-11 Thread Mikołaj Piróg via cfe-commits
https://github.com/mikolaj-pirog created https://github.com/llvm/llvm-project/pull/171906 This is a followup to https://github.com/llvm/llvm-project/pull/165556 I've missed some parts of amx-transpose during initial removal From 65d85dc5962d8b92b7bfd9cc875dad4fc71de2b8 Mon Sep 17 00:00:00 2001

[clang-tools-extra] [clang-doc] Add a top-level index.html page (PR #171899)

2025-12-11 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/171899 >From 655f299c6acaec5258587ec9866c9e3f2e9fcc04 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Fri, 14 Nov 2025 21:43:34 -0800 Subject: [PATCH] fix unittest --- clang-tools-extra/clang-doc/Generators.cpp|

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

2025-12-11 Thread Qiongsi Wu via cfe-commits
@@ -13,6 +13,7 @@ #include "clang/Driver/Driver.h" #include "clang/Frontend/FrontendActions.h" #include "llvm/ADT/ScopeExit.h" +#include "llvm/Support/VirtualFileSystem.h" qiongsiwu wrote: Nit: do we still need this? I see that we already included `"llvm/Supp

  1   2   3   4   5   >