[clang] [DTLTO][PS4,PS5] Suppress system headers directory warning (PR #167685)

2025-11-12 Thread Ben Dunbobbin via cfe-commits
https://github.com/bd1976bris updated https://github.com/llvm/llvm-project/pull/167685 >From 4d87c937214aea1efd02f5e60f77ec3ecc12bb67 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 12 Nov 2025 12:19:44 + Subject: [PATCH 1/3] [DTLTO][PS5] Suppress system headers directory warning The PS5 dri

[clang] [Clang][CodeGen] Use EmitLoadOfLValue instead of EmitLoadOfScalar to get LHS for complex compound assignment (PR #166798)

2025-11-12 Thread Benjamin Stott via cfe-commits
https://github.com/BStott6 updated https://github.com/llvm/llvm-project/pull/166798 >From eab7dd02ab238c0029c2f0fc9a7f8f3ce1ab055c Mon Sep 17 00:00:00 2001 From: BStott Date: Thu, 6 Nov 2025 16:25:54 + Subject: [PATCH 1/6] [Clang][CodeGen] Use EmitLoadOfLValue instead of EmitLoadOfScalar t

[clang] [Clang][NFC] Fix a typo in FunctionDecl (PR #167677)

2025-11-12 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 auto_merge_enabled https://github.com/llvm/llvm-project/pull/167677 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [Clang][CodeGen] Add disable_sanitizer_instrumentation attribute to multiversion resolvers (PR #167516)

2025-11-12 Thread Benjamin Stott via cfe-commits
https://github.com/BStott6 updated https://github.com/llvm/llvm-project/pull/167516 >From d7f4973b3066649d47605f3d235d9f25f9d7e7ed Mon Sep 17 00:00:00 2001 From: BStott Date: Tue, 11 Nov 2025 14:51:02 + Subject: [PATCH 1/4] [Clang] Add disable_sanitizer_instrumentation attribute to multive

[clang] [CIR] Cast record size to uint64 to prevent overflow (PR #167525)

2025-11-12 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner created https://github.com/llvm/llvm-project/pull/167525 `llvm::TypeSize` uses 64bit integers, so we should cast the `recordSize` before multiplying by 8 to prevent an overflow. From 393202b15d6851e147cbd60344d712f522655a5c Mon Sep 17 00:00:00 2001 From: hhueb

[clang] [Clang] Introduce malloc_span attribute (PR #167010)

2025-11-12 Thread Aleksandr Nogikh via cfe-commits
https://github.com/a-nogikh updated https://github.com/llvm/llvm-project/pull/167010 >From e0fa07d42042a391fc92c71e6e2e378dd58a775b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 17 Oct 2025 18:05:36 +0200 Subject: [PATCH 1/2] [Clang] Introduce malloc_span attribute The "malloc" at

[clang] [llvm] [HLSL][SPIR-V] Implement vk::push_constant (PR #166793)

2025-11-12 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/166793 From d326ece034bcc9a6b9bb12b094fb32533448ceb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Wed, 5 Nov 2025 16:37:37 +0100 Subject: [PATCH] [HLSL][SPIR-V] Implement vk::push_constant TODO

[clang-tools-extra] [clang-tidy][docs][NFC] Enforce 80 characters limit (2/N) (PR #167632)

2025-11-12 Thread Baranov Victor via cfe-commits
@@ -5,6 +5,8 @@ cppcoreguidelines-c-copy-assignment-signature = -The `cppcoreguidelines-c-copy-assignment-signature` check is an alias, please see -:doc:`misc-unconventional-assign-operator <../misc/unconventional-assign-operator>`

[clang] [C++20] [Modules] Don't import initializer/pending implicit instantiations from other named module (PR #167468)

2025-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes Close https://github.com/llvm/llvm-project/issues/166068 The cause of the problem is that we would import initializers and pending implicit instantiations from other named module. This is very bad a

[clang] [llvm] [HLSL][SPIR-V] Implement vk::push_constant (PR #166793)

2025-11-12 Thread Nathan Gauër via cfe-commits
@@ -3846,6 +3851,7 @@ static bool IsDefaultBufferConstantDecl(VarDecl *VD) { QT.getAddressSpace() == LangAS::Default && VD->getStorageClass() != SC_Static && !VD->hasAttr() && + !VD->hasAttr() && Keenuts wrote: Right, and I s

[clang-tools-extra] [clang-tidy][docs][NFC] Enforce 80 characters limit (2/N) (PR #167632)

2025-11-12 Thread Baranov Victor via cfe-commits
@@ -5,6 +5,7 @@ cppcoreguidelines-explicit-virtual-functions -The `cppcoreguidelines-explicit-virtual-functions` check is an alias, please see +The `cppcoreguidelines-explicit-virtual-functions` check is an alias, +please see :doc

[clang] [BoundsSafety] build TypeLoc for CountAttributedType (PR #167287)

2025-11-12 Thread Henrik G. Olsson via cfe-commits
@@ -253,20 +321,36 @@ static void EmitIncompleteCountedByPointeeNotes(Sema &S, << CATy->getPointeeType(); } - // Suggest using __sized_by(_or_null) instead of __counted_by(_or_null) as - // __sized_by(_or_null) doesn't have the complete type restriction. - // - /

[clang] [DTLTO][PS4,PS5] Suppress system headers directory warning (PR #167685)

2025-11-12 Thread Ben Dunbobbin via cfe-commits
@@ -33,6 +36,11 @@ /// headers and libraries. // RUN: env SCE_PROSPERO_SDK_DIR=.. %clang @%t.rsp %s 2>&1 | FileCheck -check-prefixes=WARN-SYS-HEADERS,WARN-SYS-LIBS,NO-WARN %s +/// -fthinlto-index= warning suppression. +// RUN: %clang -O2 %s -flto=thin -c -o %t.o +// RUN: llvm

[clang] clang: Only prevent hip driver tests from running on windows (PR #167623)

2025-11-12 Thread Matt Arsenault via cfe-commits
arsenm wrote: Tried to get windows to work but I can't debug the bot failure blindly https://github.com/llvm/llvm-project/pull/167623 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DTLTO][PS4,PS5] Suppress system headers directory warning (PR #167685)

2025-11-12 Thread Ben Dunbobbin via cfe-commits
@@ -33,6 +36,11 @@ /// headers and libraries. // RUN: env SCE_PROSPERO_SDK_DIR=.. %clang @%t.rsp %s 2>&1 | FileCheck -check-prefixes=WARN-SYS-HEADERS,WARN-SYS-LIBS,NO-WARN %s +/// -fthinlto-index= warning suppression. +// RUN: %clang -O2 %s -flto=thin -c -o %t.o +// RUN: llvm

[clang] [CMake][Release] Stop linking against stage1 runtimes (PR #164017)

2025-11-12 Thread Tom Stellard via cfe-commits
https://github.com/tstellar milestoned https://github.com/llvm/llvm-project/pull/164017 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 masked arithmetic ss/sd intrinsics to be used in constexpr (PR #162816)

2025-11-12 Thread Simon Pilgrim via cfe-commits
@@ -3814,6 +3844,8 @@ __m128d test_mm_maskz_div_sd(__mmask8 __U, __m128d __A, __m128d __B) { // CHECK-NEXT: insertelement <2 x double> %{{.*}}, double %{{.*}}, i64 0 return _mm_maskz_div_sd(__U,__A,__B); } +TEST_CONSTEXPR(match_m128d(_mm_maskz_div_sd(0x1, (__m128d)(__v2df

[clang] clang: Remove requires system from hip driver tests (PR #167623)

2025-11-12 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/167623 >From 73fa0907ac2f043807f1db0821501f48341aaa14 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 13 Nov 2024 16:29:20 -0800 Subject: [PATCH 1/3] clang: Remove requires system from hip driver tests --- cl

[clang] [llvm] [HLSL] Add load overload with status (PR #166449)

2025-11-12 Thread Justin Bogner via cfe-commits
@@ -175,6 +175,9 @@ def int_spv_rsqrt : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty] def int_spv_resource_getpointer : DefaultAttrsIntrinsic<[llvm_anyptr_ty], [llvm_any_ty, llvm_i32_ty], [IntrNoMem]>; + def int_spv_resourc

[clang-tools-extra] [clangd] Find better insertion locations in DefineOutline tweak (PR #128164)

2025-11-12 Thread Christian Kandeler via cfe-commits
@@ -548,59 +601,193 @@ class DefineOutline : public Tweak { return std::move(*Effect); } - // Returns the most natural insertion point for \p QualifiedName in \p - // Contents. This currently cares about only the namespace proximity, but in - // feature it should also