[clang] [Clang] prevent setting default lexical access specifier for missing primary declarations (PR #112424)

2024-10-29 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/112424 >From a22c6bae4f42f42e67f8e0c2b1f914e50d140099 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Tue, 15 Oct 2024 22:43:24 +0300 Subject: [PATCH 1/2] [Clang] prevent setting default lexical access specifier f

[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)

2024-10-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls-2stage` running on `linaro-g3-03` while building `clang` at step 11 "build stage 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/4/builds/3185 Here is the relevant piece of

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-10-29 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/113777 >From 78019b9d9dc138f38bb5b32576b621351ae6427c Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 27 Oct 2024 01:07:57 +0300 Subject: [PATCH] [Clang] prevent assertion failure from an invalid template ins

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-10-29 Thread Sam Elliott via cfe-commits
lenary wrote: ping? https://github.com/llvm/llvm-project/pull/112983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clangd] Support parsing comments without ASTContext (PR #78491)

2024-10-29 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > @AaronBallman @erichkeane what do you want to do here? Because the author is no longer available for the time being, I'd recommend we close the PR. Someone can always come along to commandeer it if they have the bandwidth to work on it. WDYT? https://github.com/llvm/llvm

[clang] [NFC] Delete unused clang-formatted-file.txt/ClangFormattedStatus.rst files (PR #109220)

2024-10-29 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > @AaronBallman can you PTAL? The changes themselves are fine, but I'd like to hear from @mydeveloperday or @owenca just to be sure we're not stepping on any clang-format folks' toes. https://github.com/llvm/llvm-project/pull/109220 _

[clang] [clang][bytecode][NFC] Remove Pointer::elem() (PR #114046)

2024-10-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/114046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AMX] Support AMX-TRANSPOSE (PR #113532)

2024-10-29 Thread Phoebe Wang via cfe-commits
@@ -568,6 +568,131 @@ bool X86ExpandPseudo::expandMI(MachineBasicBlock &MBB, MI.setDesc(TII->get(Opc)); return true; } + // TILEPAIRLOAD is just for TILEPair spill, we don't have corresponding + // AMX instruction to support it. So, split it to 2 load instructions:

[clang] [llvm] [X86][AMX] Support AMX-TRANSPOSE (PR #113532)

2024-10-29 Thread Phoebe Wang via cfe-commits
@@ -34,9 +34,31 @@ class ShapeT { if (MRI) deduceImm(MRI); } + // When ShapeT has mult shapes, we only use Shapes (never use Row and Col) + // and ImmShapes. Due to the most case is only one shape (just simply use + // Shape.Row or Shape.Col), so here we don't me

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-10-29 Thread kadir çetinkaya via cfe-commits
@@ -477,6 +486,109 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor, setSeverity(Diag, Map, Loc); } +namespace { +class WarningsSpecialCaseList : public llvm::SpecialCaseList { +public: + static std::unique_ptr + create(const llvm::MemoryBuffer &MB, st

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-10-29 Thread kadir çetinkaya via cfe-commits
@@ -575,25 +575,42 @@ DiagnosticIDs::getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc, DiagID != diag::fatal_too_many_errors && Diag.FatalsAsError) Result = diag::Severity::Error; + // Rest of the mappings are only applicable for diagnostics associated wit

[clang] Nominate Vassil Vassilev for Modules and Plugins (PR #114058)

2024-10-29 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/114058 Vassil has significant experience helping users with the plugin interface in Clang, especially around the new efforts to bring plugin support to Windows. He also is knowledgeable about modules support. >F

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-10-29 Thread kadir çetinkaya via cfe-commits
@@ -575,25 +575,42 @@ DiagnosticIDs::getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc, DiagID != diag::fatal_too_many_errors && Diag.FatalsAsError) Result = diag::Severity::Error; + // Rest of the mappings are only applicable for diagnostics associated wit

[clang] ec871cf - [clang][bytecode][NFC] Remove Pointer::elem() (#114046)

2024-10-29 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-29T15:00:36+01:00 New Revision: ec871cfcdf3a46ca1be9842035e4271524644ed1 URL: https://github.com/llvm/llvm-project/commit/ec871cfcdf3a46ca1be9842035e4271524644ed1 DIFF: https://github.com/llvm/llvm-project/commit/ec871cfcdf3a46ca1be9842035e4271524644ed1.diff L

[clang] [llvm] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

2024-10-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/7513

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-10-29 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/112517 From c0d2e4590308ebaaee78d7fe130a72b8586f6a88 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Mon, 14 Oct 2024 11:20:55 +0200 Subject: [PATCH 1/5] [clang] Introduce diagnostics suppression mappings This i

[clang] 87b6ec3 - [clang][bytecode] Diagnose placement-new construction to inactive field (#114047)

2024-10-29 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-29T15:08:41+01:00 New Revision: 87b6ec3be6b80f8e35d2eaea468e6bca79e79c2e URL: https://github.com/llvm/llvm-project/commit/87b6ec3be6b80f8e35d2eaea468e6bca79e79c2e DIFF: https://github.com/llvm/llvm-project/commit/87b6ec3be6b80f8e35d2eaea468e6bca79e79c2e.diff L

[clang] f490697 - [clang] [NFC] Fix a couple of typos: assuments and assingment

2024-10-29 Thread via cfe-commits
Author: Boaz Brickner Date: 2024-10-29T15:08:24+01:00 New Revision: f490697cb9ad3db101ced7f4844002ffa0c73da8 URL: https://github.com/llvm/llvm-project/commit/f490697cb9ad3db101ced7f4844002ffa0c73da8 DIFF: https://github.com/llvm/llvm-project/commit/f490697cb9ad3db101ced7f4844002ffa0c73da8.diff

[clang] [clang][bytecode] Diagnose placement-new construction to inactive field (PR #114047)

2024-10-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/114047 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b937691 - [clang] [NFC] Fix assingments typo

2024-10-29 Thread via cfe-commits
Author: Boaz Brickner Date: 2024-10-29T15:09:23+01:00 New Revision: b9376915cf897e79a852497c60f18ddacb1830ae URL: https://github.com/llvm/llvm-project/commit/b9376915cf897e79a852497c60f18ddacb1830ae DIFF: https://github.com/llvm/llvm-project/commit/b9376915cf897e79a852497c60f18ddacb1830ae.diff

[clang] Nominate Corentin Jabot for lambdas (PR #114043)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes Corentin has largely been handling reviews touching lambdas for the past year or two, so he has significant understanding of the various moving parts of this fairly substantial C++ feature. Given that

[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)

2024-10-29 Thread Erich Keane via cfe-commits
erichkeane wrote: The sanitizer failures are likely unrelated to this, but the self-build of the Flang sources might be? Do we have evidence of those failing on other commits? https://github.com/llvm/llvm-project/pull/112081 ___ cfe-commits mailing

[clang] [clang-tools-extra] [clangd] Support parsing comments without ASTContext (PR #78491)

2024-10-29 Thread via cfe-commits
cor3ntin wrote: @AaronBallman @erichkeane what do you want to do here? https://github.com/llvm/llvm-project/pull/78491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-10-29 Thread Sam Elliott via cfe-commits
@@ -2224,6 +2231,17 @@ bool RISCVTargetLowering::isExtractSubvectorCheap(EVT ResVT, EVT SrcVT, return Index == 0 || Index == ResElts; } +EVT RISCVTargetLowering::getAsmOperandValueType(const DataLayout &DL, Type *Ty, +bool All

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-10-29 Thread Sam Elliott via cfe-commits
https://github.com/lenary edited https://github.com/llvm/llvm-project/pull/112983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Create an internal 'clc' builtins library (PR #109985)

2024-10-29 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/109985 >From ba6a7682bfedb4249f26ed5e2af98499d884538d Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Mon, 23 Sep 2024 12:54:02 +0100 Subject: [PATCH 1/2] [libclc] Split off library build system into helpers T

[clang] [Clang] Start moving X86Builtins.def to X86Builtins.td (PR #106005)

2024-10-29 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,137 @@ +//===--- BuiltinsX86.td - X86 Builtin function database -*- C++ -*-===// +// +// 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] [X86][RFC] Refactor the SSE intrinsics constexpr tests to simplify future expansion (PR #112578)

2024-10-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/112578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Start moving X86Builtins.def to X86Builtins.td (PR #106005)

2024-10-29 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: > No objections to this patch, I do want to see other targets moved over as > well though, instead of x86 ending up being treated as a special/weird case. That is the plan. It just takes time to move everything. FWIW Hexagon and RISCV already use TableGen files as well. > I

[clang] [clang][modules] Avoid allocations when reading blob paths (PR #113984)

2024-10-29 Thread Jan Svoboda via cfe-commits
@@ -1341,9 +1341,22 @@ class ASTReader serialization::InputFile getInputFile(ModuleFile &F, unsigned ID, bool Complain = true); + /// Buffer we use as temporary storage backing resolved paths. + SmallString<256> PathBuf;

[clang] [Clang][AST] Store injected template arguments in TemplateParameterList (PR #113579)

2024-10-29 Thread Erich Keane via cfe-commits
@@ -51,14 +51,15 @@ DefaultTemplateArgumentContainsUnexpandedPack(const TemplateParam &P) { P.getDefaultArgument().getArgument().containsUnexpandedParameterPack(); } -TemplateParameterList::TemplateParameterList(const ASTContext& C, +TemplateParameterList::TemplateP

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-10-29 Thread kadir çetinkaya via cfe-commits
@@ -477,6 +486,109 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor, setSeverity(Diag, Map, Loc); } +namespace { +class WarningsSpecialCaseList : public llvm::SpecialCaseList { +public: + static std::unique_ptr + create(const llvm::MemoryBuffer &MB, st

[clang] [llvm] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

2024-10-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/8413 Here i

[clang] Nominate Corentin Jabot for lambdas (PR #114043)

2024-10-29 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/114043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

2024-10-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/11290 Here is

[clang] [llvm] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

2024-10-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/10880 Here is th

[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)

2024-10-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vla-2stage` running on `linaro-g3-04` while building `clang` at step 11 "build stage 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/41/builds/3058 Here is the relevant piece of

[clang] [APINotes] Document immortal reference type annotation (PR #114042)

2024-10-29 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/114042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Nominate Erich Keane for OpenACC (PR #114041)

2024-10-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/114041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Don't consider the lifetimeboundCall when analyzing the gsl pointer construction. (PR #114044)

2024-10-29 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/114044 This fixes a bug raised in https://github.com/llvm/llvm-project/pull/112751#issuecomment-2443566707. >From 32d808a6c30cb572c7905f93b9c14b5d8a25599d Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 29 Oct

[clang] Nominate Erich Keane for OpenACC (PR #114041)

2024-10-29 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/114041 Erich is the driving force behind the OpenACC implementation work that has recently begun in Clang. Given his expertise on the topic and that he's already aware of maintainer expectations (he maintains tem

[clang] Nominate Vlad Serebrennikov for C++ DRs (PR #114040)

2024-10-29 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/114040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f7adacf - Nominate Vlad Serebrennikov for C++ DRs (#114040)

2024-10-29 Thread via cfe-commits
Author: Aaron Ballman Date: 2024-10-29T09:03:35-04:00 New Revision: f7adacf57901ca65977f2af3502f434747cdd183 URL: https://github.com/llvm/llvm-project/commit/f7adacf57901ca65977f2af3502f434747cdd183 DIFF: https://github.com/llvm/llvm-project/commit/f7adacf57901ca65977f2af3502f434747cdd183.diff

[clang] [clang] Don't consider the lifetimeboundCall when analyzing the gsl pointer construction. (PR #114044)

2024-10-29 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: Let's copy the relevant part from the other PR into the description of this one to make it more self-contained. https://github.com/llvm/llvm-project/pull/114044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] [clang][bytecode][NFC] Remove Pointer::elem() (PR #114046)

2024-10-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/114046 Unused. >From 2c6f0fa434d770b258d75660767390af4dfb8ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 29 Oct 2024 08:15:36 +0100 Subject: [PATCH] [clang][bytecode][NFC] Remove Pointer:

[clang] [clang][bytecode][NFC] Remove Pointer::elem() (PR #114046)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Unused. --- Full diff: https://github.com/llvm/llvm-project/pull/114046.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Pointer.h (-9) ``diff diff --git a/clang/lib/AST/ByteCode/Point

[clang] [clang][bytecode] Diagnose placement-new construction to inactive field (PR #114047)

2024-10-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/114047 We can reuse CheckActive() for this. >From fb465ee7a9d4cd299b780ae49e2208051488ee46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 29 Oct 2024 13:29:17 +0100 Subject: [PATCH] [clang][b

[clang] [clang][bytecode] Diagnose placement-new construction to inactive field (PR #114047)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We can reuse CheckActive() for this. --- Full diff: https://github.com/llvm/llvm-project/pull/114047.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp (+5) - (modified) clang/test/AST/

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-10-29 Thread Pengcheng Wang via cfe-commits
@@ -2224,6 +2231,17 @@ bool RISCVTargetLowering::isExtractSubvectorCheap(EVT ResVT, EVT SrcVT, return Index == 0 || Index == ResElts; } +EVT RISCVTargetLowering::getAsmOperandValueType(const DataLayout &DL, Type *Ty, +bool All

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-10-29 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp edited https://github.com/llvm/llvm-project/pull/112983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Inline Assembly Support for GPR Pairs ('Pr') (PR #112983)

2024-10-29 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp commented: Thanks! I just had a detailed look. Given that you have explained almost all the code detailedly, I think this PR looks great to me! Just some overall comments: 1. I personally like your proposal of adding new constraints, but we still need the agreement

[libclc] 183b38e - [libclc] Split off library build system into helpers

2024-10-29 Thread Fraser Cormack via cfe-commits
Author: Fraser Cormack Date: 2024-10-29T13:09:56Z New Revision: 183b38eb2261164fdfd6b7deac002edf27a39fe7 URL: https://github.com/llvm/llvm-project/commit/183b38eb2261164fdfd6b7deac002edf27a39fe7 DIFF: https://github.com/llvm/llvm-project/commit/183b38eb2261164fdfd6b7deac002edf27a39fe7.diff LOG

[libclc] b2bdd8b - [libclc] Create an internal 'clc' builtins library

2024-10-29 Thread Fraser Cormack via cfe-commits
Author: Fraser Cormack Date: 2024-10-29T13:09:56Z New Revision: b2bdd8bd39e90bfe3c66f6d5600468570a77ede6 URL: https://github.com/llvm/llvm-project/commit/b2bdd8bd39e90bfe3c66f6d5600468570a77ede6 DIFF: https://github.com/llvm/llvm-project/commit/b2bdd8bd39e90bfe3c66f6d5600468570a77ede6.diff LOG

[libclc] [libclc] Create an internal 'clc' builtins library (PR #109985)

2024-10-29 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/109985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Don't consider the lifetimeboundCall when analyzing the gsl pointer construction. (PR #114044)

2024-10-29 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun edited https://github.com/llvm/llvm-project/pull/114044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f537792 - [X86] Refactor the SSE intrinsics constexpr tests to simplify future expansion (#112578)

2024-10-29 Thread via cfe-commits
Author: Simon Pilgrim Date: 2024-10-29T11:00:35Z New Revision: f537792f3f4977c8bc887b17ffc25e93833e7d0d URL: https://github.com/llvm/llvm-project/commit/f537792f3f4977c8bc887b17ffc25e93833e7d0d DIFF: https://github.com/llvm/llvm-project/commit/f537792f3f4977c8bc887b17ffc25e93833e7d0d.diff LOG:

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-29 Thread Tom Eccles via cfe-commits
https://github.com/tblah approved this pull request. LGTM thanks https://github.com/llvm/llvm-project/pull/113215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Don't consider the lifetimeboundCall when analyzing the gsl pointer construction. (PR #114044)

2024-10-29 Thread Gábor Horváth via cfe-commits
@@ -780,3 +780,30 @@ void test13() { } } // namespace GH100526 + +namespace test { + +struct [[gsl::Pointer]] FooOwner {}; +struct [[gsl::Pointer]] FooPointer { + FooPointer(const FooOwner&); +}; + +template +struct [[gsl::Owner]] Container { + const T& get() const [[clang::

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2024-10-29 Thread John Brawn via cfe-commits
john-brawn-arm wrote: I'm not especially familiar with how pointer authentication works with exception unwinding, but this looks OK to me with some minor comments. https://github.com/llvm/llvm-project/pull/113368 ___ cfe-commits mailing list cfe-commi

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2024-10-29 Thread John Brawn via cfe-commits
@@ -1845,8 +1884,14 @@ class _LIBUNWIND_HIDDEN Registers_arm64 { uint64_t getSP() const { return _registers.__sp; } void setSP(uint64_t value) { _registers.__sp = value; } - uint64_t getIP() const { return _registers.__pc; } - void setIP(uint6

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2024-10-29 Thread John Brawn via cfe-commits
@@ -1823,9 +1823,48 @@ extern "C" void *__libunwind_cet_get_jump_target() { #endif class _LIBUNWIND_HIDDEN Registers_arm64 { +protected: + /// The program counter is used effectively as a return address + /// when the context is restored therefore protect it with PAC. + ///

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2024-10-29 Thread John Brawn via cfe-commits
@@ -1823,9 +1823,48 @@ extern "C" void *__libunwind_cet_get_jump_target() { #endif class _LIBUNWIND_HIDDEN Registers_arm64 { +protected: + /// The program counter is used effectively as a return address john-brawn-arm wrote: "used effectively" should be "eff

[clang] [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #112849)

2024-10-29 Thread Fabian Ritter via cfe-commits
ritter-x2a wrote: Should we move on with the deprecation of the macros with this PR then? Please let me know if there are technical concerns remaining with the PR or approve it so that it can land in trunk. https://github.com/llvm/llvm-project/pull/112849 __

[clang] [clang] Don't consider the lifetimeboundCall when analyzing the gsl pointer construction. (PR #114044)

2024-10-29 Thread Gábor Horváth via cfe-commits
@@ -1094,6 +1094,24 @@ static bool pathOnlyHandlesGslPointer(IndirectLocalPath &Path) { return false; } +static bool +isLifetimeboundInterleaveInGSL(llvm::ArrayRef PathRef) { Xazax-hun wrote: I am just wondering if this is the right approach to filter thi

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-10-29 Thread kadir çetinkaya via cfe-commits
@@ -946,6 +953,24 @@ class DiagnosticsEngine : public RefCountedBase { return (Level)Diags->getDiagnosticLevel(DiagID, Loc, *this); } + /// Diagnostic suppression mappings can be used to ignore diagnostics based on + /// the file they occur in. Mapping file is expect

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2024-10-29 Thread John Brawn via cfe-commits
@@ -1823,9 +1823,48 @@ extern "C" void *__libunwind_cet_get_jump_target() { #endif class _LIBUNWIND_HIDDEN Registers_arm64 { +protected: + /// The program counter is used effectively as a return address + /// when the context is restored therefore protect it with PAC. + ///

[libclc] [libclc] Create an internal 'clc' builtins library (PR #109985)

2024-10-29 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/109985 >From 183b38eb2261164fdfd6b7deac002edf27a39fe7 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Mon, 23 Sep 2024 12:54:02 +0100 Subject: [PATCH 1/2] [libclc] Split off library build system into helpers T

[clang] [compiler-rt] [XRay] Remove reliance on default PIC behavior in DSO tests (PR #113892)

2024-10-29 Thread Sebastian Kreutzer via cfe-commits
sebastiankreutzer wrote: @rupprecht If this looks good to you, could you commit it? I don't have write access. https://github.com/llvm/llvm-project/pull/113892 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [llvm] [RISCV] Mark RVB23U64 and RVB23S64 as non-experimental (PR #113918)

2024-10-29 Thread Alex Bradbury via cfe-commits
https://github.com/asb closed https://github.com/llvm/llvm-project/pull/113918 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] Allow overload of __builtin_amdgcn_mov_dpp8 (PR #113610)

2024-10-29 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: It does not really work w/o https://github.com/llvm/llvm-project/pull/113500 though. https://github.com/llvm/llvm-project/pull/113610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [clang][modules] Avoid allocations when reading blob paths (PR #113984)

2024-10-29 Thread Chuanqi Xu via cfe-commits
@@ -1341,9 +1341,22 @@ class ASTReader serialization::InputFile getInputFile(ModuleFile &F, unsigned ID, bool Complain = true); + /// Buffer we use as temporary storage backing resolved paths. + SmallString<256> PathBuf;

[clang] [PS4/PS5][Driver] Apply clang-format to PS4CPU.cpp (NFC) (PR #114038)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Edd Dawson (playstation-edd) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/114038.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/PS4CPU.cpp (+1-2) ``diff diff --git a/clang/lib/Driver/Tool

[clang] [PS4/PS5][Driver] Apply clang-format to PS4CPU.cpp (NFC) (PR #114038)

2024-10-29 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd created https://github.com/llvm/llvm-project/pull/114038 None >From cb44afa8945af89dada57335eb410ba2fc802188 Mon Sep 17 00:00:00 2001 From: Edd Dawson Date: Tue, 29 Oct 2024 11:52:43 + Subject: [PATCH] [PS4/PS5][Driver] Apply clang-format to PS4CPU.cpp (N

[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)

2024-10-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/3165 Here is the rel

[clang] [Clang] Start moving X86Builtins.def to X86Builtins.td (PR #106005)

2024-10-29 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: No objections to this patch, I do want to see other targets moved over as well though, instead of x86 ending up being treated as a special/weird case. I am preparing to convert a lot of x86 builtins to be constexpr (#30794) - but as long as this PR won't interfere I see no big r

[clang] Nominate Vlad Serebrennikov for C++ DRs (PR #114040)

2024-10-29 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/114040 Vlad has been improving our C++ DR conformance testing story for many months at this point and writing these kinds of test is sometimes non- trivial, so having a maintainer specific for this is helpful. >

[clang] Nominate Vlad Serebrennikov for C++ DRs (PR #114040)

2024-10-29 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/114040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Nominate Erich Keane for OpenACC (PR #114041)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes Erich is the driving force behind the OpenACC implementation work that has recently begun in Clang. Given his expertise on the topic and that he's already aware of maintainer expectations (he maintains

[clang] [APINotes] Document immortal reference type annotation (PR #114042)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Egor Zhdan (egorzhdan) Changes API Notes allow annotating a C++ reference type with its retain/release operations. These are honored by the Swift compiler when the type is used from Swift. Apart from names of C++ functions that need to be

[clang] [APINotes] Document immortal reference type annotation (PR #114042)

2024-10-29 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan created https://github.com/llvm/llvm-project/pull/114042 API Notes allow annotating a C++ reference type with its retain/release operations. These are honored by the Swift compiler when the type is used from Swift. Apart from names of C++ functions that need to be

[clang] Nominate Erich Keane for OpenACC (PR #114041)

2024-10-29 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/114041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Nominate Vlad Serebrennikov for C++ DRs (PR #114040)

2024-10-29 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/114040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Nominate Corentin Jabot for lambdas (PR #114043)

2024-10-29 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/114043 Corentin has largely been handling reviews touching lambdas for the past year or two, so he has significant understanding of the various moving parts of this fairly substantial C++ feature. Given that work

[clang] [PS5][Driver] Pass a target emulation to the linker (PR #114060)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Edd Dawson (playstation-edd) Changes Until now, this has been hardcoded as a downstream patch in lld. Add it to the driver so that the private patch can be removed. PS5 only. On PS4, the equivalent hardco

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2024-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Voicu (AlexVlx) Changes `sret` arguments are always going to reside in the stack/`alloca` address space, which makes the current formulation where their AS is derived from the pointee somewhat quaint. This patch ensures that `sret` e

[clang] Nominate Sirraide for AST visitors and Sema (PR #114092)

2024-10-29 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. Thanks for the nomination. I’d be happy to continue helping out w/ maintaining Clang! https://github.com/llvm/llvm-project/pull/114092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] Nominate Sirraide for AST visitors and Sema (PR #114092)

2024-10-29 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/114092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Warn about memset/memcpy to NonTriviallyCopyable types (PR #111434)

2024-10-29 Thread Erich Keane via cfe-commits
erichkeane wrote: > Thanks! I can reproduce. The easy fix is to deactivate the warning for c > source but I'd like to udnerstand why it considers that structure as non > trivially copyable first :-) Yeah, agreed completely. No C structure, afaik, should ever be non-trivially copyable. https

[clang] [clang] Fix 71315698c9 in presence of incomplete types (PR #114095)

2024-10-29 Thread via cfe-commits
https://github.com/serge-sans-paille created https://github.com/llvm/llvm-project/pull/114095 Incomplete types are not considered trivially copyable by clang but we don't want to warn about invalid argument for memcpy / memset in that case because we cannot prove they are not Trivially Copyabl

[clang] 4abc357 - Nominate Sirraide for AST visitors and Sema (#114092)

2024-10-29 Thread via cfe-commits
Author: Aaron Ballman Date: 2024-10-29T13:36:22-04:00 New Revision: 4abc35740760b626d3fcabd001593d46c4b595af URL: https://github.com/llvm/llvm-project/commit/4abc35740760b626d3fcabd001593d46c4b595af DIFF: https://github.com/llvm/llvm-project/commit/4abc35740760b626d3fcabd001593d46c4b595af.diff

[clang] [libcxx] [clang] Warn about memset/memcpy to NonTriviallyCopyable types (PR #111434)

2024-10-29 Thread via cfe-commits
serge-sans-paille wrote: https://github.com/llvm/llvm-project/pull/114095 should do the trick https://github.com/llvm/llvm-project/pull/111434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] Nominate Sirraide for AST visitors and Sema (PR #114092)

2024-10-29 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/114092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 639a7ac - [Clang][AST] Store injected template arguments in TemplateParameterList (#113579)

2024-10-29 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-10-29T13:36:55-04:00 New Revision: 639a7ac648f1e50ccd2556e17d401c04f9cce625 URL: https://github.com/llvm/llvm-project/commit/639a7ac648f1e50ccd2556e17d401c04f9cce625 DIFF: https://github.com/llvm/llvm-project/commit/639a7ac648f1e50ccd2556e17d401c04f9cce625

[clang] [Clang][AST] Store injected template arguments in TemplateParameterList (PR #113579)

2024-10-29 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian closed https://github.com/llvm/llvm-project/pull/113579 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 449523f - Nominate Vassil Vassilev for Modules and Plugins (#114058)

2024-10-29 Thread via cfe-commits
Author: Aaron Ballman Date: 2024-10-29T13:38:54-04:00 New Revision: 449523fa0f957db0fff1c0cd9ec5f59e858ece0b URL: https://github.com/llvm/llvm-project/commit/449523fa0f957db0fff1c0cd9ec5f59e858ece0b DIFF: https://github.com/llvm/llvm-project/commit/449523fa0f957db0fff1c0cd9ec5f59e858ece0b.diff

[clang] Nominate Vassil Vassilev for Modules and Plugins (PR #114058)

2024-10-29 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/114058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Nominate Vassil Vassilev for Modules and Plugins (PR #114058)

2024-10-29 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. I accept the nomination. Thank you! https://github.com/llvm/llvm-project/pull/114058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (PR #91991)

2024-10-29 Thread Dana Jansens via cfe-commits
https://github.com/danakj updated https://github.com/llvm/llvm-project/pull/91991 >From 9c0a0ca3f0bcf4910592dca2b7b9d7d9b83f6cee Mon Sep 17 00:00:00 2001 From: danakj Date: Mon, 13 May 2024 12:11:41 -0400 Subject: [PATCH 1/5] Generate -Wunsafe-buffer-usage warnings in ctor and field initialize

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `dot4add_i8packed` intrinsic (PR #113623)

2024-10-29 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/113623 >From 81dfa26a941f7a0926a3126fe3ebbb4d2a67cec1 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Wed, 23 Oct 2024 22:59:15 + Subject: [PATCH 1/3] [HLSL][SPIRV][DXIL] Implement `dot4add_i8packed` intrinsic

[clang] [clang] Fix 71315698c9 in presence of incomplete types (PR #114095)

2024-10-29 Thread Erich Keane via cfe-commits
@@ -8900,7 +8900,8 @@ void Sema::CheckMemaccessArguments(const CallExpr *Call, << Call->getCallee()->getSourceRange()); else if (const auto *RT = PointeeTy->getAs()) { - bool IsTriviallyCopyableCXXRecord = + bool MayBeTriviallyCopyableCXXRecord = +

  1   2   3   4   5   >