[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. Thanks for confirming. Do you need me to merge that for you? https://github.com/llvm/llvm-project/pull/74439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] Update Clang.cpp (PR #77031)

2024-01-04 Thread via cfe-commits
cor3ntin wrote: Can you provide a more complete description of your change, a better title? Does this change needs tests? A release note? Thanks https://github.com/llvm/llvm-project/pull/77031 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

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

2024-01-04 Thread via cfe-commits
koute wrote: > As for your diffs, it seems that you only handle the > `__riscv_save/restore_[2|1|0]`, which is incomplete. And the code is not > different with non-rve cases? Yes, I mostly copy-pasted the existing code and removed all of the code dealing with registers not available on RV32E,

[clang] [OpenACC] Implement 'default' clause parsing. (PR #77002)

2024-01-04 Thread via cfe-commits
@@ -291,13 +307,63 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { return DirKind; } +bool ClauseHasRequiredParens(OpenACCClauseKind Kind) { + return Kind == OpenACCClauseKind::Default; +} + +bool ParseOpenACCClauseParams(Parser &P, OpenACCClauseKind Kind) {

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

2024-01-05 Thread via cfe-commits
koute wrote: > Can you fire a PR for these changes? I think we should support it in > compiler-rt once we have merged this PR. Once this PR is merged, sure, I can make a PR. https://github.com/llvm/llvm-project/pull/76777 ___ cfe-commits mailing list

[clang-tools-extra] [clang-tidy] fix false positive in cppcoreguidelines-missing-std-forward (PR #77056)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Qizhi Hu (jcsxky) Changes Parameter variable which is forwarded in lambda capture list or in body by reference is reasonable and current version of this check produces false positive on these cases. This patch try to fix the [issue]

[lldb] [clang] [llvm] [libcxx] [clang-tools-extra] [mlir] [openmp] [SEH] Fix register liveness verification for EHa (PR #76933)

2024-01-05 Thread via cfe-commits
@@ -3347,10 +3348,37 @@ void MachineVerifier::verifyLiveRangeSegment(const LiveRange &LR, OwnerLI.computeSubRangeUndefs(Undefs, LaneMask, *MRI, *Indexes); } + bool IsEHa = MF->getMMI().getModule()->getModuleFlag("eh-asynch"); while (true) { assert(LiveInts->isL

[lldb] [clang] [llvm] [libcxx] [clang-tools-extra] [mlir] [openmp] [SEH] Fix register liveness verification for EHa (PR #76933)

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

[clang] 190a75b - [coroutines] Introduce [[clang::coro_disable_lifetimebound]] (#76818)

2024-01-05 Thread via cfe-commits
Author: Utkarsh Saxena Date: 2024-01-05T10:07:04+01:00 New Revision: 190a75b5f12d3872a5a26d6079d62adae40f147d URL: https://github.com/llvm/llvm-project/commit/190a75b5f12d3872a5a26d6079d62adae40f147d DIFF: https://github.com/llvm/llvm-project/commit/190a75b5f12d3872a5a26d6079d62adae40f147d.diff

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

2024-01-05 Thread via cfe-commits
Author: Haojian Wu Date: 2024-01-05T10:13:33+01:00 New Revision: 67963d384b23a2d46967b8f39ec2df3375731f4f URL: https://github.com/llvm/llvm-project/commit/67963d384b23a2d46967b8f39ec2df3375731f4f DIFF: https://github.com/llvm/llvm-project/commit/67963d384b23a2d46967b8f39ec2df3375731f4f.diff LO

[clang] [clang-scan-deps] Fix check for empty `Compilation` (PR #75545)

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

[clang] 0eefcaf - [Clang][SME] Add IsStreamingOrSVE2p1 (#76975)

2024-01-05 Thread via cfe-commits
Author: Sam Tebbs Date: 2024-01-05T09:55:50Z New Revision: 0eefcaf96d2900a4f3009026a3673ed3b7793fcc URL: https://github.com/llvm/llvm-project/commit/0eefcaf96d2900a4f3009026a3673ed3b7793fcc DIFF: https://github.com/llvm/llvm-project/commit/0eefcaf96d2900a4f3009026a3673ed3b7793fcc.diff LOG: [Cl

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

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

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

2024-01-05 Thread via cfe-commits
Author: Duo Wang Date: 2024-01-05T09:59:26Z New Revision: c458f928fad7bbcf08ab1da9949eb2969fc9f89c URL: https://github.com/llvm/llvm-project/commit/c458f928fad7bbcf08ab1da9949eb2969fc9f89c DIFF: https://github.com/llvm/llvm-project/commit/c458f928fad7bbcf08ab1da9949eb2969fc9f89c.diff LOG: [NFC

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

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

[clang] [clang]Transform uninstantiated ExceptionSpec in `TemplateInstantiator` (PR #77073)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Congcong Cai (HerrCai0907) Changes Fixes: #77071 `SubstituteDeducedTypeTransform` will transform type and it will visit uninstantiated `ExceptionSpecInfo`, which will cause odd behavior --- Full diff: https://github.com/llvm/llvm-project/

[clang] [CLANG][NFC] Modify test cases to suit assigned default sysroot path (PR #77075)

2024-01-05 Thread via cfe-commits
https://github.com/Yunzezhu94 created https://github.com/llvm/llvm-project/pull/77075 When using cmake with option -DDEFAULT_SYSROOT, a default sysroot path is assigned. However, some test cases use a relative path to indicate sysroot path, but the path goes wrong with default sysroot path as

[clang] [CLANG][NFC] Modify test cases to suit assigned default sysroot path (PR #77075)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v Author: None (Yunzezhu94) Changes When using cmake with option -DDEFAULT_SYSROOT, a default sysroot path is assigned. However, some test cases use a relative path to indicate sysroot path, but the path goes wr

[clang] [coroutines] Detect lifetime issues with coroutine lambda captures (PR #77066)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes ### Problem ```cpp co_task coro() { int a = 1; auto lamb = [a]() -> co_task { co_return a; // 'a' in the lambda object dies after the iniital_suspend in the lambda coroutine. }(

[clang] [clang][ASTImporter] Only reorder fields of RecordDecls (PR #77079)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes Prior to `e9536698720ec524cc8b72599363622bc1a31558` (https://reviews.llvm.org/D154764) we only re-ordered the fields of `RecordDecl`s. The change refactored this logic to make sure `FieldDecl`s are impor

[clang] 20a0567 - [clang] Accept recursive non-dependent calls to functions with deduced return type (#75456)

2024-01-05 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2024-01-05T13:14:51+01:00 New Revision: 20a05677f9394d4bc9467fe7bc93a4ebd3aeda61 URL: https://github.com/llvm/llvm-project/commit/20a05677f9394d4bc9467fe7bc93a4ebd3aeda61 DIFF: https://github.com/llvm/llvm-project/commit/20a05677f9394d4bc9467fe7bc93a4ebd3aeda

[flang] [llvm] [libcxx] [libc] [mlir] [clang] [compiler-rt] [AMDGPU] Define new targets gfx1200 and gfx1201 (PR #73133)

2024-01-05 Thread via cfe-commits
hebosho911 wrote: [](url) https://github.com/llvm/llvm-project/pull/73133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3eeed79 - [clang] Correctly implement CWG 2672 (#75001)

2024-01-05 Thread via cfe-commits
Author: Younan Zhang Date: 2024-01-05T20:36:41+08:00 New Revision: 3eeed79946124a8f67a89bb950a1e510369dcdf9 URL: https://github.com/llvm/llvm-project/commit/3eeed79946124a8f67a89bb950a1e510369dcdf9 DIFF: https://github.com/llvm/llvm-project/commit/3eeed79946124a8f67a89bb950a1e510369dcdf9.diff

[flang] [mlir] [libc] [compiler-rt] [polly] [lld] [llvm] [openmp] [libcxx] [clang-tools-extra] [clang] [CostModel][X86] Fix fpext conversion cost for 16 elements (PR #76278)

2024-01-05 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/76278 >From 87f3d68e82dcc752aa727f62b8b1b56b1257b343 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Sat, 23 Dec 2023 13:16:02 +0800 Subject: [PATCH 1/4] [CostModel][X86] Track fpext conversion for 16 elements ---

[flang] [mlir] [libc] [compiler-rt] [polly] [lld] [llvm] [openmp] [libcxx] [clang-tools-extra] [clang] [CostModel][X86] Fix fpext conversion cost for 16 elements (PR #76278)

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

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

2024-01-05 Thread via cfe-commits
Author: Qizhi Hu Date: 2024-01-05T20:53:04+08:00 New Revision: 86127305d4602801ba7ffdc74377ed67b18819ac URL: https://github.com/llvm/llvm-project/commit/86127305d4602801ba7ffdc74377ed67b18819ac DIFF: https://github.com/llvm/llvm-project/commit/86127305d4602801ba7ffdc74377ed67b18819ac.diff LOG:

[clang] [clang] Fix behavior of `__is_trivially_relocatable(volatile int)` (PR #77092)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amirreza Ashouri (AMP999) Changes Consistent with `__is_trivially_copyable(volatile int) == true` and `__is_trivially_relocatable(volatile Trivial) == true`, `__is_trivially_relocatable(volatile int)` should also be `true`. Fixes https:/

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

2024-01-05 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/76680 ___ 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-05 Thread via cfe-commits
https://github.com/cor3ntin commented: Looking good beside a small nitpick https://github.com/llvm/llvm-project/pull/76680 ___ 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-05 Thread via cfe-commits
@@ -2604,19 +2604,22 @@ bool QualType::isTrivialType(const ASTContext &Context) const { return false; } -bool QualType::isTriviallyCopyableType(const ASTContext &Context) const { - if ((*this)->isArrayType()) -return Context.getBaseElementType(*this).isTriviallyCopyabl

[clang] [clang] Fix behavior of `__is_trivially_relocatable(volatile int)` (PR #77092)

2024-01-05 Thread via cfe-commits
@@ -2651,6 +2651,8 @@ bool QualType::isTriviallyRelocatableType(const ASTContext &Context) const { return false; } else if (!BaseElementType->isObjectType()) { return false; + } else if (BaseElementType.isTriviallyCopyableType(Context)) { +return true; -

[clang] f07aba4 - [X86] Add ABI handling for __float128 to match with GCC (#75156)

2024-01-05 Thread via cfe-commits
Author: Phoebe Wang Date: 2024-01-05T21:53:47+08:00 New Revision: f07aba4bc1fbd8301b09e2114ebc4149d2439cac URL: https://github.com/llvm/llvm-project/commit/f07aba4bc1fbd8301b09e2114ebc4149d2439cac DIFF: https://github.com/llvm/llvm-project/commit/f07aba4bc1fbd8301b09e2114ebc4149d2439cac.diff L

[clang] [Clang][SME2] Fix PSEL builtin predicates (PR #77097)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kerry McLaughlin (kmclaughlin-arm) Changes PSEL intrinsics which return a predicate-as-counter are available in SVE2p1 & SME2. --- Full diff: https://github.com/llvm/llvm-project/pull/77097.diff 3 Files Affected: - (modified) cl

[clang] [clang-format] Fix crash involving array designators and dangling comma (PR #77045)

2024-01-05 Thread via cfe-commits
https://github.com/XDeme updated https://github.com/llvm/llvm-project/pull/77045 >From d9cbbe48b96d27bff3fc926b60d039ed05f00489 Mon Sep 17 00:00:00 2001 From: XDeme Date: Fri, 5 Jan 2024 01:23:16 -0300 Subject: [PATCH 1/2] [clang-format] Fix crash involving array designators and dangling comma

[clang] [OpenACC] Implement 'default' clause parsing. (PR #77002)

2024-01-05 Thread via cfe-commits
@@ -291,13 +307,63 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { return DirKind; } +bool ClauseHasRequiredParens(OpenACCClauseKind Kind) { + return Kind == OpenACCClauseKind::Default; +} + +bool ParseOpenACCClauseParams(Parser &P, OpenACCClauseKind Kind) {

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

2024-01-05 Thread 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, 3

[clang] [OpenACC] Implement 'default' clause parsing. (PR #77002)

2024-01-05 Thread via cfe-commits
@@ -291,13 +307,63 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { return DirKind; } +bool ClauseHasRequiredParens(OpenACCClauseKind Kind) { + return Kind == OpenACCClauseKind::Default; +} + +bool ParseOpenACCClauseParams(Parser &P, OpenACCClauseKind Kind) {

[clang] 0f8adc8 - [OpenACC] Fix comments on OpenACC enum to use ///

2024-01-05 Thread via cfe-commits
Author: erichkeane Date: 2024-01-05T06:49:32-08:00 New Revision: 0f8adc8d30d2cd4a9fcf8455b64a1d66fa971339 URL: https://github.com/llvm/llvm-project/commit/0f8adc8d30d2cd4a9fcf8455b64a1d66fa971339 DIFF: https://github.com/llvm/llvm-project/commit/0f8adc8d30d2cd4a9fcf8455b64a1d66fa971339.diff LO

[clang-tools-extra] [clang-tidy] fix false positive in cppcoreguidelines-missing-std-forward (PR #77056)

2024-01-05 Thread via cfe-commits
@@ -53,18 +53,76 @@ AST_MATCHER(ParmVarDecl, isTemplateTypeParameter) { FuncTemplate->getTemplateParameters()->getDepth(); } +AST_MATCHER_P(NamedDecl, hasSameNameAsBoundNode, std::string, BindingID) { + const auto &Name = Node.getNameAsString(); + + return Builder->

[clang] [clang-tools-extra] [clang-tidy] Handle C++ structured bindings in `performance-for-range-copy` (PR #77105)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Clement Courbet (legrosbuffle) Changes Right now we are not triggering on: ``` for (auto [x, y] : container) { // const-only access } ``` --- Full diff: https://github.com/llvm/llvm-project/pull/77105.diff 5 Files Affected: - (m

[clang] [clang-format] Fix crash involving array designators and dangling comma (PR #77045)

2024-01-05 Thread via cfe-commits
XDeme wrote: While I was trying to find a minimal reproducer to the bug, I accidentally found that this patch fix another crash, and doesn't fix the linked issue. What should be done here? https://github.com/llvm/llvm-project/pull/77045 ___ cfe-commi

[clang] 922b7b8 - [Clang][OpenMP] Fix stdio.h wrapper when glibc includes again (#77017)

2024-01-05 Thread via cfe-commits
Author: Joel E. Denny Date: 2024-01-05T10:22:10-05:00 New Revision: 922b7b8bf465ddc292fa91bd6a860510a1eea6e2 URL: https://github.com/llvm/llvm-project/commit/922b7b8bf465ddc292fa91bd6a860510a1eea6e2 DIFF: https://github.com/llvm/llvm-project/commit/922b7b8bf465ddc292fa91bd6a860510a1eea6e2.diff

[clang] de50395 - [clang]Transform uninstantiated ExceptionSpec in `TemplateInstantiator` (#77073)

2024-01-05 Thread via cfe-commits
Author: Congcong Cai Date: 2024-01-05T23:37:58+08:00 New Revision: de5039545ee4e9f5aa7023632d5c4baa5e782e51 URL: https://github.com/llvm/llvm-project/commit/de5039545ee4e9f5aa7023632d5c4baa5e782e51 DIFF: https://github.com/llvm/llvm-project/commit/de5039545ee4e9f5aa7023632d5c4baa5e782e51.diff

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

2024-01-05 Thread via cfe-commits
cor3ntin wrote: Thanks. Can you also add a release note mentioning the issue is fixed? Thanks (clang/docs/ReleaseNotes.rst) https://github.com/llvm/llvm-project/pull/76680 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[compiler-rt] [libcxx] [lldb] [flang] [llvm] [libc] [clang] [lld] [clang-tools-extra] [OpenACC] Implement 'default' clause parsing. (PR #77002)

2024-01-05 Thread via cfe-commits
@@ -176,6 +192,26 @@ bool isOpenACCDirectiveKind(OpenACCDirectiveKind Kind, Token Tok) { llvm_unreachable("Unknown 'Kind' Passed"); } +/// Used for cases where we expect an identifier-like token, but don't want to +/// give awkward error messages in cases where it is accide

[lld] [libc] [lldb] [compiler-rt] [flang] [clang] [llvm] [clang-tools-extra] [libcxx] [OpenACC] Implement 'default' clause parsing. (PR #77002)

2024-01-05 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/77002 ___ 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-05 Thread via cfe-commits
cor3ntin wrote: In bug fixes is fine, thanks! https://github.com/llvm/llvm-project/pull/76680 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix behavior of `__is_trivially_relocatable(volatile int)` (PR #77092)

2024-01-05 Thread via cfe-commits
cor3ntin wrote: We probably need a release note for that, don't we? LGTM otherwise https://github.com/llvm/llvm-project/pull/77092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Set writable and dead_on_unwind attributes on sret arguments (PR #77116)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang Author: Nikita Popov (nikic) Changes Set the writable and dead_on_unwind attributes for sret arguments. These indicate that the argument points to writable memory (and it's legal to introduce spurious writes to it

[compiler-rt] [flang] [libc] [llvm] [clang-tools-extra] [libcxx] [clang] [mlir] [mlir][Linalg] Support dynamic tiles in `lower_pack` transform (PR #76003)

2024-01-05 Thread via cfe-commits
srcarroll wrote: > It would be easy enough for me to change what I have to only do expand and > only match fail on completely impossible (with `expand_shape`) cases. After thinking about it more, if I'm not mistaken, the current implementation already covers all possible cases with `expand_sha

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

2024-01-05 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/74852 >From f281d34a51f662c934f158e4770774b0dc3588a2 Mon Sep 17 00:00:00 2001 From: Seth Pellegrino Date: Thu, 7 Dec 2023 08:45:51 -0800 Subject: [PATCH 1/2] [Clang][Sema] Print more static_assert exprs This change intro

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

2024-01-05 Thread 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, 3

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

2024-01-05 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/74852 >From f281d34a51f662c934f158e4770774b0dc3588a2 Mon Sep 17 00:00:00 2001 From: Seth Pellegrino Date: Thu, 7 Dec 2023 08:45:51 -0800 Subject: [PATCH 1/3] [Clang][Sema] Print more static_assert exprs This change intro

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

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

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

2024-01-05 Thread via cfe-commits
@@ -0,0 +1,117 @@ +// RUN: %clang_cc1 -std=c++2a -verify %s + +struct A { + int a, b[3], c; + bool operator==(const A&) const = default; +}; + +constexpr auto a0 = A{0, 0, 3, 4, 5}; + +// expected-note@+1 {{evaluates to '{0, {0, 3, 4}, 5} == {1, {2, 3, 4}, 5}'}} +static_assert(a

[clang] [clang][modules] Remove `_Private` suffix from framework auto-link hints. (PR #77120)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Juergen Ributzka (ributzka) Changes - [clang][modules] Remove no longer needed autolink test for TBD files. - [clang][modules] Remove `_Private` suffix from framework auto-link hints. --- Full diff: https://github.com/llvm/llvm-pr

[clang] [clang][modules] Remove `_Private` suffix from framework auto-link hints. (PR #77120)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Juergen Ributzka (ributzka) Changes - [clang][modules] Remove no longer needed autolink test for TBD files. - [clang][modules] Remove `_Private` suffix from framework auto-link hints. --- Full diff: https://github.com/llvm/llvm-project/pu

[clang] 0e8b09c - [OpenACC] Implement 'default' clause parsing. (#77002)

2024-01-05 Thread via cfe-commits
Author: Erich Keane Date: 2024-01-05T09:43:39-08:00 New Revision: 0e8b09c43d9f9e68c95fa1e6f6fb5c8307f3927d URL: https://github.com/llvm/llvm-project/commit/0e8b09c43d9f9e68c95fa1e6f6fb5c8307f3927d DIFF: https://github.com/llvm/llvm-project/commit/0e8b09c43d9f9e68c95fa1e6f6fb5c8307f3927d.diff L

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

2024-01-05 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

[clang-tools-extra] [compiler-rt] [flang] [llvm] [clang] [Bazel][Clang Tidy] Include builtin headers with clang-tidy (PR #67626)

2024-01-05 Thread via cfe-commits
https://github.com/jathu updated https://github.com/llvm/llvm-project/pull/67626 >From 20d9ca99fbf11868a5816df217b2aad09e079fb6 Mon Sep 17 00:00:00 2001 From: jathu Date: Wed, 27 Sep 2023 18:01:19 -0700 Subject: [PATCH] [clang-tidy][bazel] Include builtin headers with clang-tidy --- .../clang-

[clang] [llvm] [flang] [libc] [mlir] [libcxx] [compiler-rt] [clang-tools-extra] [mlir][Linalg] Support dynamic tiles in `lower_pack` transform (PR #76003)

2024-01-05 Thread via cfe-commits
srcarroll wrote: After a very illuminating discussion offline with @chelini, I think we answered some of my questions. So I will relay here > * Should the verifier allow such an example? In other words, should users be > required to use static tile sizes in the cases where their static value

[clang] 02a33b7 - "Reapply "[Sema] Fix crash on invalid code with parenthesized aggrega… (#76833)

2024-01-05 Thread via cfe-commits
Author: Mark de Wever Date: 2024-01-05T19:43:10+01:00 New Revision: 02a33b72fd21cdbf476d6bda72faa462e073e510 URL: https://github.com/llvm/llvm-project/commit/02a33b72fd21cdbf476d6bda72faa462e073e510 DIFF: https://github.com/llvm/llvm-project/commit/02a33b72fd21cdbf476d6bda72faa462e073e510.diff

[clang] [libcxx] [llvm] [mlir] [mlir][sparse][CRunnerUtils] Add shuffle in CRunnerUtils (PR #77124)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-execution-engine Author: Yinying Li (yinying-lisa-li) Changes Shuffle can generate an array of unique and random numbers from 0 to size-1. It can be used to generate tensors with specified sparsity level. --- Full diff: https://github.com/llvm/llv

[mlir] [libcxx] [clang] [llvm] [mlir][sparse][CRunnerUtils] Add shuffle in CRunnerUtils (PR #77124)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-sparse Author: Yinying Li (yinying-lisa-li) Changes Shuffle can generate an array of unique and random numbers from 0 to size-1. It can be used to generate tensors with specified sparsity level. --- Full diff: https://github.com/llvm/llvm-project/

[mlir] [libcxx] [clang] [llvm] [mlir][sparse][CRunnerUtils] Add shuffle in CRunnerUtils (PR #77124)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Yinying Li (yinying-lisa-li) Changes Shuffle can generate an array of unique and random numbers from 0 to size-1. It can be used to generate tensors with specified sparsity level. --- Full diff: https://github.com/llvm/llvm-project/pull/77

[clang] [clang-format] Fix crash involving array designators and dangling comma (PR #77045)

2024-01-05 Thread via cfe-commits
https://github.com/XDeme updated https://github.com/llvm/llvm-project/pull/77045 >From d9cbbe48b96d27bff3fc926b60d039ed05f00489 Mon Sep 17 00:00:00 2001 From: XDeme Date: Fri, 5 Jan 2024 01:23:16 -0300 Subject: [PATCH 1/3] [clang-format] Fix crash involving array designators and dangling comma

[clang] [clang-format] Fix crash involving array designators and dangling comma (PR #77045)

2024-01-05 Thread via cfe-commits
XDeme wrote: I think with this the issue might be solved. https://github.com/llvm/llvm-project/pull/77045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [llvm] LLVM_FAULTMAPS section can be put after the DWARF section. (PR #77107)

2024-01-05 Thread via cfe-commits
https://github.com/shamithoke updated https://github.com/llvm/llvm-project/pull/77107 >From a0ccb2cbe3882a6ea8bb020dd54460f57dd84a90 Mon Sep 17 00:00:00 2001 From: shami Date: Thu, 28 Dec 2023 21:29:36 +0530 Subject: [PATCH] LLVM_FAULTMAPS section can be put after the DWARF section. --- llvm/

[clang] [llvm] [clang-tools-extra] Add STACK_SIZES section for MachOS. (PR #77106)

2024-01-05 Thread via cfe-commits
https://github.com/shamithoke updated https://github.com/llvm/llvm-project/pull/77106 >From e939dbedfa4cd875858825e890310d2581bfa525 Mon Sep 17 00:00:00 2001 From: shami Date: Thu, 28 Dec 2023 21:19:36 +0530 Subject: [PATCH 1/2] Add STACK_SIZES section for MachOS. --- llvm/lib/MC/MCObjectFile

[clang] [clang][Driver] Don't warn when -nostdinc and -nostdinc++ are both specified (PR #77130)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Jonathon Penix (jonathonpenix) Changes When -nostdinc and -nostdinc++ are both specified and the Baremetal toolchain is used, an unused command line argument warning for -nostdinc++ is produced. This doesn't seem particularly meani

[clang] [Clang] Add a NULL check (PR #77131)

2024-01-05 Thread via cfe-commits
https://github.com/InfiniteVerma created https://github.com/llvm/llvm-project/pull/77131 Fixes #69200 Issue: Calling function on a nullptr. >From 86a898c55eb304705b7bd0e224b746c7a9284ed0 Mon Sep 17 00:00:00 2001 From: InfiniteVerma Date: Sat, 6 Jan 2024 00:42:34 +0530 Subject: [PATCH] [Clang

[clang] [Clang] Add a NULL check (PR #77131)

2024-01-05 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] [Clang] Add a NULL check (PR #77131)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (InfiniteVerma) Changes Fixes #69200 Issue: Calling function on a nullptr. --- Full diff: https://github.com/llvm/llvm-project/pull/77131.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaOpenMP.cpp (+4) ``diff di

[clang] [Clang] Add a NULL check (PR #77131)

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

[clang] [Clang] Add a NULL check (PR #77131)

2024-01-05 Thread via cfe-commits
https://github.com/InfiniteVerma updated https://github.com/llvm/llvm-project/pull/77131 >From bad1fda58f73e5502df1a1c1ed781c96d86a8ead Mon Sep 17 00:00:00 2001 From: InfiniteVerma Date: Sat, 6 Jan 2024 00:42:34 +0530 Subject: [PATCH] [Clang] Add a NULL check Fixes #69200 --- clang/lib/Sema/S

[clang] [Clang] Add a NULL check (PR #77131)

2024-01-05 Thread via cfe-commits
InfiniteVerma wrote: Should we add the c snippet in issue description as a test case? https://github.com/llvm/llvm-project/issues/69200#issue-1945228087 https://github.com/llvm/llvm-project/pull/77131 ___ cfe-commits mailing list cfe-commits@lists.llv

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

2024-01-05 Thread via cfe-commits
@@ -0,0 +1,49 @@ +//===--===// +// 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] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2024-01-05 Thread via cfe-commits
@@ -265,6 +269,61 @@ bool AIXTargetCodeGenInfo::initDwarfEHRegSizeTable( return PPC_initDwarfEHRegSizeTable(CGF, Address, Is64Bit, /*IsAIX*/ true); } +void AIXTargetCodeGenInfo::setTargetAttributes( +const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &M) const

[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2024-01-05 Thread via cfe-commits
@@ -265,6 +269,61 @@ bool AIXTargetCodeGenInfo::initDwarfEHRegSizeTable( return PPC_initDwarfEHRegSizeTable(CGF, Address, Is64Bit, /*IsAIX*/ true); } +void AIXTargetCodeGenInfo::setTargetAttributes( +const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &M) const

[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2024-01-05 Thread via cfe-commits
@@ -0,0 +1,69 @@ +// REQUIRES: powerpc-registered-target diggerlin wrote: do we need the // REQUIRES: powerpc-registered-target since it cross compile? https://github.com/llvm/llvm-project/pull/67999 ___ cfe-commits m

[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2024-01-05 Thread via cfe-commits
@@ -429,13 +429,101 @@ void AIX::AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args, llvm_unreachable("Unexpected C++ library type; only libc++ is supported."); } +// This function processes all the mtocdata options to build the final +// simplified toc data options to pass

[clang] [flang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-05 Thread via cfe-commits
https://github.com/agozillon created https://github.com/llvm/llvm-project/pull/77135 This patch seeks to add the -gpulibc and -nogpulibc for Flang, which allows the linking of the GPU libc library, this allows the use of memcpy and other useful library functions for GPU. In particular, this a

[clang] [flang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (agozillon) Changes This patch seeks to add the -gpulibc and -nogpulibc for Flang, which allows the linking of the GPU libc library, this allows the use of memcpy and other useful library functions for GPU. In particular, this allow

[clang] 5121e2c - [OpenMP] Change `__tgt_device_image` to point to the image (#77003)

2024-01-05 Thread via cfe-commits
Author: Joseph Huber Date: 2024-01-05T14:29:34-06:00 New Revision: 5121e2cffd23751360e71a8ac69b7462dae23aa8 URL: https://github.com/llvm/llvm-project/commit/5121e2cffd23751360e71a8ac69b7462dae23aa8 DIFF: https://github.com/llvm/llvm-project/commit/5121e2cffd23751360e71a8ac69b7462dae23aa8.diff

[flang] [clang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-05 Thread via cfe-commits
agozillon wrote: I am gonna sign off for the weekend as it's quite late here, so I'll reply in a little more detail on Monday and update the PR further. but I'd be happy to add a further flang test, although not too sure what it'd be, so suggestions are welcome. I tested this with an out of t

[libunwind] fc1c478 - [libunwind] Replace process_vm_readv with SYS_rt_sigprocmask (#74791)

2024-01-05 Thread via cfe-commits
Author: Jordan R AW Date: 2024-01-05T12:56:02-08:00 New Revision: fc1c478709e380164733560e4a2c8f9e8d5e2c1c URL: https://github.com/llvm/llvm-project/commit/fc1c478709e380164733560e4a2c8f9e8d5e2c1c DIFF: https://github.com/llvm/llvm-project/commit/fc1c478709e380164733560e4a2c8f9e8d5e2c1c.diff L

[clang] [clang] Fix behavior of `__is_trivially_relocatable(volatile int)` (PR #77092)

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

[clang] 853b133 - [clang] Fix test for case-insensitive absolute includes (#76985)

2024-01-05 Thread via cfe-commits
Author: Jan Svoboda Date: 2024-01-05T22:41:51+01:00 New Revision: 853b13342a131e06d61293ec6e840642054c6c85 URL: https://github.com/llvm/llvm-project/commit/853b13342a131e06d61293ec6e840642054c6c85 DIFF: https://github.com/llvm/llvm-project/commit/853b13342a131e06d61293ec6e840642054c6c85.diff L

[clang] [clang] Fix test for case-insensitive absolute includes (PR #76985)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes When CMake on Windows is told to generate the build into a directory whose real path has a different drive letter (e.g. due to a symlink), the "clang/test/Lexer/case-insensitive-include-absolute.c" test

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

2024-01-05 Thread via cfe-commits
https://github.com/pizzud updated https://github.com/llvm/llvm-project/pull/67467 >From 6d5d35e1273f595e8a0382053d5183cbce7a9d8a Mon Sep 17 00:00:00 2001 From: David Pizzuto Date: Tue, 26 Sep 2023 10:45:42 -0700 Subject: [PATCH 1/6] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

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

2024-01-05 Thread via cfe-commits
https://github.com/pizzud updated https://github.com/llvm/llvm-project/pull/67467 >From 6d5d35e1273f595e8a0382053d5183cbce7a9d8a Mon Sep 17 00:00:00 2001 From: David Pizzuto Date: Tue, 26 Sep 2023 10:45:42 -0700 Subject: [PATCH 1/6] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

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

2024-01-05 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] f1d75d0 - [clang][Driver] Don't warn when -nostdinc and -nostdinc++ are both specified (#77130)

2024-01-05 Thread via cfe-commits
Author: Jonathon Penix Date: 2024-01-05T13:55:50-08:00 New Revision: f1d75d08adb9841dd9cebad63b76d4823ec2bdac URL: https://github.com/llvm/llvm-project/commit/f1d75d08adb9841dd9cebad63b76d4823ec2bdac DIFF: https://github.com/llvm/llvm-project/commit/f1d75d08adb9841dd9cebad63b76d4823ec2bdac.diff

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

2024-01-05 Thread via cfe-commits
pizzud wrote: Not sure how to squash properly; I tried rebasing but all the commits on the main branch snuck in to the history and I'm quite new to git. If it would be preferred I can store this off as a patch and open up a new PR. Sorry for all the hassle with the merges! https://github.com/

[llvm] [clang] [Clang] Update Unicode version to 15.1 (PR #77147)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-llvm-support Author: cor3ntin (cor3ntin) Changes This update all of our Unicode tables to Unicode 15.1. This is a minor version so only a relatively small numbers of characters are added, mainly ideographs https://www.unicode

[llvm] [clang] [Clang] Update Unicode version to 15.1 (PR #77147)

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

[clang] [-Wunsafe-buffer-usage] Add a new warning for uses of std::span two-parameter constructors (PR #77148)

2024-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis @llvm/pr-subscribers-clang Author: Ziqing Luo (ziqingluo-90) Changes The PR contains two commits: 1. adding a new waring under a sub-group of `-Wunsafe-buffer-usage` 2. teach the analyzer to be quiet on some benign cases --- Patch is 22.

[clang] [-Wunsafe-buffer-usage] Add a new warning for uses of std::span two-parameter constructors (PR #77148)

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

[mlir] [openmp] [lld] [libc] [llvm] [libcxx] [flang] [clang] [lldb] [compiler-rt] [clang-tools-extra] [libc++][streams] P1759R6: Native handles and file streams (PR #76632)

2024-01-05 Thread via cfe-commits
zeroomega wrote: Hi, this change breaks libcxx test on Windows due to unable to find "unistd.h" file (which doesn't exist on msvc based environment). Failed test message and failed commandline: ``` Failed Tests (8): llvm-libc++-static-clangcl.cfg.in :: std/input.output

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

2024-01-05 Thread via cfe-commits
EugeneZelenko wrote: You need to do interactive rebase: ``` git fetch --prune # get latest main and remove local copies deleted branch git rebase origin/main # rebase from main git rebase -i origin/main # interactive rebase, just use fixup command git rebase --force origin # push updated branc

<    45   46   47   48   49   50   51   52   53   54   >