[clang] [clang] check constant template parameters in dependent contexts (PR #159463)

2025-09-19 Thread Erich Keane via cfe-commits
erichkeane wrote: > Note @mizvekov : we observed on an internal test (I am going to have someone > work on minimizing it) that this causes an assertion. As you can see, it is > all in boost, so a reduction might take a while, but was hoping you might see > something obvious in advance: > > ``

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-09-19 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum commented: Re: Python bindings (`cindex.py`): LGTM https://github.com/llvm/llvm-project/pull/139293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ImmutableSet] Optimize add/remove operations to avoid redundant tree modifications (PR #159845)

2025-09-19 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 ready_for_review https://github.com/llvm/llvm-project/pull/159845 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Add MMX/SSE/AVX PHADD/SUB & HADDPS/D intrinsics to be used in constexpr (PR #156822)

2025-09-19 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 h,c,cpp -- clang/lib/AST/ByteCode/InterpBuiltin.cpp cla

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-19 Thread Matheus Izvekov via cfe-commits
@@ -339,6 +389,8 @@ ConvertTypeToDiagnosticString(ASTContext &Context, QualType Ty, << "' " << Values << ")"; return DecoratedString; } + +TryConvertOverflowBehaviorTypeToDiagnosticString(Context, Ty, S); mizvekov wrote: If you feel the

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/157243 >From a396a93e89eb9b2b81d7212b63d913dcc24600fe Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Sat, 20 Sep 2025 00:56:07 -0400 Subject: [PATCH] [clang-tidy] Support find for string-like classes in read

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-19 Thread via cfe-commits
https://github.com/kimyounhoex1 updated https://github.com/llvm/llvm-project/pull/157403 >From 38b90ecc3dc30668860cc80a6c8f075536764b5e Mon Sep 17 00:00:00 2001 From: kimyounhoex1 Date: Thu, 4 Sep 2025 00:55:24 +0900 Subject: [PATCH 01/15] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-19 Thread via cfe-commits
https://github.com/kimyounhoex1 updated https://github.com/llvm/llvm-project/pull/157403 >From 38b90ecc3dc30668860cc80a6c8f075536764b5e Mon Sep 17 00:00:00 2001 From: kimyounhoex1 Date: Thu, 4 Sep 2025 00:55:24 +0900 Subject: [PATCH 01/14] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-19 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/158447 >From 5bd8d4f925f3b5f82d85ef693861b6b1067d9f38 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sat, 13 Sep 2025 22:54:58 + Subject: [PATCH 1/6] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20i

[clang] 5b13d99 - Revert "[Clang] Enable lit internal shell by default"

2025-09-19 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-09-20T05:56:57Z New Revision: 5b13d99357d5113b0ee4cde2066a024e1df58222 URL: https://github.com/llvm/llvm-project/commit/5b13d99357d5113b0ee4cde2066a024e1df58222 DIFF: https://github.com/llvm/llvm-project/commit/5b13d99357d5113b0ee4cde2066a024e1df58222.diff LOG

[clang] 354ad55 - Revert "[Clang] Make rewrite-includes-bom.c work with internal shell"

2025-09-19 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-09-20T05:56:27Z New Revision: 354ad556e17358db2b22507e3ef07ba39991b189 URL: https://github.com/llvm/llvm-project/commit/354ad556e17358db2b22507e3ef07ba39991b189 DIFF: https://github.com/llvm/llvm-project/commit/354ad556e17358db2b22507e3ef07ba39991b189.diff LOG

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-09-19 Thread via cfe-commits
owenca wrote: > > it has little to do with what I wanted to implement > > Sorry, little in common with what I wanted to implement. Np. See #159909. https://github.com/llvm/llvm-project/pull/131605 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [clang][clang-scan-deps] Add LangOptions::AllowLiteralDigitSeparator to fix (#88896) (PR #158420)

2025-09-19 Thread Shafik Yaghmour via cfe-commits
@@ -1000,6 +1001,21 @@ int z = 128'78; EXPECT_STREQ("#include \n", Out.data()); } +TEST(MinimizeSourceToDependencyDirectivesTest, CharacterLiteralInPreprocessor) { + SmallVector Out; + SmallVector Tokens; + SmallVector Directives; + + StringRef Source = R"( +#if 1'2

[clang] 46ce6a0 - [clang] diagnose invalid std::tuple_size sizes (#159677)

2025-09-19 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-09-19T16:18:21-03:00 New Revision: 46ce6a02ffc15e6b3b8a9ca89714c00c06150bed URL: https://github.com/llvm/llvm-project/commit/46ce6a02ffc15e6b3b8a9ca89714c00c06150bed DIFF: https://github.com/llvm/llvm-project/commit/46ce6a02ffc15e6b3b8a9ca89714c00c06150bed.dif

[clang] [clang-format] Fix for BreakTemplateDeclarations and RequiresClausePosition (PR #159277)

2025-09-19 Thread NagaChaitanya Vellanki via cfe-commits
chaitanyav wrote: @llvm/pr-subscribers-clang-format please review. https://github.com/llvm/llvm-project/pull/159277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-19 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Test failures seem unrelated after rebase on main. I'll try again a little bit later. https://github.com/llvm/llvm-project/pull/157243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [llvm] [lit] Add support for deleting symlinks to directories without -r (PR #158464)

2025-09-19 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 edited https://github.com/llvm/llvm-project/pull/158464 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/157243 >From a396a93e89eb9b2b81d7212b63d913dcc24600fe Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Sat, 20 Sep 2025 00:56:07 -0400 Subject: [PATCH] [clang-tidy] Support find for string-like classes in read

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

2025-09-19 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/158465 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank auto_merge_enabled https://github.com/llvm/llvm-project/pull/157243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 25e218d - [Clang] Enable lit internal shell by default

2025-09-19 Thread via cfe-commits
Author: Aiden Grossman Date: 2025-09-19T21:47:59-07:00 New Revision: 25e218d7562f1f360a8f112de2b771585cd922c3 URL: https://github.com/llvm/llvm-project/commit/25e218d7562f1f360a8f112de2b771585cd922c3 DIFF: https://github.com/llvm/llvm-project/commit/25e218d7562f1f360a8f112de2b771585cd922c3.diff

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

2025-09-19 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 edited https://github.com/llvm/llvm-project/pull/158465 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [lit] Add support for deleting symlinks to directories without -r (PR #158464)

2025-09-19 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/158464 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7a3fa06 - [lit] Make builtin cat work with stdin

2025-09-19 Thread via cfe-commits
Author: Aiden Grossman Date: 2025-09-19T21:43:52-07:00 New Revision: 7a3fa0671b34c067262f14aa07779a1f13908314 URL: https://github.com/llvm/llvm-project/commit/7a3fa0671b34c067262f14aa07779a1f13908314 DIFF: https://github.com/llvm/llvm-project/commit/7a3fa0671b34c067262f14aa07779a1f13908314.diff

[clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-19 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 edited https://github.com/llvm/llvm-project/pull/158447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-19 Thread via cfe-commits
@@ -0,0 +1,419 @@ +//===--===// +// +// 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] [llvm] [SemaHLSL] Correct descriptor range overflow validation (PR #159475)

2025-09-19 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/159475 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-19 Thread Nicolas van Kempen via cfe-commits
@@ -263,6 +263,11 @@ Changes in existing checks ` check to avoid false positives on pure virtual member functions. +- Improved :doc:`readability-container-contains + ` to support string + comparisons to ``npos``. Internal changes may cause new rare false positives + in

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/157243 >From f7eba4431befe2e38a63c54575ae6c156d6da26e Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Sat, 20 Sep 2025 00:34:47 -0400 Subject: [PATCH] [clang-tidy] Support find for string-like classes in read

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/157243 >From f7eba4431befe2e38a63c54575ae6c156d6da26e Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Sat, 20 Sep 2025 00:34:47 -0400 Subject: [PATCH] [clang-tidy] Support find for string-like classes in read

[clang] [clang][ExtractAPI] Fix for nested types are not enabled. (PR #159698)

2025-09-19 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/159698 >From c24df2cedb575c76c89ec5ba2604967e3d3e91c5 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Thu, 18 Sep 2025 20:36:53 -0700 Subject: [PATCH] [clang][ExtractAPI] Fix for nested types are not ena

[clang-tools-extra] [clang-tidy] Rename 'cert-err52-cpp' to 'bugprone-avoid-setjmp-longjmp' (PR #159813)

2025-09-19 Thread via cfe-commits
zeyi2 wrote: Updated docs to fix the broken external CERT link (ERR52-CPP). https://github.com/llvm/llvm-project/pull/159813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang] [llvm] [SemaHLSL] Correct descriptor range overflow validation (PR #159475)

2025-09-19 Thread via cfe-commits
@@ -1377,32 +1378,28 @@ bool SemaHLSL::handleRootSignatureElements( if (Clause->NumDescriptors == 0) return true; -if (Clause->Offset != -llvm::hlsl::rootsig::DescriptorTableOffsetAppend) { - // Manually specified the offset +

[clang-tools-extra] [clang-tidy] Rename 'cert-err52-cpp' to 'bugprone-avoid-setjmp-longjmp' (PR #159813)

2025-09-19 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/159813 >From ca7c7d961cae507c7a0b934ba62a3aecb32f6d01 Mon Sep 17 00:00:00 2001 From: mtx Date: Sat, 20 Sep 2025 00:44:22 +0800 Subject: [PATCH] [clang-tidy] Rename 'cert-err52-cpp' to 'bugprone-avoid-setjmp-longjmp' --

[clang] Fixing array-to-pointer decay induced issue with conversion of the multidimentional arrays in C language. (PR #159896)

2025-09-19 Thread via cfe-commits
https://github.com/earnol created https://github.com/llvm/llvm-project/pull/159896 This PR addresses issue https://github.com/llvm/llvm-project/issues/159603 and stops emitting diagnostics when multidimentional array attempted to be implicitly cast to the pointer type of the same base type. >

[clang] [llvm] [mlir] [AMDGPU] Add the support for 45-bit buffer resource (PR #159702)

2025-09-19 Thread Krzysztof Drewniak via cfe-commits
@@ -5905,33 +5905,42 @@ bool AMDGPULegalizerInfo::legalizePointerAsRsrcIntrin( Register Flags = MI.getOperand(5).getReg(); LLT S32 = LLT::scalar(32); + LLT S64 = LLT::scalar(64); B.setInsertPt(B.getMBB(), ++B.getInsertPt()); - auto Unmerge = B.buildUnmerge(S32, Poin

[clang] [llvm] [SemaHLSL] Correct descriptor range overflow validation (PR #159475)

2025-09-19 Thread via cfe-commits
https://github.com/joaosaffran deleted https://github.com/llvm/llvm-project/pull/159475 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][SPARC] Pass 16-aligned structs with the correct alignment in CC (PR #155829)

2025-09-19 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/155829 >From a8707a6452b77b75603dc780213835f6e5e4b582 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 28 Aug 2025 19:48:38 +0700 Subject: [PATCH 1/8] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC Thi

[clang] [llvm] [SemaHLSL] Correct descriptor range overflow validation (PR #159475)

2025-09-19 Thread via cfe-commits
@@ -1377,32 +1378,28 @@ bool SemaHLSL::handleRootSignatureElements( if (Clause->NumDescriptors == 0) return true; -if (Clause->Offset != -llvm::hlsl::rootsig::DescriptorTableOffsetAppend) { - // Manually specified the offset +

[clang] [llvm] [SemaHLSL] Correct descriptor range overflow validation (PR #159475)

2025-09-19 Thread via cfe-commits
@@ -1377,32 +1378,28 @@ bool SemaHLSL::handleRootSignatureElements( if (Clause->NumDescriptors == 0) return true; -if (Clause->Offset != -llvm::hlsl::rootsig::DescriptorTableOffsetAppend) { - // Manually specified the offset +

[clang] [llvm] [OpenMP 60] Update parsing and semantic support for `nowait` clause to accept optional argument (PR #159628)

2025-09-19 Thread Fazlay Rabbi via cfe-commits
mdfazlay wrote: ping - @alexey-bataev @mjklemm https://github.com/llvm/llvm-project/pull/159628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Avoid adding already present items in sets/maps (PR #159582)

2025-09-19 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159582 >From 215d59c655c6117dc5774dfb8163156aad152044 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 18 Sep 2025 12:52:29 + Subject: [PATCH] [LifetimeSafety] Avoid adding already present items in sets/maps

[clang-tools-extra] [clangd] Doxygen Parsing: Add proper handling of \note, \warning and \retval command + change render kind of command arguments + add preprocessing for markdown code blocks/spans (P

2025-09-19 Thread via cfe-commits
tcottin wrote: I aggree, the separation of brief and details could be better. But: One disadvantage of using the simple header approach for details is that we would rely on the user documentation to create the separation between brief and details. Meaning, only if the `\details` command is use

[clang] [clang] fix expression classification for dependent binary operators (PR #159819)

2025-09-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Thanks! https://github.com/llvm/llvm-project/pull/159819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] Fix for nested types are not enabled. (PR #159698)

2025-09-19 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/159698 >From 6b638a98afd02759b4de7031585a1f0d0ffc8740 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Thu, 18 Sep 2025 20:36:53 -0700 Subject: [PATCH] [clang][ExtractAPI] Fix for nested types are not ena

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread Joseph Huber via cfe-commits
@@ -112,13 +112,39 @@ setupIndirectCallTable(DeviceTy &Device, __tgt_device_image *Image, llvm::SmallVector> IndirectCallTable; for (const auto &Entry : Entries) { if (Entry.Kind != llvm::object::OffloadKind::OFK_OpenMP || -Entry.Size == 0 || !(Entry.Flags & OM

[clang] [Clang] Support includes translated to module imports in -header-include-filtering=direct-per-file (PR #156756)

2025-09-19 Thread Sina Mahdavi via cfe-commits
https://github.com/sina-mahdavi updated https://github.com/llvm/llvm-project/pull/156756 >From 8ab5647fc5c51b42bb67ca46a063fa9815ea46f4 Mon Sep 17 00:00:00 2001 From: Sina Mahdavi Date: Wed, 3 Sep 2025 14:17:27 -0700 Subject: [PATCH 1/5] [Clang] Support includes translated to module imports in

[clang] [CodeGen] Fix cleanup attribute for C89 for-loop init variables (PR #156643)

2025-09-19 Thread Jongmyeong Choi via cfe-commits
jongmyeong-choi wrote: Could you please merge this change? I don't seem to have permission to do so. https://github.com/llvm/llvm-project/pull/156643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 commented: Needs a runtime test https://github.com/llvm/llvm-project/pull/159856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread Joseph Huber via cfe-commits
@@ -1771,12 +1771,126 @@ void CGOpenMPRuntime::emitDeclareTargetFunction(const FunctionDecl *FD, Addr->setVisibility(llvm::GlobalValue::ProtectedVisibility); } + // Register the indirect Vtable: + // This is similar to OMPTargetGlobalVarEntryIndirect, except that the

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread Joseph Huber via cfe-commits
@@ -0,0 +1,280 @@ +///==/// +// RUN: %clang_cc1 -DCK1 -verify -fopenmp -Wno-openmp-mapping -x c++ -triple x86_64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -fopenmp-cuda-mode -emit-llvm-bc %s -o %

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/159856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread Joseph Huber via cfe-commits
@@ -443,7 +444,9 @@ static int loadImagesOntoDevice(DeviceTy &Device) { // the device to point to the memory on the host. if ((PM->getRequirements() & OMP_REQ_UNIFIED_SHARED_MEMORY) || (PM->getRequirements() & OMPX_REQ_AUTO_ZERO_COPY)) { -

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread Joseph Huber via cfe-commits
@@ -112,13 +112,39 @@ setupIndirectCallTable(DeviceTy &Device, __tgt_device_image *Image, llvm::SmallVector> IndirectCallTable; for (const auto &Entry : Entries) { if (Entry.Kind != llvm::object::OffloadKind::OFK_OpenMP || -Entry.Size == 0 || !(Entry.Flags & OM

[clang] [CIR] Fix structors for multidimensional arrrays (PR #159820)

2025-09-19 Thread Morris Hafner via cfe-commits
https://github.com/mmha closed https://github.com/llvm/llvm-project/pull/159820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] diagnose invalid std::tuple_size sizes (PR #159677)

2025-09-19 Thread Erich Keane via cfe-commits
@@ -1222,6 +1222,16 @@ static IsTupleLike isTupleLike(Sema &S, SourceLocation Loc, QualType T, if (E.isInvalid()) return IsTupleLike::Error; + if (Size < 0 || Size >= UINT_MAX) { erichkeane wrote: Oh! sure, yeah, that is reasonable. https://github.c

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-19 Thread via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/158703 >From 1b81bf79bc7e6a2c1df846b27e4a95cf1cb97090 Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Mon, 15 Sep 2025 10:58:34 -0700 Subject: [PATCH 1/9] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - a

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-19 Thread via cfe-commits
donneypr wrote: @RKSimon from what I can see in clang/lib/Headers/mmintrin.h, it looks like all the intrinsics you mentioned are already being used in CONSTEXPR, shall I make test cases for it? Thanks for providing the test cases for the others, I will get them in the right builtins file and

[clang] [Clang][AST] Fix printing for `atomic_test_and_set` and `atomic_clear` (PR #159712)

2025-09-19 Thread via cfe-commits
devajithvs wrote: Thanks for reviewing @cor3ntin. Would you mind merging this? (I don't have commit access yet) https://github.com/llvm/llvm-project/pull/159712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] 50ef746 - Fix perf-helper.py (#159745)

2025-09-19 Thread via cfe-commits
Author: Konrad Kleine Date: 2025-09-19T16:56:29+02:00 New Revision: 50ef746a12a77e2e9f0c61f3ad92dfe0d8019194 URL: https://github.com/llvm/llvm-project/commit/50ef746a12a77e2e9f0c61f3ad92dfe0d8019194 DIFF: https://github.com/llvm/llvm-project/commit/50ef746a12a77e2e9f0c61f3ad92dfe0d8019194.diff

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread via cfe-commits
Jason-VanBeusekom wrote: @jhuber6 @jdoerfert Would there be anyone else I should ping as a reviewer? This is my first PR so I do not have permissions to manually add someone as a reviewer. https://github.com/llvm/llvm-project/pull/159856 ___ cfe-comm

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-19 Thread via cfe-commits
https://github.com/donneypr updated https://github.com/llvm/llvm-project/pull/157582 >From f0f99274e8b5d48ac12fafbc70b99cbf3b4fdf99 Mon Sep 17 00:00:00 2001 From: donneypr Date: Mon, 8 Sep 2025 19:54:43 -0400 Subject: [PATCH 01/12] [clang][x86][headers] Make SSE2 add/sub intrinsics constexpr

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-19 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. please can you merge against trunk https://github.com/llvm/llvm-project/pull/158703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [flang] [clang][flang] Add support for -finit-local-zero (PR #159788)

2025-09-19 Thread via cfe-commits
https://github.com/NimishMishra created https://github.com/llvm/llvm-project/pull/159788 This PR adds support for -finit-local-zero. It follows the following semantics: 1. Initialises local INTEGER, REAL, and COMPLEX variables to zero, LOGICAL variables to false, and CHARACTER variables to a s

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-19 Thread via cfe-commits
kimsh02 wrote: I couldn't get clang-format to change any files, my recent push was just to rebase. https://github.com/llvm/llvm-project/pull/158703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

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

2025-09-19 Thread Joshua Cranmer via cfe-commits
jcranmer-intel wrote: The topic is a little difficult to broach to the C/C++ committees because it's an interaction of aspects of each language that the other committee doesn't want to talk about for the most part, so you end up having to interpolate general design guidelines to figure out wha

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread via cfe-commits
https://github.com/Jason-VanBeusekom edited https://github.com/llvm/llvm-project/pull/159856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 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] [clang][PAC] Don't try to diagnose use of pointer auth on dependent types #159505 (PR #159859)

2025-09-19 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/159859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-19 Thread via cfe-commits
https://github.com/donneypr updated https://github.com/llvm/llvm-project/pull/157582 >From f0f99274e8b5d48ac12fafbc70b99cbf3b4fdf99 Mon Sep 17 00:00:00 2001 From: donneypr Date: Mon, 8 Sep 2025 19:54:43 -0400 Subject: [PATCH 01/11] [clang][x86][headers] Make SSE2 add/sub intrinsics constexpr

[clang] [clang][PAC] Don't try to diagnose use of pointer auth on dependent types #159505 (PR #159859)

2025-09-19 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/159859 >From 1344c121f7e980364627ad9ffebd040ce90093b1 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 19 Sep 2025 15:37:41 -0600 Subject: [PATCH] [clang][PAC] Don't try to diagnose use of pointer auth on dependen

[clang] [clang][PAC] Don't try to diagnose use of pointer auth on dependent types #159505 (PR #159859)

2025-09-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) Changes We can't give a correct answer for dependent types, so for now just report no ptrauth involves if the type being queried is dependent. In future we may want to distinguigh the `None` vs `Dependent` cases but t

[clang] [llvm] [OpenMP][clang] Indirect and Virtual function call mapping from host to device (PR #159857)

2025-09-19 Thread via cfe-commits
https://github.com/Jason-VanBeusekom created https://github.com/llvm/llvm-project/pull/159857 This adds a feature to insert CPU-to-GPU function pointer translation at GPU call-sites How it works: Search Clang AST within "omp target" region for CallExprs. Store them in the set CrayOMPTa

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread via cfe-commits
https://github.com/Jason-VanBeusekom created https://github.com/llvm/llvm-project/pull/159856 This PR adds support for registering VTables and indirect function calls in OpenMP target regions, enabling virtual function calls in OpenMP target offloading. It's the first part of a two-PR series t

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-19 Thread Younan Zhang via cfe-commits
@@ -1625,6 +1647,13 @@ namespace { NamedDecl *FirstQualifierInScope = nullptr, bool AllowInjectedClassName = false); +/// Check for tag mismatches when instantiating an +/// elaborated type. +QualType RebuildElabo

[clang] [clang][PAC] Don't try to diagnose use of pointer auth on dependent types #159505 (PR #159859)

2025-09-19 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/159859 We can't give a correct answer for dependent types, so for now just report no ptrauth involves if the type being queried is dependent. In future we may want to distinguigh the `None` vs `Dependent` cases but tha

[clang] [llvm] [OpenMP][clang] Indirect and Virtual function call mapping from host to device (PR #159857)

2025-09-19 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] Indirect and Virtual function call mapping from host to device (PR #159857)

2025-09-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-offload Author: None (Jason-VanBeusekom) Changes This adds a feature to insert CPU-to-GPU function pointer translation at GPU call-sites How it works: Search Clang AST within "omp target" region for CallExprs. Store them in the set CrayOMPTarge

[clang] [llvm] [OpenMP][clang] Indirect and Virtual function call mapping from host to device (PR #159857)

2025-09-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Jason-VanBeusekom) Changes This adds a feature to insert CPU-to-GPU function pointer translation at GPU call-sites How it works: Search Clang AST within "omp target" region for CallExprs. Store them in the set CrayOMPTargetC

[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

2025-09-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Jason-VanBeusekom) Changes This PR adds support for registering VTables and indirect function calls in OpenMP target regions, enabling virtual function calls in OpenMP target offloading. It's the first part of a two-PR series to ful

[clang] 7165cf3 - [CIR] Fix structors for multidimensional arrrays (#159820)

2025-09-19 Thread via cfe-commits
Author: Morris Hafner Date: 2025-09-19T23:44:33+02:00 New Revision: 7165cf3e1266958c4457abeeadf9d9e965b51c92 URL: https://github.com/llvm/llvm-project/commit/7165cf3e1266958c4457abeeadf9d9e965b51c92 DIFF: https://github.com/llvm/llvm-project/commit/7165cf3e1266958c4457abeeadf9d9e965b51c92.diff

[clang] [llvm] [ImmutableSet] Optimize add/remove operations to avoid redundant tree modifications (PR #159845)

2025-09-19 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/159845 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Fix structors for multidimensional arrrays (PR #159820)

2025-09-19 Thread Morris Hafner via cfe-commits
mmha wrote: I mostly wondered if there's an actual usecase here and it makes array to pointer decays a little awkward (though not too painful IMO). I think the better approach would be to change the Array structor ops to accept a pair of pointers instead of an array. That makes it simple to ad

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-19 Thread via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/158703 >From 1b81bf79bc7e6a2c1df846b27e4a95cf1cb97090 Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Mon, 15 Sep 2025 10:58:34 -0700 Subject: [PATCH 1/9] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - a

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

2025-09-19 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: > `__builtin_fma` is not a standard library call, nor is it a function call. Yes, but the PR clearly affected non-`__builtin-`-prefixed calls. See https://github.com/llvm/llvm-project/pull/158048#pullrequestreview-3236886909. https://github.com/llvm/llvm-project/p

[clang] [clang] check constant template parameters in dependent contexts (PR #159463)

2025-09-19 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/159463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] Fix compilation errors (PR #159293)

2025-09-19 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] [CIR] Fix structors for multidimensional arrrays (PR #159820)

2025-09-19 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM > I wonder whether we should immediately flatten multidimensional arrays in CIR > instead of casting pointers. Do we need this information for something? Sounds like we might lose some of the type information flow here, however

[clang] [llvm] [ImmutableSet] Optimize add/remove operations to avoid redundant tree modifications (PR #159845)

2025-09-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-temporal-safety Author: Utkarsh Saxena (usx95) Changes Optimize ImmutableSet operations to avoid unnecessary tree modifications when adding existing elements or removing non-existent elements. - Modified `ImutAVLFactory::add_internal()` to return

[clang] [llvm] [InstCombine] fold float clamp pattern into llvm.max/min (PR #159652)

2025-09-19 Thread Yingwei Zheng via cfe-commits
dtcxzyw wrote: Can you refine https://github.com/llvm/llvm-project/blob/24b03d3217e41536cee7c868860b5930160ad526/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp#L4171-L4196 to handle this fold? As for the denormal flushing problem, we can check if the denormal mode of current function is

[clang] [modules] Fix assert on Clang module import from the global module fragment. (PR #159771)

2025-09-19 Thread Koby Kahane via cfe-commits
@@ -772,7 +772,12 @@ void Sema::BuildModuleInclude(SourceLocation DirectiveLoc, Module *Mod) { Module *ThisModule = PP.getHeaderSearchInfo().lookupModule( getLangOpts().CurrentModule, DirectiveLoc, false, false); (void)ThisModule; -assert(ThisModule && "was

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

2025-09-19 Thread Joshua Cranmer via cfe-commits
jcranmer-intel wrote: > Perhaps that is how you read the intent; however, the wording is clear that > standard library calls are only subject to `FENV_ROUND` behaviour when they > _are_ macro-replaced (by macros defined by the C library headers). `__builtin_fma` is not a standard library call,

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

2025-09-19 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: > * If `FENV_ACCESS` is off and `FENV_ROUND` is present, then we are in the > fully default FP environment except that the rounding mode isn't necessarily > in the default rounding mode. We can do the translation at compile-time, even > if `FENV_ROUND` is `FE_DYNA

[clang] [clang] fix expression classification for dependent binary operators (PR #159819)

2025-09-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This fixes a regression reported here: https://github.com/llvm/llvm-project/pull/159463#issuecomment-3312157416 Since this regression was never released, there are no release notes. --- Full diff: https

[clang] [llvm] [Offload] Change ELF machine type for SPIR-V OpenMP image (PR #159623)

2025-09-19 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/159623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Avoid adding already present items in sets/maps (PR #159582)

2025-09-19 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159582 >From c6e96e9fd828cefa1aa27d19b735125b14e51ad2 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 18 Sep 2025 12:52:29 + Subject: [PATCH] [LifetimeSafety] Avoid adding already present items in sets/maps

[clang] [CIR] Fix structors for multidimensional arrrays (PR #159820)

2025-09-19 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/159820 >From 74e5b0e06a04db341038ecbba4081f4719b04592 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Fri, 19 Sep 2025 19:25:27 +0200 Subject: [PATCH 1/3] [CIR] Fix structors for multidimensional arrrays This patchs im

[clang] [CIR] Fix structors for multidimensional arrrays (PR #159820)

2025-09-19 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/159820 >From 74e5b0e06a04db341038ecbba4081f4719b04592 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Fri, 19 Sep 2025 19:25:27 +0200 Subject: [PATCH 1/4] [CIR] Fix structors for multidimensional arrrays This patchs im

[clang] [clang] diagnose invalid std::tuple_size sizes (PR #159677)

2025-09-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/159677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-19 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/159047 From 445bdafaa7b32b6154f3e7a414463818d90ee20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Tue, 12 Aug 2025 18:06:17 +0200 Subject: [PATCH 1/6] [HLSL] Add support for input semantics in s

  1   2   3   4   5   >