[clang] [HLSL] Rewrite semantics parsing (PR #152537)

2025-09-12 Thread Nathan Gauër via cfe-commits
Keenuts wrote: Thanks! I'll try to repro and figure out the best solution to fix this, but in the meanting, rolling this back (https://github.com/llvm/llvm-project/pull/157718) https://github.com/llvm/llvm-project/pull/152537 ___ cfe-commits mailing

[clang] [llvm] [RISCV] Remove experimental from Zicfilp and Zicfiss (PR #157015)

2025-09-12 Thread Jim Lin via cfe-commits
tclin914 wrote: > Paging some things back into my head (sorry, I was on vacation). The codegen > for shadow stack and landing pads is guarded by a different feature, right? > These just control whether the underlying instructions are supported? > > If so, this seems fine to me. I think this c

[clang] Fix __builtin_object_size calculation for references of unknown origin in C++23 (PR #157778)

2025-09-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Akira Hatanaka (ahatanak) Changes This addresses an issue introduced by 0a9c08c59ba61e727e9dee6d71883d9106963442, which implemented P2280R4. This fixes the issue reported in https://github.com/llvm/llvm-project/pull/95474#issuecomment-302

[clang] [libcxx] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Younan Zhang via cfe-commits
@@ -543,30 +672,330 @@ static ExprResult calculateConstraintSatisfaction( return ExprError(); } - assert(EvalResult.Val.isInt() && - "evaluating bool expression didn't produce int"); - Satisfaction.IsSatisfied = EvalResult.Val.getInt().getBoolValue(); - if (!S

[clang] [APINotes] FIx yaml-roundtrip.test (PR #157606)

2025-09-12 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/157606 head on MacOS by default does not support negative numbers. Try using sed to remove the last line of the file instead. >From bf9bc100fd215f3450ae04881fe6272f8441240e Mon Sep 17 00:00:00 2001 From: Aiden

[clang] [CIR] Fix LLVM lowering crashes after #155244 (PR #157471)

2025-09-12 Thread Morris Hafner via cfe-commits
https://github.com/mmha closed https://github.com/llvm/llvm-project/pull/157471 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ptrauth] Warn about the use of a weak signing schema (PR #157779)

2025-09-12 Thread Martin Balao Alonso via cfe-commits
https://github.com/martinuy created https://github.com/llvm/llvm-project/pull/157779 In this change we added the -Wptrauth-weak-schema diagnostic (enabled by default on targets that support pointer authentication) to warn about the use of a weak signing schema for function pointers stored in g

[clang] [CIR] Add support for copy elision (PR #157713)

2025-09-12 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/157713 >From 522ea40cad53aaf2b787a7b2f27fbc3c7927d873 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 8 Sep 2025 12:40:06 -0700 Subject: [PATCH 1/2] [CIR] Add support for copy elision This adds basic support

[clang] [HLSL] Add the `Frs` `DXC` driver option (PR #157690)

2025-09-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Finn Plummer (inbelic) Changes This pr adds the `Frs` as a DXC driver option. It is done by invoking `llvm-objcopy` with the `extract-section=RTS0` argument specified to output the separate `DXContainer`. This resolves: https://git

[clang] [libcxx] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Younan Zhang via cfe-commits
@@ -234,23 +234,39 @@ enum class TemplateSubstitutionKind : char { /// Replaces the current 'innermost' level with the provided argument list. /// This is useful for type deduction cases where we need to get the entire /// list from the AST, but then add the deduced

[clang] [llvm] [clang][driver][arm][macho] Default to -mframe-pointer=non-leaf. (PR #154216)

2025-09-12 Thread Francesco Petrogalli via cfe-commits
https://github.com/fpetrogalli updated https://github.com/llvm/llvm-project/pull/154216 >From 565fddd293fd65b860ea03fca27ab8b05933fc22 Mon Sep 17 00:00:00 2001 From: Francesco Petrogalli Date: Mon, 18 Aug 2025 10:01:25 -0700 Subject: [PATCH 1/6] [clang][driver][arm][macho] Default to -mframe-p

[clang] [llvm] [IndVarSimplify] Sink unused l-invariant loads in preheader. (PR #157559)

2025-09-12 Thread Vigneshwar Jayakumar via cfe-commits
https://github.com/VigneshwarJ updated https://github.com/llvm/llvm-project/pull/157559 >From 63d81f0c3e09d27cd048657d81f12a63bcb89796 Mon Sep 17 00:00:00 2001 From: vigneshwar jayakumar Date: Mon, 8 Sep 2025 16:24:50 -0500 Subject: [PATCH 1/2] [IndVarSimplify] Sink unused l-invariant loads in

[clang] [libcxx] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Younan Zhang via cfe-commits
@@ -24,9 +32,19 @@ #include "clang/Sema/SemaInternal.h" #include "clang/Sema/Template.h" #include "clang/Sema/TemplateDeduction.h" +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/PointerUnion.h" +#include "llvm/ADT/STLExtras.h" +#include "llv

[clang] [HLSL] Add the `Frs` `DXC` driver option (PR #157690)

2025-09-12 Thread Finn Plummer via cfe-commits
@@ -524,6 +530,7 @@ bool HLSLToolChain::requiresBinaryTranslation(DerivedArgList &Args) const { bool HLSLToolChain::requiresObjcopy(DerivedArgList &Args) const { return Args.hasArg(options::OPT_dxc_Fo) && (Args.hasArg(options::OPT_dxc_strip_rootsignature) || +

[clang] [HLSL] Add the `Frs` `DXC` driver option (PR #157690)

2025-09-12 Thread Deric C. via cfe-commits
https://github.com/Icohedron approved this pull request. https://github.com/llvm/llvm-project/pull/157690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] Added Intrinsics for smed, umed, to support ISA instructions from ROCDL (PR #157748)

2025-09-12 Thread Keshav Vinayak Jha via cfe-commits
https://github.com/keshavvinayak01 created https://github.com/llvm/llvm-project/pull/157748 None >From 49f6936ece68e845d956efe3e04855e49955bb5b Mon Sep 17 00:00:00 2001 From: keshavvinayak01 Date: Tue, 9 Sep 2025 20:50:03 + Subject: [PATCH] Added Intrinsics for smed, umed, to support ISA i

[clang] [clang][OpenMP][SPIR-V] Fix addrspace of pointer kernel arguments (PR #157172)

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

[clang] [llvm] [Utils] Adds support for diff based tests to lit's --update-tests (PR #154147)

2025-09-12 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn closed https://github.com/llvm/llvm-project/pull/154147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Mips] Convert -mnan=legacy to nan2008 when architecture support nan2008 (PR #153777)

2025-09-12 Thread via cfe-commits
https://github.com/yingopq updated https://github.com/llvm/llvm-project/pull/153777 >From 9a9616b1e1df8baecd7758403de8c477b7de3de6 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Fri, 15 Aug 2025 05:57:33 -0400 Subject: [PATCH] [Mips] Convert -mnan=legacy to nan2008 when architecture support n

[clang] [clang] Allow custom bug report messages (PR #157536)

2025-09-12 Thread Reid Kleckner via cfe-commits
rnk wrote: I cc'd some folks who are invested in the CMake and Bazel build configurations. How do you all (@petrhosek , @slackito , and @chapuni ) think this should be modeled? Does this cmakedefine transfer over easily to the Bazel build? https://github.com/llvm/llvm-project/pull/157536 _

[clang] [Frontend] Define __SANITIZE__ macros for kernel address variants (PR #156543)

2025-09-12 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc approved this pull request. https://github.com/llvm/llvm-project/pull/156543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank commented: Thanks! I'm not a fan of the FixIt often leading to invalid code. Suggesting `const` when the variable is modified in the loop **always** produces invalid code (this is the case for the highlighted example in the documentation): suggesting `const` makes

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,48 @@ +.. title:: clang-tidy - bugprone-loop-variable-copied-then-modified + +bugprone-loop-variable-copied-then-modified +=== + +Detects when a loop variable is copied and then subsequently modified and +suggests replacing with a

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank edited https://github.com/llvm/llvm-project/pull/157213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,48 @@ +.. title:: clang-tidy - bugprone-loop-variable-copied-then-modified + +bugprone-loop-variable-copied-then-modified +=== + +Detects when a loop variable is copied and then subsequently modified and +suggests replacing with a

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,90 @@ +//===--===// +// +// 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] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,90 @@ +//===--===// +// +// 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] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,38 @@ +//===--===// +// +// 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] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,90 @@ +//===--===// +// +// 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] [llvm] [DirectX] Removing dxbc DescriptorRange from mcbxdc (PR #154629)

2025-09-12 Thread via cfe-commits
@@ -30,7 +30,11 @@ LLVM_ABI bool verifyRegisterValue(uint32_t RegisterValue); LLVM_ABI bool verifyRegisterSpace(uint32_t RegisterSpace); LLVM_ABI bool verifyRootDescriptorFlag(uint32_t Version, uint32_t FlagsVal); LLVM_ABI bool verifyRangeType(uint32_t Type); -LLVM_ABI bool ver

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -249,12 +250,12 @@ Clang-Tidy Checks :doc:`linuxkernel-must-check-errs `, :doc:`llvm-header-guard `, :doc:`llvm-include-order `, "Yes" - :doc:`llvm-use-new-mlir-op-builder `, "Yes" :doc:`llvm-namespace-comment `, :doc:`llvm-prefer-isa-or-dyn-cast-in-condit

[clang] [llvm] [RISCV] Remove experimental from Zicfilp and Zicfiss (PR #157015)

2025-09-12 Thread Jesse Huang via cfe-commits
jaidTw wrote: Same here, as stated in #98891, I don't think the support of the entire toolchain is mature enough for us to drop the experimental https://github.com/llvm/llvm-project/pull/157015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[libclc] [libclc] Refine __clc_fp*_subnormals_supported and __clc_flush_denormal_if_not_supported (PR #157633)

2025-09-12 Thread Wenju He via cfe-commits
@@ -66,13 +65,11 @@ bool __attribute__((noinline)) __clc_runtime_has_hw_fma32(void); #define LOG_MAGIC_NUM_SP32 (1 + NUMEXPBITS_SP32 - EXPBIAS_SP32) _CLC_OVERLOAD _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x) { - int ix = __clc_as_int(x); - if (!__clc_fp

[clang] [compiler-rt] [clang-repl] Reimplement value printing using MemoryAccess to support in-process and out-of-process (PR #156649)

2025-09-12 Thread via cfe-commits
@@ -267,92 +267,156 @@ std::string Interpreter::ValueDataToString(const Value &V) const { return "{ error: unknown builtin type '" + std::to_string(BT->getKind()) + " '}"; case clang::BuiltinType::Bool: - SS << ((V.getBool()) ? "true" : "false"); -

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPBUSD Argument Types (PR #155194)

2025-09-12 Thread Phoebe Wang via cfe-commits
@@ -546,19 +564,37 @@ static bool upgradeX86IntrinsicFunction(Function *F, StringRef Name, if (ID != Intrinsic::not_intrinsic) return upgradeX86IntrinsicsWith8BitMask(F, ID, NewFn); + if (Name.consume_front("avx512.")) { +if (Name.consume_front("mask.cmp.")) { +

[clang] [AST] StructuralEquivalence: avoid diagnostics when Complain=false in CheckStructurallyEquivalentAttributes (PR #157585)

2025-09-12 Thread Stephen Young via cfe-commits
https://github.com/StephenYoung2754 updated https://github.com/llvm/llvm-project/pull/157585 >From 41d2b7628de0471145979ae67a7af750dc8ac77a Mon Sep 17 00:00:00 2001 From: StephenYoung2754 Date: Tue, 9 Sep 2025 08:55:15 +0800 Subject: [PATCH] [AST] StructuralEquivalence: avoid diagnostics when

[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

2025-09-12 Thread Marco Elver via cfe-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/142955 >From 7bcd142c2dca599896e33087592b13e8feec89f8 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Wed, 21 May 2025 23:49:48 +0200 Subject: [PATCH] Thread Safety Analysis: Basic capability alias-analysis Add basic

[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

2025-09-12 Thread Ildikó Cseri via cfe-commits
cseriildi wrote: Hi @kadircet, when you have time could you take a look on this? I think it is done now. https://github.com/llvm/llvm-project/pull/147720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [analyzer][NFC] Modernize LivenessValues::isLive (PR #157800)

2025-09-12 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/157800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2fb29f8 - [analyzer][NFC] Modernize LivenessValues::isLive (#157800)

2025-09-12 Thread via cfe-commits
Author: Balazs Benics Date: 2025-09-10T12:14:56+02:00 New Revision: 2fb29f8ee60305adfc2b7c8fb29a9379c1ebd184 URL: https://github.com/llvm/llvm-project/commit/2fb29f8ee60305adfc2b7c8fb29a9379c1ebd184 DIFF: https://github.com/llvm/llvm-project/commit/2fb29f8ee60305adfc2b7c8fb29a9379c1ebd184.diff

[clang] [llvm] [Support] Use CTLog2 from PointerLikeTypeTraits.h (NFC) (PR #157790)

2025-09-12 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/157790 This patch replaces ConstantLog2 with CTLog2. ConstantLog2 only operates on alignment values, making the two interchangeable in this context. CTLog2 also has the benefit of a static_assert that ensures i

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-12 Thread Boyao Wang via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From 33210107ae2db3b0c1d0ab038b4cc1c02acb3a29 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Thu, 3 Jul 2025 16:08:15 +0800 Subject: [PATCH 1/5] [RISCV][MC] Add MC support of Zibi experimental extension T

[clang] [clang][dataflow] Handle when `this` refers to a different location (PR #146900)

2025-09-12 Thread via cfe-commits
yronglin wrote: Friendly ping~ https://github.com/llvm/llvm-project/pull/146900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPBUSD Argument Types (PR #155194)

2025-09-12 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon edited https://github.com/llvm/llvm-project/pull/155194 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-12 Thread Boyao Wang via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From 33210107ae2db3b0c1d0ab038b4cc1c02acb3a29 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Thu, 3 Jul 2025 16:08:15 +0800 Subject: [PATCH 1/5] [RISCV][MC] Add MC support of Zibi experimental extension T

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,55 @@ +// RUN: %check_clang_tidy %s bugprone-loop-variable-copied-then-modified %t -- -- -I%S -std=c++!4 -config="{CheckOptions: {bugprone-loop-variable-copied-then-modified.IgnoreInexpensiveVariables: true}}" + +#include "Inputs/system-header-simulator/sim_set" +#inc

[clang] df430c3 - [Frontend] Define __SANITIZE__ macros for kernel address variants (#156543)

2025-09-12 Thread via cfe-commits
Author: Nathan Chancellor Date: 2025-09-08T11:33:57-07:00 New Revision: df430c33a71ffb22b8d33d24538775c5fc9de6e1 URL: https://github.com/llvm/llvm-project/commit/df430c33a71ffb22b8d33d24538775c5fc9de6e1 DIFF: https://github.com/llvm/llvm-project/commit/df430c33a71ffb22b8d33d24538775c5fc9de6e1.d

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc created https://github.com/llvm/llvm-project/pull/157703 This patch enables support for debug entry values. This improves quality of debug info for RISC-V >From 08b1675bf34d894d530cb215db6830e87f7ee2bb Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 2 Sep

[clang] [X86] Allow remaining AVX512 per-element shift intrinsics to be used in constexpr (PR #157696)

2025-09-12 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled https://github.com/llvm/llvm-project/pull/157696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add the `Frs` `DXC` driver option (PR #157690)

2025-09-12 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/157690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-12 Thread Nicolas van Kempen via cfe-commits
@@ -0,0 +1,48 @@ +.. title:: clang-tidy - bugprone-loop-variable-copied-then-modified + +bugprone-loop-variable-copied-then-modified +=== + +Detects when a loop variable is copied and then subsequently modified and +suggests replacing with a

[clang] [llvm] [RISCV] Make "target-feature +i" explicit (PR #157835)

2025-09-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Gergely Futo (futog) Changes Add "target-feature +i" for RV32I/RV64I. Current behavior: RV32E/RV64E: "target-feature +e" "target-feature -i" RV32I/RV64I: "target-feature -e" Adding "target-feature +i" explicitly makes the behavior

[clang] [llvm] [RISCV] Make "target-feature +i" explicit (PR #157835)

2025-09-12 Thread Gergely Futo via cfe-commits
https://github.com/futog edited https://github.com/llvm/llvm-project/pull/157835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Make "target-feature +i" explicit (PR #157835)

2025-09-12 Thread Gergely Futo via cfe-commits
https://github.com/futog created https://github.com/llvm/llvm-project/pull/157835 Add "target-feature +i" for RV32I/RV64I. Current behavior: RV32E/RV64E: "target-feature +e" "target-feature -i" RV32I/RV64I: "target-feature -e" Adding "target-feature +i" explicitly makes the behavior consisten

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-12 Thread Ivan Murashko via cfe-commits
ivanmurashko wrote: > So current fix will introduce false negative with "-Wshadow-uncaptured-local" > and shadowing structured bindings, and, **hide the underlying issue**. It > would be great to find the difference of handling shadowing `VarDecl` and > `BindingDecl`. The new commit c0723fefc

[clang-tools-extra] [clang-tidy] Rename 'cert-dcl50-cpp' to 'modernize-avoid-variadic-functions' (PR #157737)

2025-09-12 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,17 @@ +.. title:: clang-tidy - modernize-avoid-variadic-functions + +modernize-avoid-variadic-functions +== + +Find all function definitions (but not declarations) of C-style variadic +functions. + +Instead of C-style variadic functions,

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPBUSD Argument Types (PR #155194)

2025-09-12 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/155194 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Rename 'cert-dcl50-cpp' to 'modernize-avoid-variadic-functions' (PR #157737)

2025-09-12 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,17 @@ +.. title:: clang-tidy - modernize-avoid-variadic-functions + +modernize-avoid-variadic-functions +== + +Find all function definitions (but not declarations) of C-style variadic +functions. + +Instead of C-style variadic functions,

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/157703 >From 08b1675bf34d894d530cb215db6830e87f7ee2bb Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 2 Sep 2025 18:35:36 +0300 Subject: [PATCH 1/2] [RISCV] Enabled debug entry support by default --- clang/

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

[clang] [HLSL] Rewrite semantics parsing (PR #152537)

2025-09-12 Thread Nathan Gauër via cfe-commits
Keenuts wrote: I was able to reproduce the build issue. Turns out we'd benefit from a different documentation generation for those. Will re-land once #157841 is merged. https://github.com/llvm/llvm-project/pull/152537 ___ cfe-commits mailing list cfe

[libclc] [libclc] Refine __clc_fp*_subnormals_supported and __clc_flush_denormal_if_not_supported (PR #157633)

2025-09-12 Thread Matt Arsenault via cfe-commits
@@ -66,13 +65,11 @@ bool __attribute__((noinline)) __clc_runtime_has_hw_fma32(void); #define LOG_MAGIC_NUM_SP32 (1 + NUMEXPBITS_SP32 - EXPBIAS_SP32) _CLC_OVERLOAD _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x) { - int ix = __clc_as_int(x); - if (!__clc_fp

[clang] [Clang][Doc] Modify generator for HLSL semantics documentation (PR #157841)

2025-09-12 Thread Michał Górny via cfe-commits
mgorny wrote: Yeah, this seems to fix the issue I've hit. For the record, I've finally gotten around to a simpler reproducer: ``` cmake ../llvm -G Ninja -DLLVM_ENABLE_PROJECTS='clang' -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_CCACHE_BUILD=ON -DLLVM_ENABLE_SPHINX=ON ninja gen-AttributeReference.rst

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPBUSD Argument Types (PR #155194)

2025-09-12 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/155194 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Improve messaging in security.VAList (PR #157846)

2025-09-12 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/157846 Previously the checker `security.VAList` only tracked the set of the inintialized `va_list` objects; this commit replaces this with a mapping that can distinguish the "uninitialized" `va_list` objects from th

[clang] [libcxx] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Corentin Jabot via cfe-commits
@@ -543,30 +672,330 @@ static ExprResult calculateConstraintSatisfaction( return ExprError(); } - assert(EvalResult.Val.isInt() && - "evaluating bool expression didn't produce int"); - Satisfaction.IsSatisfied = EvalResult.Val.getInt().getBoolValue(); - if (!S

[clang] [analyzer] Improve messaging in security.VAList (PR #157846)

2025-09-12 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/157846 From 73f621f1db437ba07e2de2deae9829ce524eb30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Wed, 10 Sep 2025 14:20:05 +0200 Subject: [PATCH 1/2] [analyzer] Improve messaging in security.VA

[clang] [libcxx] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Corentin Jabot via cfe-commits
@@ -543,30 +672,330 @@ static ExprResult calculateConstraintSatisfaction( return ExprError(); } - assert(EvalResult.Val.isInt() && - "evaluating bool expression didn't produce int"); - Satisfaction.IsSatisfied = EvalResult.Val.getInt().getBoolValue(); - if (!S

[clang] [flang] [llvm] [RISCV] Make "target-feature +i" explicit (PR #157835)

2025-09-12 Thread Gergely Futo via cfe-commits
https://github.com/futog updated https://github.com/llvm/llvm-project/pull/157835 >From 190b3abb0c629efab4727288bb87dccaa63003e9 Mon Sep 17 00:00:00 2001 From: Gergely Futo Date: Tue, 9 Sep 2025 15:03:16 +0200 Subject: [PATCH 1/2] [RISCV] Make "target-feature +i" explicit Add "target-feature +

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-12 Thread Yanzuo Liu via cfe-commits
@@ -8508,10 +8525,17 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, return; } } - if (const auto *VD = dyn_cast(ShadowedDecl); - VD && VD->hasLocalStorage()) { -// A variable can't shadow a local variable in an en

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-12 Thread Mariya Podchishchaeva via cfe-commits
@@ -8410,6 +8410,7 @@ NamedDecl *Sema::getShadowedDeclaration(const VarDecl *D, return nullptr; NamedDecl *ShadowedDecl = R.getFoundDecl(); + Fznamznon wrote: Seems unrelated. ```suggestion ``` https://github.com/llvm/llvm-project/pull/157667 _

[clang] [analyzer] Improve messaging in security.VAList (PR #157846)

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

[clang] [clang][dataflow] Handle when `this` refers to a different location (PR #146900)

2025-09-12 Thread Jan Voung via cfe-commits
https://github.com/jvoung updated https://github.com/llvm/llvm-project/pull/146900 >From 7cadb15cacf77231d63bb98846346f819d644fa7 Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Thu, 3 Jul 2025 13:37:18 + Subject: [PATCH] [clang][dataflow] Handle when `this` refers to a different location

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Younan Zhang via cfe-commits
@@ -543,30 +672,330 @@ static ExprResult calculateConstraintSatisfaction( return ExprError(); } - assert(EvalResult.Val.isInt() && - "evaluating bool expression didn't produce int"); - Satisfaction.IsSatisfied = EvalResult.Val.getInt().getBoolValue(); - if (!S

[clang] [llvm] [AMDGPU] Add builtins for wave reduction intrinsics (PR #150170)

2025-09-12 Thread via cfe-commits
https://github.com/easyonaadit closed https://github.com/llvm/llvm-project/pull/150170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Propagate Constants for Wave Reduction Intrinsics (PR #150395)

2025-09-12 Thread via cfe-commits
https://github.com/easyonaadit edited https://github.com/llvm/llvm-project/pull/150395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Support] Use CTLog2 from PointerLikeTypeTraits.h (NFC) (PR #157790)

2025-09-12 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/157790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Younan Zhang via cfe-commits
@@ -164,52 +171,290 @@ struct SatisfactionStackRAII { SatisfactionStackRAII(Sema &SemaRef, const NamedDecl *ND, const llvm::FoldingSetNodeID &FSNID) : SemaRef(SemaRef) { - if (ND) { +if (ND) { SemaRef.PushSatisfactionStackEntry(ND

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Younan Zhang via cfe-commits
@@ -543,30 +661,328 @@ static ExprResult calculateConstraintSatisfaction( return ExprError(); } - assert(EvalResult.Val.isInt() && - "evaluating bool expression didn't produce int"); - Satisfaction.IsSatisfied = EvalResult.Val.getInt().getBoolValue(); - if (!S

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-12 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. A few more comments, and it would be great if we could tidy up our header includes. Please wait for some time before others want to speak something. Otherwise this LGTM assuming CI is happy with our approach. 😄 https://github.com/llvm/l

[clang] [AMDGPU][SPIRV] Use SPIR-V syncscopes for some AMDGCN BIs (PR #154867)

2025-09-12 Thread via cfe-commits
https://github.com/grantchen08 deleted https://github.com/llvm/llvm-project/pull/154867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi infrinsics (PR #157403)

2025-09-12 Thread via cfe-commits
kimyounhoex1 wrote: Hi @RKSimon, just kindly pinging this PR The workflows are pending approval and the required build checks haven’t started yet. Could a maintainer please take a look? Thanks a lot! https://github.com/llvm/llvm-project/pull/157403 _

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi infrinsics (PR #157403)

2025-09-12 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: > Hi @RKSimon, just kindly pinging this PR The workflows are pending approval > and the required build checks haven’t started yet. Could a maintainer please > take a look? Thanks a lot! Will take a look - sorry I missed this (unfortunately github is terrible with notifications

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2025-09-12 Thread Alexandre Ganea via cfe-commits
aganea wrote: @mikolaj-pirog Are you planning on getting back to this? I find it nevertheless interesting, as long as we can bind it with PGO information from LLVM & properly generate the corresponding `IMAGE_DEBUG_TYPE_POGO` entry in the file. I am seeing this: https://github.com/CasualX/pel

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-12 Thread Dominik Adamski via cfe-commits
https://github.com/DominikAdamski updated https://github.com/llvm/llvm-project/pull/155818 >From efdd979d6189b986ea09dec7c0c0da26725ab1a1 Mon Sep 17 00:00:00 2001 From: Dominik Adamski Date: Wed, 27 Aug 2025 10:24:51 -0500 Subject: [PATCH 1/6] [Flang][OpenMP] Enable no-loop kernels Enable the

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-09-12 Thread via cfe-commits
https://github.com/moorabbit updated https://github.com/llvm/llvm-project/pull/148281 >From 029d9fce6cdb75ea4819a107c7ed9f074bb36678 Mon Sep 17 00:00:00 2001 From: moorabbit <215698969+moorab...@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:25:46 -0400 Subject: [PATCH 01/22] [Clang] Add `__

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-09-12 Thread via cfe-commits
https://github.com/moorabbit edited https://github.com/llvm/llvm-project/pull/148281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [InstCombine] Split GEPs with multiple non-zero offsets (PR #151333)

2025-09-12 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/151333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Support] Use CTLog2 from PointerLikeTypeTraits.h (NFC) (PR #157790)

2025-09-12 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > ConstantLog2 name is better though @arsenm Yeah, `CTLog2` is a bit cryptic. Let me follow up by renaming `CTLog2` to `ConstantLog2` after this patch. Thanks for reviews as always. https://github.com/llvm/llvm-project/pull/157790 ___

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-12 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia edited https://github.com/llvm/llvm-project/pull/153049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP][Clang] Remove __AMDGCN_WAVEFRONT_SIZE macros (PR #157463)

2025-09-12 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/157463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-12 Thread Ivan Murashko via cfe-commits
@@ -8410,6 +8410,7 @@ NamedDecl *Sema::getShadowedDeclaration(const VarDecl *D, return nullptr; NamedDecl *ShadowedDecl = R.getFoundDecl(); + ivanmurashko wrote: > Seems unrelated. Restored at 27fc9b7095e6ab993782e121e1ff1a3776b2ab0a https://github.co

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-12 Thread Ivan Murashko via cfe-commits
@@ -8496,6 +8498,21 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, ->ShadowingDecls.push_back({D, VD}); return; } +} else if (isa(ShadowedDecl)) { + // Apply lambda capture logic only when D is actually a

[clang] [llvm] [AMDGPU] Add builtins and intrinsics for cluster attributes (PR #157877)

2025-09-12 Thread Shilei Tian via cfe-commits
https://github.com/shiltian created https://github.com/llvm/llvm-project/pull/157877 Co-authored-by: Ivan Kosarev >From 0255f4e61cf3c98e167c29c5fd5aa9ddfb9f1f54 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 10 Sep 2025 11:23:18 -0400 Subject: [PATCH] [AMDGPU] Add builtins and intrinsi

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-09-12 Thread Shilei Tian via cfe-commits
@@ -1557,6 +1557,23 @@ def HIPManaged : InheritableAttr { let Documentation = [HIPManagedAttrDocs]; } +def CUDAClusterDims : InheritableAttr { + let Spellings = [GNU<"cluster_dims">, Declspec<"__cluster_dims__">]; shiltian wrote: This is to follow all exis

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi infrinsics (PR #157403)

2025-09-12 Thread via cfe-commits
kimyounhoex1 wrote: > > Hi @RKSimon, just kindly pinging this PR The workflows are pending approval > > and the required build checks haven’t started yet. Could a maintainer > > please take a look? Thanks a lot! > > Will take a look - sorry I missed this (unfortunately github is terrible with

[clang] [llvm] [mlir] [AMDGPU] [ROCDL] Added Intrinsics for smed, umed, to support ISA instructions from ROCDL (PR #157748)

2025-09-12 Thread Keshav Vinayak Jha via cfe-commits
https://github.com/keshavvinayak01 edited https://github.com/llvm/llvm-project/pull/157748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-12 Thread Wael Yehia via cfe-commits
@@ -0,0 +1,123 @@ +//===-- PPCPrepareIFuncsOnAIX.cpp - Prepare for ifunc lowering in codegen ===// +// +// 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] [Clang][OpenMP]Default clause variable category (PR #157063)

2025-09-12 Thread via cfe-commits
SunilKuravinakop wrote: Can one of you please review this PR? https://github.com/llvm/llvm-project/pull/157063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   7   8   9   10   >