[clang] [clang][X86] bmi-builtins.c - add -fexperimental-new-constant-interpreter bytecode test coverage (PR #161182)

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

[clang] [X86] Add MMX/SSE/AVX PHADD/SUB & HADDPS/D intrinsics to be used in constexpr (PR #156822)

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

[clang-tools-extra] [clang-tidy][NFC] Clarify some options use regex to matching in doc (1/N) (PR #161142)

2025-09-29 Thread via cfe-commits
@@ -62,12 +62,12 @@ Options .. option:: StrFormatLikeFunctions - A semicolon-separated list of (fully qualified) function names to - replace, with the requirement that the first parameter contains the - printf-style format string and the arguments to be formatted follow

[clang] [analyzer] CStringChecker: fix crash in `CheckOverlap` when arguments are not pointers (PR #160511)

2025-09-29 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource approved this pull request. https://github.com/llvm/llvm-project/pull/160511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Avoid use of `CallEvent`s with obsolete state (PR #160707)

2025-09-29 Thread Balazs Benics via cfe-commits
steakhal wrote: For the record, I got bitten by this today and wasted about 5 minutes of my time. I had a pretty good instinct that `Call.getReturnValue()` must refer to the `State` bundled with `Call`, and not the one I just prepared with `bindExpr` binding the return value. (I was inside an

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

2025-09-29 Thread via cfe-commits
@@ -0,0 +1,94 @@ +//===--===// +// +// 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][modules-driver] Add dependency scan and dependency graph (PR #152770)

2025-09-29 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,112 @@ +//===- ModulesDriver.h - Driver managed module builds *- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [clang][x86] tbm-builtins.c - add i386 test coverage (PR #161169)

2025-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/161169.diff 1 Files Affected: - (modified) clang/test/CodeGen/X86/tbm-builtins.c (+40-38) ``diff diff --git a/clang/test/CodeGen/X86/tb

[clang] [Clang] Avoid null deref in lambda attribute compat warning (PR #161096)

2025-09-29 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/161096 >From cb5b1831921092d5dcf96f452f6dee367bfb18a1 Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Sun, 28 Sep 2025 23:45:51 +0300 Subject: [PATCH 1/3] [Clang] Avoid null deref in lambda attribute compat

[clang] [Clang] Add support for fp when using min_fetch/max_fetch atomics (PR #160330)

2025-09-29 Thread Amina Chabane via cfe-commits
https://github.com/Amichaxx updated https://github.com/llvm/llvm-project/pull/160330 >From a8043a7fd01823f05246b857f29b0957484b5222 Mon Sep 17 00:00:00 2001 From: Amichaxx Date: Mon, 22 Sep 2025 15:55:57 + Subject: [PATCH 1/2] [Clang] Add support for fp when using min_fetch/max_fetch atomi

[clang] [clang][x86] tbm-builtins.c - add i386 test coverage (PR #161169)

2025-09-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/161169 None >From a54e18c033981ad342236611f638273b98828a29 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 29 Sep 2025 11:50:18 +0100 Subject: [PATCH] [clang][x86] tbm-builtins.c - add i386 test coverage ---

[clang] [ARM][clang] Add some build attributes support (PR #161106)

2025-09-29 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm approved this pull request. https://github.com/llvm/llvm-project/pull/161106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][X86] tbm-builtins.c - add -fexperimental-new-constant-interpreter bytecode test coverage (PR #161174)

2025-09-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/161174 Part of #155814 >From 69e5bc501c6bb0a315994533f0cc23f58255574d Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 29 Sep 2025 12:21:26 +0100 Subject: [PATCH] [clang][X86] tbm-builtins.c - add -fexperiment

[clang] [clang][X86] tbm-builtins.c - add -fexperimental-new-constant-interpreter bytecode test coverage (PR #161174)

2025-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes Part of #155814 --- Full diff: https://github.com/llvm/llvm-project/pull/161174.diff 1 Files Affected: - (modified) clang/test/CodeGen/X86/tbm-builtins.c (+5) ``diff diff --git a/clang/test/Cod

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

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

[clang] [CIR] Add limited support for array new (PR #161095)

2025-09-29 Thread Andy Kaylor via cfe-commits
@@ -254,13 +358,26 @@ static void storeAnyExprIntoOneUnit(CIRGenFunction &cgf, const Expr *init, llvm_unreachable("bad evaluation kind"); } +void CIRGenFunction::emitNewArrayInitializer( +const CXXNewExpr *e, QualType elementType, mlir::Type elementTy, +Address begi

[clang] [CIR] Add limited support for array new (PR #161095)

2025-09-29 Thread Andy Kaylor via cfe-commits
@@ -418,14 +535,22 @@ mlir::Value CIRGenFunction::emitCXXNewExpr(const CXXNewExpr *e) { // If there's an operator delete, enter a cleanup to call it if an // exception is thrown. - if (e->getOperatorDelete() && - !e->getOperatorDelete()->isReservedGlobalPlacementOpe

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

2025-09-29 Thread JJ Marr via cfe-commits
jjmarr-amd wrote: Attempted to use AI to add the auto fix-it functionality. I couldn't get it to work on my own without a bunch of annoying string manipulation. I feel like there is a better non-string manipulation way of generating the proposed fix-its. I also have no idea why a "VLA capture

[clang] [Clang] Instantiate variables referenced in `decltype` with an undeduced type. (PR #161231)

2025-09-29 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/161231 >From 4c0152234c53fe7b97fcca65a61d4c29b611fb19 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 29 Sep 2025 18:55:22 +0200 Subject: [PATCH 1/6] [Clang] Instantiate variables referenced in `decltype` wi

[clang] [Clang] Instantiate variables referenced in `decltype` with an undeduced type. (PR #161231)

2025-09-29 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/161231 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate variables referenced in `decltype` with an undeduced type. (PR #161231)

2025-09-29 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/161231 >From 4c0152234c53fe7b97fcca65a61d4c29b611fb19 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 29 Sep 2025 18:55:22 +0200 Subject: [PATCH 1/5] [Clang] Instantiate variables referenced in `decltype` wi

[clang] [flang] [llvm] [openmp] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-09-29 Thread Zahira Ammarguellat via cfe-commits
zahiraam wrote: @Ritanya-B-Bharadwaj Can this be pushed along so that it can be merged in? @kparzysz Would you mind taking a look the `Flang` changes please? https://github.com/llvm/llvm-project/pull/135807 ___ cfe-commits mailing list cfe-commits@lis

[libunwind] [libunwind][test] Add check for objcopy to improve test compatibility (PR #161112)

2025-09-29 Thread Florian Mayer via cfe-commits
@@ -33,3 +34,13 @@ config.substitutions.append(('%{install-prefix}', '@LIBUNWIND_TESTING_INSTALL_PR config.substitutions.append(('%{include}', '@LIBUNWIND_TESTING_INSTALL_PREFIX@/include')) config.substitutions.append(('%{lib}', '@LIBUNWIND_TESTING_INSTALL_PREFIX@/@LIBUNWIND_

[clang] [CIR][NFC] Fix value 'OMPFuseDirectiveClass' not handled warning (PR #161246)

2025-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Fix enumeration value 'OMPFuseDirectiveClass' not handled in switch warning --- Full diff: https://github.com/llvm/llvm-project/pull/161246.diff 1 Files Affected: - (modifie

[clang] [HLSL][NFC] Add helper struct to simplify dealing with resource binding attributes (PR #161254)

2025-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes Add new `ResourceBindingAttrs` struct that holds resource binding attributes `HLSLResourceBindingAttr` and `HLSLVkBindingAttr` and provides helper methods to simplify dealing with resource bindings. This code

[clang] [CIR] Add limited support for array new (PR #161095)

2025-09-29 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor commented: The size and scope of this PR looks good. It looks like all the branches that don't hit NYI diagnostics are covered by the tests, and the amount of code is small enough for effective review. https://github.com/llvm/llvm-project/pull/161095 _

[clang] [HLSL][NFC] Add helper struct to simplify dealing with resource binding attributes (PR #161254)

2025-09-29 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/161254 >From 6785ed1b738b6e54f9488205da6fb2f923a38413 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Mon, 29 Sep 2025 11:15:35 -0700 Subject: [PATCH 1/3] [HLSL][NFC] Add ResourceBindingAttrs to simplity dealing with

[clang] [Clang] Instantiate variables referenced in `decltype` with an undeduced type. (PR #161231)

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

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-29 Thread Justin Stitt via cfe-commits
JustinStitt wrote: > Either always returning false (wrapping to uint8_t), or trapping in the > overflow (?) check due to early narrowing, or returning false incorrectly but > only if obt is enabled, and if obt is not enabled the only overflow exists on > the promoted, but that can be prevented

[clang] [CIR] Implement GenericSelectionExpr for AggregateExpr (PR #161003)

2025-09-29 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/161003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add helper struct to simplify dealing with resource binding attributes (PR #161254)

2025-09-29 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/161254 >From 6785ed1b738b6e54f9488205da6fb2f923a38413 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Mon, 29 Sep 2025 11:15:35 -0700 Subject: [PATCH 1/2] [HLSL][NFC] Add ResourceBindingAttrs to simplity dealing with

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-09-29 Thread Vasiliy Kulikov via cfe-commits
@@ -0,0 +1,47 @@ +.. title:: clang-tidy - performance-lost-std-move + +performance-lost-std-move += + +Warns if copy constructor is used instead of ``std::move()`` and suggests a fix. +It honours cycles, lambdas, and unspecified call order in compound expr

[clang] [CIR] Upstream ParenExpr for AggregateExpr (PR #160998)

2025-09-29 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/160998 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream UnaryExtension for Scalar Expr (PR #160997)

2025-09-29 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/160997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm][clang] Use the VFS in `GCOVProfilerPass` (PR #161260)

2025-09-29 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/161260 This PR starts using the correct VFS in `GCOVProfilerPass` instead of using the real FS directly. This matches compiler's behavior for other input files. >From 065f670a1566855b743dede521fffd61a72cfcbd Mon

[clang] [CIR] Add limited support for array new (PR #161095)

2025-09-29 Thread via cfe-commits
https://github.com/jiang1997 updated https://github.com/llvm/llvm-project/pull/161095 >From c8e3813d44a7569ea6f96982d5dad736d33d22f8 Mon Sep 17 00:00:00 2001 From: jiang1997 Date: Sun, 28 Sep 2025 22:20:53 +0800 Subject: [PATCH 1/2] [CIR] Add limited support for array new --- clang/lib/CIR/Co

[clang-tools-extra] [clang-tidy][NFC] Clarify some options use regex to matching in doc (1/N) (PR #161142)

2025-09-29 Thread Victor Chernyakin via cfe-commits
@@ -39,8 +39,8 @@ Options .. option:: ExcludeClasses -Semicolon-delimited list of class names for overwriting the default -exclusion list. The default is: +Semicolon-delimited list of regular expressions matching class names that +overwriting the default exclu

[clang] [Clang] Instantiate variables referenced in `decltype` with an undeduced type. (PR #161231)

2025-09-29 Thread Richard Smith via cfe-commits
@@ -20108,8 +20108,9 @@ static void DoMarkVarDeclReferenced( bool NeededForConstantEvaluation = isPotentiallyConstantEvaluatedContext(SemaRef) && UsableInConstantExpr; - bool NeedDefinition = - OdrUse == OdrUseContext::Used || NeededForConstantEvaluation; + bool

[clang] [clang-scan-deps] Remove const from ModuleDeps loop to enable move. (PR #161109)

2025-09-29 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese reopened https://github.com/llvm/llvm-project/pull/161109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-scan-deps] Remove const from ModuleDeps loop to enable move. (PR #161109)

2025-09-29 Thread Michael Spencer via cfe-commits
Bigcheese wrote: This PR does do something, it change a copy to a move of a large data structure, which has (minor) perf/memory impact. This seems fine to me as a standalone PR, and doesn't really fit as a side change in any other existing PR. https://github.com/llvm/llvm-project/pull/161109 _

[clang] [CIR] Add limited support for array new (PR #161095)

2025-09-29 Thread via cfe-commits
jiang1997 wrote: @andykaylor It looks like #139293 modified StmtNodes.td to add a new enum value, which in turn makes `clang/lib/CIR/CodeGen/CIRGenStmt.cpp` fail to compile (see the failure in build [log](https://github.com/llvm/llvm-project/actions/runs/18107802106/job/51526611593?pr=161095)

[libclc] 483d73a - [libclc] Move myself to the list of inactive maintainers

2025-09-29 Thread Fraser Cormack via cfe-commits
Author: Fraser Cormack Date: 2025-09-29T08:40:19+01:00 New Revision: 483d73a5e0f63f110776a5abb2e5644f6de51cb3 URL: https://github.com/llvm/llvm-project/commit/483d73a5e0f63f110776a5abb2e5644f6de51cb3 DIFF: https://github.com/llvm/llvm-project/commit/483d73a5e0f63f110776a5abb2e5644f6de51cb3.diff

[libclc] [libclc] Propose new libclc maintainer (PR #161141)

2025-09-29 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: I now realise I may have done this in the wrong order as I've already moved myself to the list of inactive maintainers but I don't think that's a problem. https://github.com/llvm/llvm-project/pull/161141 ___ cfe-commits mailing list

[clang] [clang][OpenMP] Support for reduction clause with array elements as modifier (PR #160846)

2025-09-29 Thread via cfe-commits
https://github.com/SunilKuravinakop ready_for_review https://github.com/llvm/llvm-project/pull/160846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [x86][AVX-VNNI] Fix VPDPBXXD Argument Type (PR #159222)

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

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add MMX/SSE/AVX/AVX512 PMULHRSW intrinsics to be used in constexpr (PR #160636)

2025-09-29 Thread Simon Pilgrim via cfe-commits
@@ -3423,6 +3423,18 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, return LHS.isSigned() ? LHS.ssub_sat(RHS) : LHS.usub_sat(RHS); }); + case clang::X86::BI__builtin_ia32_pmulhrsw128: + case clang::X86::BI__builtin_ia32_pmulhrs

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add MMX/SSE/AVX/AVX512 PMULHRSW intrinsics to be used in constexpr (PR #160636)

2025-09-29 Thread Simon Pilgrim via cfe-commits
@@ -1587,6 +1587,8 @@ __m512i test_mm512_mulhrs_epi16(__m512i __A, __m512i __B) { // CHECK: @llvm.x86.avx512.pmul.hr.sw.512 return _mm512_mulhrs_epi16(__A,__B); } +TEST_CONSTEXPR(match_v32hi(_mm512_mulhrs_epi16((__m512i)(__v32hi){+1, -2, +3, -4, +5, -6, +7, -8, +9, -10,

[clang-tools-extra] [clangd] Fix off-by-one error in CommandMangler (PR #160029)

2025-09-29 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. good catch, thank you for the fix. https://github.com/llvm/llvm-project/pull/160029 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)

2025-09-29 Thread Jan Svoboda via cfe-commits
@@ -0,0 +1,1579 @@ +//===--- Driver.cpp - Clang GCC Compatible Driver -===// +// +// 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: A

[clang] 2dd7431 - [clang] Use the VFS in `ModuleDependencyCollector` (#160944)

2025-09-29 Thread via cfe-commits
Author: Jan Svoboda Date: 2025-09-29T09:38:49-07:00 New Revision: 2dd743187655261815a95477d3956051e7cf5b04 URL: https://github.com/llvm/llvm-project/commit/2dd743187655261815a95477d3956051e7cf5b04 DIFF: https://github.com/llvm/llvm-project/commit/2dd743187655261815a95477d3956051e7cf5b04.diff L

[clang] [clang][OpenMP] Support for reduction clause with array elements as modifier (PR #160846)

2025-09-29 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: > Changes to support for array elements in reduction clause e.g. "reduction > (+:a[1])" Which version supports it? https://github.com/llvm/llvm-project/pull/160846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] [analyzer] Avoid use of `CallEvent`s with obsolete state (PR #160707)

2025-09-29 Thread Artem Dergachev via cfe-commits
@@ -731,33 +731,36 @@ void CheckerManager::runCheckersForEvalCall(ExplodedNodeSet &Dst, ExplodedNodeSet checkDst; NodeBuilder B(Pred, checkDst, Eng.getBuilderContext()); +ProgramStateRef State = Pred->getState(); +CallEventRef<> UpdatedCall = Call.cloneWithSta

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-09-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/160362 >From fef2d68868a8796dd6ec14f2491cab421fa29897 Mon Sep 17 00:00:00 2001 From: jiang1997 Date: Mon, 29 Sep 2025 23:30:38 +0800 Subject: [PATCH] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use eleme

[libunwind] [libunwind][test] Add check for objcopy to improve test compatibility (PR #161112)

2025-09-29 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu updated https://github.com/llvm/llvm-project/pull/161112 >From a56a073ea90f7226b5ce036d4f0d1df342a5a4c1 Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" Date: Sun, 28 Sep 2025 19:00:34 -0700 Subject: [PATCH 1/3] add tool check and feature --- libunwind/test/configs

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX/AVX512 IFMA madd52 intrinsics to be used in constexpr (PR #161056)

2025-09-29 Thread Simon Pilgrim via cfe-commits
@@ -3564,6 +3564,28 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, return F; }); + case X86::BI__builtin_ia32_vpmadd52luq128: + case X86::BI__builtin_ia32_vpmadd52luq256: + case X86::BI__builtin_ia32_vpmadd52luq512: +retu

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

2025-09-29 Thread Timm Baeder via cfe-commits
@@ -2862,6 +2862,218 @@ static bool interp__builtin_blend(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_pshuflw_common(InterpState &S, CodePtr OpPC, +const CallExpr *Call) { + const unsigned N

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

2025-09-29 Thread Simon Pilgrim via cfe-commits
@@ -2862,6 +2862,218 @@ static bool interp__builtin_blend(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_pshuflw_common(InterpState &S, CodePtr OpPC, +const CallExpr *Call) { RK

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

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

[clang] 27fa1d0 - [AMDGPU] Add a new builtin type for image descriptor rsrc (#160258)

2025-09-29 Thread via cfe-commits
Author: Rana Pratap Reddy Date: 2025-09-29T20:24:59+05:30 New Revision: 27fa1d0cf96469c268c46684ced2fbb7663c7713 URL: https://github.com/llvm/llvm-project/commit/27fa1d0cf96469c268c46684ced2fbb7663c7713 DIFF: https://github.com/llvm/llvm-project/commit/27fa1d0cf96469c268c46684ced2fbb7663c7713.d

[clang] [clang][NFC] Remove const_casts from diagnostic emissions (PR #161211)

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

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

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

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

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

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

2025-09-29 Thread Simon Pilgrim via cfe-commits
@@ -39,14 +39,19 @@ typedef short __v8hi __attribute__((__vector_size__(16))); typedef char __v16qi __attribute__((__vector_size__(16))); /* Define the default attributes for the functions in this file. */ +#define __DEFAULT_FN_ATTRS_MMX \ + __attribute__((__always_inline__,

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

2025-09-29 Thread Simon Pilgrim via cfe-commits
@@ -145,6 +145,10 @@ let Features = "mmx", Header = "mmintrin.h", Attributes = [NoThrow, Const] in { def _m_prefetch : X86LibBuiltin<"void(void *)">; } +let Features = "mmx", Attributes = [NoThrow, Const, Constexpr] in { + def pshufw : X86Builtin<"_Vector<4, short>(_Vector

[clang] [clang][NFC] Remove const_casts from diagnostic emissions (PR #161211)

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

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-29 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-29 Thread Daniil Kovalev via cfe-commits
@@ -47,10 +47,10 @@ struct _LIBCXXABI_HIDDEN __cxa_exception { // In Wasm, a destructor returns its argument void *(_LIBCXXABI_DTOR_FUNC *exceptionDestructor)(void *); #else -void (_LIBCXXABI_DTOR_FUNC *exceptionDestructor)(void *); +void(_LIBCXXABI_DTOR_FUNC *_

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

2025-09-29 Thread Nagraj Gaonkar via cfe-commits
NagrajMG wrote: @RKSimon Got it, I will correct the procedure. Thanks you! https://github.com/llvm/llvm-project/pull/161210 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Support HLSL matrix initializers (PR #160960)

2025-09-29 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/160960 >From 526c1cd28ff455148c96ab1a39ef68cbf4dcfa7b Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Fri, 26 Sep 2025 14:48:22 -0400 Subject: [PATCH 1/2] Support HLSL matrix initializers fixes #159434 In HLSL matr

[clang] [Headers][X86] Allow AVX1 fixed extraction intrinsics to be used in constexpr (PR #161218)

2025-09-29 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 h,c -- clang/lib/Headers/avxintrin.h clang/test/CodeGen

[clang-tools-extra] [clang-tidy][NFC] Clarify some options use regex to matching in doc (1/N) (PR #161142)

2025-09-29 Thread via cfe-commits
https://github.com/flovent created https://github.com/llvm/llvm-project/pull/161142 Some checks use regular expressions to match option values in their implementation ​​but this is not documented, it might makes user confused. See https://github.com/llvm/llvm-project/issues/160991#issuecomment

[clang-tools-extra] [clang-reorder-fields] Check for flexible array member (PR #160262)

2025-09-29 Thread Vladimir Vuksanovic via cfe-commits
vvuksanovic wrote: Thanks, can you merge? https://github.com/llvm/llvm-project/pull/160262 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Retrieve documentation for member function instance from index (PR #153337)

2025-09-29 Thread kadir çetinkaya via cfe-commits
@@ -1887,7 +1887,19 @@ class CodeCompleteFlow { for (auto &Cand : C.first) { if (Cand.SemaResult && Cand.SemaResult->Kind == CodeCompletionResult::RK_Declaration) { -auto ID = clangd::getSymbolID(Cand.SemaResult->getDeclaration()); +

[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-09-29 Thread Daniil Kovalev via cfe-commits
@@ -384,9 +444,23 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t; #define ptrauth_cxx_vtable_pointer(key, address_discrimination, \ extra_discrimination...) +#define __ptrauth_function_pointer(__typekey) -

[clang] FIxes #156611: Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

2025-09-29 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [Clang] Add support for fp when using min_fetch/max_fetch atomics (PR #160330)

2025-09-29 Thread via cfe-commits
CarolineConcatto wrote: @Amichaxx I think you need to update your tests. It is failing: TEST 'Clang :: Sema/atomic-ops.c' FAILED * You should re-generate the CHECK lines. https://github.com/llvm/llvm-project/pull/160330 ___ cfe-commits mailing list cfe

[clang] [Clang] Add support for fp when using min_fetch/max_fetch atomics (PR #160330)

2025-09-29 Thread Amina Chabane via cfe-commits
Amichaxx wrote: @CarolineConcatto Sorry, I've been working on it just forgot to revert. https://github.com/llvm/llvm-project/pull/160330 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Remove const_casts from diagnostic emissions (PR #161211)

2025-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This is apparently not necessary anymore. Not sure when exactly it changed though. --- Full diff: https://github.com/llvm/llvm-project/pull/161211.diff 3 Files Affected: - (modified) clang/lib/Sema/Analys

[clang] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)

2025-09-29 Thread Naveen Seth Hanig via cfe-commits
@@ -0,0 +1,112 @@ +//===- ModulesDriver.h - Driver managed module builds *- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [CIR] Update ComplexRealOp to work on scalar type (PR #161080)

2025-09-29 Thread Amr Hesham via cfe-commits
=?utf-8?q?“Amr?= Message-ID: In-Reply-To: https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/161080 >From 48b11b37327d9f46f1630738a186e971c236acdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CAmr?= Date: Sun, 28 Sep 2025 14:47:13 +0200 Subject: [PATCH 1/2]

[clang] [Clang] Add support for fp when using min_fetch/max_fetch atomics (PR #160330)

2025-09-29 Thread Amina Chabane via cfe-commits
@@ -507,20 +507,35 @@ static llvm::Value *EmitPostAtomicMinMax(CGBuilderTy &Builder, bool IsSigned, llvm::Value *OldVal, llvm::Value *RHS) { + llvm::Type

[clang] [CUDA] Enable variadic argument support in front-end (PR #161305)

2025-09-29 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/161305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Introduce isNotOneOf (PR #161021)

2025-09-29 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/161021 From 4c5525b88a4f191270fa363a2c62699fd5c1fa27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Sat, 27 Sep 2025 22:32:12 +0200 Subject: [PATCH 1/3] [clang-format][NFC] Intro

[clang] [clang] Convert second arg of __builtin_assume_aligned to ConstantExpr (PR #161314)

2025-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Since the second argument must be a constant integer, we can as well convert it to a `ConstantExpr` in Sema. Fixes https://github.com/llvm/llvm-project/issues/161272 --- Full diff: https://github.com/llvm/

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX/AVX512 IFMA madd52 intrinsics to be used in constexpr (PR #161056)

2025-09-29 Thread NagaChaitanya Vellanki via cfe-commits
@@ -3564,6 +3564,28 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, return F; }); + case X86::BI__builtin_ia32_vpmadd52luq128: + case X86::BI__builtin_ia32_vpmadd52luq256: + case X86::BI__builtin_ia32_vpmadd52luq512: +retu

[clang] [Darwin][Driver] Avoid duplicate -lc++ with -fsanitize=fuzzer (PR #161304)

2025-09-29 Thread Andrew Haberlandt via cfe-commits
https://github.com/ndrewh updated https://github.com/llvm/llvm-project/pull/161304 >From e35fdcd4e95916cc8046365f4a84811434654c5f Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Mon, 29 Sep 2025 18:12:24 -0700 Subject: [PATCH] [Darwin][Driver] Avoid duplicate -lc++ with -fsanitize=fuzzer

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

2025-09-29 Thread Julia Hansbrough via cfe-commits
@@ -167,6 +167,12 @@ New checks Detects default initialization (to 0) of variables with ``enum`` type where the enum has no enumerator with value of 0. +- New :doc:`bugprone-loop-variable-copied-then-modified + ` check. + + Detects when a loop variable is copied and then

[clang] [clang] Convert second arg of __builtin_assume_aligned to ConstantExpr (PR #161314)

2025-09-29 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/161314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix code synthesis context depth limit logic (PR #161103)

2025-09-29 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/161103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 668f56d - [analyzer] CStringChecker: Fix crash in `CheckOverlap` when arguments are not pointers (#160511)

2025-09-29 Thread via cfe-commits
Author: guillem-bartrina-sonarsource Date: 2025-09-29T13:37:47Z New Revision: 668f56d003901345e14a0efad39aede0cc90 URL: https://github.com/llvm/llvm-project/commit/668f56d003901345e14a0efad39aede0cc90 DIFF: https://github.com/llvm/llvm-project/commit/668f56d003901345e14a0efad39aede0

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

2025-09-29 Thread via cfe-commits
Author: Alex Voicu Date: 2025-09-29T22:50:15+01:00 New Revision: d481e5f9b7f4bde74fc4909a8a67bbd758991b33 URL: https://github.com/llvm/llvm-project/commit/d481e5f9b7f4bde74fc4909a8a67bbd758991b33 DIFF: https://github.com/llvm/llvm-project/commit/d481e5f9b7f4bde74fc4909a8a67bbd758991b33.diff LO

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

2025-09-29 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx closed 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] [CIR] Implement handling for VectorType with size 3 (PR #161232)

2025-09-29 Thread Andy Kaylor via cfe-commits
@@ -565,13 +580,31 @@ mlir::Value CIRGenFunction::emitLoadOfScalar(Address addr, bool isVolatile, return nullptr; } -const auto vecTy = cast(eltTy); +// Handles vectors of sizes that are likely to be expanded to a larger size +// to optimize performance.

[clang] [CIR] Implement handling for VectorType with size 3 (PR #161232)

2025-09-29 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR +// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll +//

[clang] [CIR] Implement handling for VectorType with size 3 (PR #161232)

2025-09-29 Thread Andy Kaylor via cfe-commits
@@ -60,6 +60,15 @@ clang::CIRGen::createX8664TargetCIRGenInfo(CIRGenTypes &cgt) { ABIInfo::~ABIInfo() noexcept = default; +cir::VectorType +ABIInfo::getOptimalVectorMemoryType(cir::VectorType ty, +const LangOptions &opt) const { + if (ty.

[clang] [CIR] Implement handling for VectorType with size 3 (PR #161232)

2025-09-29 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/161232 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement handling for VectorType with size 3 (PR #161232)

2025-09-29 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor commented: This really feels like an optimization that has no business happening in codegen. @bcardosolopes , @erichkeane What do you think? https://github.com/llvm/llvm-project/pull/161232 ___ cfe-commits mailing list

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2025-09-29 Thread Reid Kleckner via cfe-commits
rnk wrote: Please avoid derailing into off-topic conversations about hardware/software freedom and control. All these things are important to me (even as a Google employee), but having to read through them to find principled objections to the patch as-is is an obstacle to approving it! It see

[clang-tools-extra] [clang-tidy][NFC] Clarify some options use regex to matching in doc (1/N) (PR #161142)

2025-09-29 Thread Victor Chernyakin via cfe-commits
@@ -122,25 +122,26 @@ Options .. option:: PrintfLikeFunctions - A semicolon-separated list of (fully qualified) function names to - replace, with the requirement that the first parameter contains the - printf-style format string and the arguments to be formatted follow

[clang] [clang-tools-extra] [clang][Tooling] Support 'c++latest' in InterpolatingCompilationDatabase (PR #160030)

2025-09-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/160030 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >