[clang] [llvm] [PowerPC] Support for Packed BCD conversion builtins (PR #142723)

2025-06-24 Thread via cfe-commits
https://github.com/Himadhith updated https://github.com/llvm/llvm-project/pull/142723 >From ccaa61d070ba3df59a75945d4e8c3275c71500a9 Mon Sep 17 00:00:00 2001 From: himadhith Date: Wed, 4 Jun 2025 06:13:13 + Subject: [PATCH] [PowerPC] Support for Packed BCD conversion builtins --- clang/in

[clang] [llvm] [PowerPC] Support for Packed BCD conversion builtins (PR #142723)

2025-06-24 Thread via cfe-commits
@@ -567,6 +567,12 @@ TARGET_BUILTIN(__builtin_altivec_vextsh2w, "V4SiV8Ss", "", "power9-vector") TARGET_BUILTIN(__builtin_altivec_vextsh2d, "V2SLLiV8Ss", "", "power9-vector") TARGET_BUILTIN(__builtin_altivec_vextsw2d, "V2SLLiV4Si", "", "power9-vector") +// P9 Binary-coded dec

[clang] Reapply "[Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (#115099)" (PR #138360)

2025-06-24 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/21962 Here is the relevant piece of the build log fo

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

2025-06-24 Thread via cfe-commits
sivadeilra wrote: I've updated the comments and the PR description so that the tone is more neutral, and describes the state of LLVM after the PR, with less emphasis on LLVM's old behavior. https://github.com/llvm/llvm-project/pull/144745 ___ cfe-com

[clang] [clang-format] Improve QualifierAlignment in guessing macros (PR #145468)

2025-06-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #145388 --- Full diff: https://github.com/llvm/llvm-project/pull/145468.diff 2 Files Affected: - (modified) clang/lib/Format/QualifierAlignmentFixer.cpp (+18-7) - (modified) clang/unittests/Format

[clang] [llvm] [PowerPC] Support for Packed BCD conversion builtins (PR #142723)

2025-06-24 Thread via cfe-commits
https://github.com/Himadhith updated https://github.com/llvm/llvm-project/pull/142723 >From 13bb90db00e38147a8e4fc7cab9e2d2076d2180a Mon Sep 17 00:00:00 2001 From: himadhith Date: Wed, 4 Jun 2025 06:13:13 + Subject: [PATCH 1/2] [PowerPC] Support for Packed BCD conversion builtins --- clan

[clang] [docs][coroutines] Revamp "Debugging C++ coroutines" (PR #142651)

2025-06-24 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/142651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)

2025-06-24 Thread Tom Honermann via cfe-commits
@@ -2886,6 +2887,16 @@ class CXXDestructorDecl : public CXXMethodDecl { return getCanonicalDecl()->OperatorDelete; } + const FunctionDecl *getOperatorGlobalDelete() const { +return getCanonicalDecl()->OperatorGlobalDelete; + } + + void setOperatorGlobalDelete(Func

[clang] Reapply "[CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #144886)

2025-06-24 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: Thanks ! https://github.com/llvm/llvm-project/pull/144886 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8ec0552 - Reapply "[CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (#144886)

2025-06-24 Thread via cfe-commits
Author: Juan Manuel Martinez Caamaño Date: 2025-06-24T09:13:13+02:00 New Revision: 8ec0552a7f1f50986dda6d13eae310d121d7e3ba URL: https://github.com/llvm/llvm-project/commit/8ec0552a7f1f50986dda6d13eae310d121d7e3ba DIFF: https://github.com/llvm/llvm-project/commit/8ec0552a7f1f50986dda6d13eae310d

[clang] [clang-format] Improve QualifierAlignment in guessing macros (PR #145468)

2025-06-24 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/145468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-24 Thread Balázs Benics via cfe-commits
@@ -317,21 +317,21 @@ class SValBuilder { return nonloc::LocAsInteger(BasicVals.getPersistentSValWithData(loc, bits)); } - nonloc::SymbolVal makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, - APSIntPtr rhs, QualType type); + Defi

[clang] [clang-format] Handle Trailing Whitespace After Line Continuation (P2223R2) (PR #145243)

2025-06-24 Thread Björn Schäpers via cfe-commits
@@ -1295,13 +1305,18 @@ FormatToken *FormatTokenLexer::getNextToken() { case '/': // The text was entirely whitespace when this loop was entered. Thus // this has to be an escape sequence. -assert(Text.substr(i, 2) == "\\\r" || Text.substr(i, 2) ==

[clang] Reapply "[CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #144886)

2025-06-24 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez closed https://github.com/llvm/llvm-project/pull/144886 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce elementwise clz/ctz builtins (PR #131995)

2025-06-24 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: ping https://github.com/llvm/llvm-project/pull/131995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Handle Trailing Whitespace After Line Continuation (P2223R2) (PR #145243)

2025-06-24 Thread Owen Pan via cfe-commits
@@ -1295,13 +1305,18 @@ FormatToken *FormatTokenLexer::getNextToken() { case '/': // The text was entirely whitespace when this loop was entered. Thus // this has to be an escape sequence. -assert(Text.substr(i, 2) == "\\\r" || Text.substr(i, 2) ==

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-24 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,157 @@ +//===- AMDGPUExpandFeaturePredicates.cpp - Feature Predicate Expander Pass ===// +// +// 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: Ap

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-24 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/134016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix false positives in `readability-redundant-inline-specifier` (PR #135391)

2025-06-24 Thread Björn Svensson via cfe-commits
https://github.com/bjosv updated https://github.com/llvm/llvm-project/pull/135391 From 08d6512c85ad2d4fa0372c73eeedc02012d88327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Thu, 10 Apr 2025 13:46:28 +0200 Subject: [PATCH 1/3] [clang-tidy] Add additional test for reada

[clang] [clang][bytecode] Fix IntegralAP::{isMin,isMax} (PR #145339)

2025-06-24 Thread antoine moynault via cfe-commits
antmox wrote: Hi, Could this be the cause of this buildbot failure ? https://lab.llvm.org/buildbot/#/builders/122/builds/1647 > File > /home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/clang/test/AST/ByteCode/intap.cpp > Line 51: __int128 is not supported on this target > File > /home/

[clang] [clang][bytecode] Fix IntegralAP::{isMin,isMax} (PR #145339)

2025-06-24 Thread antoine moynault via cfe-commits
antmox wrote: Oops Ok! missed this one. Thanks! https://github.com/llvm/llvm-project/pull/145339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix IntegralAP::{isMin,isMax} (PR #145339)

2025-06-24 Thread Timm Baeder via cfe-commits
tbaederr wrote: Yes, you need https://github.com/llvm/llvm-project/commit/0e461d1781f1c67cc2724150c6da848f6ea75f3a as well https://github.com/llvm/llvm-project/pull/145339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[libclc] [NFC][libclc] Replace and delete _CLC_DEFINE_UNARY/BINARY/TERNARY_BUILTIN macros (PR #145458)

2025-06-24 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/145458 >From 0cbf5c96077bce977168497670e3ffae9e70e5d5 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Tue, 24 Jun 2025 06:59:27 +0200 Subject: [PATCH 1/3] [NFC][libclc] Replace and delete _CLC_DEFINE_UNARY/BINARY/TERNA

[clang] [clang][RISCV] Fix crash on VLS calling convention (PR #145489)

2025-06-24 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/145489 This patch handle struct of fixed vector and struct of array of fixed vector correctly for VLS calling convention in EmitFunctionProlog, EmitFunctionEpilog and EmitCall. >From 5d4fb54e6ee61c258d4fb1a5ecb00021ad

[clang] [clang][RISCV] Fix crash on VLS calling convention (PR #145489)

2025-06-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes This patch handle struct of fixed vector and struct of array of fixed vector correctly for VLS calling convention in EmitFunctionProlog, EmitFunctionEpilog and EmitCall. --- Full diff: https://github.com/llvm/

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-06-24 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Would it be possible to limit this to run on only C++ code Yes, It should only be limited to C++ code for now. I overlooked `isLanguageVersionSupported` method, sorry for the inconvenience. https://github.com/llvm/llvm-project/pull/127430 _

[clang-tools-extra] [clang-reorder-fields] Support designated initializers (PR #142150)

2025-06-24 Thread Vladimir Vuksanovic via cfe-commits
vvuksanovic wrote: @alexander-shaposhnikov https://github.com/llvm/llvm-project/pull/142150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [-Wunsafe-buffer-usage] Support span creation from std::initializer_list and begin/end pairs (PR #145311)

2025-06-24 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/145311 >From 9826ba3dbb8223d948ac850ec81646eb6c3c76ed Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Mon, 23 Jun 2025 18:59:04 +0800 Subject: [PATCH 1/2] [-Wunsafe-buffer-usage] Support span creation from std::i

[clang] [clang][RISCV] Fix crash on VLS calling convention (PR #145489)

2025-06-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Brandon Wu (4vtomat) Changes This patch handle struct of fixed vector and struct of array of fixed vector correctly for VLS calling convention in EmitFunctionProlog, EmitFunctionEpilog and EmitCall. --- Full diff: https://github.c

[clang] 049d61a - [flang][AArch64] Always link compiler-rt to flang after libgcc (#144710)

2025-06-24 Thread via cfe-commits
Author: David Truby Date: 2025-06-24T11:08:13+01:00 New Revision: 049d61ad65b0040e8581d46682e78501fc17dd1e URL: https://github.com/llvm/llvm-project/commit/049d61ad65b0040e8581d46682e78501fc17dd1e DIFF: https://github.com/llvm/llvm-project/commit/049d61ad65b0040e8581d46682e78501fc17dd1e.diff L

[clang] [flang] [llvm] [flang][AArch64] Always link compiler-rt to flang after libgcc (PR #144710)

2025-06-24 Thread David Truby via cfe-commits
https://github.com/DavidTruby closed https://github.com/llvm/llvm-project/pull/144710 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix `pragma-comment.c` test failing on false match (PR #145455)

2025-06-24 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] [llvm] [OpenMP][clang] 6.0: parsing/sema for num_threads 'strict' modifier (PR #145490)

2025-06-24 Thread Robert Imschweiler via cfe-commits
https://github.com/ro-i created https://github.com/llvm/llvm-project/pull/145490 Implement parsing and semantic analysis support for the optional 'strict' modifier of the num_threads clause. This modifier has been introduced in OpenMP 6.0, section 12.1.2. Note: this is basically 1:1 https://re

[libclc] [NFC][libclc] Replace and delete _CLC_DEFINE_UNARY/BINARY/TERNARY_BUILTIN macros (PR #145458)

2025-06-24 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/145458 >From 0cbf5c96077bce977168497670e3ffae9e70e5d5 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Tue, 24 Jun 2025 06:59:27 +0200 Subject: [PATCH 1/2] [NFC][libclc] Replace and delete _CLC_DEFINE_UNARY/BINARY/TERNA

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-24 Thread Abhinav Gaba via cfe-commits
@@ -8811,8 +8829,19 @@ class MappableExprsHandler { ++EI; } } -llvm::stable_sort(DeclComponentLists, [](const MapData &LHS, - const MapData &RHS) { +llvm::stable_sort(DeclComponentLists, [VD](const MapData &L

[clang] [llvm] [PowerPC] Support for Packed BCD conversion builtins (PR #142723)

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

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-24 Thread Abhinav Gaba via cfe-commits
@@ -1,174 +1,178 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-fileche

[libclc] [NFC][libclc] Replace and delete _CLC_DEFINE_UNARY/BINARY/TERNARY_BUILTIN macros (PR #145458)

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

[clang] [llvm] [OpenMP][clang] 6.0: parsing/sema for num_threads 'strict' modifier (PR #145490)

2025-06-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Robert Imschweiler (ro-i) Changes Implement parsing and semantic analysis support for the optional 'strict' modifier of the num_threads clause. This modifier has been introduced in OpenMP 6.0, section 12.1.2. Note: this is basically 1:1

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-06-24 Thread via cfe-commits
henrickarlsson wrote: I see this is reverted now, but while it was in I noticed that it also triggers for .c files. But the suggested fix is for C++ Would it be possible to limit this to run on only C++ code or suggest a separate fix targeted for C? https://github.com/llvm/llvm-project/pull/12

[libclc] [NFC][libclc] Replace and delete _CLC_DEFINE_UNARY/BINARY/TERNARY_BUILTIN macros (PR #145458)

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

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-24 Thread Abhinav Gaba via cfe-commits
@@ -1,174 +1,178 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-fileche

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-24 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 HEAD~1 HEAD --extensions c,cpp -- offload/test/mapping/map_ptr_and_subscript_global.c

[clang] Reland "[Modules] Record whether VarDecl initializers contain side effects" (PR #145447)

2025-06-24 Thread Henrik G. Olsson via cfe-commits
hnrklssn wrote: > What is the difference between this one and the previous PR? The second commit, where I prevent constant evaluation if the expression type is null https://github.com/llvm/llvm-project/pull/145447 ___ cfe-commits mailing list cfe-com

[clang] [llvm] [OpenMP][clang] 6.0: parsing/sema for num_threads 'strict' modifier (PR #145490)

2025-06-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Robert Imschweiler (ro-i) Changes Implement parsing and semantic analysis support for the optional 'strict' modifier of the num_threads clause. This modifier has been introduced in OpenMP 6.0, section 12.1.2. Note: this is basica

<    1   2   3   4   5