[clang] [libcxx] [Clang] Allow __builtin_fma/fmaf/fmal to be used in a constant expression (PR #158048)

2025-10-20 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: So, what's the next step here please? https://github.com/llvm/llvm-project/pull/158048 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Move shared interp functions to InterpHelpers.h (PR #164215)

2025-10-20 Thread Oliver Hunt via cfe-commits
@@ -22,6 +22,7 @@ #include "Function.h" #include "InterpBuiltinBitCast.h" #include "InterpFrame.h" +#include "InterpHelpers.h" ojhunt wrote: is this include intended to be here still? It seems to negate the move to a separate header, and the inclusion of `Int

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

2025-10-20 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 edited https://github.com/llvm/llvm-project/pull/140210 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Clang] Add AVX512 Integer Comparison Intrinsics for constexpr Evaluation (PR #164026)

2025-10-20 Thread Timm Baeder via cfe-commits
@@ -3119,40 +3152,13 @@ static bool interp__builtin_cmp_mask(InterpState &S, CodePtr OpPC, for (unsigned ElemNum = 0; ElemNum < VectorLen; ++ElemNum) { INT_TYPE_SWITCH_NO_BOOL(ElemT, { - const APSInt &A = LHS.elem(ElemNum).toAPSInt(); - const APSInt &B = RHS.e

[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)

2025-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rana Pratap Reddy (ranapratap55) Changes Introduces the builtins for extended image insts for amdgcn. --- Patch is 143.87 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/164358.diff 5 Files Af

[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)

2025-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Rana Pratap Reddy (ranapratap55) Changes Introduces the builtins for extended image insts for amdgcn. --- Patch is 143.87 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/164358.diff 5

[clang] [llvm] [RISCV][MC] Introduce XSfvfexp* and XSfvfbfexpa* extensions and their MC supports (PR #164349)

2025-10-20 Thread Jim Lin via cfe-commits
https://github.com/tclin914 commented: Should we also add tests for pre-defined macro in `clang/test/Preprocessor/riscv-target-features-sifive.c` https://github.com/llvm/llvm-project/pull/164349 ___ cfe-commits mailing list [email protected]

[clang] [llvm] [RISCV][MC] Introduce XSfvfexp* and XSfvfbfexpa* extensions and their MC supports (PR #164349)

2025-10-20 Thread Jesse Huang via cfe-commits
https://github.com/jaidTw approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/164349 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Clang] Add AVX512 Integer Comparison Intrinsics for constexpr Evaluation (PR #164026)

2025-10-20 Thread via cfe-commits
https://github.com/sskzakaria edited https://github.com/llvm/llvm-project/pull/164026 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Clang] Add AVX512 Integer Comparison Intrinsics for constexpr Evaluation (PR #164026)

2025-10-20 Thread via cfe-commits
@@ -3119,40 +3152,13 @@ static bool interp__builtin_cmp_mask(InterpState &S, CodePtr OpPC, for (unsigned ElemNum = 0; ElemNum < VectorLen; ++ElemNum) { INT_TYPE_SWITCH_NO_BOOL(ElemT, { - const APSInt &A = LHS.elem(ElemNum).toAPSInt(); - const APSInt &B = RHS.e

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow shufps/pd shuffles intrinsics to be used in constexpr (PR #164078)

2025-10-20 Thread Timm Baeder via cfe-commits
@@ -3128,6 +3128,52 @@ static bool interp__builtin_ia32_vpconflict(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_shuf(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArgs() =

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow shufps/pd shuffles intrinsics to be used in constexpr (PR #164078)

2025-10-20 Thread Timm Baeder via cfe-commits
@@ -3128,6 +3128,52 @@ static bool interp__builtin_ia32_vpconflict(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_shuf(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArgs() =

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow shufps/pd shuffles intrinsics to be used in constexpr (PR #164078)

2025-10-20 Thread Timm Baeder via cfe-commits
@@ -3128,6 +3128,52 @@ static bool interp__builtin_ia32_vpconflict(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_shuf(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArgs() =

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

2025-10-20 Thread Oliver Hunt 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] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-10-20 Thread Oliver Hunt via cfe-commits
@@ -263,6 +294,32 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t; #define ptrauth_sign_generic_data(__value, __data) \ __builtin_ptrauth_sign_generic_data(__value, __data) +/* Define some standard __ptrauth qualifiers used in the ABI. */

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

2025-10-20 Thread Oliver Hunt via cfe-commits
@@ -241,6 +260,18 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t; #define ptrauth_type_discriminator(__type) \ __builtin_ptrauth_type_discriminator(__type) +/* Compute the constant discriminator used by Clang to sign pointers wit

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

2025-10-20 Thread Oliver Hunt via cfe-commits
@@ -199,6 +199,25 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t; ptrauth_auth_and_resign(__value, __old_key, __old_data, \ ptrauth_key_function_pointer, 0) +/* Cast a value to the given type without changing any signa

[clang] [clang][bytecode] Move shared interp functions to InterpHelpers.h (PR #164215)

2025-10-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/164215 >From 2edfee74aa129b6008666f32048c7125365a07a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 20 Oct 2025 10:13:47 +0200 Subject: [PATCH] [clang][bytecode] Move shard interp functions t

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

2025-10-20 Thread Oliver Hunt via cfe-commits
@@ -199,6 +199,25 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t; ptrauth_auth_and_resign(__value, __old_key, __old_data, \ ptrauth_key_function_pointer, 0) +/* Cast a value to the given type without changing any signa

[clang] Honor pragmas with -ffp-contract=fast, deprecate fast-honor-pragmas (PR #105746)

2025-10-20 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/105746 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Format bitfield width diagnostics with thousands-separators (PR #117763)

2025-10-20 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/117763 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Clang] Add AVX512 Integer Comparison Intrinsics for constexpr Evaluation (PR #164026)

2025-10-20 Thread Timm Baeder via cfe-commits
@@ -3119,40 +3152,13 @@ static bool interp__builtin_cmp_mask(InterpState &S, CodePtr OpPC, for (unsigned ElemNum = 0; ElemNum < VectorLen; ++ElemNum) { INT_TYPE_SWITCH_NO_BOOL(ElemT, { - const APSInt &A = LHS.elem(ElemNum).toAPSInt(); - const APSInt &B = RHS.e

[clang] [llvm] [Clang] Enable lit internal shell by default (PR #158465)

2025-10-20 Thread Oliver Hunt via cfe-commits
ojhunt wrote: How are environment variables set with the internal shell? https://github.com/llvm/llvm-project/pull/158465 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 378e4ed - [clangd] Show callers of base functions in incomingCalls (#163024)

2025-10-20 Thread via cfe-commits
Author: timon-ul Date: 2025-10-21T02:27:18Z New Revision: 378e4ed1acf94ee911e2ccfda0045ac3fdc9e291 URL: https://github.com/llvm/llvm-project/commit/378e4ed1acf94ee911e2ccfda0045ac3fdc9e291 DIFF: https://github.com/llvm/llvm-project/commit/378e4ed1acf94ee911e2ccfda0045ac3fdc9e291.diff LOG: [cla

[clang] [Clang][Driver] Enable offloadlib option for clang-cl (PR #162980)

2025-10-20 Thread via cfe-commits
@@ -25,3 +25,6 @@ // RUN: %clang_cl -### -fsycl -- %s 2>&1 | FileCheck %s --check-prefix=DEFAULT // DEFAULT: "-sycl-std=2020" + +// RUN: %clang_cl -### -fsycl -sycl-std=2017 --no-offloadlib -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-NO-OFFLOADLIB +// CHECK-NO-OFFLOADLIB-N

[clang] [Clang][Driver] Enable offloadlib option for clang-cl (PR #162980)

2025-10-20 Thread via cfe-commits
https://github.com/jinge90 updated https://github.com/llvm/llvm-project/pull/162980 >From c6bc633dfcb7ef64e6454bcebe83df2c075b50e3 Mon Sep 17 00:00:00 2001 From: jinge90 Date: Sat, 11 Oct 2025 14:51:38 +0800 Subject: [PATCH 1/3] Enable offloadlib option in compilation for SYCL Signed-off-by: j

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 auto_merge_enabled https://github.com/llvm/llvm-project/pull/163024 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-20 Thread Nathan Ridge via cfe-commits
@@ -1628,8 +1628,10 @@ struct CallHierarchyIncomingCall { /// This is relative to the caller denoted by `From`. std::vector fromRanges; - /// This caller might be a false positive. - /// We currently have no way of 100% confirming this. + /// For the case of being a vir

[clang] [llvm] [RISCV][MC] Introduce XSfvfexp* and XSfvfbfexpa* extensions and their MC supports (PR #164349)

2025-10-20 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave updated https://github.com/llvm/llvm-project/pull/164349 >From 443805f4a1f9bd4d8cdbb60705c33ccb4f1f0c4c Mon Sep 17 00:00:00 2001 From: Min-Yih Hsu Date: Mon, 20 Oct 2025 15:39:44 -0700 Subject: [PATCH 1/2] [RISCV][MC] Introduce MC support for XSfvfexp* and XSfvfbf

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/163024 >From 06f90b1f53809cdacf40cd6fc8e9ba3d1c240c1e Mon Sep 17 00:00:00 2001 From: Timon Ulrich Date: Thu, 9 Oct 2025 16:51:31 +0200 Subject: [PATCH 1/7] clangd: Make callHierarchy follow inheritance In case

[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

2025-10-20 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/162743 >From b7c3836f55a6e1f99e1387366b85973533f5e904 Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 9 Oct 2025 17:41:18 -0400 Subject: [PATCH 1/7] [HLSL] Add matrix constructors using initalizer lists fixes #

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/163024 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-20 Thread Nathan Ridge via cfe-commits
@@ -1628,8 +1628,10 @@ struct CallHierarchyIncomingCall { /// This is relative to the caller denoted by `From`. std::vector fromRanges; - /// This caller might be a false positive. - /// We currently have no way of 100% confirming this. + /// For the case of being a vir

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. LGTM with a remaining typ fix. Thanks! https://github.com/llvm/llvm-project/pull/163024 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinf

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/163024 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix handling of packs in TransformSubstNonTypeTemplateParmExpr (PR #164350)

2025-10-20 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/164350 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0da6cca - [clang] fix handling of packs in TransformSubstNonTypeTemplateParmExpr (#164350)

2025-10-20 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-10-20T23:00:38-03:00 New Revision: 0da6cca6c34dfc0faf969a4abf4daa53c1d16d5a URL: https://github.com/llvm/llvm-project/commit/0da6cca6c34dfc0faf969a4abf4daa53c1d16d5a DIFF: https://github.com/llvm/llvm-project/commit/0da6cca6c34dfc0faf969a4abf4daa53c1d16d5a.dif

[clang] [clangd] Avoid calling resolveTypeOfCallExpr() twice in HeuristicResolver::resolveExprToType() (PR #164353)

2025-10-20 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @kadircet Do we have a good way of writing a regression test for something like this? Checking elapsed time seems flaky. https://github.com/llvm/llvm-project/pull/164353 ___ cfe-commits mailing list [email protected] htt

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-raw-memory-call-on-non-trivial-type' (PR #162039)

2025-10-20 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka edited https://github.com/llvm/llvm-project/pull/162039 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clangd] Avoid calling resolveTypeOfCallExpr() twice in HeuristicResolver::resolveExprToType() (PR #164353)

2025-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/164353.diff 1 Files Affected: - (modified) clang/lib/Sema/HeuristicResolver.cpp (+5) ``diff diff --git a/clang/lib/Sema/Heuristic

[clang] [clangd] Avoid calling resolveTypeOfCallExpr() twice in HeuristicResolver::resolveExprToType() (PR #164353)

2025-10-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/164353 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Improve HeuristicResolver further so it can replace most of getApproximateType() in SemaCodeComplete (PR #156282)

2025-10-20 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Proposed fix for the performance regression at https://github.com/llvm/llvm-project/pull/164353 https://github.com/llvm/llvm-project/pull/156282 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-b

[clang] [clangd] Avoid calling resolveTypeOfCallExpr() twice in HeuristicResolver::resolveExprToType() (PR #164353)

2025-10-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/164353 None >From 9d90d166b346c0344a16710a9651d76169621f12 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 20 Oct 2025 21:45:04 -0400 Subject: [PATCH] [clangd] Avoid calling resolveTypeOfCallExpr() twice

[clang] Improve HeuristicResolver further so it can replace most of getApproximateType() in SemaCodeComplete (PR #156282)

2025-10-20 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: The regression is caused by the additional of the following hunk to `resolveExprToType()`: ```c++ if (const auto *CE = dyn_cast(E)) { if (QualType Resolved = resolveTypeOfCallExpr(CE); !Resolved.isNull()) return Resolved; } ``` If we have a `CallExpr`, but `

[clang] [llvm] [FlowSensitive] [StatusOr] [3/N] Support absl::Status ops (PR #163868)

2025-10-20 Thread Jan Voung via cfe-commits
https://github.com/jvoung commented: Just a few small comments. Also, is isRecordTypeWithName now unused and replaced by isTypeNamed ? https://github.com/llvm/llvm-project/pull/163868 ___ cfe-commits mailing list [email protected] https://lis

[clang] [llvm] [FlowSensitive] [StatusOr] [3/N] Support absl::Status ops (PR #163868)

2025-10-20 Thread Jan Voung via cfe-commits
@@ -249,13 +262,72 @@ static void transferStatusOrOkCall(const CXXMemberCallExpr *Expr, State.Env.setValue(*Expr, OkVal); } +static void transferStatusCall(const CXXMemberCallExpr *Expr, + const MatchFinder::MatchResult &, +

[clang] [llvm] [FlowSensitive] [StatusOr] [3/N] Support absl::Status ops (PR #163868)

2025-10-20 Thread Jan Voung via cfe-commits
https://github.com/jvoung edited https://github.com/llvm/llvm-project/pull/163868 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix handling of packs in TransformSubstNonTypeTemplateParmExpr (PR #164350)

2025-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes Since this regression was never released, there are no release notes. Fixes #164330 --- Full diff: https://github.com/llvm/llvm-project/pull/164350.diff 2 Files Affected: - (modified) clang/lib/Sema/T

[clang] [clang] fix handling of packs in TransformSubstNonTypeTemplateParmExpr (PR #164350)

2025-10-20 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/164350 Since this regression was never released, there are no release notes. Fixes #164330 >From 21a67cb996ceb7097fae6598513f00edd50d94d9 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 20 Oct 2025 22:02:0

[clang] [clang-tools-extra] [llvm] [clang][headers] Need a way for math.h to share the definitions of INIFINITY and NAN with float.h (PR #164348)

2025-10-20 Thread Ian Anderson via cfe-commits
ian-twilightcoder wrote: > ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️ I left the formatting alone on the existing declarations, but I can make the formatter happy here if that's the right thing to do. https://github.com/llvm/llvm-project/pull/164348 ___

[clang] [clang-tools-extra] [llvm] [clang][headers] Need a way for math.h to share the definitions of INIFINITY and NAN with float.h (PR #164348)

2025-10-20 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/164348 >From 2be0115e45c83424d9cd2213f63469fce5b507eb Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Mon, 20 Oct 2025 17:37:49 -0700 Subject: [PATCH] [clang][headers] Need a way for math.h to share the de

[clang] [X86][ByteCode] Allow PSHUFB intrinsics to be used in constexpr #156612 (PR #163148)

2025-10-20 Thread Shafik Yaghmour via cfe-commits
@@ -2790,6 +2790,34 @@ static bool interp__builtin_blend(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_pshufb(InterpState &S, CodePtr OpPC, +const CallExpr *Call) { + assert(Call->getNumArgs() == 2 &&

[clang] [X86][ByteCode] Allow PSHUFB intrinsics to be used in constexpr #156612 (PR #163148)

2025-10-20 Thread Shafik Yaghmour via cfe-commits
@@ -11619,6 +11619,44 @@ static bool evalPackBuiltin(const CallExpr *E, EvalInfo &Info, APValue &Result, return true; } +static bool evalPshufbBuiltin(EvalInfo &Info, const CallExpr *Call, + APValue &Out) { + APValue SrcVec, ControlVec; + if (

[clang] [X86][ByteCode] Allow PSHUFB intrinsics to be used in constexpr #156612 (PR #163148)

2025-10-20 Thread Shafik Yaghmour via cfe-commits
@@ -2790,6 +2790,34 @@ static bool interp__builtin_blend(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_pshufb(InterpState &S, CodePtr OpPC, +const CallExpr *Call) { + assert(Call->getNumArgs() == 2 &&

[clang] [X86][ByteCode] Allow PSHUFB intrinsics to be used in constexpr #156612 (PR #163148)

2025-10-20 Thread Shafik Yaghmour via cfe-commits
@@ -11619,6 +11619,44 @@ static bool evalPackBuiltin(const CallExpr *E, EvalInfo &Info, APValue &Result, return true; } +static bool evalPshufbBuiltin(EvalInfo &Info, const CallExpr *Call, shafik wrote: It is really a shame we are duplicating code so much.

[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

2025-10-20 Thread Farzon Lotfi via cfe-commits
@@ -1877,6 +1887,41 @@ void InitListChecker::CheckReferenceType(const InitializedEntity &Entity, AggrDeductionCandidateParamTypes->push_back(DeclType); } +void InitListChecker::CheckMatrixType(const InitializedEntity &Entity, + InitLis

[clang] [llvm] [Clang][OpenMP] Add a util to implicitly map attach-ptr-exprs on `target`, when applicable. (PR #161294)

2025-10-20 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: I would suggest to split this and #153683 functionality into several smaller functional patches. Reviewing this as a (kind of?) NFC patch does not make sense. https://github.com/llvm/llvm-project/pull/161294 ___ cfe-commits mail

[clang] [CIR] CompoundLiteralExpr for Aggregate types (PR #164172)

2025-10-20 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/164172 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for atomic test-and-set and atomic clear (PR #164162)

2025-10-20 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/164162 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

2025-10-20 Thread Chris B via cfe-commits
@@ -1877,6 +1887,41 @@ void InitListChecker::CheckReferenceType(const InitializedEntity &Entity, AggrDeductionCandidateParamTypes->push_back(DeclType); } +void InitListChecker::CheckMatrixType(const InitializedEntity &Entity, + InitLis

[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

2025-10-20 Thread Farzon Lotfi via cfe-commits
@@ -11089,8 +11089,8 @@ def err_first_argument_to_cwsc_pdtor_call : Error< def err_second_argument_to_cwsc_not_pointer : Error< "second argument to __builtin_call_with_static_chain must be of pointer type">; -def err_vector_incorrect_num_elements : Error< - "%select{too ma

[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

2025-10-20 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/162743 >From b7c3836f55a6e1f99e1387366b85973533f5e904 Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 9 Oct 2025 17:41:18 -0400 Subject: [PATCH 1/7] [HLSL] Add matrix constructors using initalizer lists fixes #

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-20 Thread Craig Topper via cfe-commits
@@ -0,0 +1,22 @@ +// RUN: %clang --target=riscv32-unknown-linux-gnu -march=rv32ia -x c -E -dM %s \ +// RUN: -o - | FileCheck %s +// RUN: %clang --target=riscv32-unknown-linux-gnu -march=rv32i_zalrsc -x c -E \ +// RUN: -dM %s -o - | FileCheck %s +// RUN: %clang --target=riscv64-un

[clang] [OpenMP][clang][HIP][CUDA] fix weak alias emit on device compilation (PR #164326)

2025-10-20 Thread via cfe-commits
Jason-VanBeusekom wrote: @jhuber6 @alexey-bataev, anyone else I should ping? https://github.com/llvm/llvm-project/pull/164326 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add xxxMaxDigitsNoSeparator (PR #164286)

2025-10-20 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/164286 From f4be7c77489ddb427a019eefdae8817501132ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Mon, 20 Oct 2025 01:31:04 +0200 Subject: [PATCH 1/2] [clang-format] Add xxxMax

[clang] [OpenMP][clang][HIP][CUDA] fix weak alias emit on device compilation (PR #164326)

2025-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: None (Jason-VanBeusekom) Changes This PR adds checks for when emitting weak aliases in: `void CodeGenModule::EmitGlobal(GlobalDecl GD)`, before for device compilation for OpenMP, HIP and Cuda, clang woul

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-20 Thread via cfe-commits
@@ -192,8 +192,11 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts, Builder.defineMacro("__riscv_muldiv"); } - if (ISAInfo->hasExtension("a")) { + // The "a" extension is composed of "zalrsc" and "zaamo" + if (ISAInfo->hasExtension("a")) Builder

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-20 Thread via cfe-commits
@@ -308,7 +308,65 @@ class PseudoMaskedAMOMinMaxPat (AMOInst GPR:$addr, GPR:$incr, GPR:$mask, GPR:$shiftamt, timm:$ordering)>; -let Predicates = [HasStdExtA] in { +let Predicates = [HasStdExtZalrsc, NoStdExtZaamo] in { slachowsky wrote: D

[clang] [OpenMP][clang][HIP][CUDA] fix weak alias emit on device compilation (PR #164326)

2025-10-20 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] [OpenMP][clang][HIP][CUDA] fix weak alias emit on device compilation (PR #164326)

2025-10-20 Thread via cfe-commits
https://github.com/Jason-VanBeusekom created https://github.com/llvm/llvm-project/pull/164326 This PR adds checks for when emitting weak aliases in: `void CodeGenModule::EmitGlobal(GlobalDecl GD)`, before for device compilation for OpenMP, HIP and Cuda, clang would look for the aliasee even if

[clang] 46ab6c6 - [FlowSensitive] [Optional] Fix absl::in_place (#163897)

2025-10-20 Thread via cfe-commits
Author: Florian Mayer Date: 2025-10-20T14:11:22-07:00 New Revision: 46ab6c6fd3e6068a1f8f2935c17c09a3046180f9 URL: https://github.com/llvm/llvm-project/commit/46ab6c6fd3e6068a1f8f2935c17c09a3046180f9 DIFF: https://github.com/llvm/llvm-project/commit/46ab6c6fd3e6068a1f8f2935c17c09a3046180f9.diff

[clang] [FlowSensitive] [Optional] Fix absl::in_place (PR #163897)

2025-10-20 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/163897 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add FramePointerKind::NonLeafNoReserve (PR #163775)

2025-10-20 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: I guess my remaining question is if -fno-omit-frame-pointer should imply -mreserve-frame-pointer-reg by default. I can see why you'd want it off by default for gcc compatibility. But I suspect most users enabling frame pointers would be happier if it was on. The primary

[clang] [llvm] Mac release workaround (PR #163607)

2025-10-20 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/163607 >From b2f00eb013f5174b1ab5199bb7cc4cab6d5ed059 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 11 Oct 2025 17:39:12 -0700 Subject: [PATCH 01/26] [Darwin][Driver] Prefer linking with toolchain's libc++ i

[clang] [HLSL] Allow input semantics on structs (PR #159047)

2025-10-20 Thread Tex Riddell via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: @@ -3078,6 +3078,17 @@ static void emitAttributes(const RecordKeeper &Records, raw_ostream &OS, OS << " {\n";

[clang-tools-extra] [clang-doc] fix overlapping navbar (PR #164314)

2025-10-20 Thread Erick Velez via cfe-commits
evelez7 wrote: You can see the changes reflected here: https://erickvelez.com/clang-doc-mustache-output/pr164314/ The "Inner Classes" heading isn't covered by the navbar anymore. Also never noticed that on class pages, the class' name is actually displayed on top of the sidebar. https://gith

[clang-tools-extra] [clang-doc] fix overlapping navbar (PR #164314)

2025-10-20 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/164314 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix overlapping navbar (PR #164314)

2025-10-20 Thread Erick Velez via cfe-commits
evelez7 wrote: * **#164314** https://app.graphite.dev/github/pr/llvm/llvm-project/164314?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/1643

[clang-tools-extra] [clang-doc] fix overlapping navbar (PR #164314)

2025-10-20 Thread Erick Velez via cfe-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/164314 The navbar has a height of 60px, but the sidebar didn't have any top padding so it began underneath the navbar. Now the sidebar has a top padding of 60px. >From 9fb86ecaac689a411b21ed37f2e1b3bf1f98d02d Mon Sep 1

[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

2025-10-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang-tools-extra,clang,llvm,polly` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/33590 Here is the

[clang] [FlowSensitive] [Optional] Fix absl::in_place (PR #163897)

2025-10-20 Thread Jan Voung via cfe-commits
https://github.com/jvoung approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/163897 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix repeated backslash insertion in macro line comments (PR #164300)

2025-10-20 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/164300 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra][Unittest] Fix wrong reference to CMake configuration variable (PR #164147)

2025-10-20 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/164147 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 13498bc - [clang-tools-extra][Unittest] Fix wrong reference to CMake configuration variable (#164147)

2025-10-20 Thread via cfe-commits
Author: Tomohiro Kashiwada Date: 2025-10-20T23:14:54+03:00 New Revision: 13498bc1d16005774a62b3dd04f1d2e5dd887674 URL: https://github.com/llvm/llvm-project/commit/13498bc1d16005774a62b3dd04f1d2e5dd887674 DIFF: https://github.com/llvm/llvm-project/commit/13498bc1d16005774a62b3dd04f1d2e5dd887674.

[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

2025-10-20 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/163947 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix repeated backslash insertion in macro line comments (PR #164300)

2025-10-20 Thread Ruoyu Zhong via cfe-commits
ZhongRuoyu wrote: > You may also want to update the commit message, because line comments **can** > be continued with `\`. https://godbolt.org/z/GP8YnoTqb Thanks -- didn't think about that! I updated the PR description as well. https://github.com/llvm/llvm-project/pull/164300

[clang] [HLSL] Allow input semantics on structs (PR #159047)

2025-10-20 Thread Tex Riddell via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: https://github.com/tex3d approved this pull request. I'm approving this, but think the approach will need structural changes to handle

[clang] [HLSL] Allow input semantics on structs (PR #159047)

2025-10-20 Thread Tex Riddell via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: https://github.com/tex3d edited https://github.com/llvm/llvm-project/pull/159047 ___ cfe-comm

[clang] [HLSL] Allow input semantics on structs (PR #159047)

2025-10-20 Thread Tex Riddell via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: @@ -769,23 +769,81 @@ void SemaHLSL::ActOnTopLevelFunction(FunctionDecl *FD) { } } -bool SemaHLSL::isSemanticValid

[clang] [HLSL] Allow input semantics on structs (PR #159047)

2025-10-20 Thread Tex Riddell via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: @@ -615,29 +613,56 @@ CGHLSLRuntime::emitSystemSemanticLoad(IRBuilder<> &B, llvm::Type *Type, } llvm::Value * -CGHL

[clang] [clang-format] Fix repeated backslash insertion in macro line comments (PR #164300)

2025-10-20 Thread Ruoyu Zhong via cfe-commits
https://github.com/ZhongRuoyu edited https://github.com/llvm/llvm-project/pull/164300 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix repeated backslash insertion in macro line comments (PR #164300)

2025-10-20 Thread Ruoyu Zhong via cfe-commits
https://github.com/ZhongRuoyu updated https://github.com/llvm/llvm-project/pull/164300 >From f06121a3c16e68cb6fee9b77c24c400e7ff8b111 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Tue, 21 Oct 2025 02:44:16 +0800 Subject: [PATCH] [clang-format] Fix repeated backslash insertion in macro line

[clang] [clang-format] Respect ColumnLimit while aligning multiline expressions (PR #163863)

2025-10-20 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks closed https://github.com/llvm/llvm-project/pull/163863 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c318f82 - [clang-format] Respect ColumnLimit while aligning multiline expressions (#163863)

2025-10-20 Thread via cfe-commits
Author: Björn Schäpers Date: 2025-10-20T22:11:11+02:00 New Revision: c318f82a4ad4c91401daa177b8c8ab546901bb4d URL: https://github.com/llvm/llvm-project/commit/c318f82a4ad4c91401daa177b8c8ab546901bb4d DIFF: https://github.com/llvm/llvm-project/commit/c318f82a4ad4c91401daa177b8c8ab546901bb4d.diff

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-20 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/163885 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-20 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/163885 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-10-20 Thread Eli Friedman via cfe-commits
@@ -1749,17 +1739,29 @@ llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { allocator->isReservedGlobalPlacementOperator()) result = Builder.CreateLaunderInvariantGroup(result); + // Check what type of constructor call the sanitizer is checking + /

[clang] [clang-format] Fix repeated backslash insertion in macro line comments (PR #164300)

2025-10-20 Thread Björn Schäpers via cfe-commits
@@ -839,6 +839,25 @@ TEST_F(FormatTestComments, MultiLineCommentsInDefines) { getLLVMStyleWithColumns(17))); } +TEST_F(FormatTestComments, LineCommentsInMacrosDoNotGetEscapedNewlines) { + FormatStyle Style = getLLVMStyleWithColumns(0); + Style.ReflowCommen

[clang] [clang-format] Fix repeated backslash insertion in macro line comments (PR #164300)

2025-10-20 Thread Björn Schäpers via cfe-commits
@@ -798,9 +798,11 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun, } if (!DryRun) { +bool ContinuePPDirective = HazardyKnusperkeks wrote: ```suggestion const bool ContinuePPDirective = ``` https://github.com/llv

[clang] [clang-format] Fix repeated backslash insertion in macro line comments (PR #164300)

2025-10-20 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks commented: You may also want to update the commit message, because line comments **can** be continued with `\`. https://godbolt.org/z/GP8YnoTqb https://github.com/llvm/llvm-project/pull/164300 ___ cfe-commits mail

  1   2   3   4   5   >