[clang] [X86] Add constexpr support for addsub and select intrinsics (PR #167512)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon edited https://github.com/llvm/llvm-project/pull/167512 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-11-11 Thread Hans Wennborg via cfe-commits
@@ -0,0 +1,197 @@ +// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info -fdiagnostics-parseable-fixits %s 2>%t.txt zmodem wrote: just pipe to FileCheck directly? https://github.com/llvm/llvm-project/pull/167287

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

2025-11-11 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem approved this pull request. Just nits from my side. Otherwise lgtm. https://github.com/llvm/llvm-project/pull/167287 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [Clang][ASTImporter] Fix cycle in importing template specialization on auto type with typename (PR #162514)

2025-11-11 Thread via cfe-commits
https://github.com/ganenkokb-yandex updated https://github.com/llvm/llvm-project/pull/162514 >From 985f73c23963381d583750a87c830dde3d4d8eac Mon Sep 17 00:00:00 2001 From: Konstantin Ganenko Date: Tue, 7 Oct 2025 14:36:49 +0300 Subject: [PATCH 1/9] Fix cycle in importing template specialization

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

2025-11-11 Thread Nabeel Omer via cfe-commits
https://github.com/omern1 updated https://github.com/llvm/llvm-project/pull/163775 >From 2cb9a74fe45202d542891b3f609cf56d80130e07 Mon Sep 17 00:00:00 2001 From: Nabeel Omer Date: Thu, 16 Oct 2025 10:44:55 +0100 Subject: [PATCH 01/11] Add FramePointerKind::NonLeafNoReserve This patch adds a new

[clang] [Clang][OpenMP] Bug fix Default clause variable category (PR #165276)

2025-11-11 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev requested changes to this pull request. https://github.com/llvm/llvm-project/pull/165276 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] Fix compilation errors (PR #159293)

2025-11-11 Thread Igor Popov via cfe-commits
https://github.com/silver-popov updated https://github.com/llvm/llvm-project/pull/159293 >From d9fa0e0523476ef5b0a856379c99e3e9fa7b8613 Mon Sep 17 00:00:00 2001 From: Igor Popov Date: Wed, 17 Sep 2025 12:10:50 +0300 Subject: [PATCH] Fix compilation errors --- libunwind/src/Unwind-seh.cpp | 4

[clang] [flang] [mlir] [mlir] Remove deprecated GEN_PASS_CLASSES. (PR #166904)

2025-11-11 Thread Jacques Pienaar via cfe-commits
jpienaar wrote: I'll probably land the flang and CIR ones before this one (just to give downstream folks a bit more time while having upstream clear) https://github.com/llvm/llvm-project/pull/166904 ___ cfe-commits mailing list [email protected].

[clang] [clang][bytecode] Don't outright reject dynamic casts (PR #167517)

2025-11-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/167517 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX512] rematerialize smaller predicate masks (PR #166178)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/166178 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files (PR #167269)

2025-11-11 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/167269 >From 85c41652d2256af9861d66598c991430cf70979a Mon Sep 17 00:00:00 2001 From: mtx Date: Mon, 10 Nov 2025 13:29:27 +0800 Subject: [PATCH 1/5] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files --- clang-tools

[clang] [CIR] Handle null base class initialization (PR #167023)

2025-11-11 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/167023 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX512] rematerialize smaller predicate masks (PR #166178)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. https://github.com/llvm/llvm-project/pull/166178 ___ cfe-commits mailing list [email protected] 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-11-11 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. https://github.com/llvm/llvm-project/pull/157306 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
@@ -4555,22 +4471,59 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case X86::BI__builtin_ia32_pshufb128: case X86::BI__builtin_ia32_pshufb256: case X86::BI__builtin_ia32_pshufb512: -return interp__builtin_ia32_pshufb(S, OpPC, Call); +

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

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled 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-format] Don't swap `(const override)` with QAS_Right (PR #167191)

2025-11-11 Thread via cfe-commits
@@ -177,13 +177,16 @@ static bool isQualifier(const FormatToken *const Tok) { const FormatToken *LeftRightQualifierAlignmentFixer::analyzeRight( const SourceManager &SourceMgr, const AdditionalKeywords &Keywords, -tooling::Replacements &Fixes, const FormatToken *const

[clang] [flang] [mlir] Remove deprecated GEN_PASS_CLASSES (PR #167496)

2025-11-11 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar auto_merge_enabled https://github.com/llvm/llvm-project/pull/167496 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX512] rematerialize smaller predicate masks (PR #166178)

2025-11-11 Thread Ahmed Nour via cfe-commits
@@ -0,0 +1,211 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefixes=AVX512,AVX512F +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx51

[clang] [Clang][ASTImporter] Fix cycle in importing template specialization on auto type with typename (PR #162514)

2025-11-11 Thread via cfe-commits
https://github.com/ganenkokb-yandex updated https://github.com/llvm/llvm-project/pull/162514 >From 985f73c23963381d583750a87c830dde3d4d8eac Mon Sep 17 00:00:00 2001 From: Konstantin Ganenko Date: Tue, 7 Oct 2025 14:36:49 +0300 Subject: [PATCH 01/10] Fix cycle in importing template specializatio

[clang] [flang] [mlir] Remove deprecated GEN_PASS_CLASSES (PR #167496)

2025-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jacques Pienaar (jpienaar) Changes Update CIR & flang in preparation for removing in #166904 (split out from there, sufficient approvals there but wanted to enable more time to removing feature). --- Full diff: https://github.com/llvm/ll

[clang] feat: included support for is_constant builtin (PR #166832)

2025-11-11 Thread Henrich Lauko via cfe-commits
@@ -3043,6 +3043,44 @@ def CIR_ArrayDtor : CIR_ArrayInitDestroy<"array.dtor"> { }]; } +//===--===// +// IsConstantOp +//===--===// + +def C

[clang] [clang][bytecode] Don't outright reject dyamic casts (PR #167517)

2025-11-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/167517 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-11-11 Thread Marco Elver via cfe-commits
melver wrote: LGTM, but let's wait for others to take a look as well. https://github.com/llvm/llvm-project/pull/167010 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a51c1f8 - [mlir] Remove deprecated GEN_PASS_CLASSES (#167496)

2025-11-11 Thread via cfe-commits
Author: Jacques Pienaar Date: 2025-11-11T13:12:45Z New Revision: a51c1f89ffc769491a079cbc1e09b59c9fe85180 URL: https://github.com/llvm/llvm-project/commit/a51c1f89ffc769491a079cbc1e09b59c9fe85180 DIFF: https://github.com/llvm/llvm-project/commit/a51c1f89ffc769491a079cbc1e09b59c9fe85180.diff LO

[clang] [clang][bytecode] Don't outright reject dyamic casts (PR #167517)

2025-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Just delegate to the subexpr instead. --- Full diff: https://github.com/llvm/llvm-project/pull/167517.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+5) - (modified) clang/test/A

[clang] [clang][bytecode] Don't outright reject dyamic casts (PR #167517)

2025-11-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/167517 Just delegate to the subexpr instead. >From 35b4427346ab8b202adad6d8867dcb697995b94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 11 Nov 2025 16:01:46 +0100 Subject: [PATCH] [clang][

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

2025-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Benjamin Stott (BStott6) Changes - Fixes https://github.com/llvm/llvm-project/issues/163369 - Segmentation fault occurred because resolver was calling TSan instrumentation functions (__tsan_func_entry, __tsan_func_exit) but

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

2025-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Benjamin Stott (BStott6) Changes - Fixes https://github.com/llvm/llvm-project/issues/163369 - Segmentation fault occurred because resolver was calling TSan instrumentation functions (__tsan_func_entry, __tsan_func_exit) but as the resolver

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

2025-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Benjamin Stott (BStott6) Changes - Fixes https://github.com/llvm/llvm-project/issues/163369 - Segmentation fault occurred because resolver was calling TSan instrumentation functions (__tsan_func_entry, __tsan_func_exit) but as the

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

2025-11-11 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] [compiler-rt] [Clang][CodeGen] Add disable_sanitizer_instrumentation attribute to multiversion resolvers (PR #167516)

2025-11-11 Thread Benjamin Stott via cfe-commits
https://github.com/BStott6 created https://github.com/llvm/llvm-project/pull/167516 - Fixes https://github.com/llvm/llvm-project/issues/163369 - Segmentation fault occurred because resolver was calling TSan instrumentation functions (__tsan_func_entry, __tsan_func_exit) but as the resolver is r

[clang] [CIR] Upstream X86 builtin _mm_prefetch and _mm_clflush (PR #167401)

2025-11-11 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner updated https://github.com/llvm/llvm-project/pull/167401 From 539eebe34fb2184e20525078df8f6413b66625ce Mon Sep 17 00:00:00 2001 From: hhuebner Date: Mon, 10 Nov 2025 23:04:51 +0100 Subject: [PATCH 1/5] [CIR] Upstream X86 builtin _mm_prefetch and _mm_clflush --

[clang] [BoundsSafety] Support late parsing for `counted_by` in type positions (PR #166491)

2025-11-11 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem edited https://github.com/llvm/llvm-project/pull/166491 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-11-11 Thread Hans Wennborg via cfe-commits
@@ -1303,18 +1304,26 @@ class ObjCInterfaceTypeLoc : public ConcreteTypeLochttps://github.com/llvm/llvm-project/pull/167287 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [llvm] [NFC][SpecialCaseList] Store SectionStr as StringRef (PR #167278)

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

[clang] [CIR] Upstream X86 builtin _mm_prefetch and _mm_clflush (PR #167401)

2025-11-11 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner updated https://github.com/llvm/llvm-project/pull/167401 From 539eebe34fb2184e20525078df8f6413b66625ce Mon Sep 17 00:00:00 2001 From: hhuebner Date: Mon, 10 Nov 2025 23:04:51 +0100 Subject: [PATCH 1/3] [CIR] Upstream X86 builtin _mm_prefetch and _mm_clflush --

[clang] [Clang] Add constexpr support for AVX512 permutex2 intrinsics (PR #165085)

2025-11-11 Thread NagaChaitanya Vellanki via cfe-commits
@@ -3316,13 +3316,13 @@ _mm512_mask_blend_ph(__mmask32 __U, __m512h __A, __m512h __W) { (__v32hf)__A); } -static __inline__ __m512h __DEFAULT_FN_ATTRS512 +static __inline__ __m512h __DEFAULT_FN_ATTRS512_CONSTEXPR _mm512_permutex2

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread via cfe-commits
@@ -4555,22 +4471,59 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case X86::BI__builtin_ia32_pshufb128: case X86::BI__builtin_ia32_pshufb256: case X86::BI__builtin_ia32_pshufb512: -return interp__builtin_ia32_pshufb(S, OpPC, Call); +

[clang] [Clang] Handle ?: operator in fold expression (PR #164019)

2025-11-11 Thread via cfe-commits
https://github.com/Sirraide commented: I’m not convinced this is the right approach; what if we have e.g. ``` template void foo(T... Params) { ([&]{ Params ?: 1; }(), ...); } ``` We still crash on this and I’m sure `commonExpr` would still be pack-dependent in this case, but we don’t want thi

[clang] [CUDA] Add device-side kernel launch support (PR #165519)

2025-11-11 Thread Joseph Huber via cfe-commits
@@ -497,6 +497,11 @@ Expected> getInput(const ArgList &Args) { continue; } +// Skip '-lcudadevrt'. +if (Arg->getOption().matches(OPT_library) && +StringRef(Arg->getValue()) == "cudadevrt") jhuber6 wrote: I don't know how CUDA handle

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

2025-11-11 Thread Simon Pilgrim via cfe-commits
@@ -13097,6 +13106,33 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + + case X86::BI__builtin_ia32_palignr128: + case X86::BI__builtin_ia32_palignr256: + case X86::BI__built

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] feat: included support for is_constant builtin (PR #166832)

2025-11-11 Thread Henrich Lauko via cfe-commits
@@ -3043,6 +3043,44 @@ def CIR_ArrayDtor : CIR_ArrayInitDestroy<"array.dtor"> { }]; } +//===--===// +// IsConstantOp +//===--===// + +def C

[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-11-11 Thread Alex Duran via cfe-commits
@@ -380,6 +380,10 @@ omp_uintptr_t value; } omp_alloctrait_t; +typedef enum { +omp_access_cgroup = 0, adurang wrote: missing omp_access_pteam https://github.com/llvm/llvm-project/pull/152831 ___

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

2025-11-11 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/139525 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-11-11 Thread Alex Duran via cfe-commits
@@ -267,10 +267,22 @@ struct __tgt_target_non_contig { extern "C" { #endif +/// The OpenMP access group type. The criterion for grupping tasks using a adurang wrote: nit: this comment is a bit misleading. The access groups don't group tasks, they indicate th

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

2025-11-11 Thread Baranov Victor via cfe-commits
vbvictor wrote: Did you try running this check on some codebases? The easiest way is to run it on `clang-tidy` itself. E.g. ``` python3 clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -p build/ -checks="-*,performance-lost-std-move" -clang-tidy-binary build/bin/clang-tidy -quiet -hide-prog

[clang] feat: included support for is_constant builtin (PR #166832)

2025-11-11 Thread Henrich Lauko via cfe-commits
@@ -4052,6 +4093,44 @@ def CIR_ExpectOp : CIR_Op<"expect", [ }]; } +//===--===// +// IsConstantOp +//===--===// + +def CIR_IsConstantOp : C

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang-tools-extra] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files (PR #167269)

2025-11-11 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/167269 >From 85c41652d2256af9861d66598c991430cf70979a Mon Sep 17 00:00:00 2001 From: mtx Date: Mon, 10 Nov 2025 13:29:27 +0800 Subject: [PATCH 1/3] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files --- clang-tools

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
@@ -12993,7 +12927,20 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { case X86::BI__builtin_ia32_pshufb256: case X86::BI__builtin_ia32_pshufb512: { APValue R; -if (!evalPshufbBuiltin(Info, E, R)) +if (!evalShuffleGeneric( +Info, E, R

[clang] c3c4a88 - [clang][bytecode] Add a C test case (#167484)

2025-11-11 Thread via cfe-commits
Author: Timm Baeder Date: 2025-11-11T11:28:59+01:00 New Revision: c3c4a886b5a6d409433396b5e289fad322e75d4c URL: https://github.com/llvm/llvm-project/commit/c3c4a886b5a6d409433396b5e289fad322e75d4c DIFF: https://github.com/llvm/llvm-project/commit/c3c4a886b5a6d409433396b5e289fad322e75d4c.diff L

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM - cheers https://github.com/llvm/llvm-project/pull/167236 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/167236 >From 7dce6c64d62258feb5ff347e3af28e0d247299aa Mon Sep 17 00:00:00 2001 From: TelGome Date: Sun, 9 Nov 2025 22:29:36 +0800 Subject: [PATCH 1/2] Generalize interp__builtin_ia32_shuffle_generic to handle single o

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread via cfe-commits
https://github.com/TelGome updated https://github.com/llvm/llvm-project/pull/167236 >From 7dce6c64d62258feb5ff347e3af28e0d247299aa Mon Sep 17 00:00:00 2001 From: TelGome Date: Sun, 9 Nov 2025 22:29:36 +0800 Subject: [PATCH 1/2] Generalize interp__builtin_ia32_shuffle_generic to handle single o

[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-11-11 Thread Alex Duran via cfe-commits
@@ -1982,6 +2032,17 @@ void GenericPluginTy::print_device_info(int32_t DeviceId) { toString(std::move(Err)).data()); } +int64_t GenericPluginTy::query_device_info(int32_t DeviceId, + DeviceQueryKind Query) { + const Generi

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)

2025-11-11 Thread Zahira Ammarguellat via cfe-commits
@@ -2045,6 +2046,13 @@ void OMPClausePrinter::VisitOMPThreadsetClause(OMPThreadsetClause *Node) { << ")"; } +void OMPClausePrinter::VisitOMPTransparentClause(OMPTransparentClause *Node) { + OS << "transparent(" + << getOpenMPSimpleClauseTypeName(OMPC_transparent, +

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread via cfe-commits
github-actions[bot] wrote: @TelGome Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/167236 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX512] rematerialize smaller predicate masks (PR #166178)

2025-11-11 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/166178 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] ddaa2c3 - [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (#167236)

2025-11-11 Thread via cfe-commits
Author: TelGome Date: 2025-11-11T14:51:10Z New Revision: ddaa2c307dc74cc4ec5d11bbf025d30f1c9ec22b URL: https://github.com/llvm/llvm-project/commit/ddaa2c307dc74cc4ec5d11bbf025d30f1c9ec22b DIFF: https://github.com/llvm/llvm-project/commit/ddaa2c307dc74cc4ec5d11bbf025d30f1c9ec22b.diff LOG: [Clan

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] [Clang][Solaris] Support --ld-path in Solaris driver (PR #163000)

2025-11-11 Thread Daniel Levin via cfe-commits
https://github.com/daniel-levin updated https://github.com/llvm/llvm-project/pull/163000 >From dd443a162de6f14f923d67efbb4a082840ad3e08 Mon Sep 17 00:00:00 2001 From: Daniel Levin Date: Wed, 22 Oct 2025 14:31:04 + Subject: [PATCH] [Clang] [Driver] Support --ld-path flag on Illumos/Solaris

[clang] [analyzer] StdVariantChecker: fix crash when argument to `std::get` is `UnknownVal` (PR #167341)

2025-11-11 Thread via cfe-commits
guillem-bartrina-sonarsource wrote: @steakhal https://github.com/llvm/llvm-project/pull/167341 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LTO] Parse global inline assembly with +all target flags (PR #167439)

2025-11-11 Thread Andrew Savonichev via cfe-commits
asavonic wrote: > We can instead propagate a CPU and target flags from all tools that use > ModuleSymbolTable I checked this briefly, and there are quite a few places where target features are not really known, and only an IR module is available. So I think we have to keep this information in

[clang] [LifetimeSafety] Detect use-after-return (PR #165370)

2025-11-11 Thread Kashika Akhouri via cfe-commits
@@ -1202,5 +1202,241 @@ TEST_F(LifetimeAnalysisTest, LivenessOutsideLoop) { EXPECT_THAT(Origins({"p"}), MaybeLiveAt("p1")); } kashika0112 wrote: Could you clarify this more. As seen before, no program point is available after the return statement. We alrea

[clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)

2025-11-11 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/166810 >From ec999cb001304680af55b79591c8b998dbcfd925 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 6 Nov 2025 09:17:08 -0800 Subject: [PATCH 1/8] [CLANG][OpenMP] Add support for OpenMP6.0 transparent

[clang] feat: included support for is_constant builtin (PR #166832)

2025-11-11 Thread Henrich Lauko via cfe-commits
@@ -199,6 +199,43 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, return RValue::get( builder.createBitcast(allocaAddr, builder.getVoidPtrTy())); } + + case Builtin::BI__builtin_constant_p: { +mlir::Location loc = getLo

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,216 @@ +// RUN: %check_clang_tidy %s performance-lost-std-move %t + +namespace std { + +template +class shared_ptr { +public: + T& operator*() { return reinterpret_cast(*this); } + shared_ptr() {} + shared_ptr(const shared_ptr&) {} +}; + +template +T&& move(T&) +{ +}

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,216 @@ +// RUN: %check_clang_tidy %s performance-lost-std-move %t + +namespace std { + +template +class shared_ptr { +public: + T& operator*() { return reinterpret_cast(*this); } + shared_ptr() {} + shared_ptr(const shared_ptr&) {} +}; + +template +T&& move(T&) +{ +}

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] [flang] [mlir] Remove deprecated GEN_PASS_CLASSES (PR #167496)

2025-11-11 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar created https://github.com/llvm/llvm-project/pull/167496 Update CIR & flang in preparation for removing in #166904 (split out from there, sufficient approvals there but wanted to enable more time to removing feature). >From b95d452e2d9525467ce730f117fe7d71eb13f783

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-11-11 Thread Manuel Carrasco via cfe-commits
https://github.com/mgcarrasco converted_to_draft https://github.com/llvm/llvm-project/pull/162282 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX512] rematerialize smaller predicate masks (PR #166178)

2025-11-11 Thread Ahmed Nour via cfe-commits
ahmednoursphinx wrote: Hey @RKSimon addressed your feedback please check when you have time https://github.com/llvm/llvm-project/pull/166178 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [llvm] Treat specifying a function in the bbsection profile without any directive as noop. (PR #167359)

2025-11-11 Thread David Spickett via cfe-commits
DavidSpickett wrote: ``` $ ./bin/lldb-dotest -p TestStepUntilAPI.py ``` And it'll tell you why they were unsupported. I'm looking at the failure on AArch64 Linux right now. https://github.com/llvm/llvm-project/pull/167359 ___ cfe-commits mailing list

[libunwind] 5cb2c68 - [libunwind][AArch64] Disable ZA before resuming from unwinding (on Linux) (#165451)

2025-11-11 Thread via cfe-commits
Author: Benjamin Maxwell Date: 2025-11-11T09:46:13Z New Revision: 5cb2c6806e8c78776935b2972e4c8b6dfcda697d URL: https://github.com/llvm/llvm-project/commit/5cb2c6806e8c78776935b2972e4c8b6dfcda697d DIFF: https://github.com/llvm/llvm-project/commit/5cb2c6806e8c78776935b2972e4c8b6dfcda697d.diff L

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

2025-11-11 Thread Simon Pilgrim via cfe-commits
@@ -4718,6 +4718,30 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, return APInt(8, 0); }); + case X86::BI__builtin_ia32_palignr128: + case X86::BI__builtin_ia32_palignr256: + case X86::BI__builtin_ia32_palignr512: +return

[clang-tools-extra] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files (PR #167269)

2025-11-11 Thread via cfe-commits
zeyi2 wrote: Hi, I've added a new `.editorconfig` file for `clang-tidy`, it will apply checks to all the files under the folder. https://github.com/llvm/llvm-project/pull/167269 ___ cfe-commits mailing list [email protected] https://lists.llv

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

2025-11-11 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: Sorry for missing out on this! Left initiall feedback, I will soon try to look closely. For now it just fells that this complex check is under-tested, we better think about more potential edge cases. https://github.com/llvm/llvm-project/pull/139525 __

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled https://github.com/llvm/llvm-project/pull/167236 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] Remove deprecated GEN_PASS_CLASSES (PR #167496)

2025-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-codegen Author: Jacques Pienaar (jpienaar) Changes Update CIR & flang in preparation for removing in #166904 (split out from there, sufficient approvals there but wanted to enable more time to removing feature). --- Full diff: https://github.com

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)

2025-11-11 Thread Alexey Bataev via cfe-commits
@@ -2045,6 +2046,13 @@ void OMPClausePrinter::VisitOMPThreadsetClause(OMPThreadsetClause *Node) { << ")"; } +void OMPClausePrinter::VisitOMPTransparentClause(OMPTransparentClause *Node) { + OS << "transparent(" + << getOpenMPSimpleClauseTypeName(OMPC_transparent, +

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

2025-11-11 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,196 @@ +//===--===// +// +// 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: Apa

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: merge failure? https://github.com/llvm/llvm-project/pull/167236 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)

2025-11-11 Thread Alexey Bataev via cfe-commits
@@ -11675,6 +11678,15 @@ void OMPClauseReader::VisitOMPThreadsetClause(OMPThreadsetClause *C) { C->setThreadsetKind(TKind); } +void OMPClauseReader::VisitOMPTransparentClause(OMPTransparentClause *C) { + C->setLParenLoc(Record.readSourceLocation()); + SourceLocation Trans

[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-11-11 Thread Alex Duran via cfe-commits
@@ -571,8 +572,8 @@ struct AMDGPUKernelTy : public GenericKernelTy { /// Launch the AMDGPU kernel function. Error launchImpl(GenericDeviceTy &GenericDevice, uint32_t NumThreads[3], - uint32_t NumBlocks[3], KernelArgsTy &KernelArgs, - Ker

[clang] [flang] [mlir] Remove deprecated GEN_PASS_CLASSES (PR #167496)

2025-11-11 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar closed https://github.com/llvm/llvm-project/pull/167496 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Handle ?: operator in fold expression (PR #164019)

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

[clang] [Clang/test] Add required targets to gpu-libc.c (PR #166900)

2025-11-11 Thread Madhur Amilkanthwar via cfe-commits
https://github.com/madhur13490 closed https://github.com/llvm/llvm-project/pull/166900 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-11-11 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/166449 >From 99c97887389d5255905394052a766b7dee2129fd Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Thu, 30 Oct 2025 17:06:11 -0700 Subject: [PATCH 1/5] as far as I can go without adding CAFM --- clang/include

[clang] [X86][Clang] Allow constexpr evaluation of F16C CVTPS2PH intrinsics (PR #162295)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/162295 >From eec4aebc63665d0b2fd4e07d42bd62e268d1f69f Mon Sep 17 00:00:00 2001 From: ericxu233 Date: Sun, 5 Oct 2025 01:41:40 -0400 Subject: [PATCH 1/4] [X86][Clang] Allow constexpr evaluation of F16C CVTPS2PH intrins

[clang] [Clang] Generalize interp__builtin_ia32_shuffle_generic to handle single op permute shuffles. (PR #167236)

2025-11-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. https://github.com/llvm/llvm-project/pull/167236 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-11-11 Thread Alex Duran via cfe-commits
@@ -794,6 +805,12 @@ struct GenericDeviceTy : public DeviceAllocatorTy { /// Get the unique identifier of the device. const char *getDeviceUid() const { return DeviceUid.c_str(); } + /// Get the total shared memory per block that can be used in any kernel. + uint32_t get

[clang] [Clang][ASTImporter] Fix cycle in importing template specialization on auto type with typename (PR #162514)

2025-11-11 Thread via cfe-commits
@@ -254,6 +256,13 @@ class TypeSourceInfo; /// Declaration (from, to) pairs that are known not to be equivalent /// (which we have already complained about). NonEquivalentDeclSet NonEquivalentDecls; +/// A FunctionDecl can have properties that have a reference t

  1   2   >