[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)

2024-05-23 Thread via cfe-commits
@@ -1964,39 +1964,55 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, case Stmt::CXXDefaultArgExprClass: case Stmt::CXXDefaultInitExprClass: { Bldr.takeNodes(Pred); - ExplodedNodeSet PreVisit; - getCheckerManager().runCheckersForPreStmt(PreV

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)

2024-05-23 Thread via cfe-commits
@@ -1964,39 +1964,55 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, case Stmt::CXXDefaultArgExprClass: case Stmt::CXXDefaultInitExprClass: { Bldr.takeNodes(Pred); - ExplodedNodeSet PreVisit; - getCheckerManager().runCheckersForPreStmt(PreV

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)

2024-05-23 Thread via cfe-commits
@@ -1114,17 +1114,16 @@ void fCXX11MemberInitTest1() { CXX11MemberInitTest1(); } +#ifdef PEDANTIC yronglin wrote: done https://github.com/llvm/llvm-project/pull/91879 ___ cfe-commits mailing list cfe-commits@list

[clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes This tries to fix all of the places where a diagnostic message starts with a capital letter (other than acroynyms or proper nouns) or ends with punctuation (other than a question mark). This is in sup

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)

2024-05-23 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/91879 >From f7b2ae00eebb272e0e5e221608ec3a36146a5d21 Mon Sep 17 00:00:00 2001 From: yronglin Date: Sun, 12 May 2024 14:42:09 +0800 Subject: [PATCH 1/5] [Analyzer][CFG] Correctly handle rebuilted default arg and defau

[clang] [llvm] [AMDGPU][WIP] Extend readlane, writelane and readfirstlane intrinsic lowering for generic types (PR #89217)

2024-05-23 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm commented: Should lose the [WIP] in the title https://github.com/llvm/llvm-project/pull/89217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)

2024-05-23 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: All of the issues were found using some new tooling I've not yet put up for review. The changes were largely mechanical (uppercase->lowercase, remove trailing punctuation), but there were some surgical fixes to grammar, punctuation, etc. Also, if the diagnostic was not emit

[clang] [llvm] [SME] Add intrinsics for FCVT(wid.) and FCVTL (PR #90215)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/90215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 05c154f - [SME] Add intrinsics for FCVT(wid.) and FCVTL (#90215)

2024-05-23 Thread via cfe-commits
Author: Lukacma Date: 2024-05-23T14:32:34+01:00 New Revision: 05c154f2bcba34f002b1f0c22c7a9e9614e9d83c URL: https://github.com/llvm/llvm-project/commit/05c154f2bcba34f002b1f0c22c7a9e9614e9d83c DIFF: https://github.com/llvm/llvm-project/commit/05c154f2bcba34f002b1f0c22c7a9e9614e9d83c.diff LOG:

[clang] [Clang] Only check exprs that might be immediate escalating in evaluated contexts (PR #93187)

2024-05-23 Thread Mariya Podchishchaeva via cfe-commits
@@ -5146,6 +5153,12 @@ class Sema final : public SemaBase { return ExprEvalContexts.back(); }; + const ExpressionEvaluationContextRecord &parentEvaluationContext() const { +assert(ExprEvalContexts.size() >= 2 && + "Must be in an expression evaluation conte

[clang] [Clang] Only check exprs that might be immediate escalating in evaluated contexts (PR #93187)

2024-05-23 Thread Mariya Podchishchaeva via cfe-commits
@@ -769,6 +769,8 @@ Bug Fixes to C++ Support - Fixed a crash when trying to emit captures in a lambda call operator with an explicit object parameter that is called on a derived type of the lambda. Fixes (#GH87210), (GH89541). +- Clang no longer try to check if an expressi

[clang] [llvm] [AArch64][SME] Add intrinsics for vector groups ZERO (PR #88114)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/88114 >From c44bd42f8011dd09771fda50a76a7321342c2b2f Mon Sep 17 00:00:00 2001 From: Marian Lukac Date: Thu, 4 Apr 2024 14:36:54 + Subject: [PATCH 1/4] WIP --- clang/include/clang/Basic/arm_sme.td | 29 +

[clang] [Clang] Only check exprs that might be immediate escalating in evaluated contexts (PR #93187)

2024-05-23 Thread via cfe-commits
@@ -5146,6 +5153,12 @@ class Sema final : public SemaBase { return ExprEvalContexts.back(); }; + const ExpressionEvaluationContextRecord &parentEvaluationContext() const { +assert(ExprEvalContexts.size() >= 2 && + "Must be in an expression evaluation conte

[clang] [llvm] [AArch64][SME] Add intrinsics for vector groups ZERO (PR #88114)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/88114 >From c44bd42f8011dd09771fda50a76a7321342c2b2f Mon Sep 17 00:00:00 2001 From: Marian Lukac Date: Thu, 4 Apr 2024 14:36:54 + Subject: [PATCH 1/5] WIP --- clang/include/clang/Basic/arm_sme.td | 29 +

[clang] [Clang] Only check exprs that might be immediate escalating in evaluated contexts (PR #93187)

2024-05-23 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/93187 >From faecc5c3d88f2e205c62424e4c76df92f66ea4fe Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 23 May 2024 14:58:49 +0200 Subject: [PATCH 1/2] [Clang] Only check exprs that might be immediate escalatin

[clang] 7a1022a - [AArch64][SME] Add intrinsics for vector groups ZERO (#88114)

2024-05-23 Thread via cfe-commits
Author: Lukacma Date: 2024-05-23T14:36:58+01:00 New Revision: 7a1022a3895f51a3c11dd326c47d861575ffaf55 URL: https://github.com/llvm/llvm-project/commit/7a1022a3895f51a3c11dd326c47d861575ffaf55 DIFF: https://github.com/llvm/llvm-project/commit/7a1022a3895f51a3c11dd326c47d861575ffaf55.diff LOG:

[clang] [llvm] [AArch64][SME] Add intrinsics for vector groups ZERO (PR #88114)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/88114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][SME] Add intrinsics for multi-vector BFCLAMP (PR #88251)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/88251 >From fe692284cd248e372302671e094eb9950edb5ee5 Mon Sep 17 00:00:00 2001 From: Marian Lukac Date: Wed, 10 Apr 2024 10:20:03 + Subject: [PATCH 1/3] [AArch64][SME] Add intrinsics for multi-vector BFCLAMP --- c

[clang] [clang-tools-extra] [clang][test] Fix filecheck annotation typos (PR #93193)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: klensy (klensy) Changes Moved fixes for clang from https://github.com/llvm/llvm-project/pull/91854, plus few additional in second commit. If your reviewed some tests, please merge them in separate PR; as collecting all r+ for all parts a

[clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)

2024-05-23 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 cc3b6c3ba9c0dd7df0fd7ac23c8609c4675dd62a 70b3ffc09709f9e5cbef4cab00f3d20adef29f35 --

[clang] [clang-tools-extra] [clang][test] Fix filecheck annotation typos (PR #93193)

2024-05-23 Thread via cfe-commits
klensy wrote: Sorry for ExtractAPI ping, already in separate pr. https://github.com/llvm/llvm-project/pull/93193 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] Fix possible crash "given incorrect InsertPos for specialization". (PR #89887)

2024-05-23 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. This seems to be a reasonable and straightforward improvement which rules out a hard-to test corner case. I think it's acceptable to merge this as it is now, because crafting a testcase would require a disproportionate amount of work. ht

[clang] [llvm] [AArch64] Add support for Qualcomm Oryon processor (PR #91022)

2024-05-23 Thread Alex Bradbury via cfe-commits
@@ -0,0 +1,1664 @@ +//=- AArch64SchedOryon.td - Nuvia Inc Oryon CPU 001 ---*- 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: Apache-2.

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Erich Keane via cfe-commits
@@ -67,6 +67,7 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringExtras.h" erichkeane wrote: What do we need this addition for? https://github.com/llvm/llvm-project/pull/93179 _

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

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

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Erich Keane via cfe-commits
@@ -3548,6 +3561,56 @@ class Sema final : public SemaBase { BuiltinFunction }; + /// A helper function to provide Attribute Location for the Attr types erichkeane wrote: Is this comment right? ParsedAttr will always call the non-template version belo

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I'm in favor here, the changes to SemaDeclAttr are reasonable. https://github.com/llvm/llvm-project/pull/93179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang-tools-extra] [clang][test] Fix filecheck annotation typos (PR #93193)

2024-05-23 Thread via cfe-commits
klensy wrote: For some weird reason, CI check didn't listed in checks: https://buildkite.com/llvm-project/github-pull-requests/builds/66642 https://github.com/llvm/llvm-project/pull/93193 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [clang-tools-extra] [clang][test] Fix filecheck annotation typos (PR #93193)

2024-05-23 Thread via cfe-commits
klensy wrote: This is (long) list of tests where i don't know how to fix prefix names: \clang-tools-extra\test\clang-move\move-type-alias.cpp:40:4-25: Found potentially misspelled directive "CHECK-NEW-TEST-H-CASE3". Did you mean "CHECK-NEW-TEST-H-CASE2"? \clang\test\Analysis\exploded-graph-rewr

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Vlad Serebrennikov via cfe-commits
@@ -3548,6 +3561,56 @@ class Sema final : public SemaBase { BuiltinFunction }; + /// A helper function to provide Attribute Location for the Attr types Endilll wrote: Yes, I moved them together, so http://eel.is/c++draft/over.match.best#general-2.4 sh

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Vlad Serebrennikov via cfe-commits
@@ -67,6 +67,7 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringExtras.h" Endilll wrote: For `toString(*I, 10, false)` in `CheckUInt32Argument` definition that I moved. https://git

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/93179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)

2024-05-23 Thread Gedare Bloom via cfe-commits
@@ -1489,11 +1489,25 @@ TEST_F(TokenAnnotatorTest, RequiresDoesNotChangeParsingOfTheRest) { TEST_F(TokenAnnotatorTest, UnderstandsAsm) { auto Tokens = annotate("__asm{\n" "a:\n" - "};"); - ASSERT_EQ(Tokens.size(), 7u) << Toke

[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)

2024-05-23 Thread Gedare Bloom via cfe-commits
https://github.com/gedare edited https://github.com/llvm/llvm-project/pull/92617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)

2024-05-23 Thread Gedare Bloom via cfe-commits
https://github.com/gedare edited https://github.com/llvm/llvm-project/pull/92617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix crash when diagnosing candidates with parameter packs (PR #93079)

2024-05-23 Thread kadir çetinkaya via cfe-commits
@@ -11298,8 +11298,9 @@ static void DiagnoseBadConversion(Sema &S, OverloadCandidate *Cand, Expr *FromExpr = Conv.Bad.FromExpr; QualType FromTy = Conv.Bad.getFromType(); QualType ToTy = Conv.Bad.getToType(); - SourceRange ToParamRange = - !isObjectArgument ? Fn->ge

[clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)

2024-05-23 Thread Mariya Podchishchaeva via cfe-commits
@@ -337,7 +337,7 @@ def warn_atomic_op_oversized : Warning< InGroup; def warn_sync_op_misaligned : Warning< - "__sync builtin operation MUST have natural alignment (consider using __atomic).">, + "__sync builtin operation MUST have natural alignment (consider using __atomi

[clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)

2024-05-23 Thread Aaron Ballman via cfe-commits
@@ -337,7 +337,7 @@ def warn_atomic_op_oversized : Warning< InGroup; def warn_sync_op_misaligned : Warning< - "__sync builtin operation MUST have natural alignment (consider using __atomic).">, + "__sync builtin operation MUST have natural alignment (consider using __atomi

[clang] [z/OS] Set the default arch for z/OS to be arch10 (PR #89854)

2024-05-23 Thread Sean Perry via cfe-commits
@@ -11,6 +11,8 @@ // //===--===// +#include "clang/Config/config.h" perry-ca wrote: That was my preference too except clang/Config/config.h has a clause that it can only be included once an

[clang] [lldb] [llvm] Remove some `try_compile` CMake checks for compiler flags (PR #92953)

2024-05-23 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Quite expectedly, I see buildbot failures. Working on them. https://lab.llvm.org/buildbot/#/builders/36/builds/45836 https://lab.llvm.org/buildbot/#/builders/57/builds/35200 https://github.com/llvm/llvm-project/pull/92953 ___ cfe-commits

[clang] [Coverage][Expansion] handle nested macros in scratch space (PR #89869)

2024-05-23 Thread NAKAMURA Takumi via cfe-commits
@@ -0,0 +1,65 @@ +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c99 -fcoverage-mcdc -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s chapuni wrote: You may overwrite 896bceb with this. https://github.

[clang] [llvm] Revert "[AArch64][SME] Add intrinsics for vector groups ZERO" (PR #93195)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/93195 Reverts llvm/llvm-project#88114 >From 8c86a4b19b8c6d7ed5dcb31709bd518383130174 Mon Sep 17 00:00:00 2001 From: Lukacma Date: Thu, 23 May 2024 15:12:27 +0100 Subject: [PATCH] Revert "[AArch64][SME] Add intrinsics

[clang] 8dcbc4c - Revert "[AArch64][SME] Add intrinsics for vector groups ZERO" (#93195)

2024-05-23 Thread via cfe-commits
Author: Lukacma Date: 2024-05-23T15:12:46+01:00 New Revision: 8dcbc4cfbf987dad0a9f9ddffa2a87420b00f88f URL: https://github.com/llvm/llvm-project/commit/8dcbc4cfbf987dad0a9f9ddffa2a87420b00f88f DIFF: https://github.com/llvm/llvm-project/commit/8dcbc4cfbf987dad0a9f9ddffa2a87420b00f88f.diff LOG:

[clang] [llvm] Revert "[AArch64][SME] Add intrinsics for vector groups ZERO" (PR #93195)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/93195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][Clang] Add check of size for __builtin_amdgcn_global_load_lds (PR #93064)

2024-05-23 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/93064 >From 1f5353d9539e42cbd6e7bd70d948041001373d2a Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Thu, 23 May 2024 10:04:26 -0400 Subject: [PATCH] [AMDGPU][Clang] Add check of size for __builtin_amdgcn_global_loa

[clang] [llvm] Revert "[SME] Add intrinsics for FCVT(wid.) and FCVTL" (PR #93196)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/93196 Reverts llvm/llvm-project#90215 >From 1786075d2a347465e518cfaa04a40cb75eb75828 Mon Sep 17 00:00:00 2001 From: Lukacma Date: Thu, 23 May 2024 15:13:01 +0100 Subject: [PATCH] Revert "[SME] Add intrinsics for FCVT(

[clang] [llvm] Revert "[AArch64][SME] Add intrinsics for vector groups ZERO" (PR #93195)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: None (Lukacma) Changes Reverts llvm/llvm-project#88114 --- Patch is 20.43 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/93195.diff 5 Files Affected: - (modified) clang/include/cla

[clang] [llvm] Revert "[AArch64][SME] Add intrinsics for vector groups ZERO" (PR #93195)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: None (Lukacma) Changes Reverts llvm/llvm-project#88114 --- Patch is 20.43 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/93195.diff 5 Files Affected: - (modified) clang/include/clang/Basic

[clang] 90a4690 - Revert "[SME] Add intrinsics for FCVT(wid.) and FCVTL" (#93196)

2024-05-23 Thread via cfe-commits
Author: Lukacma Date: 2024-05-23T15:13:14+01:00 New Revision: 90a469057e9edb8eadfb328ac8bc06a4b5e0434f URL: https://github.com/llvm/llvm-project/commit/90a469057e9edb8eadfb328ac8bc06a4b5e0434f DIFF: https://github.com/llvm/llvm-project/commit/90a469057e9edb8eadfb328ac8bc06a4b5e0434f.diff LOG:

[clang] [llvm] Revert "[SME] Add intrinsics for FCVT(wid.) and FCVTL" (PR #93196)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/93196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Revert "[SME] Add intrinsics for FCVT(wid.) and FCVTL" (PR #93196)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Lukacma) Changes Reverts llvm/llvm-project#90215 --- Full diff: https://github.com/llvm/llvm-project/pull/93196.diff 7 Files Affected: - (modified) clang/include/clang/Basic/arm_sve.td (-11) - (modified) clang/test/CodeGen/aarch6

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Erich Keane via cfe-commits
@@ -67,6 +67,7 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringExtras.h" erichkeane wrote: Got it, thanks! https://github.com/llvm/llvm-project/pull/93179

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Erich Keane via cfe-commits
@@ -3548,6 +3561,56 @@ class Sema final : public SemaBase { BuiltinFunction }; + /// A helper function to provide Attribute Location for the Attr types erichkeane wrote: Right, my concern is the comment claims it is for both, but I see you copied it o

[clang] [llvm] [AMDGPU][Clang] Add check of size for __builtin_amdgcn_global_load_lds (PR #93064)

2024-05-23 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/93064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

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

[clang] [llvm] [clang] Introduce target-specific `Sema` components (PR #93179)

2024-05-23 Thread Vlad Serebrennikov via cfe-commits
@@ -3548,6 +3561,56 @@ class Sema final : public SemaBase { BuiltinFunction }; + /// A helper function to provide Attribute Location for the Attr types Endilll wrote: We decided that there's nothing to change here after an offline discussion. https://

[clang] 7e476eb - [AMDGPU][Clang] Add check of size for __builtin_amdgcn_global_load_lds (#93064)

2024-05-23 Thread via cfe-commits
Author: Shilei Tian Date: 2024-05-23T10:36:03-04:00 New Revision: 7e476eb11c60d0292213034d03c4581f15bfc68f URL: https://github.com/llvm/llvm-project/commit/7e476eb11c60d0292213034d03c4581f15bfc68f DIFF: https://github.com/llvm/llvm-project/commit/7e476eb11c60d0292213034d03c4581f15bfc68f.diff L

[clang] [llvm] [AMDGPU][Clang] Add check of size for __builtin_amdgcn_global_load_lds (PR #93064)

2024-05-23 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/93064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)

2024-05-23 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/92617 >From b4a8c06b79ec10ed2f53a7410bd847ecfa9e8450 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Fri, 17 May 2024 17:18:59 -0600 Subject: [PATCH 1/2] [clang-format]: Annotate colons found in inline assembly Short

[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)

2024-05-23 Thread Gedare Bloom via cfe-commits
@@ -1358,6 +1358,8 @@ class AnnotatingParser { Line.First->startsSequence(tok::kw_export, Keywords.kw_module) || Line.First->startsSequence(tok::kw_export, Keywords.kw_import)) { Tok->setType(TT_ModulePartitionColon); + } else if (Line.First->is

[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)

2024-05-23 Thread Gedare Bloom via cfe-commits
@@ -1489,11 +1489,25 @@ TEST_F(TokenAnnotatorTest, RequiresDoesNotChangeParsingOfTheRest) { TEST_F(TokenAnnotatorTest, UnderstandsAsm) { auto Tokens = annotate("__asm{\n" "a:\n" - "};"); - ASSERT_EQ(Tokens.size(), 7u) << Toke

[clang] [llvm] [AArch64][SME] Add intrinsics for vector groups ZERO (PR #93201)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/93201 According to the specification in https://github.com/ARM-software/acle/pull/309 this adds the intrinsics: void svzero_za64_vg1x2(uint32_t slice) __arm_streaming __arm_inout("za"); void svzero_za64_vg1x4(

[clang] [llvm] [AArch64][SME] Add intrinsics for vector groups ZERO (PR #93201)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-aarch64 Author: None (Lukacma) Changes According to the specification in https://github.com/ARM-software/acle/pull/309 this adds the intrinsics: void svzero_za64_vg1x2(uint32_t slice) __arm_streaming __arm_inout(

[clang] Reland #90786 ([BoundsSafety] Allow 'counted_by' attribute on pointers in structs in C) (PR #93121)

2024-05-23 Thread Dan Liew via cfe-commits
delcypher wrote: Hmm looks like I'll have to tweak the assert. Looks like some unit tests don't specify the language. ``` FAIL: Clang-Unit :: CodeGen/./ClangCodeGenTests/5/16 (19428 of 19653) TEST 'Clang-Unit :: CodeGen/./ClangCodeGenTests/5/16' FAILED

[clang] [llvm] [AArch64][SME] Add intrinsics for vector groups ZERO (PR #93201)

2024-05-23 Thread via cfe-commits
Lukacma wrote: This pull request reapllies #88114 and fixes test failure https://github.com/llvm/llvm-project/pull/93201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] wip: Move instrumentation passes (PR #92171)

2024-05-23 Thread Egor Pasko via cfe-commits
@@ -0,0 +1,29 @@ +; RUN: llc -mtriple=x86_64-- -O0 < %s | FileCheck %s +; RUN: llc -mtriple=x86_64-- -O1 < %s | FileCheck %s +; RUN: llc -mtriple=x86_64-- -O2 < %s | FileCheck %s + +; The codegen should insert post-inlining instrumentation calls and should not +; insert pre-inlini

[clang] [llvm] [SME] Add intrinsics for FCVT(wid.) and FCVTL (PR #93202)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/93202 According to the specification in https://github.com/ARM-software/acle/pull/309 this adds the intrinsics svfloat32x2_t svcvt_f32[_f16_x2](svfloat16_t zn) __arm_streaming; svfloat32x2_t svcvtl_f32[_f16_x2](svfloat

[clang] [llvm] [SME] Add intrinsics for FCVT(wid.) and FCVTL (PR #93202)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma edited https://github.com/llvm/llvm-project/pull/93202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SME] Add intrinsics for FCVT(wid.) and FCVTL (PR #93202)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Lukacma) Changes According to the specification in https://github.com/ARM-software/acle/pull/309 this adds the intrinsics ``` svfloat32x2_t svcvt_f32[_f16_x2](svfloat16_t zn) __arm_streaming; svfloat32x2_t svcvtl_f32[_f16_x2](svfloat1

[clang] [llvm] [SME] Add intrinsics for FCVT(wid.) and FCVTL (PR #93202)

2024-05-23 Thread via cfe-commits
Lukacma wrote: This pull request reapplies #90215 with fixed test https://github.com/llvm/llvm-project/pull/93202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SME] Add intrinsics for FCVT(wid.) and FCVTL (PR #93202)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/93202 >From a1750b2b5658f8ced700bbf010019703fc52f126 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Mon, 15 Apr 2024 13:31:00 + Subject: [PATCH 1/7] [LLVM][AARCH64]Replace +sme2p1+smef16f16 by +smef16f16 A

[clang] [llvm] [AArch64][SME] Add intrinsics for vector groups ZERO (PR #93201)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/93201 >From c44bd42f8011dd09771fda50a76a7321342c2b2f Mon Sep 17 00:00:00 2001 From: Marian Lukac Date: Thu, 4 Apr 2024 14:36:54 + Subject: [PATCH 1/6] WIP --- clang/include/clang/Basic/arm_sme.td | 29 +

[clang] [llvm] wip: Move instrumentation passes (PR #92171)

2024-05-23 Thread Egor Pasko via cfe-commits
@@ -0,0 +1,44 @@ +; RUN: opt -passes="default" -S < %s | FileCheck -check-prefix=PRELTO %s +; RUN: opt -passes="default" -S < %s | FileCheck -check-prefix=PRELTO %s +; RUN: opt -passes="thinlto-pre-link,thinlto" -S < %s | FileCheck -check-prefix=PRELTO %s +; RUN: opt -passes="thi

[clang] [llvm] [SME] Add intrinsics for FCVT(wid.) and FCVTL (PR #93202)

2024-05-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/93202 >From a1750b2b5658f8ced700bbf010019703fc52f126 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Mon, 15 Apr 2024 13:31:00 + Subject: [PATCH 1/7] [LLVM][AARCH64]Replace +sme2p1+smef16f16 by +smef16f16 A

[clang] Add option to avoid generating coverage mappings for unused functions (PR #92582)

2024-05-23 Thread Zequan Wu via cfe-commits
ZequanWu wrote: > The problem that this solves is related to binary size. In situations where a > large C API is in generated code but a small part of the API is used, the > size of __llvm_prf_names and __llvm_cov_fun sections can be prohibitively > large. This flag offers a way to reduce bina

[clang] [llvm] wip: Move instrumentation passes (PR #92171)

2024-05-23 Thread Egor Pasko via cfe-commits
@@ -0,0 +1,44 @@ +; RUN: opt -passes="default" -S < %s | FileCheck -check-prefix=PRELTO %s pasko wrote: Done. Went with INSTRUMENT/NOINSTRUMENT. https://github.com/llvm/llvm-project/pull/92171 ___ cfe-commits mailing l

[clang] 477b48e - [OpenACC][NFC] Implement RecursiveASTVisitor for clauses

2024-05-23 Thread via cfe-commits
Author: erichkeane Date: 2024-05-23T07:52:17-07:00 New Revision: 477b48e8dc6fe2c911332fc40f2fa67f3be016b9 URL: https://github.com/llvm/llvm-project/commit/477b48e8dc6fe2c911332fc40f2fa67f3be016b9 DIFF: https://github.com/llvm/llvm-project/commit/477b48e8dc6fe2c911332fc40f2fa67f3be016b9.diff LO

[clang] [llvm] [Frontend][OpenMP] Remove `reduction` from allowed clauses for `target` (PR #90754)

2024-05-23 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/90754 >From 94d79223a5c1daab292157576e8e84bb3280f22d Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 1 May 2024 12:21:51 -0500 Subject: [PATCH 1/3] [Frontend][OpenMP] Remove `reduction` from allowed cla

[clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)

2024-05-23 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Despite not showing up in the list of precommit CI checks for some reason, this did pass testing: https://buildkite.com/llvm-project/github-pull-requests/builds/66650 https://github.com/llvm/llvm-project/pull/93190 ___ cfe-commits

[clang] [analyzer][NFC] Use ArrayRef for input parameters (PR #93203)

2024-05-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/93203 Fixes #79684 >From ef65ed8c193c43c1914dc39bf1cd48da83872fc5 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Thu, 23 May 2024 10:56:33 +0200 Subject: [PATCH] [analyzer][NFC] Use ArrayRef for input parameters

[clang] [analyzer][NFC] Use ArrayRef for input parameters (PR #93203)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balazs Benics (steakhal) Changes Fixes #79684 --- Full diff: https://github.com/llvm/llvm-project/pull/93203.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp (+2-2)

[libunwind] [libunwind][AIX] Cast NULL as type uintptr_t. (PR #93204)

2024-05-23 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/93204 Casting NULL as type `uintptr_t` to allow type checking in both 32-bit and 64-bit mode. >From 1e21301d3b07bd72696f39a0ca8cd19907cdcf71 Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Thu, 23 May 2024 10:51:32

[libunwind] [libunwind][AIX] Cast NULL as type uintptr_t. (PR #93204)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Xing Xue (xingxue-ibm) Changes Casting NULL as type `uintptr_t` to allow type checking in both 32-bit and 64-bit mode. --- Full diff: https://github.com/llvm/llvm-project/pull/93204.diff 1 Files Affected: - (modified) libunwind/src

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)

2024-05-23 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/91879 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)

2024-05-23 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida approved this pull request. the InstallAPI changes LGTM, thanks! https://github.com/llvm/llvm-project/pull/93190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [clang][ExtractAPI] Ensure TemplateArgumentLocations are only accessed if available (PR #93205)

2024-05-23 Thread Daniel Grumberg via cfe-commits
https://github.com/daniel-grumberg created https://github.com/llvm/llvm-project/pull/93205 None >From d4e7e838fcbdf1645e5e31cefb462d53e59361d4 Mon Sep 17 00:00:00 2001 From: Daniel Grumberg Date: Thu, 23 May 2024 15:24:53 +0100 Subject: [PATCH] [clang][ExtractAPI] Ensure TemplateArgumentLocati

[clang] [clang][ExtractAPI] Ensure TemplateArgumentLocations are only accessed if available (PR #93205)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Grumberg (daniel-grumberg) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/93205.diff 2 Files Affected: - (modified) clang/lib/ExtractAPI/DeclarationFragments.cpp (+21-11) - (modified) clang/test/ExtractAPI/non

[clang] [Coverage][Expansion] handle nested macros in scratch space (PR #89869)

2024-05-23 Thread Wentao Zhang via cfe-commits
https://github.com/whentojump updated https://github.com/llvm/llvm-project/pull/89869 >From 510e0f131ad11d7924f33fc4c4130dcf866bd8da Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 19 Apr 2024 15:16:05 +0900 Subject: [PATCH 1/8] [MC/DC][Coverage] Workaround for `##` conditions A synt

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)

2024-05-23 Thread via cfe-commits
yronglin wrote: Thanks for your review! The CI did passed(https://buildkite.com/llvm-project/github-pull-requests/builds/66630) but not shown on github for whatever reason. https://github.com/llvm/llvm-project/pull/91879 ___ cfe-commits mailing list

[clang] 905b402 - [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (#91879)

2024-05-23 Thread via cfe-commits
Author: yronglin Date: 2024-05-23T23:27:05+08:00 New Revision: 905b402a5d8f1490d668f40942390ebd6e87aa8f URL: https://github.com/llvm/llvm-project/commit/905b402a5d8f1490d668f40942390ebd6e87aa8f DIFF: https://github.com/llvm/llvm-project/commit/905b402a5d8f1490d668f40942390ebd6e87aa8f.diff LOG:

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)

2024-05-23 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/91879 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Tweak tryCaptureVariable for unevaluated lambdas (PR #93206)

2024-05-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/93206 This patch picks up #78598 with the hope that we can address such crashes in `tryCaptureVariable` for unevaluated lambdas. Fixes #88081 Fixes #69307 Fixes #91633 Fixes #90669 Fixes #89496 >From 4419914727aeb

[clang] [Clang][Sema] Tweak tryCaptureVariable for unevaluated lambdas (PR #93206)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes This patch picks up #78598 with the hope that we can address such crashes in `tryCaptureVariable` for unevaluated lambdas. Fixes #88081 Fixes #69307 Fixes #91633 Fixes #90669 Fixes #89496 --- Full diff:

[clang] [Clang][Sema] Tweak tryCaptureVariable for unevaluated lambdas (PR #93206)

2024-05-23 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Unfortunately, @l1nxy told me privately that he will not take over that patch as anticipated. So I hope I can continue the work. I'll add a release note and supplement some comments tomorrow. https://github.com/llvm/llvm-project/pull/93206 ___

[clang] [Clang] Only check exprs that might be immediate escalating in evaluated contexts (PR #93187)

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

[clang] [Clang] Only check exprs that might be immediate escalating in evaluated contexts (PR #93187)

2024-05-23 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/93187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Use `isa_and_nonnull` instead of `VD && isa(VD)` (PR #93207)

2024-05-23 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/93207 This issue was found in https://github.com/llvm/llvm-project/pull/86960. But I'd like to avoid mixing together a bunch of cleanups with actual changes. >From 6aa4cc4c1fc3309320d949a8c56a662f812e7529 Mon Sep 17

[clang] [Clang][Sema] Tweak tryCaptureVariable for unevaluated lambdas (PR #93206)

2024-05-23 Thread Younan Zhang via cfe-commits
@@ -1036,6 +1036,7 @@ void Sema::ActOnLambdaExpressionAfterIntroducer(LambdaIntroducer &Intro, // be dependent, because there are template parameters in scope. CXXRecordDecl::LambdaDependencyKind LambdaDependencyKind = CXXRecordDecl::LDK_Unknown; + z

[clang] [NFC][Clang] Use `isa_and_nonnull` instead of `VD && isa(VD)` (PR #93207)

2024-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: None (yronglin) Changes This issue was found in https://github.com/llvm/llvm-project/pull/86960. But I'd like to avoid mixing together a bunch of cleanups with actual changes. --- Full diff: https://gith

[libunwind] [libunwind][AIX] Cast NULL as type uintptr_t. (PR #93204)

2024-05-23 Thread David Tenty via cfe-commits
https://github.com/daltenty approved this pull request. LGTM, assuming the CI passes https://github.com/llvm/llvm-project/pull/93204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   6   >