[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Cristian Assaiante via cfe-commits
https://github.com/cristianassaiante edited https://github.com/llvm/llvm-project/pull/145059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] fix crash when modelling 'getline' function in checkers (PR #145229)

2025-06-23 Thread Donát Nagy via cfe-commits
NagyDonat wrote: Personally I feel that option 2 ("add more error handling to avoid crashes in `checkGetdelim`") would be more "natural" for the static analyzer, because checking the exact types of the parameters is rare in the analyzer (I don't know any significant example apart from `StdLibr

[clang] [clang] ODR hashes depth+index and not name of TemplateTypeParm (PR #144796)

2025-06-23 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/144796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix shifts with an allocated RHS (PR #145280)

2025-06-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/145280 This was broken before because we ended up using a constructor that was disabled via assert(false). Use ShiftAP() if either LHS or RHS is allocated. >From 58751e9c9b5d9c2437c6a3a6f22b16c5aba8b8ab Mon Sep 17 00

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Cristian Assaiante via cfe-commits
@@ -0,0 +1,13 @@ +// REQUIRES: x86-registered-target + +// Make sure opt-bisect works through both pass managers +// +// RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 %s -mllvm -opt-disable="inlinerpass,SROAPass,machine code sinking" -mllvm -opt-disable-verbose -emit-obj -o /dev/

[clang] [HLSL] Add option for VK layouts (PR #145327)

2025-06-23 Thread Steven Perron via cfe-commits
https://github.com/s-perron created https://github.com/llvm/llvm-project/pull/145327 We add the options to the driver, so that the one option that is being implemented at this time can be used. Issue an error for the other options. When we start to implement the other options, we will have to f

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-06-23 Thread via cfe-commits
flovent wrote: ping. https://github.com/llvm/llvm-project/pull/144213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] fix crash when modelling 'getline' function in checkers (PR #145229)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Your concern that "However, we will still try to model "incorrect" getline > methods, wasting cpu." is very premature optimization, the runtime change > would be totally negligible Indeed, without measurements, this argument is not viable. I've investigated the code of `StdL

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-23 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: I was thinking about possible ways to unblock this change. If the additional code complexity needs justification, by measuring the average impact (to ensure no regression happens in the common cases), and by repeating the measurement of the handful of edge-case

[clang-tools-extra] 05491e0 - [clang-tidy] add 'IgnoreMarcos' option to 'avoid-goto' check (#143554)

2025-06-23 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-23T16:27:18+03:00 New Revision: 05491e0359edcac9954a29f2a1579241522669ca URL: https://github.com/llvm/llvm-project/commit/05491e0359edcac9954a29f2a1579241522669ca DIFF: https://github.com/llvm/llvm-project/commit/05491e0359edcac9954a29f2a1579241522669ca.diff

[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'avoid-goto' check (PR #143554)

2025-06-23 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/143554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add option for VK layouts (PR #145327)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang-driver Author: Steven Perron (s-perron) Changes We add the options to the driver, so that the one option that is being implemented at this time can be used. Issue an error for the other options. When we start to implement

[clang-tools-extra] [clang-tidy] properly handle private move constructors in `modernize-pass-by-value` check (PR #141304)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: Ping https://github.com/llvm/llvm-project/pull/141304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix assignInteger() with allocated primtypes (PR #145302)

2025-06-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/10118 Here is the relev

[clang] [clang-tools-extra] [clang-tidy][dataflow] Add `bugprone-null-check-after-dereference` check (PR #84166)

2025-06-23 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,163 @@ +.. title:: clang-tidy - bugprone-null-check-after-dereference + +bugprone-null-check-after-dereference += + +.. note:: + + This check uses a flow-sensitive static analysis to produce its + results. Therefore, it may be mor

[clang] cccb82e - [HLSL][SPIRV] Allow large z value in numthreads (#144934)

2025-06-23 Thread via cfe-commits
Author: Steven Perron Date: 2025-06-23T09:36:12-04:00 New Revision: cccb82e5529136465ad3d073db7df4fe89a335c0 URL: https://github.com/llvm/llvm-project/commit/cccb82e5529136465ad3d073db7df4fe89a335c0 DIFF: https://github.com/llvm/llvm-project/commit/cccb82e5529136465ad3d073db7df4fe89a335c0.diff

[clang] [HLSL][SPIRV] Allow large z value in numthreads (PR #144934)

2025-06-23 Thread Steven Perron via cfe-commits
https://github.com/s-perron closed https://github.com/llvm/llvm-project/pull/144934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (PR #143550)

2025-06-23 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/143550 >From 897ef525a85345811ed8d3bc4da8d2886d05dfe7 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 10 Jun 2025 18:12:35 +0300 Subject: [PATCH 1/3] [clang-tidy] add 'IgnoreMarcos' option to 'special-member

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-23 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > I was thinking about possible ways to unblock this change. > > If the additional code complexity needs justification, by measuring the > average impact (to ensure no regression happens in the common cases), and by > repeating the measurement of the handful of edge-cases wher

[clang] [clang-tools-extra] [clang-tidy][dataflow] Add `bugprone-null-check-after-dereference` check (PR #84166)

2025-06-23 Thread via cfe-commits
@@ -103,6 +103,12 @@ New checks Finds lambda captures that capture the ``this`` pointer and store it as class members without handle the copy and move constructors and the assignments. +- New :doc:`bugprone-null-check-after-dereference + ` check. + + Identifies redundant

[clang] [clang-tools-extra] [clang-tidy][dataflow] Add `bugprone-null-check-after-dereference` check (PR #84166)

2025-06-23 Thread via cfe-commits
@@ -0,0 +1,163 @@ +.. title:: clang-tidy - bugprone-null-check-after-dereference + +bugprone-null-check-after-dereference += + +.. note:: + + This check uses a flow-sensitive static analysis to produce its + results. Therefore, it may be mor

[clang] [clang][analyzer] fix crash when modelling 'getline' function in checkers (PR #145229)

2025-06-23 Thread Balazs Benics via cfe-commits
steakhal wrote: Modeling a function should only happen if that's the intended function. Sometimes this matching is deliberately fuzzy, but most often it's incidentally so and they should have really check the parameter and return types for exact match. Or at least the parameters that the model

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2025-06-23 Thread Denis Mikhailov via cfe-commits
https://github.com/denzor200 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/99917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2025-06-23 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,437 @@ +// RUN: %check_clang_tidy -std=c++14 %s bugprone-incorrect-iterators %t + +namespace std { + +template struct pair {}; + +namespace execution { + +class parallel_policy {}; + +constexpr parallel_policy par; + +} // namespace execution + +template class reverse

[clang] [llvm] [RISCV] Add Andes AX45MPV processor definition (PR #145267)

2025-06-23 Thread Jim Lin via cfe-commits
https://github.com/tclin914 created https://github.com/llvm/llvm-project/pull/145267 Andes AX45MPV is 64-bit in-order dual-issue 8-stage pipeline linux-capable CPU implementing the RV64IMAFDCV ISA extension. That is developed by Andes Technology https://www.andestech.com, a RISC-V IP provider.

[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (PR #143550)

2025-06-23 Thread Baranov Victor via cfe-commits
@@ -18,6 +18,12 @@ using namespace clang::ast_matchers; namespace clang::tidy::cppcoreguidelines { +namespace { +AST_MATCHER(CXXRecordDecl, isInMacro) { vbvictor wrote: Yes, I was thinking lately about it. I've seen some matchers use only `Node.getBeginLoc()

[clang] [clang][bytecode] Fix shifts with an allocated RHS (PR #145280)

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

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #142324)

2025-06-23 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,198 @@ +//===--- BoolBitwiseOperationCheck.cpp - clang-tidy ---===// +// +// 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: Ap

[clang] [llvm] [WPD]: Apply speculative WPD in non-lto mode. (PR #145031)

2025-06-23 Thread Hassnaa Hamdi via cfe-commits
https://github.com/hassnaaHamdi edited https://github.com/llvm/llvm-project/pull/145031 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Andes AX45MPV processor definition (PR #145267)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) Changes Andes AX45MPV is 64-bit in-order dual-issue 8-stage pipeline linux-capable CPU implementing the RV64IMAFDCV ISA extension. That is developed by Andes Technology https://www.andestech.com, a RISC-V IP pr

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #142324)

2025-06-23 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,198 @@ +//===--- BoolBitwiseOperationCheck.cpp - clang-tidy ---===// +// +// 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: Ap

[clang] [NFC][Clang][AST] Use `llvm::copy` instead of `memcpy` in StringLiteral (PR #145187)

2025-06-23 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/145187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6d17eb5 - [NFC][Clang][AST] Use `llvm::copy` instead of `memcpy` in StringLiteral (#145187)

2025-06-23 Thread via cfe-commits
Author: Rahul Joshi Date: 2025-06-23T07:09:48-07:00 New Revision: 6d17eb5126b352c7929e2cfcd2440c3bd70ec907 URL: https://github.com/llvm/llvm-project/commit/6d17eb5126b352c7929e2cfcd2440c3bd70ec907 DIFF: https://github.com/llvm/llvm-project/commit/6d17eb5126b352c7929e2cfcd2440c3bd70ec907.diff L

[clang] [HLSL] Don't use CreateRuntimeFunction for intrinsics (PR #145334)

2025-06-23 Thread Farzon Lotfi via cfe-commits
@@ -676,35 +676,23 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID, case Builtin::BI__builtin_hlsl_wave_active_sum: { // Due to the use of variadic arguments, explicitly retreive argument Value *OpExpr = EmitScalarExpr(E->getArg(0)); -llvm::Func

[clang] [HLSL] Don't use CreateRuntimeFunction for intrinsics (PR #145334)

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

[clang] 44936c8 - [CUDA][HIP] add options `--[no-]offload-inc` (#140106)

2025-06-23 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2025-06-23T11:02:06-04:00 New Revision: 44936c8d13f904a68647d83bdcdbbeefb4670d3e URL: https://github.com/llvm/llvm-project/commit/44936c8d13f904a68647d83bdcdbbeefb4670d3e DIFF: https://github.com/llvm/llvm-project/commit/44936c8d13f904a68647d83bdcdbbeefb4670d3e.dif

[clang] [clang][bytecode] Fix IntegralAP::{isMin,isMax} (PR #145339)

2025-06-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/145339 We need to take signeness into account here. >From fade41f6df27da0c20751276aa8586bb1540bbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 23 Jun 2025 17:10:20 +0200 Subject: [PATCH] [

[clang] [CUDA][HIP] add options `--[no-]offload-inc` (PR #140106)

2025-06-23 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu closed https://github.com/llvm/llvm-project/pull/140106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP][AMDGPU] Support for type inferring image load/store builtins for AMDGPU (PR #140210)

2025-06-23 Thread Shilei Tian via cfe-commits
@@ -683,6 +683,206 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID, return Builder.CreateInsertElement(I0, A, 1); } + case AMDGPU::BI__builtin_amdgcn_image_load_1d_v4f32_i32: + case AMDGPU::BI__builtin_amdgcn_image_load_1darray_v4f32_i32: + case A

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-06-23 Thread Katherine Whitlock via cfe-commits
stellar-aria wrote: I'm assuming the MSAN failure is a result of the ASAN failure, since I don't see any reference to UseNumericLimitsCheck in that output. The ASAN output however... ```/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang-tools-extra/clang-tidy/readability/UseNumericLim

[clang] [clang][bytecode] Fix IntegralAP::{isMin,isMax} (PR #145339)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We need to take signeness into account here. --- Full diff: https://github.com/llvm/llvm-project/pull/145339.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/IntegralAP.h (+10-2) - (modified) cl

[clang] [lld] Use the Windows SDK arguments over the environment (PR #144805)

2025-06-23 Thread Fabrice de Gans via cfe-commits
Steelskin wrote: > Just to confirm, does this make clang-cl line up with cl's behavior? As @compnerd said, this is clang-cl specific. None of these options exist in `cl.exe`. https://github.com/llvm/llvm-project/pull/144805 ___ cfe-commits mailing li

[clang] [lld] Use the Windows SDK arguments over the environment (PR #144805)

2025-06-23 Thread Fabrice de Gans via cfe-commits
https://github.com/Steelskin updated https://github.com/llvm/llvm-project/pull/144805 >From 6c9e0438677d60d5dfb23ca821ed04e27bdac8c1 Mon Sep 17 00:00:00 2001 From: Fabrice de Gans Date: Wed, 18 Jun 2025 15:04:35 -0700 Subject: [PATCH] Use the Windows SDK arguments over the environment If any o

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: One of the logs also suggests `UseNumericLimitsCheck.cpp:81:31`. As of LLVM policy, we need to revert it. @stellar-aria, I will create a revert patch in a couple of hours or accept yours if you do it first. https://github.com/llvm/llvm-project/pull/127430 ___

[clang] [llvm] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-06-23 Thread Krzysztof Parzyszek via cfe-commits
kparzysz wrote: @alexey-bataev, could you clarify what tests you had in mind? https://github.com/llvm/llvm-project/pull/141772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen] Added SanitizerHandler mapping, trap messages in debug info, and corresponding test cases. (PR #143758)

2025-06-23 Thread Dan Liew via cfe-commits
delcypher wrote: @anthonyhatran Here's an example for `SanitizerHandler::InvalidObjCCast` ``` // Build with -fsanitize=objc-cast -fsanitize-trap=objc-cast @interface NSFastEnumerationState @end #define NSUInteger unsigned int @interface NSArray +(NSArray*) arrayWithObjects: (id) first, ...; -

[clang] 1128a4f - [HLSL] Don't use CreateRuntimeFunction for intrinsics (#145334)

2025-06-23 Thread via cfe-commits
Author: Nikita Popov Date: 2025-06-23T17:37:33+02:00 New Revision: 1128a4fd2c3a70ba61eead2ce093a9c31aa2970e URL: https://github.com/llvm/llvm-project/commit/1128a4fd2c3a70ba61eead2ce093a9c31aa2970e DIFF: https://github.com/llvm/llvm-project/commit/1128a4fd2c3a70ba61eead2ce093a9c31aa2970e.diff

[clang] [HLSL] Don't use CreateRuntimeFunction for intrinsics (PR #145334)

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

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-23 Thread Tibor Győri via cfe-commits
TiborGY wrote: > I feel like this is a solution that can grow out of hand very easily. IMO the > better solution would be to have `-Wmissing-noreturn` place a `[[noreturn]]` > into the AST to avoid incorrect follow-up diagnostics. I agree, in principle I would expect Clang to be able to prove

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-06-23 Thread Katherine Whitlock via cfe-commits
stellar-aria wrote: `UseNumericLimitsCheck.cpp:81:31` is just the call site for that matcher, so that's why it's in the backtrace, I think. I'll leave the revert patch to you. https://github.com/llvm/llvm-project/pull/127430 ___ cfe-commits mailing l

[clang] [clang][bytecode] Remove incorrect assertion (PR #145341)

2025-06-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/145341 P.block() will assert that P is a block pointer, which it doesn't have to be here. >From 598d2a9d4c5e31749e79c35802d4b3b3ca8773be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 23 Jun

[clang] [clang][bytecode] Remove incorrect assertion (PR #145341)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes P.block() will assert that P is a block pointer, which it doesn't have to be here. --- Full diff: https://github.com/llvm/llvm-project/pull/145341.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCod

[clang] [clang-c] introduce queries on GCC-style inline assembly statements (PR #143424)

2025-06-23 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Precommit CI found a relevant failure on Windows (it looks like we're crashing, IIRC that's `STATUS_HEAP_CORRUPTION` as a failure code): ``` FAIL: Clang :: Index/inline-assembly.c (13090 of 21590) TEST 'Clang :: Index/inline-assembly.c' FAILED *

[clang] [Clang][AArch64] Add FP8 variants of Neon store intrinsics (PR #145346)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Kerry McLaughlin (kmclaughlin-arm) Changes Adds FP8 variants for existing VST1, VST2, VST3 & VST4 intrinsics. --- Patch is 36.17 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/

[clang] [flang] [llvm] [llvm] fix extern cl::opt definitions for DLL export (PR #145374)

2025-06-23 Thread Andrew Rogers via cfe-commits
https://github.com/andrurogerz created https://github.com/llvm/llvm-project/pull/145374 ## Purpose This patch is one in a series of code-mods that annotate LLVM’s public interface for export. This patch ensures a few `cl::opt` declarations are properly annotated with `LLVM_ABI`. The annotation

[clang] [llvm] [RISCV] Add Andes AX45MPV processor definition (PR #145267)

2025-06-23 Thread Min-Yih Hsu via cfe-commits
@@ -0,0 +1,33 @@ +// RUN: %clang --target=riscv64 -mcpu=andes-ax45mpv --print-enabled-extensions | FileCheck %s mshockwave wrote: I believe this is also what AArch64 does https://github.com/llvm/llvm-project/pull/145267 _

[clang] [llvm] [RISCV] Add Andes AX45MPV processor definition (PR #145267)

2025-06-23 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave approved this pull request. https://github.com/llvm/llvm-project/pull/145267 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve diagnostics for 'placement new' with const storage argument (PR #144270)

2025-06-23 Thread Oliver Hunt via cfe-commits
ojhunt wrote: @vbvictor super sorry, I'm feeling quite sick so can't really read the PR today, will probably not get to it until tomorrow https://github.com/llvm/llvm-project/pull/144270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [Modules] Record whether VarDecl initializers contain side effects (PR #143739)

2025-06-23 Thread Jonas Devlieghere via cfe-commits
JDevlieghere wrote: This breaks the std module import feature in LLDB: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/28186/. Also reproduces in pre-commit CI: https://github.com/llvm/llvm-project/actions/runs/15830795745/job/44622706379?pr=145366 We're hitting the follow

[clang] [CIR] Upstream __real__ for ComplexType (PR #144261)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/144261 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream __imag__ for ComplexType (PR #144262)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/144262 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][RootSignature] Plug-in serialization and add full sample testcase (PR #144769)

2025-06-23 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/144769 >From 3761e5204d2d435cc09f392fd2e53c2125fac0ed Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 6 Jun 2025 20:46:10 + Subject: [PATCH 1/4] [HLSL][RootSignature] Plug-in serialization and add full samp

[clang] [clang][nvlink-wrapper] Add support for opt-remarks command line options (PR #145365)

2025-06-23 Thread via cfe-commits
Miguel =?utf-8?q?Cárdenas?= , Miguel =?utf-8?q?Cárdenas?= , Miguel =?utf-8?q?Cárdenas?= Message-ID: In-Reply-To: github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://g

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: Reverted, thank you [qinkunbao](https://github.com/qinkunbao) for the report! When making a new PR for this check, please make the title `Reland "[clang-tidy] Add ..."` provide a description of what broke and how it was fixed. https://github.com/llvm/llvm-project/pull/127430 __

[clang] [Modules] Record whether VarDecl initializers contain side effects (PR #143739)

2025-06-23 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. https://github.com/llvm/llvm-project/pull/143739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for __builtin_expect (PR #144726)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/144726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for builtin_vectorelements (PR #144877)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/144877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][nvlink-wrapper] Add support for opt-remarks command line options (PR #145365)

2025-06-23 Thread via cfe-commits
Miguel =?utf-8?q?Cárdenas?= , Miguel =?utf-8?q?Cárdenas?= , Miguel =?utf-8?q?Cárdenas?= Message-ID: In-Reply-To: github-actions[bot] wrote: @miguelcsx Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from

[clang] e80acd4 - [clang][nvlink-wrapper] Add support for opt-remarks command line options (#145365)

2025-06-23 Thread via cfe-commits
Author: Miguel Cárdenas Date: 2025-06-23T13:15:04-05:00 New Revision: e80acd4fae600ff9ead1d3210a30ce6ad07a7dd9 URL: https://github.com/llvm/llvm-project/commit/e80acd4fae600ff9ead1d3210a30ce6ad07a7dd9 DIFF: https://github.com/llvm/llvm-project/commit/e80acd4fae600ff9ead1d3210a30ce6ad07a7dd9.dif

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-23 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,22 @@ +// This verifies that hotpatch function attributes are correctly propagated when compiling directly to OBJ, +// and that name mangling works as expected. +// +// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 /Z7 -fms-secure-hotpatch-functions-list=?this_ge

[clang] [clang][nvlink-wrapper] Add support for opt-remarks command line options (PR #145365)

2025-06-23 Thread Joseph Huber via cfe-commits
Miguel =?utf-8?q?Cárdenas?= , Miguel =?utf-8?q?Cárdenas?= , Miguel =?utf-8?q?Cárdenas?= Message-ID: In-Reply-To: https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/145365 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-23 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM after the REQUIRES issue is addressed. https://github.com/llvm/llvm-project/pull/138972 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] Cap IntRange::Width to the expression's type size (PR #145356)

2025-06-23 Thread Akira Hatanaka via cfe-commits
ahatanak wrote: Note that the range exceeds the underlying type's size in this case because `1 << i` is treated as logically positive (see https://github.com/llvm/llvm-project/pull/126846#issuecomment-2936836277). https://github.com/llvm/llvm-project/pull/145356 ___

[clang] [CIR] Remove redundant operation trait and use AllTypesMatch instead (PR #144950)

2025-06-23 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Awesome! https://github.com/llvm/llvm-project/pull/144950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve diagnostics for 'placement new' with const storage argument (PR #144270)

2025-06-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: No problem, take your time! Feel better soon. Regarding this comment: > should probably be earlier - this is inside an array of object My logic is still placed inside that `if (object || pointer)`, should I try to look for an earlier place in `resolveAllocationOverloadInterior`

[clang] [clang][Preprocessor] Add peekNextPPToken, makes look ahead next token without side-effects (PR #143898)

2025-06-23 Thread via cfe-commits
yronglin wrote: Many thanks for your review! https://github.com/llvm/llvm-project/pull/143898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-06-23 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev commented: Do you have the printing test for all updated directives? https://github.com/llvm/llvm-project/pull/141772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-06-23 Thread Jake Egan via cfe-commits
https://github.com/jakeegan updated https://github.com/llvm/llvm-project/pull/129925 >From 072f4eca3825729d69d423d774c8a3298cb624a8 Mon Sep 17 00:00:00 2001 From: Jake Egan Date: Wed, 5 Mar 2025 01:57:38 -0500 Subject: [PATCH 01/12] [clang] Implement address sanitizer on AIX (1/3) The PR inclu

[clang] 319a51a - [Modules] Record whether VarDecl initializers contain side effects (#143739)

2025-06-23 Thread via cfe-commits
Author: Henrik G. Olsson Date: 2025-06-23T10:16:31-07:00 New Revision: 319a51a5ffb807b88ae7f73676894bf306a0d134 URL: https://github.com/llvm/llvm-project/commit/319a51a5ffb807b88ae7f73676894bf306a0d134 DIFF: https://github.com/llvm/llvm-project/commit/319a51a5ffb807b88ae7f73676894bf306a0d134.di

[clang] [clang][CodeGen] Added SanitizerHandler mapping, trap messages in debug info, and corresponding test cases. (PR #143758)

2025-06-23 Thread Dan Liew via cfe-commits
@@ -4041,7 +4133,8 @@ void CodeGenFunction::EmitUnreachable(SourceLocation Loc) { void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked, SanitizerHandler CheckHandlerID, -bool NoMerge) { +

[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (PR #143550)

2025-06-23 Thread Julian Schmidt via cfe-commits
5chmidti wrote: > > Actually, the cxxRecordDecl might not be in a macro, but the special member > > functions are. > > The checker doc states: > `The check finds classes where some but not all of the special member > functions are defined.` > I think we only need to ignore if the whole class e

[clang] [clang][nvlink-wrapper] Add support for opt-remarks command line options (PR #145365)

2025-06-23 Thread Joseph Huber via cfe-commits
Miguel =?utf-8?q?C=C3=A1rdenas?= , Miguel =?utf-8?q?C=C3=A1rdenas?= , Miguel =?utf-8?q?C=C3=A1rdenas?= Message-ID: In-Reply-To: https://github.com/jhuber6 approved this pull request. Yeah, usually easier to do a force push if you plan on doing a rebase. https://github.com/llvm/llvm-project/pu

[clang] [clang][nvlink-wrapper] Add support for opt-remarks command line options (PR #145365)

2025-06-23 Thread Shilei Tian via cfe-commits
Miguel =?utf-8?q?C=C3=A1rdenas?= , Miguel =?utf-8?q?C=C3=A1rdenas?= , Miguel =?utf-8?q?C=C3=A1rdenas?= Message-ID: In-Reply-To: https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/145365 ___ cfe-commits

[clang] [clang][nvlink-wrapper] Add support for opt-remarks command line options (PR #145365)

2025-06-23 Thread Jose Manuel Monsalve Diaz via cfe-commits
Miguel =?utf-8?q?C=C3=A1rdenas?= , Miguel =?utf-8?q?C=C3=A1rdenas?= , Miguel =?utf-8?q?C=C3=A1rdenas?= Message-ID: In-Reply-To: josemonsalve2 wrote: This one replaces #145200 which was closed due to some confusion. https://github.com/llvm/llvm-project/pull/145365 _

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-06-23 Thread Jake Egan via cfe-commits
https://github.com/jakeegan updated https://github.com/llvm/llvm-project/pull/129925 >From 072f4eca3825729d69d423d774c8a3298cb624a8 Mon Sep 17 00:00:00 2001 From: Jake Egan Date: Wed, 5 Mar 2025 01:57:38 -0500 Subject: [PATCH 01/13] [clang] Implement address sanitizer on AIX (1/3) The PR inclu

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Mircea Trofin via cfe-commits
@@ -82,6 +83,44 @@ class LLVM_ABI OptBisect : public OptPassGate { int LastBisectNum = 0; }; +/// This class implements a mechanism to disable passes and individual +/// optimizations at compile time based on a command line option +/// (-opt-disable) in order to study how si

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Mircea Trofin via cfe-commits
@@ -51,10 +51,59 @@ bool OptBisect::shouldRunPass(const StringRef PassName, int CurBisectNum = ++LastBisectNum; bool ShouldRun = (BisectLimit == -1 || CurBisectNum <= BisectLimit); if (OptBisectVerbose) -printPassMessage(PassName, CurBisectNum, IRDescription, ShouldRu

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Mircea Trofin via cfe-commits
@@ -51,10 +51,59 @@ bool OptBisect::shouldRunPass(const StringRef PassName, int CurBisectNum = ++LastBisectNum; bool ShouldRun = (BisectLimit == -1 || CurBisectNum <= BisectLimit); if (OptBisectVerbose) -printPassMessage(PassName, CurBisectNum, IRDescription, ShouldRu

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Mircea Trofin via cfe-commits
@@ -0,0 +1,13 @@ +// REQUIRES: x86-registered-target mtrofin wrote: should the test be in llvm/test? it's not tied to clang https://github.com/llvm/llvm-project/pull/145059 ___ cfe-commits mailing list cfe-commits@list

[clang] c445ca5 - [clang][bytecode] Remove incorrect assertion (#145341)

2025-06-23 Thread via cfe-commits
Author: Timm Baeder Date: 2025-06-23T19:11:01+02:00 New Revision: c445ca5412a7ee1bf7a598e860b50f29602e1981 URL: https://github.com/llvm/llvm-project/commit/c445ca5412a7ee1bf7a598e860b50f29602e1981 DIFF: https://github.com/llvm/llvm-project/commit/c445ca5412a7ee1bf7a598e860b50f29602e1981.diff L

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-23 Thread Cristian Assaiante via cfe-commits
@@ -0,0 +1,13 @@ +// REQUIRES: x86-registered-target + +// Make sure opt-bisect works through both pass managers +// +// RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 %s -mllvm -opt-disable="inlinerpass,SROAPass,machine code sinking" -mllvm -opt-disable-verbose -emit-obj -o /dev/

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-06-23 Thread Jake Egan via cfe-commits
@@ -1635,8 +1656,13 @@ bool tools::addSanitizerRuntimes(const ToolChain &TC, const ArgList &Args, } // If there is a static runtime with no dynamic list, force all the symbols // to be dynamic to be sure we export sanitizer interface functions. - if (AddExportDynamic) -

[clang] [clang Dependency Scanning] Enhance File Caching Diagnostics (PR #144105)

2025-06-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/144105 >From 2187de3d30045a02c03ca009f2497608ab6bc6a4 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Thu, 12 Jun 2025 16:05:32 -0700 Subject: [PATCH 1/3] Enhancing DependencyScanningFilesystemSharedCache's API that

[clang] [flang] [mlir] [flang][flang-driver][mlir][OpenMP] atomic control support (PR #143441)

2025-06-23 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143441 >From c9b65080c1301c46b05fddc1278eaf2817963cb9 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/4] [flang][flang-driver] atomic control support --- clang/i

[clang] [PowerPC] Add DMF basic builtins (PR #145372)

2025-06-23 Thread via cfe-commits
https://github.com/RolandF77 created https://github.com/llvm/llvm-project/pull/145372 Add support for PPC Dense Math basic builtins dmsetdmrz, dmmr, dmxor. >From fc5226fa4bb20267c4e3ed3c687056461ccfbccb Mon Sep 17 00:00:00 2001 From: Roland Froese Date: Mon, 23 Jun 2025 17:27:46 + Subject:

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-06-23 Thread via cfe-commits
sivadeilra wrote: @rnk - Aside from the comments / text edits, do you have any other suggestions for this PR? https://github.com/llvm/llvm-project/pull/144745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang] [C23][Parser] Accept single variadic parameter function declarator in type name (PR #145362)

2025-06-23 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/145362 Fixs: https://github.com/llvm/llvm-project/issues/145250. >From 967ba04e0a0f11edbaf36ce6edb51f6ab4fcb56b Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 24 Jun 2025 00:51:32 +0800 Subject: [PATCH] [C23][Pa

[clang] [C23][Parser] Accept single variadic parameter function declarator in type name (PR #145362)

2025-06-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yronglin) Changes Fixs: https://github.com/llvm/llvm-project/issues/145250. --- Full diff: https://github.com/llvm/llvm-project/pull/145362.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/

[clang] [clang][Preprocessor] Handle the first pp-token in EnterMainSourceFile (PR #145244)

2025-06-23 Thread via cfe-commits
yronglin wrote: Many thanks for your review! https://github.com/llvm/llvm-project/pull/145244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] c594f6e - Revert "[clang-tidy] Add new check `readability-use-numeric-limits`" (#145355)

2025-06-23 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-23T19:39:01+03:00 New Revision: c594f6e697435fbb2458104c51e1bbbfd9df6689 URL: https://github.com/llvm/llvm-project/commit/c594f6e697435fbb2458104c51e1bbbfd9df6689 DIFF: https://github.com/llvm/llvm-project/commit/c594f6e697435fbb2458104c51e1bbbfd9df6689.diff

<    1   2   3   4   >