[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-06 Thread Vassil Vassilev via cfe-commits
@@ -533,11 +655,19 @@ llvm::Error Interpreter::CreateExecutor() { } llvm::Error Err = llvm::Error::success(); + + // Fix: Declare Executor as the appropriate unique_ptr type + std::unique_ptr Executor; + #ifdef __EMSCRIPTEN__ - auto Executor = std::make_unique(*TSCtx);

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-06 Thread Vassil Vassilev via cfe-commits
@@ -29,13 +29,18 @@ set(CLANG_LIBS_TO_LINK ) endif() -add_distinct_clang_unittest(ClangReplInterpreterTests +set(CLANG_REPL_TEST_SOURCES IncrementalCompilerBuilderTest.cpp IncrementalProcessingTest.cpp InterpreterTest.cpp InterpreterExtensionsTest.cpp CodeComp

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-06 Thread Vassil Vassilev via cfe-commits
@@ -347,20 +348,116 @@ const char *const Runtimes = R"( EXTERN_C void __clang_Interpreter_SetValueNoAlloc(void *This, void *OutVal, void *OpaqueType, ...); )"; +llvm::Expected, uint32_t>> +Interpreter::outOfProcessJITBuilder(JITConfig Config) { + std::unique_ptr EPC; + ui

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-06 Thread Vassil Vassilev via cfe-commits
@@ -275,10 +331,10 @@ int main(int argc, const char **argv) { if (!CudaPath.empty()) CB.SetCudaSDK(CudaPath); -if (OffloadArch.empty()) { - OffloadArch = "sm_35"; +if (::OffloadArch.empty()) { + ::OffloadArch = "sm_35"; } -CB.SetOffloadArch

[clang] [Clang][bytecode] interp__builtin_elementwise_binop - remove unused BuiltinID argument. NFC (PR #157109)

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

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

2025-09-06 Thread Hans Wennborg via cfe-commits
zmodem wrote: > can you please file an issue so that this doesn't get dropped. Filed https://github.com/llvm/llvm-project/issues/157073 > Not sure who's going to take care of fixing it... I was hoping @sivadeilra would, since this was his PR :) https://github.com/llvm/llvm-project/pull/144745

[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

2025-09-06 Thread Benjamin Maxwell via cfe-commits
@@ -6,49 +6,55 @@ #include -// CHECK-C-LABEL: define dso_local i64 @test_svcntsb( +// CHECK-C-LABEL: define dso_local range(i64 0, -9223372036854775808) i64 @test_svcntsb( MacDue wrote: Do you know where these range attributes have come from? From the lang

[clang] [clang] fix definition data not being propagated to all redecls (PR #157019)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This fixes the workaround added in 8a63989, so that when a fake definition data is corrected, all redeclarations are also updated to point to it. Since this regression was never released, there are no re

[clang] [clang] Add [system] label to modules from resource headers (PR #156934)

2025-09-06 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu approved this pull request. LGTM! Thanks! https://github.com/llvm/llvm-project/pull/156934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix incorrect array initialization with string literal (fixes #112189) (PR #156846)

2025-09-06 Thread via cfe-commits
@@ -168,16 +168,95 @@ bool Sema::IsStringInit(Expr *Init, const ArrayType *AT) { return ::IsStringInit(Init, AT, Context) == SIF_None; } +static StringLiteral *CloneStringLiteral(const StringLiteral *SL, + ASTContext &C) { + SourceLoc

[clang] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-06 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/157321 Avoids more Triple->string->Triple round trip. This is a continuation of f137c3d592e96330e450a8fd63ef7e8877fc1908 >From 233037d81eee84cc6aafd0708758f898e6b96593 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date

[clang] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-06 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk created https://github.com/llvm/llvm-project/pull/157171 Before emitting warning about locks being held at the end of function scope check if the underlying mutex is function scoped or not. >From ab96f50667d5b775676c88be124578c050f36d47 Mon Sep 17 00:00:00 2001 From:

[clang-tools-extra] [clang-tidy] Add new '-hide-progress' option to tidy-scripts for suppressing progress information (PR #154416)

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

[clang] [llvm] [RISCV] Support ZVqdot Codegen and C intrinsics (PR #154915)

2025-09-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/21516 Here is the relevant pie

[clang] [clang][bytecode] Remove unused reportOverflow() (PR #157225)

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

[clang] [clang] Allow attributes in constructor argument list in pre-C++11 (PR #157300)

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

[clang] [Clang][bytecode] Add interp__builtin_elementwise_triop_fp to handle general 3-operand floating point intrinsics (PR #157106)

2025-09-06 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/157106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Improve handling of placement new in `PointerArith` (PR #155855)

2025-09-06 Thread Arseniy Zaostrovnykh via cfe-commits
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?= Message-ID: In-Reply-To: https://github.com/necto approved this pull request. https://github.com/llvm/llvm-project/pull/155855

[clang] [llvm] [RISCV] Support ZVqdot Codegen and C intrinsics (PR #154915)

2025-09-06 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,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/12152 Here is the

[clang] [lldb] [clang][Expr] Teach IgnoreUnlessSpelledInSource about implicit calls to std::get free function (PR #122265)

2025-09-06 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/122265 >From a9e13ad8d2a7a95d431dddcced611bea1e83b99a Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 9 Jan 2025 10:01:31 + Subject: [PATCH 01/10] [clang][DebugInfo] Expand detection of structured bindin

[clang] [CIR] Add support for delegating constructors with VTT args (PR #156970)

2025-09-06 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/156970 >From 6a4aa7928818708adfb0fa1edeaa7db87825e4ad Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 3 Sep 2025 15:47:38 -0700 Subject: [PATCH 1/2] [CIR] Add support for delegating constructors with VTT args

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

2025-09-06 Thread via cfe-commits
@@ -0,0 +1,39 @@ + EugeneZelenko wrote: ```suggestion ``` 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-com

[clang] [Clang] Add template argument support for {con,de}structor attributes. (PR #151400)

2025-09-06 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_enabled https://github.com/llvm/llvm-project/pull/151400 ___ 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] Enable `readability-container-contains` check in clang-tidy config and apply fix-its (PR #157123)

2025-09-06 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Note that this check currently has false negatives on strings. https://github.com/llvm/llvm-project/issues/109327 https://github.com/llvm/llvm-project/pull/110351 was a first PR trying to tackle this. I was planning to take it over soon but haven't gotten around to it. IMO the

[clang] [CIR] Implement CXX field default initialization (PR #157140)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This adds the code needed to handle default initialization for fields of various types. --- Patch is 21.62 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/157

[clang] [clang] Fix of test 'ctu-import-type-decl-definition.c' (NFC) (PR #157038)

2025-09-06 Thread Balázs Kéri via cfe-commits
balazske wrote: The test (which is fixed here) was added in #156056 which was already a fix of the same test in #155375. https://github.com/llvm/llvm-project/pull/157038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [CIR] Add support for delegating constructor initialization (PR #156757)

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

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-09-06 Thread Sebastian Proell via cfe-commits
https://github.com/sebproell updated https://github.com/llvm/llvm-project/pull/156199 >From ce6fb88dadbfa996fe07ea381e3ffca94330af43 Mon Sep 17 00:00:00 2001 From: Sebastian Proell Date: Sat, 30 Aug 2025 14:46:25 +0200 Subject: [PATCH] [Clang] Add diagnostic for why std::is_abstract is false -

[clang] 66e7168 - [clang][bytecode][NFC] Use an early return in CheckLoad (#157105)

2025-09-06 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-05T15:56:10+02:00 New Revision: 66e7168f5e19917f98d5983bf8f86a46203bc92a URL: https://github.com/llvm/llvm-project/commit/66e7168f5e19917f98d5983bf8f86a46203bc92a DIFF: https://github.com/llvm/llvm-project/commit/66e7168f5e19917f98d5983bf8f86a46203bc92a.diff L

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-06 Thread Rick van Voorden via cfe-commits
https://github.com/vanvoorden edited https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Consildate CIRGenExprCXX.cpp files (PR #157169)

2025-09-06 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/157169 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-06 Thread Vassil Vassilev via cfe-commits
@@ -115,31 +116,60 @@ class Interpreter { /// An optional compiler instance for CUDA offloading std::unique_ptr DeviceCI; +public: + struct OutOfProcessJITConfig { +/// Indicates whether out-of-process JIT execution is enabled. +bool IsOutOfProcess; +/// Path

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-06 Thread Nicolas van Kempen via cfe-commits
@@ -230,6 +230,10 @@ Changes in existing checks ` check to avoid false positives on pure virtual member functions. +- Fixed false negatives on string and string-like types in nicovank wrote: Sure. Was there official guidelines for this? It wasn't the case

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-06 Thread via cfe-commits
@@ -142,6 +142,12 @@ New checks Finds calls to ``operator[]`` in STL containers and suggests replacing them with safe alternatives. +- New :doc:`google-runtime-float + ` check. + + Checks for and warns of uses of the ``long double`` type, which is Eugene

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Design Overview (PR #126654)

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

[clang] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

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

[clang] X86: make the set/r/4 intrinsics macros into functions (PR #156819)

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

[clang] [clang] Followup for constexpr-unknown potential constant expressions. (PR #151053)

2025-09-06 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja milestoned https://github.com/llvm/llvm-project/pull/151053 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix OOB read in SemaSwift::validateSwiftFunctionName (PR #157139)

2025-09-06 Thread via cfe-commits
https://github.com/camc created https://github.com/llvm/llvm-project/pull/157139 Resolves #157075 This was causing an assertion failure on _attribute__((swift_name(""))). Fix ensures this case shows the dwarn_attr_swift_name_function diagnostic as expected. >From c7d92f87a75e21a3e571ca10b635

[clang] [llvm] [OpenMP] Fix non-contiguous array omp target update (PR #156889)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-offload Author: Ivan R. Ivanov (ivanradanov) Changes The existing implementation has three issues which this patch addresses. 1. The last dimension which represents the bytes in the type, has the wrong stride and count. For example, for a 4 byte int, c

[clang] [analyzer] Consolidate the va_list checkers (PR #156682)

2025-09-06 Thread Donát Nagy via cfe-commits
@@ -1859,6 +1859,32 @@ this) and always check the return value of these calls. This check corresponds to SEI CERT Rule `POS36-C `_. +.. _security-VAList: +

[clang] [clang][analyzer] Model `strxfrm` (PR #156507)

2025-09-06 Thread Alejandro Álvarez Ayllón via cfe-commits
@@ -2322,30 +2323,25 @@ void CStringChecker::evalStrxfrm(CheckerContext &C, StateSuccess = invalidateDestinationBufferBySize( C, StateSuccess, Dest.Expression, Call.getCFGElementRef(), DestVal, SizeVal, Size.Expression->getType()); - - StateSucces

[clang] [clang][bytecode] Remove unused reportOverflow() (PR #157225)

2025-09-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang` at step 6 "test-build-unified-tree-check-cross-project". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/bu

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-06 Thread Steven Perron via cfe-commits
https://github.com/s-perron closed https://github.com/llvm/llvm-project/pull/156075 ___ 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-06 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,100 @@ + +//===--===// +// +// 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] [Clang][bytecode] Add interp__builtin_elementwise_triop_fp to handle general 3-operand floating point intrinsics (PR #157106)

2025-09-06 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/157106 >From 4d6078f92740efa3f109b85492f43b8fadd39b03 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 5 Sep 2025 14:32:07 +0100 Subject: [PATCH 1/2] [Clang][bytecode] Add interp__builtin_elementwise_triop_fp t

[clang] Fix GH112189 (PR #156846)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (awson) Changes Following [the suggestion of @zygoloid](https://github.com/llvm/llvm-project/issues/112189#issuecomment-3172788105) `updateStringLiteralType` now recursively clones subexpressions which types it modifies. Done as a s

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

2025-09-06 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis 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] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

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

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-06 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156075 >From aaecbc5efd38190e8aedd9b3e3c95b2ede791a09 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Fri, 29 Aug 2025 13:40:55 -0400 Subject: [PATCH 1/8] [HLSL] Add copy assignment and construtor to resource type

[clang] [X86][bytecode] Allow SSE/AVX PBLENDVB intrinsics to be used in constexpr (PR #157100)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes BLENDV intrinsics use the signbit of the condition mask to select between the LHS (false) and RHS (true) operands First part of #157066 - the BLENDVPS/D requires floatbits hacking which I need to do some p

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-06 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-06 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156075 >From aaecbc5efd38190e8aedd9b3e3c95b2ede791a09 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Fri, 29 Aug 2025 13:40:55 -0400 Subject: [PATCH 1/7] [HLSL] Add copy assignment and construtor to resource type

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-06 Thread Abhinav Kumar via cfe-commits
@@ -347,20 +348,110 @@ const char *const Runtimes = R"( EXTERN_C void __clang_Interpreter_SetValueNoAlloc(void *This, void *OutVal, void *OpaqueType, ...); )"; +llvm::Expected, uint32_t>> +Interpreter::outOfProcessJITBuilder(JITConfig Config) { + std::unique_ptr EPC; + ui

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-06 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,34 @@ +//===--===// +// +// 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] [CIR] Add support for __builtin_alloca (PR #157116)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Morris Hafner (mmha) Changes This patch adds support for the alloca builtin and extends AllocaOp with a dynamic size argument. --- Full diff: https://github.com/llvm/llvm-project/pull/157116.diff 8 Files Affected: - (modified) clang/

[clang] Don't mark lambda non-dependent if nested in a generic lambda. (PR #149121)

2025-09-06 Thread Daniel M. Katz via cfe-commits
katzdm wrote: > @katzdm > > I apologize for the long delay. After a second thought, I think the patch > should work as expected. > > Can you please rebase the patch and also add a test case for #156579? The > added constant evaluation context reveals another bug, where we considered > lambda

[clang] [clang][bytecode] Remove unused reportOverflow() (PR #157225)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/157225.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpState.cpp (-6) - (modified) clang/lib/AST/ByteCode/InterpState.h (-3) `

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

2025-09-06 Thread Erich Keane via cfe-commits
@@ -1557,6 +1557,23 @@ def HIPManaged : InheritableAttr { let Documentation = [HIPManagedAttrDocs]; } +def CUDAClusterDims : InheritableAttr { + let Spellings = [GNU<"cluster_dims">, Declspec<"__cluster_dims__">]; erichkeane wrote: these spellings don't lo

[clang] Revert "[clang][Modules] Reporting Errors for Duplicating Link Declar… (PR #157154)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiongsi Wu (qiongsiwu) Changes …ations in `modulemap`s (#148959)" This reverts commit 538e9e8ebd09233b3900ed2dfd23e4e1ca5c9fc0 for two reasons. 1. Link decls in submodules can make sense even if the submodule is not explicit. We need to

[clang] d1050bf - [Clang][bytecode] Add interp__builtin_elementwise_triop to handle general 3-operand integer intrinsics (#156944)

2025-09-06 Thread via cfe-commits
Author: Simon Pilgrim Date: 2025-09-05T08:19:32Z New Revision: d1050bf86d61ffc2abcff798671193b2f702bf87 URL: https://github.com/llvm/llvm-project/commit/d1050bf86d61ffc2abcff798671193b2f702bf87 DIFF: https://github.com/llvm/llvm-project/commit/d1050bf86d61ffc2abcff798671193b2f702bf87.diff LOG:

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

2025-09-06 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp,c -- clang/test/CodeGen/RISCV/attr-hw-shadow-stack.

[clang] [libcxx] [lldb] [llvm] [polly] [python] remove Python 3.9 specific typing annotations (PR #156868)

2025-09-06 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/156868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

2025-09-06 Thread Bhasawut Singhaphan via cfe-commits
markbhasawut wrote: > we still need to handle the mask/maskz variants in avx512vlintrin.h + > avx512vlbwintrin.h My bad, I forgot to add them. 😅 https://github.com/llvm/llvm-project/pull/156901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

2025-09-06 Thread Benjamin Maxwell via cfe-commits
@@ -14,6 +14,21 @@ namespace mlir::arm_sme { +unsigned getSizeInBytes(TypeSize type) { + switch (type) { + case arm_sme::TypeSize::Byte: +return 1; + case arm_sme::TypeSize::Half: +return 2; + case arm_sme::TypeSize::Word: +return 4; + case arm_sme::TypeSize:

[clang] [clang][docs] Add note about `-Wms-bitfield-padding` in MSVC compatibility docs (PR #155770)

2025-09-06 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 edited https://github.com/llvm/llvm-project/pull/155770 ___ 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_alloca (PR #157116)

2025-09-06 Thread Andy Kaylor via cfe-commits
@@ -149,6 +149,57 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, emitVAEnd(emitVAListRef(e->getArg(0)).getPointer()); return {}; + case Builtin::BIalloca: + case Builtin::BI_alloca: + case Builtin::BI__builtin_alloca_uninitializ

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-06 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,78 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apac

[clang-tools-extra] [clang-tidy] Rename 'cert-err34-c' to 'bugprone-unchecked-string-to-number-conversion' (PR #157285)

2025-09-06 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/157285 >From 7e840223731c6750f3d884a63ab7fd67f43494a1 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sat, 6 Sep 2025 19:16:53 +0300 Subject: [PATCH 1/2] [clang-tidy] Add new alias 'bugprone-unchecked-string-to-n

[clang] Fix incorrect array initialization with string literal (fixes #112189) (PR #156846)

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

[clang] [clang][PAC] Enable the PAC dynamic_cast to final class optimization (PR #152601)

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

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

2025-09-06 Thread via cfe-commits
https://github.com/camc updated https://github.com/llvm/llvm-project/pull/157300 >From f4380abad3d19c7234cf632afca5413ec1a9c97e Mon Sep 17 00:00:00 2001 From: camc <69519329+c...@users.noreply.github.com> Date: Sat, 6 Sep 2025 18:44:57 + Subject: [PATCH 1/3] [clang] Allow attributes in constr

[clang] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-06 Thread Matt Arsenault via cfe-commits
arsenm wrote: * **#157321** https://app.graphite.dev/github/pr/llvm/llvm-project/157321?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/15732

[clang] [llvm] Enable fexec-charset option (PR #138895)

2025-09-06 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: > but this is going to need a lot more tests For preprocessor string concatenation and escape sequences within strings, the shift-sequence behaviour for stateful encodings would be of interest. Additionally of interest is the treatment of bytes matching the encodi

[clang] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matt Arsenault (arsenm) Changes Avoids more Triple->string->Triple round trip. This is a continuation of f137c3d592e96330e450a8fd63ef7e8877fc1908 --- Patch is 80.19 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm

[clang] [llvm] [mlir] MC: Add Triple overloads for more MC constructors (PR #157321)

2025-09-06 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/157321 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [polly] Import and Export `getXXXPluginInfo` from embedded plugin such as Polly (PR #156440)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Tomohiro Kashiwada (kikairoya) Changes Fixes #152328 For exporting: Since the declaration/definition of `getPollyPluginInfo` is embedded into the LLVM DLL using `add_llvm_pass_plugin`, which defines `LLVM_BUILD_STATIC` by the eff

[clang] [flang] [llvm] [polly] Import and Export `getXXXPluginInfo` from embedded plugin such as Polly (PR #156440)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lto @llvm/pr-subscribers-clang Author: Tomohiro Kashiwada (kikairoya) Changes Fixes #152328 For exporting: Since the declaration/definition of `getPollyPluginInfo` is embedded into the LLVM DLL using `add_llvm_pass_plugin`, which defines `LLVM_BUILD_ST

[clang] [flang] [llvm] [polly] Import and Export `getXXXPluginInfo` from embedded plugin such as Polly (PR #156440)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Tomohiro Kashiwada (kikairoya) Changes Fixes #152328 For exporting: Since the declaration/definition of `getPollyPluginInfo` is embedded into the LLVM DLL using `add_llvm_pass_plugin`, which defines `LLVM_BUILD_STATIC` by the effe

[clang] c75c136 - [clang][PAC] Enable the PAC dynamic_cast to final class optimization (#152601)

2025-09-06 Thread via cfe-commits
Author: Oliver Hunt Date: 2025-09-06T20:02:43-07:00 New Revision: c75c136169bff82622deaa256875fc3dd688e002 URL: https://github.com/llvm/llvm-project/commit/c75c136169bff82622deaa256875fc3dd688e002 DIFF: https://github.com/llvm/llvm-project/commit/c75c136169bff82622deaa256875fc3dd688e002.diff L

[clang] [clang][PAC] Enable the PAC dynamic_cast to final class optimization (PR #152601)

2025-09-06 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/152601 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-06 Thread Yanzuo Liu via cfe-commits
@@ -308,6 +308,8 @@ Bug Fixes in This Version - Builtin elementwise operators now accept vector arguments that have different qualifiers on their elements. For example, vector of 4 ``const float`` values and vector of 4 ``float`` values. (#GH155405) +- Fix the check for nar

[clang-tools-extra] [clang-tidy] Remove 'clang-analyzer-*' checks from default checks. (PR #157306)

2025-09-06 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/157306 Closes https://github.com/llvm/llvm-project/issues/146482. >From 4ab549990f3dc3f59a6346b32687e5ecbd495586 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sat, 6 Sep 2025 22:54:31 +0300 Subject: [PATCH] [cl

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-06 Thread Victor Chernyakin via cfe-commits
@@ -185,6 +185,10 @@ Changes in existing checks adding an option to allow pointer arithmetic via prefix/postfix increment or decrement operators. +- Improved :doc:`misc-const-correctness + ` check to diagnose + variables declared with ``auto``. localspoo

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes Fixes #60789. Currently, the check will never make `auto` variables `const`. Here's the relevant bit of code: https://github.com/llvm/llvm-project/blob/6b200e21adec0e28407def6fcb2e6c7359fd881b/

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-06 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/157319 Fixes #60789. Currently, the check will never make `auto` variables `const`. Here's the relevant bit of code: https://github.com/llvm/llvm-project/blob/6b200e21adec0e28407def6fcb2e6c7359fd881b/clang-tools-e

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-06 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. https://github.com/llvm/llvm-project/pull/157174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-06 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/157174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

[clang] [llvm] [OpenMP] Fix non-contiguous array omp target update (PR #156889)

2025-09-06 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp -- clang/lib/CodeGen/CGOpenMPRuntime.cpp clang/tes

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

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

[clang] [clang] Allow attributes in constructor argument list in pre-C++11 (PR #157300)

2025-09-06 Thread via cfe-commits
https://github.com/camc updated https://github.com/llvm/llvm-project/pull/157300 >From f4380abad3d19c7234cf632afca5413ec1a9c97e Mon Sep 17 00:00:00 2001 From: camc <69519329+c...@users.noreply.github.com> Date: Sat, 6 Sep 2025 18:44:57 + Subject: [PATCH 1/2] [clang] Allow attributes in constr

[clang] [AArch64] Enable out-of-line atomics by default (PR #157241)

2025-09-06 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/157241 >From 7be5a25b65e728dfcae6f7b6587c5db7fa2d5dec Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 6 Sep 2025 03:43:30 -0400 Subject: [PATCH] [AArch64] Enable out-of-line atomics by default --- clang/include/cl

[clang] [llvm] Enable fexec-charset option (PR #138895)

2025-09-06 Thread Hubert Tong via cfe-commits
@@ -0,0 +1,35 @@ +// RUN: %clang_cc1 %s -emit-llvm -triple s390x-none-zos -fexec-charset IBM-1047 -o - | FileCheck %s hubert-reinterpretcast wrote: Should there be tests here for predefined variables like `__func__` and `__PRETTY_FUNCTION__`, for predefined mac

[clang] Fix incorrect array initialization with string literal (fixes #112189) (PR #156846)

2025-09-06 Thread via cfe-commits
awson wrote: > Thanks for working on this. > > I have some concerns that we do that transformation even in non template > contexts, it seems a fairly big hammer. Can you try to find ways to limit how > often the cloning is done? id you explore the other suggestion made by > @zygoloid at all ?

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

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

[clang-tools-extra] [clang-tidy] Remove 'clang-analyzer-*' checks from default checks. (PR #157306)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes Closes https://github.com/llvm/llvm-project/issues/146482. --- Full diff: https://github.com/llvm/llvm-project/pull/157306.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/to

[clang] [llvm] [RISCV] Implement MC support for Zvfofp8min extension (PR #157014)

2025-09-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) Changes This patch adds MC support for Zvfofp8min https://github.com/aswaterman/riscv-misc/blob/main/isa/zvfofp8min.adoc. --- Full diff: https://github.com/llvm/llvm-project/pull/157014.diff 15 Files Affected:

[clang-tools-extra] [clang-tidy] Rename 'cert-err34-c' to 'bugprone-unchecked-string-to-number-conversion' (PR #157285)

2025-09-06 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/157285 >From d94e0b12914e64a851f5a41cd5bbfb982ed285de Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sat, 6 Sep 2025 19:16:53 +0300 Subject: [PATCH 1/2] [clang-tidy] Add new alias 'bugprone-unchecked-string-to-n

[clang-tools-extra] [clang-tidy] Rename 'cert-err34-c' to 'bugprone-unchecked-string-to-number-conversion' (PR #157285)

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

  1   2   >