[clang] [llvm] New calling convention preserve_none (PR #76868)

2024-01-03 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 8fdc3b98b894bbbe301b13cf8fc89663e1cbac1a 90e14918a0eb13e2187f8548416ac72491d966c1 --

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
@@ -0,0 +1,52 @@ +// RUN: %clang_cc1 -emit-llvm -triple=x86_64-pc-win32 -fms-compatibility %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple=x86_64-pc-win32 -fms-compatibility -emit-pch -o %t %s +// RUN: %clang_cc1 -emit-llvm -triple=x86_64-pc-win32 -fms-compatibility -include

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
@@ -2286,6 +2286,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal, bool PassAlignment = getLangOpts().AlignedAllocation && Alignment > NewAlignment; + if (CheckArgsForPlaceholders(PlacementArgs)) Sirraide wrote: I

[openmp] [libcxx] [libc] [llvm] [clang] [flang] [clang-tools-extra] [compiler-rt] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-03 Thread via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// 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] 09de5e5 - [Clang] Fix failing CI with different test case attribute & host triple (#76863)

2024-01-03 Thread via cfe-commits
Author: Yuxuan Chen Date: 2024-01-03T14:43:10-08:00 New Revision: 09de5e5c6d8c25fe76840c69056afca72275dd6b URL: https://github.com/llvm/llvm-project/commit/09de5e5c6d8c25fe76840c69056afca72275dd6b DIFF: https://github.com/llvm/llvm-project/commit/09de5e5c6d8c25fe76840c69056afca72275dd6b.diff L

[clang] 3f2e670 - Revert "[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations" (#76876)

2024-01-03 Thread via cfe-commits
Author: Erich Keane Date: 2024-01-03T15:16:08-08:00 New Revision: 3f2e670671e718579cf98f1bf0087b6d0ee4919c URL: https://github.com/llvm/llvm-project/commit/3f2e670671e718579cf98f1bf0087b6d0ee4919c DIFF: https://github.com/llvm/llvm-project/commit/3f2e670671e718579cf98f1bf0087b6d0ee4919c.diff L

[clang] Revert "[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations" (PR #76876)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes Reverts llvm/llvm-project#76677 See discussion here: https://github.com/llvm/llvm-project/pull/76677 --- Full diff: https://github.com/llvm/llvm-project/pull/76876.diff 3 Files Affected: - (modified) cl

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
@@ -2286,6 +2286,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal, bool PassAlignment = getLangOpts().AlignedAllocation && Alignment > NewAlignment; + if (CheckArgsForPlaceholders(PlacementArgs)) Sirraide wrote: M

[clang] Revert "[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations" (PR #76876)

2024-01-03 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 49b492048af2b2093aaed899c0bbd6d740aad83c 687396b5f4ba0713d103ebd172b308e92eb930cc --

[clang] ddfbca8 - Clang/MIPS: Use -mnan value for -mabs if not specified (#71157)

2024-01-03 Thread via cfe-commits
Author: YunQiang Su Date: 2024-01-03T19:04:22-05:00 New Revision: ddfbca8b08941125b48039236a03635252298611 URL: https://github.com/llvm/llvm-project/commit/ddfbca8b08941125b48039236a03635252298611 DIFF: https://github.com/llvm/llvm-project/commit/ddfbca8b08941125b48039236a03635252298611.diff L

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
@@ -2286,6 +2286,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal, bool PassAlignment = getLangOpts().AlignedAllocation && Alignment > NewAlignment; + if (CheckArgsForPlaceholders(PlacementArgs)) Sirraide wrote: T

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
@@ -2286,6 +2286,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal, bool PassAlignment = getLangOpts().AlignedAllocation && Alignment > NewAlignment; + if (CheckArgsForPlaceholders(PlacementArgs)) Sirraide wrote: t

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
@@ -2286,6 +2286,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal, bool PassAlignment = getLangOpts().AlignedAllocation && Alignment > NewAlignment; + if (CheckArgsForPlaceholders(PlacementArgs)) Sirraide wrote: O

[libcxx] [clang-tools-extra] [llvm] [lld] [libc] [libcxxabi] [compiler-rt] [lldb] [flang] [mlir] [polly] [clang] Make clang report invalid target versions. (PR #75373)

2024-01-03 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/75373 >From 74f256d8a77ee2ba8e0d5bbb6519aa2729cf94d5 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 13 Dec 2023 20:07:45 + Subject: [PATCH 01/11] Make clang report garbage target versions. Clang always s

[libcxx] [clang-tools-extra] [llvm] [lld] [libc] [libcxxabi] [compiler-rt] [lldb] [flang] [mlir] [polly] [clang] Make clang report invalid target versions. (PR #75373)

2024-01-03 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/75373 >From 74f256d8a77ee2ba8e0d5bbb6519aa2729cf94d5 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 13 Dec 2023 20:07:45 + Subject: [PATCH 01/12] Make clang report garbage target versions. Clang always s

[libcxx] [clang-tools-extra] [llvm] [lld] [libc] [libcxxabi] [compiler-rt] [lldb] [flang] [mlir] [polly] [clang] Make clang report invalid target versions. (PR #75373)

2024-01-03 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/75373 >From 74f256d8a77ee2ba8e0d5bbb6519aa2729cf94d5 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 13 Dec 2023 20:07:45 + Subject: [PATCH 01/13] Make clang report garbage target versions. Clang always s

[llvm] [clang] [SPARC] Support reserving arbitrary general purpose registers (PR #74927)

2024-01-03 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/74927 >From 956ca7e210a438caac7c5dda8c9945305a53de39 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Wed, 29 Nov 2023 08:08:29 +0700 Subject: [PATCH 1/3] [SPARC] Support reserving arbitrary general purpose registers Thi

[llvm] [compiler-rt] [libcxx] [libc] [mlir] [clang-tools-extra] [clang] [lldb] [flang] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-03 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 1/6] [libc++] Implement ranges::contains_subrange --- libcxx/i

[mlir] [libc] [llvm] [clang] [lldb] [NFC][ObjectSizeOffset] Use classes instead of std::pair (PR #76882)

2024-01-03 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 7df28fd61aa4603846b3ce16f9f988ccc780a584 278faa86119ed25214534951a9ccd078e4b69f1f --

[libcxx] [clang-tools-extra] [llvm] [libc++] Implement LWG3940: std::expected::value() also needs E to be copy constructible (PR #71819)

2024-01-03 Thread via cfe-commits
https://github.com/PragmaTwice updated https://github.com/llvm/llvm-project/pull/71819 >From 3e4b73d2aeac411a83dda5cd63eb0572499db467 Mon Sep 17 00:00:00 2001 From: PragmaTwice Date: Fri, 10 Nov 2023 00:50:24 +0900 Subject: [PATCH 1/7] [libc++] Implement LWG3940 (std::expected::value() also nee

[libcxx] [lldb] [libc] [compiler-rt] [llvm] [flang] [clang-tools-extra] [clang] [mlir] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-03 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 1/6] [libc++] Implement ranges::contains_subrange --- libcxx/i

[libcxx] [lldb] [libc] [compiler-rt] [llvm] [flang] [clang-tools-extra] [clang] [mlir] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-03 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 1/7] [libc++] Implement ranges::contains_subrange --- libcxx/i

[libcxx] [llvm] [clang-tools-extra] [libc++] Implement LWG3940: std::expected::value() also needs E to be copy constructible (PR #71819)

2024-01-03 Thread via cfe-commits
PragmaTwice wrote: https://github.com/llvm/llvm-project/actions/runs/7404652886/job/20147039107?pr=71819 ``` # .---command stderr # | error: 'expected-error' diagnostics expected but not seen: # | File * Line * (directive at /home/runner/_work/llvm-project/llvm-project/libcxx/test

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/75883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/75883 >From f51b382fd33d4cf3f75bdaa172bb8697a6cadc9e Mon Sep 17 00:00:00 2001 From: Sirraide Date: Tue, 19 Dec 2023 02:48:25 +0100 Subject: [PATCH 1/3] [Clang] Support MSPropertyRefExpr as placement arg to new-expres

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
@@ -2286,6 +2286,9 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal, bool PassAlignment = getLangOpts().AlignedAllocation && Alignment > NewAlignment; + if (CheckArgsForPlaceholders(PlacementArgs)) Sirraide wrote: A

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2024-01-03 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/75883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add B extension (PR #76893)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Wang Pengcheng (wangpc-pp) Changes It seems that we have `B` extension again: https://github.com/riscv/riscv-b According to the spec, `B` extension represents the collection of the `Zba`, `Zbb`, `Zbs` extensions. Though it hasn't been rat

[clang] [compiler-rt] Sanitizer prer6 (PR #76894)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: YunQiang Su (wzssyqa) Changes On MIPS pre-R6, instruction b can only work within 64KiB, which is not enough now. We need the help of GOT. For __mips64, we can get GOT by: lui $t8, %hi(%neg(%gp_rel(SANITIZER_STRINGIFY(TRAMPOLINE(func)))

[clang] 42ec976 - [clang-format] Optimize processing .clang-format-ignore files (#76733)

2024-01-03 Thread via cfe-commits
Author: Owen Pan Date: 2024-01-03T21:12:28-08:00 New Revision: 42ec976184acd40436acd7104ad715c60ca3e7ed URL: https://github.com/llvm/llvm-project/commit/42ec976184acd40436acd7104ad715c60ca3e7ed DIFF: https://github.com/llvm/llvm-project/commit/42ec976184acd40436acd7104ad715c60ca3e7ed.diff LOG:

[clang] [compiler-rt] Sanitizer prer6 (PR #76894)

2024-01-03 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 33565750e49f683308fad3ba22a06fa7e75f592b 9893b37053f02f679fcef2961b1e6872d8cf20b3 --

[clang] [clang-tools-extra] Reapply "[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations" (#76876) (PR #76915)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krystian Stasiowski (sdkrystian) Changes This reapplies f034044ad94d6f7ccec13d89f08acac257ed28bb after it was reverted by 687396b5f4ba0713d103ebd172b308e92eb930cc due to a test failure in clang-doc. The test in question declares a partial

[clang] 75365b2 - [clang][AVR] Restrict range of assembly constraint 'G' (#76561)

2024-01-03 Thread via cfe-commits
Author: Ben Shi Date: 2024-01-04T15:51:57+08:00 New Revision: 75365b2e189a54b96a907ebe327c5898dd7aad14 URL: https://github.com/llvm/llvm-project/commit/75365b2e189a54b96a907ebe327c5898dd7aad14 DIFF: https://github.com/llvm/llvm-project/commit/75365b2e189a54b96a907ebe327c5898dd7aad14.diff LOG:

[clang] 18c0f59 - [clang][analyzer] Support 'fdopen' in the StreamChecker (#76776)

2024-01-03 Thread via cfe-commits
Author: Ben Shi Date: 2024-01-04T15:52:52+08:00 New Revision: 18c0f59b3eeed880384aa37c7feca2064b994f37 URL: https://github.com/llvm/llvm-project/commit/18c0f59b3eeed880384aa37c7feca2064b994f37 DIFF: https://github.com/llvm/llvm-project/commit/18c0f59b3eeed880384aa37c7feca2064b994f37.diff LOG:

[lldb] [compiler-rt] [libc] [flang] [clang-tools-extra] [libcxx] [llvm] [clang] [X86][BF16] Try to use `f16` for lowering (PR #76901)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes --- Patch is 102.12 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/76901.diff 4 Files Affected: - (modified) llvm/lib/Target/X86/X86ISelLowering.cpp (

[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)

2024-01-04 Thread via cfe-commits
@@ -95,8 +103,31 @@ std::pair ClangASTNodesEmitter::EmitNode(raw_ostream &OS, if (!Base.isAbstract()) First = Last = Base; + class Comp { cor3ntin wrote: Yes, this might as well be a lambda. I also think some comment to explain what PriorizeIfSubclass

[clang] 7954c57 - [IR] Fix GEP offset computations for vector GEPs (#75448)

2024-01-04 Thread via cfe-commits
Author: Jannik Silvanus Date: 2024-01-04T10:08:21+01:00 New Revision: 7954c57124b495fbdc73674d71f2e366e4afe522 URL: https://github.com/llvm/llvm-project/commit/7954c57124b495fbdc73674d71f2e366e4afe522 DIFF: https://github.com/llvm/llvm-project/commit/7954c57124b495fbdc73674d71f2e366e4afe522.dif

[clang] [analyzer] Add std::any checker (PR #76580)

2024-01-04 Thread via cfe-commits
=?utf-8?q?Gábor?= Spaits,=?utf-8?q?Gábor?= Spaits, =?utf-8?q?Gábor?= Spaits,=?utf-8?q?Gábor?= Spaits, =?utf-8?q?Gábor?= Spaits Message-ID: In-Reply-To: @@ -87,6 +85,28 @@ bool isStdVariant(const Type *Type) { return isStdType(Type, llvm::StringLiteral("variant")); } +bool

[clang] [C++20] [Modules] Implementing Eliding Unreachable Decls of GMF in ASTWriter (PR #76930)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-clang Author: Chuanqi Xu (ChuanqiXu9) Changes This was a patch to try to implement eliding unreachable decls in GMF in ASTWriter. It was developed a half year ago and I just rebased it but I did't fix the failing test

[clang] [C++20] [Modules] Implementing Eliding Unreachable Decls of GMF in ASTWriter (PR #76930)

2024-01-04 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 7a3b0cbb143d02b70b2bfae5cd40e9867c124748 b9a03912276d25ff819a755bef4ee72d64ce1480 --

[clang] loop bind : bug in checking Parent region (PR #76938)

2024-01-04 Thread via cfe-commits
https://github.com/SunilKuravinakop created https://github.com/llvm/llvm-project/pull/76938 Changes uploaded to the phabricator on Dec 16th are lost because the phabricator is down. Hence re-uploading it to the github.com. Changes to be committed: modified: clang/include/clang/Sema

[clang] loop bind : bug in checking Parent region (PR #76938)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (SunilKuravinakop) Changes Changes uploaded to the phabricator on Dec 16th are lost because the phabricator is down. Hence re-uploading it to the github.com. Changes to be committed: modified: clang/include/clang/Sema/Sem

[clang] [clang] Add per-global code model attribute (PR #72078)

2024-01-04 Thread via cfe-commits
heiher wrote: @erichkeane gentle ping https://github.com/llvm/llvm-project/pull/72078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)

2024-01-04 Thread via cfe-commits
Pol Marcet =?utf-8?q?Sardà?= Message-ID: In-Reply-To: https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/76825 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)

2024-01-04 Thread via cfe-commits
Pol Marcet =?utf-8?q?Sard=C3=A0?= Message-ID: In-Reply-To: @@ -196,8 +217,20 @@ void ClangASTNodesEmitter::run(raw_ostream &OS) { } void clang::EmitClangASTNodes(RecordKeeper &RK, raw_ostream &OS, - const std::string &N, const std::string &S) {

[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)

2024-01-04 Thread via cfe-commits
Pol Marcet =?utf-8?q?Sard=C3=A0?= Message-ID: In-Reply-To: https://github.com/cor3ntin approved this pull request. LGTM. 1% is a very consequential improvement, congrats! https://github.com/llvm/llvm-project/pull/76825 ___ cfe-commits mailing list c

[clang-tools-extra] [clang] Reapply "[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations" (#76876) (PR #76915)

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

[clang] f5efa74 - [Sema] When checking for constraint equivalence, do not calculate satisfaction (#74490)

2024-01-04 Thread via cfe-commits
Author: Ilya Biryukov Date: 2024-01-04T11:57:53+01:00 New Revision: f5efa74961560070a1e6f127214bcf6b570fef98 URL: https://github.com/llvm/llvm-project/commit/f5efa74961560070a1e6f127214bcf6b570fef98 DIFF: https://github.com/llvm/llvm-project/commit/f5efa74961560070a1e6f127214bcf6b570fef98.diff

[clang] loop bind : correction for bug in checking Parent region (PR #76938)

2024-01-04 Thread via cfe-commits
https://github.com/SunilKuravinakop edited https://github.com/llvm/llvm-project/pull/76938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] loop bind : patch correction for bug in checking Parent region (PR #76938)

2024-01-04 Thread via cfe-commits
https://github.com/SunilKuravinakop edited https://github.com/llvm/llvm-project/pull/76938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Patch for Support to loop bind clause : Checking Parent Region (PR #76938)

2024-01-04 Thread via cfe-commits
https://github.com/SunilKuravinakop edited https://github.com/llvm/llvm-project/pull/76938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang][test][asan] Make `instantiation-depth-default.cpp` a valid test case under `asan` and `ubsan` configs (PR #75254)

2024-01-04 Thread via cfe-commits
@@ -1,18 +1,12 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-backtrace-limit=2 %s -// -// FIXME: Disable this test when Clang was built with ASan, because ASan -// increases our per-frame stack usage enough that this test no longer fits -// within our normal stack space

[llvm] [clang] [RISCV] Deduplicate RISCVISAInfo::toFeatures/toFeatureVector. NFC (PR #76942)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Luke Lau (lukel97) Changes toFeatures and toFeatureVector both output a list of target feature flags, just with a slightly different interface. toFeatures keeps any unsupported extensions, and also provides a way to append negative extens

[clang-tools-extra] 2336f79 - [clangd] Dont require confirmation for include-cleaner batch-fixes (#76826)

2024-01-04 Thread via cfe-commits
Author: kadir çetinkaya Date: 2024-01-04T12:57:42+01:00 New Revision: 2336f792bc5a1d9195c1bd995b6040c13e73d4e7 URL: https://github.com/llvm/llvm-project/commit/2336f792bc5a1d9195c1bd995b6040c13e73d4e7 DIFF: https://github.com/llvm/llvm-project/commit/2336f792bc5a1d9195c1bd995b6040c13e73d4e7.dif

[clang] [Cygwin] Cygwin basic support (PR #76943)

2024-01-04 Thread via cfe-commits
=?utf-8?b?5b6Q5oyB5oGS?= Xu Chiheng,=?utf-8?b?5b6Q5oyB5oGS?= Xu Chiheng Message-ID: In-Reply-To: github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can

[clang] [Cygwin] Cygwin basic support (PR #76943)

2024-01-04 Thread via cfe-commits
=?utf-8?b?5b6Q5oyB5oGS?= Xu Chiheng,=?utf-8?b?5b6Q5oyB5oGS?= Xu Chiheng Message-ID: In-Reply-To: llvmbot wrote: @llvm/pr-subscribers-clang Author: 徐持恒 Xu Chiheng (xu-chiheng) Changes Enable TLS, and set VaListKind to CharPtrBuiltinVaList. This fix bootstrap failure on Cygwin. --- Full d

[clang] 4de971c - [clang][ASTImporter] import InstantiatedFromMember of ClassTemplateSpecializationDecl (#76493)

2024-01-04 Thread via cfe-commits
Author: Qizhi Hu Date: 2024-01-04T21:21:53+08:00 New Revision: 4de971c230e8202cfd54d4d6c36719db628d35ce URL: https://github.com/llvm/llvm-project/commit/4de971c230e8202cfd54d4d6c36719db628d35ce DIFF: https://github.com/llvm/llvm-project/commit/4de971c230e8202cfd54d4d6c36719db628d35ce.diff LOG:

[clang] [clang] [MinGW] Don't look for a GCC in path if the install base has a proper mingw sysroot (PR #76949)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Martin Storsjö (mstorsjo) Changes This fixes uses of the MSYS2 clang64 environment compilers, if another set of GCC based compilers are available further back in PATH (which may be explicitly added, or inherited unintentionally fro

[clang] [clang] [MinGW] Don't look for a GCC in path if the install base has a proper mingw sysroot (PR #76949)

2024-01-04 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 71b3ead870107e39e998f6480e545eb01d9d28be 355e2530e855249adf9657c58d4e1a6727d969bd --

[clang] [Coverage] Map regions from system headers (PR #76950)

2024-01-04 Thread via cfe-commits
https://github.com/ManuelvOK created https://github.com/llvm/llvm-project/pull/76950 In 2155195, the "system-headers-coverage" option has been added but not used in all necessary places. >From 593b9db7dcbb814ddac3c77b462d04400cfa77a8 Mon Sep 17 00:00:00 2001 From: Manuel Kalettka Date: Wed, 3

[clang] [Coverage] Map regions from system headers (PR #76950)

2024-01-04 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it i

[clang] [Coverage] Map regions from system headers (PR #76950)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (ManuelvOK) Changes In 2155195, the "system-headers-coverage" option has been added but not used in all necessary places. --- Full diff: https://github.com/llvm/llvm-project/pull/76950.diff 2 Files Affected: - (modified) c

[llvm] [lld] [flang] [clang] [AMDGPU] Introduce Code Object V6 (PR #76954)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-clang Author: Pierre van Houtryve (Pierre-vh) Changes Introduce Code Object V6 in Clang, LLD, Flang and LLVM. This is the same as V5 except a new "generic version" flag can be present in EFLAGS. This is related to ne

[clang] [clang][Interp] Fix nullptr array dereferencing (PR #75798)

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

[llvm] [flang] [lld] [clang] [AMDGPU] Introduce GFX9/10.1/10.3/11 Generic Targets (PR #76955)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lld @llvm/pr-subscribers-clang Author: Pierre van Houtryve (Pierre-vh) Changes NOTE: This PR is part of a stack, please check #76954 to review the first commit! These generic targets include multiple GPUs and will, in the future, provide a way to buil

[clang] [clang] Correctly implement CWG 2672 (PR #75001)

2024-01-04 Thread via cfe-commits
cor3ntin wrote: @zyn0217 I think the existing release note could mention #71684. LGTM otherwise https://github.com/llvm/llvm-project/pull/75001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [clang] Correctly implement CWG 2672 (PR #75001)

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

[clang] [Documentation] Fix typoed integer (PR #65688)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Alcaro) Changes (Yes, this commit is two years old, I never felt like investigating Phabricator) --- Full diff: https://github.com/llvm/llvm-project/pull/65688.diff 1 Files Affected: - (modified) clang/docs/Block-ABI-Apple.rst (+1

[clang-tools-extra] [include-cleaner] Fix a race issue when editing multiple files. (PR #76960)

2024-01-04 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 e9af57dfea1637a3872052b317c9fe6c71b8d290 6cc7141f1f182763ccec8a4801d3b866cc839324 --

[clang] Avoid copying Param and Constr (PR #65488)

2024-01-04 Thread via cfe-commits
cor3ntin wrote: This looks fine (NFC), I'll go ahead and merge it! https://github.com/llvm/llvm-project/pull/65488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Avoid copying Param and Constr (PR #65488)

2024-01-04 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/65488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Fix collectNonISAExtFeature returning negative extension features (PR #76962)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Luke Lau (lukel97) Changes collectNonISAExtFeature was returning any negative extension features, e.g. given an input of +zifencei,+m,+a,+save-restore,-zbb,-relax,-zfa It would return +save-restore,-zbb,-relax,-zfa Because nega

[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)

2024-01-04 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/76825 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 901a816 - [clang] Optimize castToDeclContext for 2% improvement in build times (#76825)

2024-01-04 Thread via cfe-commits
Author: Pol M Date: 2024-01-04T15:42:35+01:00 New Revision: 901a8160a8cb3bda3558fffb8e109485c42affe5 URL: https://github.com/llvm/llvm-project/commit/901a8160a8cb3bda3558fffb8e109485c42affe5 DIFF: https://github.com/llvm/llvm-project/commit/901a8160a8cb3bda3558fffb8e109485c42affe5.diff LOG: [c

[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)

2024-01-04 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 90c397fc56b7a04dd53cdad8103de1ead9686104 c346904caff1bf97605d84bdd0120cefe1ca35f4 --

[clang] [clang] static operators should evaluate object argument (PR #68485)

2024-01-04 Thread via cfe-commits
https://github.com/cor3ntin commented: I think this looks fine, once we have a release note https://github.com/llvm/llvm-project/pull/68485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)

2024-01-04 Thread via cfe-commits
@@ -2605,18 +2605,26 @@ bool QualType::isTrivialType(const ASTContext &Context) const { } bool QualType::isTriviallyCopyableType(const ASTContext &Context) const { - if ((*this)->isArrayType()) -return Context.getBaseElementType(*this).isTriviallyCopyableType(Context); +

[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)

2024-01-04 Thread via cfe-commits
@@ -2605,18 +2605,26 @@ bool QualType::isTrivialType(const ASTContext &Context) const { } bool QualType::isTriviallyCopyableType(const ASTContext &Context) const { - if ((*this)->isArrayType()) -return Context.getBaseElementType(*this).isTriviallyCopyableType(Context); +

[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)

2024-01-04 Thread via cfe-commits
@@ -2605,18 +2605,26 @@ bool QualType::isTrivialType(const ASTContext &Context) const { } bool QualType::isTriviallyCopyableType(const ASTContext &Context) const { - if ((*this)->isArrayType()) -return Context.getBaseElementType(*this).isTriviallyCopyableType(Context); +

[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)

2024-01-04 Thread via cfe-commits
@@ -911,12 +913,16 @@ class QualType { /// CXXRecordDecl::isCXX11StandardLayout, this takes DRs into account. bool isCXX11PODType(const ASTContext &Context) const; + cor3ntin wrote: Can you revert that? https://github.com/llvm/llvm-project/pull/76680 ___

[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)

2024-01-04 Thread via cfe-commits
@@ -766,6 +766,8 @@ class QualType { bool UseExcessPrecision(const ASTContext &Ctx); + static bool isTriviallyCopyableTypeImpl(const QualType &type, const ASTContext &Context,bool copy_constructible); cor3ntin wrote: You can remove that (it will be a non

[clang] Changed Checks from TriviallyCopyable to TriviallyCopyConstructible (PR #76680)

2024-01-04 Thread via cfe-commits
@@ -2605,18 +2605,26 @@ bool QualType::isTrivialType(const ASTContext &Context) const { } bool QualType::isTriviallyCopyableType(const ASTContext &Context) const { - if ((*this)->isArrayType()) -return Context.getBaseElementType(*this).isTriviallyCopyableType(Context); +

[clang] [Sema] Warning for _Float16 passed to format specifier '%f' (PR #74439)

2024-01-04 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/74439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Warning for _Float16 passed to format specifier '%f' (PR #74439)

2024-01-04 Thread via cfe-commits
@@ -18,3 +18,8 @@ void test_floating_promotion(__fp16 *f16, float f32, double f64) { // CHECK: ImplicitCastExpr {{.*}} 'double' // CHECK-NEXT: 'float' } + +void test_Float16_no_default_promotion(_Float16 f16) { + variadic(1, f16); +// CHECK-NOT: ImplicitCastExpr {{.*}} 'doub

[clang] [Sema] Warning for _Float16 passed to format specifier '%f' (PR #74439)

2024-01-04 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM. The format diagnostics are new in Clang 18 and as such we do not need a release note. Correct? https://github.com/llvm/llvm-project/pull/74439 ___ cfe-commits mailing list cfe-commits@list

[clang] [Clang] Fix the instantiation of return type requirements in lambda bodies (PR #76967)

2024-01-04 Thread via cfe-commits
https://github.com/LYP951018 created https://github.com/llvm/llvm-project/pull/76967 Currently, due to the incomplete implementation of p0588r1, the instantiation of lambda expressions leads to the instantiation of the body. And `EvaluateConstraints` is false during the instantiation of the bo

[clang] [Clang] Fix the instantiation of return type requirements in lambda bodies (PR #76967)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: 刘雨培 (LYP951018) Changes Currently, due to the incomplete implementation of p0588r1, the instantiation of lambda expressions leads to the instantiation of the body. And `EvaluateConstraints` is false during the instantiation of the body, w

[clang] [Clang] Fix the instantiation of return type requirements in lambda bodies (PR #76967)

2024-01-04 Thread via cfe-commits
https://github.com/LYP951018 edited https://github.com/llvm/llvm-project/pull/76967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [flang] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2024-01-04 Thread via cfe-commits
BukeBeyond wrote: ### For us, this is the Most Productive update of the year! We are ambitiously building a new language b. b extends and generates C++26, just like C++ generated C in 1979. b runs majority of the same CPU code on mainstream GPUs over just Vulkan. It features single file mod

[clang] [Clang] Fix the instantiation of return type requirements in lambda bodies (PR #76967)

2024-01-04 Thread via cfe-commits
https://github.com/LYP951018 updated https://github.com/llvm/llvm-project/pull/76967 From 00b1b696e3c26f43db2b3b3b2e4e0224d8c61615 Mon Sep 17 00:00:00 2001 From: letrec Date: Thu, 4 Jan 2024 23:10:35 +0800 Subject: [PATCH 1/4] add support for return type requirement in lambdas --- clang/docs/

[clang] [Clang] Fix the instantiation of return type requirements in lambda bodies (PR #76967)

2024-01-04 Thread via cfe-commits
@@ -843,6 +843,9 @@ Bug Fixes to C++ Support - Fix crash when parsing nested requirement. Fixes: (`#73112 `_) +- Fixed a crash caused by using return type requirement in a lambda. Fixes: + (`#64607

[clang] [Clang] Fix the instantiation of return type requirements in lambda bodies (PR #76967)

2024-01-04 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM. I do hope that @erichkeane will be able to work on delayed instantiation though! https://github.com/llvm/llvm-project/pull/76967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] 640ef55 - Reapply "[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations" (#76876) (#76915)

2024-01-04 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-01-04T17:30:48+01:00 New Revision: 640ef55bbbc081b72a87f71cab1bce08762e48b0 URL: https://github.com/llvm/llvm-project/commit/640ef55bbbc081b72a87f71cab1bce08762e48b0 DIFF: https://github.com/llvm/llvm-project/commit/640ef55bbbc081b72a87f71cab1bce08762e48b0

[clang] [clang-tools-extra] Reapply "[Clang][Sema] Diagnose unexpanded packs in the template argument lists of function template specializations" (#76876) (PR #76915)

2024-01-04 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/76915 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [mlir] [llvm] [libc] [clang-tools-extra] [clang] static operators should evaluate object argument (PR #68485)

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

[clang] [Clang][AArch64] Change SME attributes for shared/new/preserved state. (PR #76971)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Sander de Smalen (sdesmalen-arm) Changes This patch replaces the `__arm_new_za`, `__arm_shared_za` and `__arm_preserves_za` attributes in favour of: * `__arm_new("za")` * `__arm_in("za")` * `__arm_out("za")` * `__arm_inout("za")` *

[clang] 8f81520 - [Clang][SME] Add IsStreamingOrSVE2p1 (#75958)

2024-01-04 Thread via cfe-commits
Author: Sam Tebbs Date: 2024-01-04T16:50:31Z New Revision: 8f8152091cae186b35f73331df13f36b0f905eb4 URL: https://github.com/llvm/llvm-project/commit/8f8152091cae186b35f73331df13f36b0f905eb4 DIFF: https://github.com/llvm/llvm-project/commit/8f8152091cae186b35f73331df13f36b0f905eb4.diff LOG: [Cl

[clang] a7a78fd - Revert "[Clang][SME] Add IsStreamingOrSVE2p1" (#76973)

2024-01-04 Thread via cfe-commits
Author: Sam Tebbs Date: 2024-01-04T16:53:14Z New Revision: a7a78fd427569a7ad8a27e682a66fe414f004a35 URL: https://github.com/llvm/llvm-project/commit/a7a78fd427569a7ad8a27e682a66fe414f004a35 DIFF: https://github.com/llvm/llvm-project/commit/a7a78fd427569a7ad8a27e682a66fe414f004a35.diff LOG: Rev

[clang] Revert "[Clang][SME] Add IsStreamingOrSVE2p1" (PR #76973)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Tebbs (SamTebbs33) Changes Reverts llvm/llvm-project#75958 I mistakenly included a commit from my local main after rebasing. --- Patch is 88.95 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pu

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #76975)

2024-01-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Tebbs (SamTebbs33) Changes This patch adds IsStreamingOrSVE2p1 to the applicable builtins and a warning for when those builtins are not used in a streaming or sve2p1 function. Fix after reverting https://github.com/llvm/llvm-project/p

<    43   44   45   46   47   48   49   50   51   52   >