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

2025-10-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/153337 >From fc114ff8874f3994557a3dced97443d644f3a408 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Tue, 12 Aug 2025 22:54:32 -0400 Subject: [PATCH] [clangd] Retrieve documentation for class member instance

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Dasha Buka (dvbuka) Changes closes #157294 Renamed NonTrivialTypesLibcMemoryCallsCheck to LibcMemoryCallsOnNonTrivialTypesCheck for a little more clarity as well. --- Full diff: https://github.com/llvm/llvm-project/pull/162039.diff

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-05 Thread Dasha Buka via cfe-commits
https://github.com/dvbuka created https://github.com/llvm/llvm-project/pull/162039 closes #157294 Renamed NonTrivialTypesLibcMemoryCallsCheck to LibcMemoryCallsOnNonTrivialTypesCheck for a little more clarity as well. >From 236cee683ac84ebd7ac6cd41f0d78020c312f68c Mon Sep 17 00:00:00 2001 Fr

[clang] [clang] Fix size and alignment of packed sub-byte integer vectors (PR #161796)

2025-10-05 Thread Steffen Larsen via cfe-commits
steffenlarsen wrote: > Do we need similar checks anywhere else we check isPackedVectorBoolType? Luckily that case was already handled [here](https://github.com/llvm/llvm-project/pull/161796/files#diff-328fcdcf882c121d5c56fdc6cd56c43fdbbb00da171da70f3ba6982c43686a63L2097-L2098) and now [here](

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-05 Thread Timm Baeder via cfe-commits
@@ -2817,6 +2817,46 @@ static bool interp__builtin_ia32_pshuf(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_movmsk_op(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArg

[clang] [CUDA] Remove sema check of function declaration with variadic argument (PR #161350)

2025-10-05 Thread via cfe-commits
LuoYuanke wrote: > Am I missing something, we still have `CUDAAllowVariadicFunctions`. I understand now. Revised. https://github.com/llvm/llvm-project/pull/161350 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-05 Thread via cfe-commits
@@ -3162,7 +3143,10 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case Builtin::BI_rotl: case Builtin::BI_lrotl: case Builtin::BI_rotl64: -return interp__builtin_rotate(S, OpPC, Frame, Call, /*Right=*/false); +return interp__builtin

[clang] [clang] don't print redundant context notes when instantiating alias templates (PR #161986)

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

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-10-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/22292 Here is the relevant p

[clang] [CIR][NFC] Update Complex CXX new test to use regex (PR #162024)

2025-10-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Update Complex CXX new test to use regex for variable names --- Full diff: https://github.com/llvm/llvm-project/pull/162024.diff 1 Files Affected: - (modified) clang/test/CIR/CodeGen/new.cpp (+7-7) `

[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)

2025-10-05 Thread Björn Schäpers via cfe-commits
@@ -925,7 +925,10 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun, TT_TableGenDAGArgOpenerToBreak) && !(Current.MacroParent && Previous.MacroParent) && (Current.isNot(TT_LineComment) || - Previous.isOn

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PALIGNR byte shift intrinsics to be used in constexpr (PR #162005)

2025-10-05 Thread Timm Baeder via cfe-commits
@@ -2975,6 +2975,75 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_x86_psrldq_byteshift(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PALIGNR byte shift intrinsics to be used in constexpr (PR #162005)

2025-10-05 Thread Timm Baeder via cfe-commits
@@ -2975,6 +2975,75 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_x86_psrldq_byteshift(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PALIGNR byte shift intrinsics to be used in constexpr (PR #162005)

2025-10-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ye Tian (TianYe717) Changes Fixes [issue](https://github.com/llvm/llvm-project/issues/160509) --- Patch is 21.28 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/162005.diff 8 Files Affected:

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PALIGNR byte shift intrinsics to be used in constexpr (PR #162005)

2025-10-05 Thread Ye Tian via cfe-commits
https://github.com/TianYe717 ready_for_review https://github.com/llvm/llvm-project/pull/162005 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AST] Don't print inherited default template args (PR #161953)

2025-10-05 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/161953 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Atomic fetch operation (PR #161631)

2025-10-05 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/161631 >From 1962fbea341e4a0148eaed4af39063975936412a Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Thu, 2 Oct 2025 14:13:11 +0800 Subject: [PATCH] [CIR] Atomic fetch operation This patch adds CIR support for atomic f

[clang] [clang] Fix invalid CodeGen for atomic fetch min/max on floating point values (PR #162011)

2025-10-05 Thread Sirui Mu via cfe-commits
https://github.com/Lancern created https://github.com/llvm/llvm-project/pull/162011 CodeGen for the builtin function `__atomic_min_fetch` and `__atomic_max_fetch` would emit an `atomicrmw` instruction followed by an `icmp` instruction on integral arguments. However, for floating point argument

[clang] [CIR] Atomic fetch operation (PR #161631)

2025-10-05 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 c,cpp -- clang/lib/CIR/CodeGen/CIRGenAtomic.cpp clang/l

[clang] [CIR] Atomic fetch operation (PR #161631)

2025-10-05 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/161631 >From c2061cc3f44e896b6cf05483c1780344f12b864f Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Thu, 2 Oct 2025 14:13:11 +0800 Subject: [PATCH] [CIR] Atomic fetch operation This patch adds CIR support for atomic f

[clang] [CIR] Upstream DynamicCastOp (PR #161734)

2025-10-05 Thread Henrich Lauko via cfe-commits
@@ -601,6 +601,60 @@ def CIR_VTableAttr : CIR_Attr<"VTable", "vtable", [TypedAttrInterface]> { }]; } +//===--===// +// DynamicCastInfoAttr +//===-

[clang] [clang][Sema] NormalizedConstraint - fix MSVC "not all control paths return a value" warnings. NFC. (PR #162004)

2025-10-05 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/162004 None >From cce577535762df5ca867c6d5b99a3a44bd1ee68b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 5 Oct 2025 11:48:54 +0100 Subject: [PATCH] [clang][Sema] NormalizedConstraint - fix MSVC "not all con

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-05 Thread Simon Pilgrim via cfe-commits
@@ -3162,7 +3143,10 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case Builtin::BI_rotl: case Builtin::BI_lrotl: case Builtin::BI_rotl64: -return interp__builtin_rotate(S, OpPC, Frame, Call, /*Right=*/false); +return interp__builtin

[clang] [CIR] Atomic fetch operation (PR #161631)

2025-10-05 Thread Sirui Mu via cfe-commits
https://github.com/Lancern edited https://github.com/llvm/llvm-project/pull/161631 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-sycl-linker] Generate SymbolTable for each image (PR #161287)

2025-10-05 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex closed https://github.com/llvm/llvm-project/pull/161287 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang][AST] Add compile-time dispatch for random access iterators in append() (PR #162000)

2025-10-05 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/162000 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits