[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/76818 >From cc7ff8b7ecb93165172dbb481c7d5fcb64289a96 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Wed, 3 Jan 2024 14:44:58 +0100 Subject: [PATCH 1/4] [coroutines] Introduce [[clang::coro_not_lifetimebound]] ---

[clang] b3d2642 - NFC: Reflow comment for readability.

2024-01-03 Thread James Y Knight via cfe-commits
Author: James Y Knight Date: 2024-01-03T09:34:07-05:00 New Revision: b3d26426b06ee74bf79f766375a37c384aa0132b URL: https://github.com/llvm/llvm-project/commit/b3d26426b06ee74bf79f766375a37c384aa0132b DIFF:

[clang-tools-extra] [clangd] Track IWYU pragmas for non-preamble includes (PR #75612)

2024-01-03 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/75612 From 041a3396cd62773bac985a6ca0b453b2f14635b3 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Fri, 15 Dec 2023 15:14:05 +0100 Subject: [PATCH 1/2] [clangd] Track IWYU pragmas for non-preamble includes ---

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/76818 >From cc7ff8b7ecb93165172dbb481c7d5fcb64289a96 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Wed, 3 Jan 2024 14:44:58 +0100 Subject: [PATCH 1/3] [coroutines] Introduce [[clang::coro_not_lifetimebound]] ---

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

2024-01-03 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/76580 From 98b52eb390438402562de96a74771b0132fc71cb Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 29 Dec 2023 17:54:34 +0100 Subject: [PATCH 01/12] [analyzer] Add std::any checker ---

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

2024-01-03 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/76580 From 98b52eb390438402562de96a74771b0132fc71cb Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 29 Dec 2023 17:54:34 +0100 Subject: [PATCH 01/11] [analyzer] Add std::any checker ---

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

2024-01-03 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/76580 From 98b52eb390438402562de96a74771b0132fc71cb Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 29 Dec 2023 17:54:34 +0100 Subject: [PATCH 01/10] [analyzer] Add std::any checker ---

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

2024-01-03 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/76580 From 98b52eb390438402562de96a74771b0132fc71cb Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 29 Dec 2023 17:54:34 +0100 Subject: [PATCH 1/9] [analyzer] Add std::any checker ---

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

2024-01-03 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/76580 From 98b52eb390438402562de96a74771b0132fc71cb Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 29 Dec 2023 17:54:34 +0100 Subject: [PATCH 1/8] [analyzer] Add std::any checker ---

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Ilya Biryukov via cfe-commits
@@ -7671,9 +7671,12 @@ The ``[[clang::coro_lifetimebound]]`` is a class attribute which can be applied to a coroutine return type (`CRT`_) (i.e. it should also be annotated with ``[[clang::coro_return_type]]``). -All parameters of a function are considered to be lifetime

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Ilya Biryukov via cfe-commits
@@ -115,3 +115,18 @@ CoNoCRT bar(int a) { co_return 1; } } // namespace not_a_crt + +// = +// Not lifetime bound coroutine wrappers: [[clang::coro_not_lifetimebound]]. +//

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Ilya Biryukov via cfe-commits
@@ -1121,6 +1121,14 @@ def CoroLifetimeBound : InheritableAttr { let SimpleHandler = 1; } +def CoroNotLifetimeBound : InheritableAttr { ilya-biryukov wrote: Any alternatives to this name? Maybe `coro_disable_lifetime_bound`? The current name confused me a

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

2024-01-03 Thread via cfe-commits
cor3ntin wrote: Can you add a release note? Otherwise, I think the changes are reasonable. I'd like a second pair of eyes though @erichkeane https://github.com/llvm/llvm-project/pull/76677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-03 Thread Erich Keane via cfe-commits
@@ -6,20 +6,20 @@ struct A { }; static_assert(A{1, 2, 3, 4, 5} == A{1, 2, 3, 4, 5}); -static_assert(A{1, 2, 3, 4, 5} == A{0, 2, 3, 4, 5}); // expected-error {{failed}} -static_assert(A{1, 2, 3, 4, 5} == A{1, 0, 3, 4, 5}); // expected-error {{failed}} -static_assert(A{1, 2,

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I too would like to see some more complicated dumps for 'complicated' structs (inheritance, multiple inheritance, etc), and vectors/arrays of complicated structs. I am really concerned with the 'depth' that this will show and be unwieldy as a result.

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

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

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

2024-01-03 Thread Bhuminjay Soni via cfe-commits
@@ -2644,6 +2644,49 @@ bool QualType::isTriviallyCopyableType(const ASTContext ) const { return false; } +bool QualType::isTriviallyCopyConstructibleType( 11happy wrote: Yes I think that would be good, so should I do that?

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

2024-01-03 Thread via cfe-commits
@@ -2644,6 +2644,49 @@ bool QualType::isTriviallyCopyableType(const ASTContext ) const { return false; } +bool QualType::isTriviallyCopyConstructibleType( cor3ntin wrote: Given that this function is exactly the same as the previous one, maybe we could

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

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

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes Lifetime-bound analysis of reference parameters of coroutines and coroutine wrappers is helpful in surfacing memory bugs associated with using temporaries and stack variables in call expressions in plain

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 ready_for_review https://github.com/llvm/llvm-project/pull/76818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

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

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/76818 >From cc7ff8b7ecb93165172dbb481c7d5fcb64289a96 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Wed, 3 Jan 2024 14:44:58 +0100 Subject: [PATCH 1/2] [coroutines] Introduce [[clang::coro_not_lifetimebound]] ---

[clang] [compiler-rt] [clang-tools-extra] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

2024-01-03 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: I realized one problem during testing IRPGO (thanks again for the suggestion @minglotus-6 !). A functions control flow may change between `-fprofile-generate` and `-fprofile-use` when we make use of definitions in the new header. For example, one may have the following

[clang] [coroutines] Introduce [[clang::coro_not_lifetimebound]] (PR #76818)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 created https://github.com/llvm/llvm-project/pull/76818 Lifetime-bound analysis of reference parameters of coroutines and coroutine wrappers is helpful in surfacing memory bugs associated with using temporaries and stack variables in call expressions in plain return

[clang] [compiler-rt] [clang-tools-extra] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

2024-01-03 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/76471 >From 6c9381ec324595947237bd25642b03ab40b6a4df Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Wed, 27 Dec 2023 13:05:01 -0500 Subject: [PATCH 01/13] Initial commit ---

[clang] Add SPIRV support to HIPAMD toolchain (PR #75357)

2024-01-03 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > > How about using `--offload=` which can take a target triple? E.g. > > * `--offload=spirv64-amd` or something like that: pick HIPAMD tool chain. > > * `--offload=spirv64`: pick HIPSPV tool chain. > > > And also remove this >

[clang] [Tooling] Print the progress when there are multiple files to process (PR #75904)

2024-01-03 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/75904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 923ff55 - [Tooling] Print the progress when there are multiple files to process (#75904)

2024-01-03 Thread via cfe-commits
Author: Haojian Wu Date: 2024-01-03T14:33:20+01:00 New Revision: 923ff5574826767af8145aae361ca5d710c16e65 URL: https://github.com/llvm/llvm-project/commit/923ff5574826767af8145aae361ca5d710c16e65 DIFF: https://github.com/llvm/llvm-project/commit/923ff5574826767af8145aae361ca5d710c16e65.diff

[clang] [Tooling] Print the progress when there are multiple files to process (PR #75904)

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

[llvm] [clang-tools-extra] [lld] [libcxx] [clang] [flang] [compiler-rt] [libc++][ranges] P2116R9: Implements `views::enumerate` (PR #73617)

2024-01-03 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,333 @@ +// -*- C++ -*- +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +//

[llvm] [clang] [HLSL][SPIR-V] Add Vulkan to target triple (PR #76749)

2024-01-03 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts commented: LGTM for the logic, and choices. Just some small nits https://github.com/llvm/llvm-project/pull/76749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] [HLSL][SPIR-V] Add Vulkan to target triple (PR #76749)

2024-01-03 Thread Nathan Gauër via cfe-commits
@@ -3,29 +3,39 @@ // Supported targets // // RUN: %clang -target dxil-unknown-shadermodel6.2-compute %s -S -o /dev/null 2>&1 | FileCheck --allow-empty --check-prefix=CHECK-VALID %s -// RUN: %clang -target spirv-unknown-shadermodel6.2-compute %s -S -o /dev/null 2>&1 |

[clang] [llvm] [HLSL][SPIR-V] Add Vulkan to target triple (PR #76749)

2024-01-03 Thread Nathan Gauër via cfe-commits
@@ -4236,20 +4236,35 @@ bool CompilerInvocation::ParseLangArgs(LangOptions , ArgList , // TODO: Revisit restricting SPIR-V to logical once we've figured out how to // handle PhysicalStorageBuffer64 memory model if (T.isDXIL() || T.isSPIRVLogical()) { - enum

[llvm] [clang] [HLSL][SPIR-V] Add Vulkan to target triple (PR #76749)

2024-01-03 Thread Nathan Gauër via cfe-commits
@@ -1328,6 +1331,31 @@ VersionTuple Triple::getDriverKitVersion() const { } } +VersionTuple Triple::getVulkanVersion() const { + if (getArch() != spirv || getOS() != Vulkan) +llvm_unreachable("invalid Vulkan SPIR-V triple"); + + VersionTuple VulkanVersion =

[llvm] [clang] [HLSL][SPIR-V] Add Vulkan to target triple (PR #76749)

2024-01-03 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts edited https://github.com/llvm/llvm-project/pull/76749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Emit Warnings for frontend options to enable knl/knm. (PR #75580)

2024-01-03 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > Making avx512f the only case where avx512vl can be disabled doesn't seem like > too much of a stretch to me - we'd be merely making all avx512 extension > features depend on avx512vl. Agreed. https://github.com/llvm/llvm-project/pull/75580

[lldb] [polly] [compiler-rt] [llvm] [libc] [libcxx] [clang-tools-extra] [openmp] [libcxxabi] [flang] [mlir] [clang] [mlir][vector] Fix invalid `LoadOp` indices being created (PR #76292)

2024-01-03 Thread Rik Huijzer via cfe-commits
rikhuijzer wrote: @joker-eph, thanks again for the review! https://github.com/llvm/llvm-project/pull/76292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[lldb] [polly] [compiler-rt] [llvm] [libc] [libcxx] [clang-tools-extra] [openmp] [libcxxabi] [flang] [mlir] [clang] [mlir][vector] Fix invalid `LoadOp` indices being created (PR #76292)

2024-01-03 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer closed https://github.com/llvm/llvm-project/pull/76292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer][NFC] Improve release note (PR #76805)

2024-01-03 Thread Ben Shi via cfe-commits
https://github.com/benshi001 closed https://github.com/llvm/llvm-project/pull/76805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0408a85 - [clang][analyzer][NFC] Improve release note (#76805)

2024-01-03 Thread via cfe-commits
Author: Ben Shi Date: 2024-01-03T20:38:15+08:00 New Revision: 0408a8578383539e9197cb27f59c876e474875f5 URL: https://github.com/llvm/llvm-project/commit/0408a8578383539e9197cb27f59c876e474875f5 DIFF: https://github.com/llvm/llvm-project/commit/0408a8578383539e9197cb27f59c876e474875f5.diff LOG:

[clang] [Clang] Correctly construct template arguments for file-scope template template parameters (PR #76811)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes This fixes the bug introduced by https://github.com/llvm/llvm-project/commit/6db007a0654ed7a6ed5c3aa3b61a937c19a6bc6b. We construct placeholder template arguments for template-template parameters to avoid

[clang] [Clang] Correctly construct template arguments for file-scope template template parameters (PR #76811)

2024-01-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/76811 This fixes the bug introduced by https://github.com/llvm/llvm-project/commit/6db007a0654ed7a6ed5c3aa3b61a937c19a6bc6b. We construct placeholder template arguments for template-template parameters to avoid

[lldb] [polly] [libcxx] [openmp] [libcxxabi] [mlir] [compiler-rt] [clang] [llvm] [clang-tools-extra] [libc] [flang] [mlir][vector] Fix invalid `LoadOp` indices being created (PR #76292)

2024-01-03 Thread Mehdi Amini via cfe-commits
https://github.com/joker-eph approved this pull request. https://github.com/llvm/llvm-project/pull/76292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Emit Warnings for frontend options to enable knl/knm. (PR #75580)

2024-01-03 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: Making avx512f the only case where avx512vl can be disabled doesn't seem like too much of a stretch to me - we'd be merely making all avx512 extension features depend on avx512vl. https://github.com/llvm/llvm-project/pull/75580 ___

[clang] [clang-tools-extra] [coroutines] Do not check coroutine wrappers for skipped function bodies (PR #76729)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 closed https://github.com/llvm/llvm-project/pull/76729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] aba40fb - [coroutines] Do not check coroutine wrappers for skipped function bodies (#76729)

2024-01-03 Thread via cfe-commits
Author: Utkarsh Saxena Date: 2024-01-03T12:41:10+01:00 New Revision: aba40fb34a27f1d36b4b541bf04d414dca7d1c4c URL: https://github.com/llvm/llvm-project/commit/aba40fb34a27f1d36b4b541bf04d414dca7d1c4c DIFF:

[clang] [C++20] [Modules] Introduce reduced BMI (PR #75894)

2024-01-03 Thread Iain Sandoe via cfe-commits
iains wrote: @ChuanqiXu9 very sorry for the slow review. It would help me if the design was described in the commit message instead of trying to deduce it from the patch (maybe it's in a thread somewhere - so a cross-reference would help). two immediate questions and one observation: - I

[clang] [clang-tools-extra] [coroutines] Do not check coroutine wrappers for skipped function bodies (PR #76729)

2024-01-03 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. https://github.com/llvm/llvm-project/pull/76729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [coroutines] Do not check coroutine wrappers for skipped function bodies (PR #76729)

2024-01-03 Thread Ilya Biryukov via cfe-commits
@@ -15845,7 +15845,7 @@ static void diagnoseImplicitlyRetainedSelf(Sema ) { } void Sema::CheckCoroutineWrapper(FunctionDecl *FD) { - if (!FD) + if (!FD || FD->hasSkippedBody()) ilya-biryukov wrote: Nice! Thanks, this definitely looks much better now!

[clang] Add SPIRV support to HIPAMD toolchain (PR #75357)

2024-01-03 Thread Henry Linjamäki via cfe-commits
linehill wrote: > > Perhaps we should consider prefixing it in some way (e.g. `hip-spirv` or > > `amd-spirv`) that leaves the door open for some special handling (enable a > > particular set of extensions only for amdgpu targeting SPIRV, try to deal > > with missing builtins etc.) /

[clang] [clang-format] Break after string literals with trailing line breaks (PR #76795)

2024-01-03 Thread Tsarkov Maksim via cfe-commits
s1Sharp wrote: It seems your changes remain compatible with the old clang-format behavior. Сode looks quite correct https://github.com/llvm/llvm-project/pull/76795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][analyzer][NFC] Improve release note (PR #76805)

2024-01-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/76805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Ben Shi via cfe-commits
benshi001 wrote: > No release notes? I have created another PR to add the miss release note. https://github.com/llvm/llvm-project/pull/76805 https://github.com/llvm/llvm-project/pull/76671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][analyzer][NFC] Improve release note (PR #76805)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Shi (benshi001) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/76805.diff 1 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2-1) ``diff diff --git a/clang/docs/ReleaseNotes.rst

[clang] [clang][analyzer][NFC] Improve release note (PR #76805)

2024-01-03 Thread Ben Shi via cfe-commits
https://github.com/benshi001 created https://github.com/llvm/llvm-project/pull/76805 None >From c037cab9ef925d902a34a173244826e5cf797800 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Wed, 3 Jan 2024 18:50:16 +0800 Subject: [PATCH] [clang][analyzer][NFC] Improve release note ---

[clang-tools-extra] [clangd] Track IWYU pragmas for non-preamble includes (PR #75612)

2024-01-03 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. thanks, looks good. https://github.com/llvm/llvm-project/pull/75612 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Ben Shi via cfe-commits
benshi001 wrote: > No release notes? Sorry, I forget to pull your modification to my local repo, I will fix this soon. https://github.com/llvm/llvm-project/pull/76671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] [RISCV] CodeGen of RVE and ilp32e/lp64e ABIs (PR #76777)

2024-01-03 Thread Alexander Theißen via cfe-commits
athei wrote: > What was the last bit of discussion on the phabricator review? I can no > longer access it. It was basically just waiting for final approval. The agreement was that it is good enough to be merged in as experimental even with unfinalized ABI. I really hope we can get this in

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Balazs Benics via cfe-commits
steakhal wrote: No release notes? https://github.com/llvm/llvm-project/pull/76671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[lldb] [clang-tools-extra] [flang] [clang] [libc] [llvm] [compiler-rt] [libcxx] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

2024-01-03 Thread Yi Wu via cfe-commits
yi-wu-arm wrote: Hi @klausler , any thought of this patch? Thank in advance! https://github.com/llvm/llvm-project/pull/71222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Format] Fix isStartOfName to recognize attributes (PR #76804)

2024-01-03 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. can you also add a test to clang/unittests/Format/TokenAnnotatorTest.cpp that ensures trailing attribute-like macros receive `StartOfName` annotation to make sure we don't regress the signal in the future?

[clang-tools-extra] [clang] [coroutines] Do not check coroutine wrappers for skipped function bodies (PR #76729)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
@@ -15845,7 +15845,7 @@ static void diagnoseImplicitlyRetainedSelf(Sema ) { } void Sema::CheckCoroutineWrapper(FunctionDecl *FD) { - if (!FD) + if (!FD || FD->hasSkippedBody()) usx95 wrote: Moved the check to calling code. `CheckCompletedCoroutineBody`

[clang] [clang][analyzer] Support 'fdopen' in the StreamChecker (PR #76776)

2024-01-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske approved this pull request. https://github.com/llvm/llvm-project/pull/76776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [coroutines] Do not check coroutine wrappers for skipped function bodies (PR #76729)

2024-01-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/76729 >From c0baa45c2541bc688f377a6bd2c9281532b4d541 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Tue, 2 Jan 2024 16:49:28 +0100 Subject: [PATCH 1/2] [coroutines] Do not check coroutine wrappers for skipped

[clang] 3db749a - [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (#76671)

2024-01-03 Thread via cfe-commits
Author: Ben Shi Date: 2024-01-03T18:23:45+08:00 New Revision: 3db749afcb5079dac332942a3e0b258cdb629a02 URL: https://github.com/llvm/llvm-project/commit/3db749afcb5079dac332942a3e0b258cdb629a02 DIFF: https://github.com/llvm/llvm-project/commit/3db749afcb5079dac332942a3e0b258cdb629a02.diff LOG:

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Ben Shi via cfe-commits
https://github.com/benshi001 closed https://github.com/llvm/llvm-project/pull/76671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Format] Fix isStartOfName to recognize attributes (PR #76804)

2024-01-03 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov updated https://github.com/llvm/llvm-project/pull/76804 >From d8598a382fb1496a96d6ff8317c06cf73606ad84 Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Wed, 3 Jan 2024 11:07:17 +0100 Subject: [PATCH 1/2] [Format] Fix isStartOfName to recognize attributes

[clang] [clang-format] Fix more bugs in isStartOfName() (PR #72336)

2024-01-03 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: I have played around with specializing new behavior to macro directives and it seems work well, I have sent #76804 for review. https://github.com/llvm/llvm-project/pull/72336 ___ cfe-commits mailing list

[clang] [Format] Fix isStartOfName to recognize attributes (PR #76804)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Ilya Biryukov (ilya-biryukov) Changes This addresses a problem with formatting attributes. Some context: - 199fc973ced20016b04ba540cf63a1d4914fa513 changed `isStartOfName` to fix problems inside macro directives (judging by the

[libcxx] [flang] [openmp] [llvm] [lld] [clang] [mlir] [libc++][streams] P1759R6: Native handles and file streams (PR #76632)

2024-01-03 Thread Hristo Hristov via cfe-commits
https://github.com/H-G-Hristov updated https://github.com/llvm/llvm-project/pull/76632 >From 1165b11477ab59122a4db35221fcefe3c9505387 Mon Sep 17 00:00:00 2001 From: Zingam Date: Sat, 30 Dec 2023 17:34:56 +0200 Subject: [PATCH 01/18] [libc++][streams] P1759R6: Native handles and file streams

[clang] [Format] Fix isStartOfName to recognize attributes (PR #76804)

2024-01-03 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov created https://github.com/llvm/llvm-project/pull/76804 This addresses a problem with formatting attributes. Some context: - 199fc973ced20016b04ba540cf63a1d4914fa513 changed `isStartOfName` to fix problems inside macro directives (judging by the added tests),

[clang-tools-extra] [flang] [llvm] [Flang] make ppc unsupported for x86_64 test case (NFC) (PR #73903)

2024-01-03 Thread via cfe-commits
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/73903 >From 272167eb482838cd432f33bffc01d43562adb873 Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Thu, 30 Nov 2023 02:14:20 -0500 Subject: [PATCH] [Flang] make ppc unsupported for x86_64 testcase (NFC) ---

[clang-tools-extra] [flang] [llvm] [Flang] make ppc unsupported for x86_64 test case (NFC) (PR #73903)

2024-01-03 Thread via cfe-commits
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/73903 >From 272167eb482838cd432f33bffc01d43562adb873 Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Thu, 30 Nov 2023 02:14:20 -0500 Subject: [PATCH] [Flang] make ppc unsupported for x86_64 testcase (NFC) ---

[clang] [clang][ASTImporter][StructuralEquivalence] improve StructuralEquivalence on recordType (PR #76226)

2024-01-03 Thread Qizhi Hu via cfe-commits
@@ -1491,6 +1492,12 @@ static bool IsRecordContextStructurallyEquivalent(RecordDecl *D1, return false; } +if (auto *D1Spec = dyn_cast(DC1)) { + auto *D2Spec = dyn_cast(DC2); jcsxky wrote: revert

[clang] [clang][ASTImporter][StructuralEquivalence] improve StructuralEquivalence on recordType (PR #76226)

2024-01-03 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky updated https://github.com/llvm/llvm-project/pull/76226 >From 77976022454865df8bee1e4a09682a16658ed035 Mon Sep 17 00:00:00 2001 From: huqizhi Date: Fri, 22 Dec 2023 17:56:32 +0800 Subject: [PATCH] [clang][ASTImporter][StructuralEquivalence] improve

[clang] [clang-format] unexpected break after binOp '<<' (PR #69859)

2024-01-03 Thread Tsarkov Maksim via cfe-commits
s1Sharp wrote: > @s1Sharp are there any conclusions here? our code also incidentally relied on > having new lines between string literals, mostly for the sake of having a > line break after string literals that end with `\n`. > > what do people think about restoring the functionality to break

[llvm] [clang-tools-extra] [clang] [clang] Accept recursive non-dependent calls to functions with deduced return type (PR #75456)

2024-01-03 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: Thanks @erichkeane for review! @zygoloid , I would really appreciate if you took a look as well. Otherwise I'll try to merge in a couple of days. https://github.com/llvm/llvm-project/pull/75456 ___ cfe-commits mailing list

[flang] [llvm] [libcxx] [lld] [clang] [libc++][streams] P1759R6: Native handles and file streams (PR #76632)

2024-01-03 Thread Hristo Hristov via cfe-commits
https://github.com/H-G-Hristov updated https://github.com/llvm/llvm-project/pull/76632 >From 1165b11477ab59122a4db35221fcefe3c9505387 Mon Sep 17 00:00:00 2001 From: Zingam Date: Sat, 30 Dec 2023 17:34:56 +0200 Subject: [PATCH 01/17] [libc++][streams] P1759R6: Native handles and file streams

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske approved this pull request. LGTM (if the tests pass) https://github.com/llvm/llvm-project/pull/76671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] unexpected break after binOp '<<' (PR #69859)

2024-01-03 Thread kadir çetinkaya via cfe-commits
kadircet wrote: sent out https://github.com/llvm/llvm-project/pull/76795 for implementation https://github.com/llvm/llvm-project/pull/69859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-format] Break after string literals with trailing line breaks (PR #76795)

2024-01-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: kadir çetinkaya (kadircet) Changes This restores a subset of functionality that was forego in d68826dfbd987377ef6771d40c1d984f09ee3b9e. Streaming multiple string literals is rare enough in practice, hence that change makes sense in

[clang] [clang-format] Break after string literals with trailing line breaks (PR #76795)

2024-01-03 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet created https://github.com/llvm/llvm-project/pull/76795 This restores a subset of functionality that was forego in d68826dfbd987377ef6771d40c1d984f09ee3b9e. Streaming multiple string literals is rare enough in practice, hence that change makes sense in general. But

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Ben Shi via cfe-commits
@@ -2511,10 +2511,12 @@ void StdLibraryFunctionsChecker::initFunctionSummaries( .ArgConstraint(NotNull(ArgNo(0; // char *mkdtemp(char *template); -// FIXME: Improve for errno modeling. addToFunctionSummaryMap( "mkdtemp",

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Ben Shi via cfe-commits
https://github.com/benshi001 updated https://github.com/llvm/llvm-project/pull/76671 >From 0c586914ac977920140472d172ee357dea43f2c5 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Mon, 1 Jan 2024 18:48:27 +0800 Subject: [PATCH 1/2] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' ---

[clang] [clang][ASTImporter][StructuralEquivalence] improve StructuralEquivalence on recordType (PR #76226)

2024-01-03 Thread Balázs Kéri via cfe-commits
@@ -1491,6 +1492,12 @@ static bool IsRecordContextStructurallyEquivalent(RecordDecl *D1, return false; } +if (auto *D1Spec = dyn_cast(DC1)) { + auto *D2Spec = dyn_cast(DC2); balazske wrote: I see now that the old code was better, there

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Balázs Kéri via cfe-commits
@@ -54,3 +51,25 @@ int errno_lseek(int fildes, off_t offset) { } return 0; } + +void errno_mkstemp(char *template) { + int FD = mkstemp(template); + if (FD >= 0) { +if (errno) {}// expected-warning{{An undefined value may be read from 'errno'}} +

[clang] [clang][analyzer] Improve 'errno' modeling of 'mkdtemp' (PR #76671)

2024-01-03 Thread Balázs Kéri via cfe-commits
@@ -2511,10 +2511,12 @@ void StdLibraryFunctionsChecker::initFunctionSummaries( .ArgConstraint(NotNull(ArgNo(0; // char *mkdtemp(char *template); -// FIXME: Improve for errno modeling. addToFunctionSummaryMap( "mkdtemp",

[flang] [compiler-rt] [lld] [llvm] [clang] [clang-tools-extra] [libcxx] [lldb] [libc] [AMDGPU] Use alias info to relax waitcounts for LDS DMA (PR #74537)

2024-01-03 Thread Matt Arsenault via cfe-commits
@@ -703,8 +713,37 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII, setRegScore(RegNo, T, CurrScore); } } -if (Inst.mayStore() && (TII->isDS(Inst) || mayWriteLDSThroughDMA(Inst))) { - setRegScore(SQ_MAX_PGM_VGPRS + EXTRA_VGPR_LDS, T,

[flang] [compiler-rt] [lld] [llvm] [clang] [clang-tools-extra] [libcxx] [lldb] [libc] [AMDGPU] Use alias info to relax waitcounts for LDS DMA (PR #74537)

2024-01-03 Thread Matt Arsenault via cfe-commits
@@ -703,8 +713,37 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII, setRegScore(RegNo, T, CurrScore); } } -if (Inst.mayStore() && (TII->isDS(Inst) || mayWriteLDSThroughDMA(Inst))) { - setRegScore(SQ_MAX_PGM_VGPRS + EXTRA_VGPR_LDS, T,

[compiler-rt] [flang] [lldb] [libcxx] [lld] [clang] [clang-tools-extra] [libc] [llvm] [AMDGPU] Use alias info to relax waitcounts for LDS DMA (PR #74537)

2024-01-03 Thread Matt Arsenault via cfe-commits
@@ -703,8 +713,37 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII, setRegScore(RegNo, T, CurrScore); } } -if (Inst.mayStore() && (TII->isDS(Inst) || mayWriteLDSThroughDMA(Inst))) { - setRegScore(SQ_MAX_PGM_VGPRS + EXTRA_VGPR_LDS, T,

[clang] [clang][ASTImporter] import InstantiatedFromMember of ClassTemplateSpecializationDecl (PR #76493)

2024-01-03 Thread Balázs Kéri via cfe-commits
@@ -9342,6 +9342,38 @@ TEST_P(ASTImporterOptionSpecificTestBase, ImportConflictTypeAliasTemplate) { EXPECT_FALSE(ImportedCallable); } +AST_MATCHER(ClassTemplateSpecializationDecl, hasInstantiatedFromMember) { + if (auto Instantiate = Node.getInstantiatedFrom()) { +if

[clang] [clang][ASTImporter] import InstantiatedFromMember of ClassTemplateSpecializationDecl (PR #76493)

2024-01-03 Thread Balázs Kéri via cfe-commits
@@ -9342,6 +9342,38 @@ TEST_P(ASTImporterOptionSpecificTestBase, ImportConflictTypeAliasTemplate) { EXPECT_FALSE(ImportedCallable); } +AST_MATCHER(ClassTemplateSpecializationDecl, hasInstantiatedFromMember) { + if (auto Instantiate = Node.getInstantiatedFrom()) { +if

[clang] [clang][ASTImporter] import InstantiatedFromMember of ClassTemplateSpecializationDecl (PR #76493)

2024-01-03 Thread Balázs Kéri via cfe-commits
@@ -9342,6 +9342,38 @@ TEST_P(ASTImporterOptionSpecificTestBase, ImportConflictTypeAliasTemplate) { EXPECT_FALSE(ImportedCallable); } +AST_MATCHER(ClassTemplateSpecializationDecl, hasInstantiatedFromMember) { + if (auto Instantiate = Node.getInstantiatedFrom()) { +if

[clang] [clang][TSA] Make RequiresCapability a DeclOrType attribute (PR #67095)

2024-01-03 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -8938,6 +8957,11 @@ static void processTypeAttrs(TypeProcessingState , QualType , attr.setUsedAsTypeAttr();

[clang] [Serialization] Load Specializations Lazily (1/2) (PR #76774)

2024-01-03 Thread Vassil Vassilev via cfe-commits
@@ -527,6 +527,10 @@ class ASTWriter : public ASTDeserializationListener, bool isLookupResultExternal(StoredDeclsList , DeclContext *DC); bool isLookupResultEntirelyExternal(StoredDeclsList , DeclContext *DC); + uint64_t + WriteSpecsLookupTable(NamedDecl *D,

[clang] [Serialization] Load Specializations Lazily (1/2) (PR #76774)

2024-01-03 Thread Vassil Vassilev via cfe-commits
@@ -150,6 +150,11 @@ class ExternalASTSource : public RefCountedBase { virtual bool FindExternalVisibleDeclsByName(const DeclContext *DC, DeclarationName Name); + /// Load all the external specialzations for the Decl and the corresponding + /// template arguments. +

[clang] [Serialization] Load Specializations Lazily (1/2) (PR #76774)

2024-01-03 Thread Vassil Vassilev via cfe-commits
@@ -2431,10 +2434,14 @@ void ASTDeclReader::VisitClassTemplateDecl(ClassTemplateDecl *D) { mergeRedeclarableTemplate(D, Redecl); if (ThisDeclID == Redecl.getFirstID()) { -// This ClassTemplateDecl owns a CommonPtr; read it to keep track of all of -// the

[clang] [Serialization] Load Specializations Lazily (1/2) (PR #76774)

2024-01-03 Thread Vassil Vassilev via cfe-commits
@@ -1249,3 +1249,5 @@ void ODRHash::AddQualType(QualType T) { void ODRHash::AddBoolean(bool Value) { Bools.push_back(Value); } + +void ODRHash::AddInteger(unsigned Value) { ID.AddInteger(Value); } vgvassilev wrote: I remember @hahnjo and @zygoloid

[clang] [Serialization] Load Specializations Lazily (1/2) (PR #76774)

2024-01-03 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev commented: This is a great way to start a new year ;) The phab link is https://reviews.llvm.org/D41416. In general I was wondering could we simplify the implementation by loading the specialization hash table upon module load. That should be relatively cheap as

<    1   2   3   4   5   >