[clang] 41cde46 - [PAC][Driver] Add `-faarch64-jump-table-hardening` flag (#113149)

2024-12-05 Thread via cfe-commits
Author: Daniil Kovalev Date: 2024-12-05T11:34:29+03:00 New Revision: 41cde465acfddb44d400b0a53bb57960762312a2 URL: https://github.com/llvm/llvm-project/commit/41cde465acfddb44d400b0a53bb57960762312a2 DIFF: https://github.com/llvm/llvm-project/commit/41cde465acfddb44d400b0a53bb57960762312a2.diff

[clang] [PAC][clang] Add new features to pauthtest ABI (PR #113150)

2024-12-05 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113150 >From f670756ad5e120a3c81025565ab96c3aea12cd3e Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Mon, 21 Oct 2024 10:58:04 +0300 Subject: [PATCH] [PAC][clang] Add new features to pauthtest ABI Enable init/fi

[clang] [PAC][Driver] Add `-faarch64-jump-table-hardening` flag (PR #113149)

2024-12-05 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: ### Merge activity * **Dec 5, 3:32 AM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/113149). https://github.com/llvm/llvm-project/pull/113149

[clang] [PAC][clang] Add new features to pauthtest ABI (PR #113150)

2024-12-05 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 edited https://github.com/llvm/llvm-project/pull/113150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3a8ada6 - [clang][NFC] Fix miscellaneous typos in release notes

2024-12-05 Thread via cfe-commits
Author: serge-sans-paille Date: 2024-12-05T09:59:57+01:00 New Revision: 3a8ada67ff45aec5696d72212d516593c3d32893 URL: https://github.com/llvm/llvm-project/commit/3a8ada67ff45aec5696d72212d516593c3d32893 DIFF: https://github.com/llvm/llvm-project/commit/3a8ada67ff45aec5696d72212d516593c3d32893.d

[clang-tools-extra] [clangd] Consolidate two functions converting index to LSP locations (PR #117885)

2024-12-05 Thread Christian Kandeler via cfe-commits
https://github.com/ckandeler closed https://github.com/llvm/llvm-project/pull/117885 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5d38a34 - [clangd] Consolidate two functions converting index to LSP locations (#117885)

2024-12-05 Thread via cfe-commits
Author: Christian Kandeler Date: 2024-12-05T10:02:59+01:00 New Revision: 5d38a3406b11c70e6f0d1a880b78ed404aba2c36 URL: https://github.com/llvm/llvm-project/commit/5d38a3406b11c70e6f0d1a880b78ed404aba2c36 DIFF: https://github.com/llvm/llvm-project/commit/5d38a3406b11c70e6f0d1a880b78ed404aba2c36.

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-05 Thread Helmut Januschka via cfe-commits
https://github.com/hjanuschka updated https://github.com/llvm/llvm-project/pull/118074 >From cb748c34d35b8c0c9ca93a67b111dcf5d7665b34 Mon Sep 17 00:00:00 2001 From: Helmut Januschka Date: Fri, 29 Nov 2024 10:17:49 +0100 Subject: [PATCH 01/25] [clang-tidy] Add modernize-use-span-first-last check

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-05 Thread Helmut Januschka via cfe-commits
hjanuschka wrote: feedback addressed. @5chmidti - added range support @HerrCai0907 tried using `TK_IgnoreUnlessSpelledInSource` but this breaks the template based cases. i am afraid having `TK_IgnoreUnlessSpelledInSource` would require way more complex matchers? how big of a deal is to not us

[clang] [clang] Fix a crash issue that caused by handling of fields with initializers in nested anonymous unions (PR #113049)

2024-12-05 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/113049 >From 804b1032cb23cea8fa705a0d2130b1f95185c949 Mon Sep 17 00:00:00 2001 From: yronglin Date: Wed, 20 Nov 2024 23:45:59 +0800 Subject: [PATCH 1/6] [clang] Fix a crash issue that caused by handling of fields wit

[clang] [clang] Fix a crash issue that caused by handling of fields with initializers in nested anonymous unions (PR #113049)

2024-12-05 Thread via cfe-commits
@@ -750,6 +750,19 @@ void InitListChecker::FillInEmptyInitForField(unsigned Init, FieldDecl *Field, if (Field->hasInClassInitializer()) { if (VerifyOnly) return; + + // We do not want to aggressively set the hadError flag and cutoff + // parsing. Tr

[clang-tools-extra] [clangd] Re-land "support outgoing calls in call hierarchy" (PR #117673)

2024-12-05 Thread kadir çetinkaya via cfe-commits
kadircet wrote: relanded with benchmark fix in 61fe67a4017375fd675f75652e857e837f77fa51 changed required -> optional in c7ef0ac9fd28cb55b8c7c91a890b365cc688f9a9 https://github.com/llvm/llvm-project/pull/117673 ___ cfe-commits mailing list cfe-commits@

[clang-tools-extra] [NFC] Fix uninitialized scalar field in constructor. (PR #118324)

2024-12-05 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. thanks, lgtm! https://github.com/llvm/llvm-project/pull/118324 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-05 Thread Mészáros Gergely via cfe-commits
Maetveis wrote: @whiteio You seem to have the [Keep my email addresses private](https://github.com/settings/emails) setting enabled in your account. This will make the merged commit reference `84482442+whit...@users.noreply.github.com` if you'd like to use your actual address please disable t

[clang-tools-extra] [clang-tidy][NFC] move AST_MATCHER to namespace in InfiniteLoopCheck (PR #118820)

2024-12-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/118820 None >From 0a263b84b7af55db3619bcf4b5fcb07d5cbb5084 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 5 Dec 2024 23:04:13 +0800 Subject: [PATCH] [clang-tidy][NFC] move AST_MATCHER to namespace in Infi

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/118800 >From 34d3d3000bc6096bbc9eb35ce85b6ceca50b91ca Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 5 Dec 2024 08:31:24 -0500 Subject: [PATCH 1/2] [C++20] Destroying delete and deleted destructors When

[clang-tools-extra] [clang-tidy][NFC] move AST_MATCHER to namespace in InfiniteLoopCheck (PR #118820)

2024-12-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/118820.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp (+12-12) ``diff diff --

[clang-tools-extra] [clang-tidy][NFC] move AST_MATCHER to namespace in InfiniteLoopCheck (PR #118820)

2024-12-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/118820.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp (+12-12) ``diff

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Aaron Ballman via cfe-commits
@@ -3792,13 +3792,15 @@ Sema::ActOnCXXDelete(SourceLocation StartLoc, bool UseGlobal, .HasSizeT; } - if (!PointeeRD->hasIrrelevantDestructor()) + if (!PointeeRD->hasIrrelevantDestructor() && AaronBallman wrote: Done https://git

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Aaron Ballman via cfe-commits
@@ -23,3 +30,14 @@ struct alignas(Align) B { }; void f(B<__STDCPP_DEFAULT_NEW_ALIGNMENT__> *p) { delete p; } void f(B<__STDCPP_DEFAULT_NEW_ALIGNMENT__ * 2> *p) { delete p; } // expected-error {{deleted}} + +// Ensure that a deleted destructor is acceptable when the selected ov

[clang] [AArch64][SME] Fix bug on SMELd1St1 (PR #118109)

2024-12-05 Thread via cfe-commits
wwwatermiao wrote: > > Hi, @momchil-velikov, Hi, @CarolineConcatto, it will be great if you help > > to review this patch as soon as possible! Thank you! > > Patch is accepted, you don't need more approvals, go ahead and commit. Thank you for your reply, could you help me merge this since I am

[clang-tools-extra] f59b600 - [NFC] Complete proper copying and resource cleanup in classes. (#118655)

2024-12-05 Thread via cfe-commits
Author: Zahira Ammarguellat Date: 2024-12-05T10:16:51-05:00 New Revision: f59b600c21add076d6a876f29f94990b24b8e321 URL: https://github.com/llvm/llvm-project/commit/f59b600c21add076d6a876f29f94990b24b8e321 DIFF: https://github.com/llvm/llvm-project/commit/f59b600c21add076d6a876f29f94990b24b8e321

[clang-tools-extra] [NFC] Complete proper copying and resource cleanup in classes. (PR #118655)

2024-12-05 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam closed https://github.com/llvm/llvm-project/pull/118655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

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

[clang] [C++20] Destroying delete can cause a type to be noexcept when deleting (PR #118687)

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

[clang] [C++20] Destroying delete can cause a type to be noexcept when deleting (PR #118687)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -1205,15 +1205,18 @@ CanThrowResult Sema::canThrow(const Stmt *S) { if (DTy.isNull() || DTy->isDependentType()) { CT = CT_Dependent; } else { - CT = canCalleeThrow(*this, DE, DE->getOperatorDelete()); - if (const RecordType *RT = DTy->getAs()) { -

[clang] [llvm] Implement operand bundles for floating-point operations (PR #109798)

2024-12-05 Thread Kevin P. Neal via cfe-commits
@@ -273,29 +306,6 @@ void InstrProfCallsite::setCallee(Value *Callee) { setArgOperand(4, Callee); } -std::optional ConstrainedFPIntrinsic::getRoundingMode() const { - unsigned NumOperands = arg_size(); - Metadata *MD = nullptr; - auto *MAV = dyn_cast(getArgOperand(NumOper

[clang-tools-extra] [clang-tidy][NFC] move AST_MATCHER to anonymous namespace in InfiniteLoopCheck (PR #118820)

2024-12-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/118820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-05 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis closed https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/11645 Here is the releva

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-05 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin updated https://github.com/llvm/llvm-project/pull/111992 >From 3eaaa7d70f4b57cc13bd00bd3a3a921f7914d599 Mon Sep 17 00:00:00 2001 From: Dmitry Polukhin Date: Fri, 11 Oct 2024 05:35:18 -0700 Subject: [PATCH 1/4] [C++20][Modules] Load function body from the module tha

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-05 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin updated https://github.com/llvm/llvm-project/pull/111992 >From 3eaaa7d70f4b57cc13bd00bd3a3a921f7914d599 Mon Sep 17 00:00:00 2001 From: Dmitry Polukhin Date: Fri, 11 Oct 2024 05:35:18 -0700 Subject: [PATCH 1/5] [C++20][Modules] Load function body from the module tha

[clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2024-12-05 Thread Ilia Kuklin via cfe-commits
kuilpd wrote: So, is this patch worth pursuing or is it too much code for a too specific use case? https://github.com/llvm/llvm-project/pull/115005 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [C++20] Destroying delete can cause a type to be noexcept when deleting (PR #118687)

2024-12-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/118687 >From 10985bcd5ae13f4533a9df4fa3035bd49e49af15 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 4 Dec 2024 14:31:48 -0500 Subject: [PATCH 1/5] [C++20] Deleting destructors can be noexcept Given a `n

[clang] [C++20] Destroying delete can cause a type to be noexcept when deleting (PR #118687)

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

[clang] [llvm] Port `LowerINT_TO_FP()` and `LowerFP_TO_INT` to `TargetLowering.cpp` (PR #118830)

2024-12-05 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb closed https://github.com/llvm/llvm-project/pull/118830 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] Destroying delete can cause a type to be noexcept when deleting (PR #118687)

2024-12-05 Thread Aaron Ballman via cfe-commits
@@ -1205,15 +1205,18 @@ CanThrowResult Sema::canThrow(const Stmt *S) { if (DTy.isNull() || DTy->isDependentType()) { CT = CT_Dependent; } else { - CT = canCalleeThrow(*this, DE, DE->getOperatorDelete()); - if (const RecordType *RT = DTy->getAs()) { -

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/118800 >From 34d3d3000bc6096bbc9eb35ce85b6ceca50b91ca Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 5 Dec 2024 08:31:24 -0500 Subject: [PATCH 1/3] [C++20] Destroying delete and deleted destructors When

[clang] [llvm] [ARM] Fix instruction selection for MVE vsbciq intrinsic (PR #118284)

2024-12-05 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm approved this pull request. https://github.com/llvm/llvm-project/pull/118284 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SCCP] Infer nuw for gep nusw with non-negative offsets (PR #118819)

2024-12-05 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/118819 >From 1dadf4d77f1cec342179b923d3ab37ea3b983a25 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 5 Dec 2024 12:10:59 +0100 Subject: [PATCH] [SCCP] Infer nuw for gep nusw with non-negative offsets If the GEP

[clang] [llvm] Port `LowerINT_TO_FP()` and `LowerFP_TO_INT` to `TargetLowering.cpp` (PR #118830)

2024-12-05 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb created https://github.com/llvm/llvm-project/pull/118830 Addresses #116695, specifically [int -> fp / fp -> int](https://github.com/llvm/llvm-project/blob/f8d1905a24c16bf6db42d428672401156ef6a473/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp#L2777-L2806). >From

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-05 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/111992 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-05 Thread Ilya Biryukov via cfe-commits
@@ -1976,14 +1976,16 @@ TemplateDeclInstantiator::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { if (!InstParams) return nullptr; + // Use canonical templated decl because only canonical decl has body + // if declarations were merged during loading from modules.

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-05 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov commented: I don't have the necessary context to make sure the `SemaTemplateInstantiateDecl.cpp` is fully correct, but still wanted to share something that raised my eyebrows. https://github.com/llvm/llvm-project/pull/111992

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-05 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: > @ilya-biryukov could you please test the latest version on your sources? Thanks! Let me try and report back. https://github.com/llvm/llvm-project/pull/111992 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[libclc] [libclc] Move several integer functions to CLC library (PR #116786)

2024-12-05 Thread Fraser Cormack via cfe-commits
@@ -0,0 +1,21 @@ +#ifndef __CLC_INTEGER_CLC_CLZ_H__ +#define __CLC_INTEGER_CLC_CLZ_H__ + +#if defined(CLC_CLSPV) || defined(CLC_SPIRV) +// clspv and spir-v targets provide their own OpenCL-compatible clz +#define __clc_clz clz frasercrmck wrote: > > I'm not sure

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Can you point out the Github Issue for 'implement fixed-point' types? https://github.com/llvm/llvm-project/pull/118743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -0,0 +1,59 @@ +// Global variables of intergal types +// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - | FileCheck %s + +char c; +// CHECK: cir.global @c : !cir.int + +signed char sc; +// CHECK: cir.global @sc : !cir.int + +unsigned c

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -0,0 +1,90 @@ +#include "CIRGenTypes.h" + +#include "CIRGenModule.h" + +#include "clang/AST/ASTContext.h" +#include "clang/AST/Type.h" + +using namespace clang; +using namespace clang::CIRGen; + +CIRGenTypes::CIRGenTypes(CIRGenModule &genModule) +: cgm(genModule), context(g

[clang] [AArch64][SME] Fix bug on SMELd1St1 (PR #118109)

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

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi updated https://github.com/llvm/llvm-project/pull/118743 >From 3f911a452599d6b92218db2e12059ee8613a12bc Mon Sep 17 00:00:00 2001 From: David Olsen Date: Wed, 4 Dec 2024 21:32:52 -0800 Subject: [PATCH 1/2] [CIR] Integral types; simple global variables Add integral

[clang] [Darwin][Driver][clang] Prioritise command line args over `DEFAULT_SYSROOT` (PR #115993)

2024-12-05 Thread Steven Wu via cfe-commits
cachemeifyoucan wrote: Current patch breaks test: ``` // We pass --sysroot="" to defeat any -DDEFAULT_SYSROOT parameter. ``` I think that just a pure hack in the test case, we can just update the test. @cyndyishida what do you think about the current approach? https://github.com/llvm/llvm-proje

[clang] [AArch64][SME] Fix bug on SMELd1St1 (PR #118109)

2024-12-05 Thread Tulio Magno Quites Machado Filho via cfe-commits
https://github.com/tuliom closed https://github.com/llvm/llvm-project/pull/118109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 409edc6 - [AArch64][SME] Fix bug on SMELd1St1 (#118109)

2024-12-05 Thread via cfe-commits
Author: wwwatermiao Date: 2024-12-05T14:39:02-03:00 New Revision: 409edc64d18837c5d47764888400ed2921a03918 URL: https://github.com/llvm/llvm-project/commit/409edc64d18837c5d47764888400ed2921a03918 DIFF: https://github.com/llvm/llvm-project/commit/409edc64d18837c5d47764888400ed2921a03918.diff L

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-12-05 Thread via cfe-commits
goldsteinn wrote: ping https://github.com/llvm/llvm-project/pull/112792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement HLSL Flat casting (excluding splat cases) (PR #118842)

2024-12-05 Thread Sarah Spall via cfe-commits
spall wrote: I'm going to change the name of the Cast to HLSLFlatCast. https://github.com/llvm/llvm-project/pull/118842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move several integer functions to CLC library (PR #116786)

2024-12-05 Thread Romaric Jodin via cfe-commits
@@ -0,0 +1,21 @@ +#ifndef __CLC_INTEGER_CLC_CLZ_H__ +#define __CLC_INTEGER_CLC_CLZ_H__ + +#if defined(CLC_CLSPV) || defined(CLC_SPIRV) +// clspv and spir-v targets provide their own OpenCL-compatible clz +#define __clc_clz clz rjodinchr wrote: On the `clspv` side

[clang] Implement HLSL Flat casting (excluding splat cases) (PR #118842)

2024-12-05 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/118842 Implement HLSL Flat casting excluding splat cases Partly closes #100609 and #100619 >From 2e932a57ccb992b856b58bec4c30c6b64f24f711 Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Thu, 28 Nov 2024 16:23:57 +

[clang] [llvm] [AArch64] Implement intrinsics for SME FP8 FMLAL/FMLALL (Indexed) (PR #118549)

2024-12-05 Thread via cfe-commits
https://github.com/SpencerAbson updated https://github.com/llvm/llvm-project/pull/118549 >From a92b7a9faba65931918e4c3d6763896f1e1eda6b Mon Sep 17 00:00:00 2001 From: Spencer Abson Date: Mon, 25 Nov 2024 21:47:20 + Subject: [PATCH 1/3] [AArch64] Implement intrinsics for SME FP8 FMOPA ---

[clang] [Clang] Improve error for `-fsanitize=function/kcfi -mexecute-only` incompatibility (PR #118816)

2024-12-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Csanád Hajdú (Il-Capitano) Changes The current error message when using the `-fsanitize=function -mexecute-only` flags together points to the target triple as the reason that `-fsanitize=function` is not allowed to be used, even when the

[clang] [Clang] Improve error for `-fsanitize=function/kcfi -mexecute-only` incompatibility (PR #118816)

2024-12-05 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff ffb1c21bd4697ab5a6f11e2f2eba4fefaa298f2a 691a26b6602a4f7c9f2ea5eaf27bb8d1a0be11a6 --e

[clang] [Clang] Improve error for `-fsanitize=function/kcfi -mexecute-only` incompatibility (PR #118816)

2024-12-05 Thread Csanád Hajdú via cfe-commits
https://github.com/Il-Capitano updated https://github.com/llvm/llvm-project/pull/118816 From 94c933e0e7b7497e76c541f3ea7ed210349d2044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csan=C3=A1d=20Hajd=C3=BA?= Date: Thu, 5 Dec 2024 14:46:08 +0100 Subject: [PATCH] [Clang] Improve error for `-fsanitize=f

[clang] [clang-format] extend clang-format directive with options to prevent formatting for one line (PR #118566)

2024-12-05 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/118566 >From 75da343b0bd6e3b0f3219b349f6be4c882947820 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 4 Dec 2024 02:24:12 +0200 Subject: [PATCH 1/4] [clang-format] extend clang-format directive with options t

[clang] 3a4b9f3 - [OpenACC] Implement 'gang' clause for Combined Constructs

2024-12-05 Thread via cfe-commits
Author: erichkeane Date: 2024-12-05T06:35:36-08:00 New Revision: 3a4b9f38915625c68c78b62de48a3de8b97c5043 URL: https://github.com/llvm/llvm-project/commit/3a4b9f38915625c68c78b62de48a3de8b97c5043 DIFF: https://github.com/llvm/llvm-project/commit/3a4b9f38915625c68c78b62de48a3de8b97c5043.diff LO

[clang] Skip escaped newlines before checking for whitespace in Lexer::getRawToken. (PR #117548)

2024-12-05 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks (I don't think we need a changelog for this one) https://github.com/llvm/llvm-project/pull/117548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang-tools-extra] [NFC] Complete proper copying and resource cleanup in classes. (PR #118655)

2024-12-05 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: Agree, mark delete definitely make sense. Thanks! https://github.com/llvm/llvm-project/pull/118655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-05 Thread via cfe-commits
@@ -0,0 +1,114 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// REQUIRES: aarch64-registered-target +#include + +// RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -target-feature +sme-f8f16 -

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-05 Thread via cfe-commits
@@ -0,0 +1,29 @@ +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +sme2 -verify -emit-llvm -o - %s + +// REQUIRES: aarch64-registered-target + +#include + +void test_features(uint32_t slice, svmfloat8_t f8, svmfloat8x2_t f8x2, +

[clang] f7e8be7 - Skip escaped newlines before checking for whitespace in Lexer::getRawToken. (#117548)

2024-12-05 Thread via cfe-commits
Author: Samira Bazuzi Date: 2024-12-05T09:37:46-05:00 New Revision: f7e8be7c66b53a126c8cba9ac81b5b77d873aa1e URL: https://github.com/llvm/llvm-project/commit/f7e8be7c66b53a126c8cba9ac81b5b77d873aa1e DIFF: https://github.com/llvm/llvm-project/commit/f7e8be7c66b53a126c8cba9ac81b5b77d873aa1e.diff

[clang] Skip escaped newlines before checking for whitespace in Lexer::getRawToken. (PR #117548)

2024-12-05 Thread Samira Bazuzi via cfe-commits
https://github.com/bazuzi closed https://github.com/llvm/llvm-project/pull/117548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement intrinsics for SME FP8 FMOPA (PR #118115)

2024-12-05 Thread Momchil Velikov via cfe-commits
@@ -305,6 +305,21 @@ multiclass sme_outer_product_fp32 sz, ZPRRegOp zpr_ty, string mne def : SME_ZA_Tile_TwoPred_TwoVec_Pat; } +multiclass sme2_fp8_fmopa_za32 { +def NAME : sme_fp_outer_product_inst<0, 0b01, 0b00, TileOp32, ZPR8, mnemonic>, SMEPseudo2Instr { + bit

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-05 Thread via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - readability-use-span-first-last + +readability-use-span-first-last +=== + +Suggests using ``std::span::first()`` and ``std::span::last()`` member functions +instead of equivalent ``subspan()``. These dedicated

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-05 Thread Dmitry Polukhin via cfe-commits
dmpolukhin wrote: @ilya-biryukov could you please test the latest version on your sources? It seems that I found generic enough solution for the problem when clang uses merged decl with no body for template instantiation. See changes in clang/lib/Sema/SemaTemplateInstantiateDecl.cpp. https://

[clang] Make the `CHECK` lines here resistent to `chandlerc` (PR #118736)

2024-12-05 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab approved this pull request. https://github.com/llvm/llvm-project/pull/118736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d457100 - [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (#116871)

2024-12-05 Thread via cfe-commits
Author: Chris White Date: 2024-12-05T16:32:48+01:00 New Revision: d457100a8152cc2ebf8cd219caae92cc0f591156 URL: https://github.com/llvm/llvm-project/commit/d457100a8152cc2ebf8cd219caae92cc0f591156 DIFF: https://github.com/llvm/llvm-project/commit/d457100a8152cc2ebf8cd219caae92cc0f591156.diff L

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/118800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-05 Thread Sean Perry via cfe-commits
@@ -166,8 +167,15 @@ ContentCache::getBufferOrNone(DiagnosticsEngine &Diag, FileManager &FM, // Unless this is a named pipe (in which case we can handle a mismatch), // check that the file's size is the same as in the file entry (which may // have come from a stat cache)

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-05 Thread Sean Perry via cfe-commits
@@ -617,6 +625,23 @@ FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, return FileID::get(LoadedID); } unsigned FileSize = File.getSize(); +#ifdef __MVS__ perry-ca wrote: I think we can just remove #if and make a version o

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-05 Thread Jonathan Thackray via cfe-commits
jthackray wrote: > We would also want feature and immediate range tests Now added. https://github.com/llvm/llvm-project/pull/118492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-05 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 3740fac0d4640c05ba960be97d14cbd375a7c733 b1bd1ee4f3a4966b50e0b35fd349091660e84576 --e

[clang] [Clang] Fix typo in ItaniumRecordLayoutBuilder API (PR #118563)

2024-12-05 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. It certainly doesn't hurt, thanks! (but it speaks to lack of usefulness or test coverage somewhere if this is just dead code) https://github.com/llvm/llvm-project/pull/118563 ___ cfe-commits mail

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -0,0 +1,130 @@ +//===- CIRTypes.td - CIR dialect types -*- tablegen -*-===// +// +// 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] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -74,6 +75,32 @@ class LLVMLoweringInfo { class CIR_Op traits = []> : Op, LLVMLoweringInfo; +//===--===// +// GlobalOp +//===--===// +

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -82,6 +83,14 @@ void CIRGenModule::emitGlobalFunctionDefinition(clang::GlobalDecl gd, theModule.push_back(funcOp); } +void CIRGenModule::emitGlobalVarDefinition(const clang::VarDecl *vd, + bool isTentative) { + mlir::Type type =

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -0,0 +1,53 @@ +// Global variables of intergal types +// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - | FileCheck %s + +char c; +// CHECK: cir.global @c : !cir.int + +signed char sc; +// CHECK: cir.global @sc : !cir.int + +unsigned c

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -67,7 +67,8 @@ void CIRGenModule::emitGlobal(clang::GlobalDecl gd) { return; } } else { -errorNYI(global->getSourceRange(), "global variable declaration"); +const auto *vd = cast(global); +assert(vd->isFileVarDecl() && "Cannot emit local var decl as g

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

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

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-05 Thread via cfe-commits
@@ -0,0 +1,114 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// REQUIRES: aarch64-registered-target +#include + +// RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -target-feature +sme-f8f16 -

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Garvit Gupta (quic-garvgupt) Changes Currently, LLVM has two RISC-V toolchain classes in Clang for baremetal development, creating unnecessary maintenance overhead. This patch extends the BareMetal toolchain to support an existing GCC ins

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Garvit Gupta (quic-garvgupt) Changes Currently, LLVM has two RISC-V toolchain classes in Clang for baremetal development, creating unnecessary maintenance overhead. This patch extends the BareMetal toolchain to support an existing

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-05 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt created https://github.com/llvm/llvm-project/pull/118809 Currently, LLVM has two RISC-V toolchain classes in Clang for baremetal development, creating unnecessary maintenance overhead. This patch extends the BareMetal toolchain to support an existing GCC instal

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Garvit Gupta (quic-garvgupt) Changes Currently, LLVM has two RISC-V toolchain classes in Clang for baremetal development, creating unnecessary maintenance overhead. This patch extends the BareMetal toolchain to support an existin

[clang] [ASTWriter] Do not allocate source location space for module maps used only for textual headers (PR #116374)

2024-12-05 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov closed https://github.com/llvm/llvm-project/pull/116374 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [IR] Allow fast math flags on fptrunc and fpext (PR #115894)

2024-12-05 Thread John Brawn via cfe-commits
john-brawn-arm wrote: Instcombine follow up : https://github.com/llvm/llvm-project/pull/118808 https://github.com/llvm/llvm-project/pull/115894 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] [NFC] Complete proper copying and resource cleanup in classes. (PR #118655)

2024-12-05 Thread Zahira Ammarguellat via cfe-commits
zahiraam wrote: Thanks @AaronBallman . I think it makes more sense to have `=delete` instead of `=default`. I changed them. @HerrCai0907 what do you think of these changes? If you think they are useless we can consider these a false positive from the analyzer and ignore them all together. htt

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-05 Thread Jonathan Thackray via cfe-commits
@@ -740,6 +740,11 @@ let SMETargetGuard = "sme2" in { def SVLUTI4_LANE_ZT_X2 : Inst<"svluti4_lane_zt_{d}_x2", "2.di[i", "cUcsUsiUibhf", MergeNone, "aarch64_sme_luti4_lane_zt_x2", [IsStreaming, IsInZT0], [ImmCheck<0, ImmCheck0_0>, ImmCheck<2, ImmCheck0_3>]>; } +// FDOT

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: 1 nit, else LGTM. https://github.com/llvm/llvm-project/pull/118800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Erich Keane via cfe-commits
@@ -3792,13 +3792,15 @@ Sema::ActOnCXXDelete(SourceLocation StartLoc, bool UseGlobal, .HasSizeT; } - if (!PointeeRD->hasIrrelevantDestructor()) + if (!PointeeRD->hasIrrelevantDestructor() && erichkeane wrote: Would love a standa

[clang] [llvm] [SystemZ] Add support for __builtin_setjmp and __builtin_longjmp (PR #116642)

2024-12-05 Thread Ulrich Weigand via cfe-commits
@@ -4619,6 +4619,31 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, // Buffer is a void**. Address Buf = EmitPointerWithAlignment(E->getArg(0)); +if (getTarget().getTriple().getArch() == llvm::Triple::systemz) { + // Call L

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/118800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >