[clang] a2da7d0 - [clang][Interp] Ignore LValueToRValue casts before doing the load

2024-02-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-02-02T08:46:55+01:00 New Revision: a2da7d06c7e1ec75812ff8ced29541d4af3668c9 URL: https://github.com/llvm/llvm-project/commit/a2da7d06c7e1ec75812ff8ced29541d4af3668c9 DIFF: https://github.com/llvm/llvm-project/commit/a2da7d06c7e1ec75812ff8ced29541d4af3668c9.diff LO

[flang] [libcxx] [libc] [clang] [lldb] [llvm] [mlir] [mlir] Skip invalid test on big endian platform (s390x) (PR #80246)

2024-02-02 Thread Mehdi Amini via cfe-commits
https://github.com/joker-eph closed https://github.com/llvm/llvm-project/pull/80246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [compiler-rt] [X86] Support more ISAs to enable __builtin_cpu_supports (PR #79086)

2024-02-02 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. LGTM, but this should be signed off by phoebewang https://github.com/llvm/llvm-project/pull/79086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] a8b5994 - [clang][Interp][NFC] Add a broken test case

2024-02-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-02-02T09:10:03+01:00 New Revision: a8b5994b337cf1d461202a65204a4ee6c5eae341 URL: https://github.com/llvm/llvm-project/commit/a8b5994b337cf1d461202a65204a4ee6c5eae341 DIFF: https://github.com/llvm/llvm-project/commit/a8b5994b337cf1d461202a65204a4ee6c5eae341.diff LO

[clang] [X86] [iamcu] Fix wrong alignment value for attr (aligned) with -miamcu (PR #80401)

2024-02-02 Thread via cfe-commits
https://github.com/joyhou-hw created https://github.com/llvm/llvm-project/pull/80401 attribute ((aligned)) should be 4 for -miamcu. relate: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66818 >From 02bb222e186b91c918f2375460e8e3bee2e75eb8 Mon Sep 17 00:00:00 2001 From: houzhenyu Date: Fri, 2 F

[clang] [X86] [iamcu] Fix wrong alignment value for attr (aligned) with -miamcu (PR #80401)

2024-02-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (joyhou-hw) Changes attribute ((aligned)) should be 4 for -miamcu. relate: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66818 --- Full diff: https://github.com/llvm/llvm-project/pull/80401.diff 2 Files Affected: - (modified) clang

[clang] d9c20e4 - [AArch64][SME] Implement inline-asm clobbers for za/zt0 (#79276)

2024-02-02 Thread via cfe-commits
Author: Matthew Devereau Date: 2024-02-02T08:12:05Z New Revision: d9c20e437fe110fb79b5ca73a52762e5b930b361 URL: https://github.com/llvm/llvm-project/commit/d9c20e437fe110fb79b5ca73a52762e5b930b361 DIFF: https://github.com/llvm/llvm-project/commit/d9c20e437fe110fb79b5ca73a52762e5b930b361.diff L

[llvm] [clang] [AArch64][SME] Implement inline-asm clobbers for za/zt0 (PR #79276)

2024-02-02 Thread Matthew Devereau via cfe-commits
https://github.com/MDevereau closed https://github.com/llvm/llvm-project/pull/79276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] Reapply "[AMDGPU] Add InstCombine rule for ballot.i64 intrinsic in wave32 mode." (PR #80303)

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

[clang] 0be3915 - [clang][Interp] Protect stores against dummy pointers

2024-02-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-02-02T09:18:06+01:00 New Revision: 0be39155bd22258b3e90468b6184bfd87a948bec URL: https://github.com/llvm/llvm-project/commit/0be39155bd22258b3e90468b6184bfd87a948bec DIFF: https://github.com/llvm/llvm-project/commit/0be39155bd22258b3e90468b6184bfd87a948bec.diff LO

[llvm] [clang] [RISCV] Add support for RISC-V Pointer Masking (PR #79929)

2024-02-02 Thread Jesse Huang via cfe-commits
https://github.com/jaidTw commented: Should you also update the `riscv32-toolchain-extra.c` and `riscv64-toolchain-extra.c`? LGTM otherwise https://github.com/llvm/llvm-project/pull/79929 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [clang] Update documentation for `#pragma diagnostic` (PR #78095)

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

[clang] 75c4339 - [clang][Interp][NFC] Implement dumping Invalid/Valid results

2024-02-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-02-02T09:25:54+01:00 New Revision: 75c4339ef31922bf8c883a7a5dfe638ec6818ab2 URL: https://github.com/llvm/llvm-project/commit/75c4339ef31922bf8c883a7a5dfe638ec6818ab2 DIFF: https://github.com/llvm/llvm-project/commit/75c4339ef31922bf8c883a7a5dfe638ec6818ab2.diff LO

[llvm] [clang] [compiler-rt] [X86] Support more ISAs to enable __builtin_cpu_supports (PR #79086)

2024-02-02 Thread Phoebe Wang via cfe-commits
@@ -139,20 +139,79 @@ enum ProcessorFeatures { FEATURE_AVX512BITALG, FEATURE_AVX512BF16, FEATURE_AVX512VP2INTERSECT, + // Below Features has many missings comparing to gcc, it's because gcc has + // some LLVM doesn't include, e.g. FEATURE_ABM, FEATURE_HLE, ... + FEATUR

[compiler-rt] [llvm] [clang] [X86] Support more ISAs to enable __builtin_cpu_supports (PR #79086)

2024-02-02 Thread Phoebe Wang via cfe-commits
@@ -139,20 +139,77 @@ enum ProcessorFeatures { FEATURE_AVX512BITALG, FEATURE_AVX512BF16, FEATURE_AVX512VP2INTERSECT, + FEATURE_3DNOW, + FEATURE_ADX = 40, + FEATURE_CLDEMOTE = 42, phoebewang wrote: ABM is a AMD specific feature https://en.wikipedia.or

[clang] [clang][Sema] GH58548 (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate. (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [libc] [clang-tools-extra] [clang] [llvm] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/80395 >From 24a8251aab9a1a03953412ae47508d039d926212 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 2 Feb 2024 15:24:13 +0800 Subject: [PATCH 1/2] [clang][Sema] Fix GH58548 --- clang/docs/ReleaseNotes.rst

[flang] [libc] [clang-tools-extra] [clang] [llvm] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix a possible out-of-bounds read (PR #80023)

2024-02-02 Thread via cfe-commits
@@ -1251,7 +1251,7 @@ highlightLines(StringRef FileData, unsigned StartLineNumber, unsigned LineLength = 0; for (unsigned I = 0; I <= Spelling.size(); ++I) { // This line is done. - if (isVerticalWhitespace(Spelling[I]) || I == Spelling.size()) { + if (

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

2024-02-02 Thread NAKAMURA Takumi via cfe-commits
Author: ManuelvOK Date: 2024-02-02T18:04:24+09:00 New Revision: c07fcd45f140bb95fb0f1ed10468db2bb6b1a77b URL: https://github.com/llvm/llvm-project/commit/c07fcd45f140bb95fb0f1ed10468db2bb6b1a77b DIFF: https://github.com/llvm/llvm-project/commit/c07fcd45f140bb95fb0f1ed10468db2bb6b1a77b.diff LOG

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

2024-02-02 Thread NAKAMURA Takumi via cfe-commits
chapuni wrote: I have restored this since our issue has been resolved in #80292. https://github.com/llvm/llvm-project/pull/76950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [llvm] [clang-tools-extra] Fix Issue #76121 [OpenMP] [Flang] Program crashes at runtime (PR #76122)

2024-02-02 Thread via cfe-commits
shivaramaarao wrote: > This is not the right fix. Something else is broken, this just hides it. > Following the link in the commit message, it clearly shows the segfault is at > a place that is guarded by argc > 4 (or similar), which should not be > executed. I strongly suspect something else

[clang] [Clang][CodeGen] Mark `__dynamic_cast` as `willreturn` (PR #80409)

2024-02-02 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw created https://github.com/llvm/llvm-project/pull/80409 According to the C++ standard, `dynamic_cast` of pointers either returns a pointer (7.6.1.7) or results in undefined behavior (11.9.5). This patch marks `__dynamic_cast` as `willreturn` to remove unused calls.

[clang] [Clang][CodeGen] Mark `__dynamic_cast` as `willreturn` (PR #80409)

2024-02-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yingwei Zheng (dtcxzyw) Changes According to the C++ standard, `dynamic_cast` of pointers either returns a pointer (7.6.1.7) or results in undefined behavior (11.9.5). This patch marks `__dynamic_cast` as `willreturn` to remove un

[clang] [Clang][CodeGen] Mark `__dynamic_cast` as `willreturn` (PR #80409)

2024-02-02 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM, nice find! https://github.com/llvm/llvm-project/pull/80409 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [flang] [clang-tools-extra] [llvm] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 73e5466 - [clang][Interp] Fix up broken test case

2024-02-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-02-02T10:11:29+01:00 New Revision: 73e546625d6567e5a33454741d257b6929c89635 URL: https://github.com/llvm/llvm-project/commit/73e546625d6567e5a33454741d257b6929c89635 DIFF: https://github.com/llvm/llvm-project/commit/73e546625d6567e5a33454741d257b6929c89635.diff LO

[clang] [clang] Fix a possible out-of-bounds read (PR #80023)

2024-02-02 Thread Timm Baeder via cfe-commits
@@ -1251,7 +1251,7 @@ highlightLines(StringRef FileData, unsigned StartLineNumber, unsigned LineLength = 0; for (unsigned I = 0; I <= Spelling.size(); ++I) { // This line is done. - if (isVerticalWhitespace(Spelling[I]) || I == Spelling.size()) { + if (

[clang] [openmp] [llvm] [clang-tools-extra] Fix Issue #76121 [OpenMP] [Flang] Program crashes at runtime (PR #76122)

2024-02-02 Thread via cfe-commits
shivaramaarao wrote: These cmov instructions load the operand irrespective of condition satisfaction. => cmpq$4, %rax => cmovnsq 24(%r11), %r9 here r11 is 0 and 24(0) will be loaded even if argc < 4 and hence we get this crash. if we pass the address of argv, we will get a va

[clang] [X86] [iamcu] Fix wrong alignment value for attr (aligned) with -miamcu (PR #80401)

2024-02-02 Thread via cfe-commits
https://github.com/joyhou-hw updated https://github.com/llvm/llvm-project/pull/80401 >From e476b28fa123822c695beb5c0ba0f2c381df0e95 Mon Sep 17 00:00:00 2001 From: houzhenyu Date: Fri, 2 Feb 2024 11:21:50 +0800 Subject: [PATCH] [X86] [iamcu] Fix wrong alignment value for attr (aligned) with -mi

[clang] [clang] Fix a possible out-of-bounds read (PR #80023)

2024-02-02 Thread via cfe-commits
@@ -1251,7 +1251,7 @@ highlightLines(StringRef FileData, unsigned StartLineNumber, unsigned LineLength = 0; for (unsigned I = 0; I <= Spelling.size(); ++I) { // This line is done. - if (isVerticalWhitespace(Spelling[I]) || I == Spelling.size()) { + if (

[clang] [clang] Fix a possible out-of-bounds read (PR #80023)

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

[clang] [lldb] [libc] [flang] [lld] [clang-tools-extra] [libcxx] [llvm] [AMDGPU] Add pal metadata 3.0 support to callable pal funcs (PR #67104)

2024-02-02 Thread David Stuttard via cfe-commits
https://github.com/dstutt updated https://github.com/llvm/llvm-project/pull/67104 >From 259138920126f09149b488fc54e8d2a7da969ca4 Mon Sep 17 00:00:00 2001 From: David Stuttard Date: Thu, 24 Aug 2023 16:45:50 +0100 Subject: [PATCH 1/4] [AMDGPU] Add pal metadata 3.0 support to callable pal funcs

[clang-tools-extra] [clang] [flang] [libc] [llvm] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 ready_for_review https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9e64951 - [Clang][AArch64] Add missing SME macros (#80293)

2024-02-02 Thread via cfe-commits
Author: Sander de Smalen Date: 2024-02-02T09:29:47Z New Revision: 9e649518e6038a5b9ea38cfa424468657d3be59e URL: https://github.com/llvm/llvm-project/commit/9e649518e6038a5b9ea38cfa424468657d3be59e DIFF: https://github.com/llvm/llvm-project/commit/9e649518e6038a5b9ea38cfa424468657d3be59e.diff L

[clang] [Clang][AArch64] Add missing SME macros (PR #80293)

2024-02-02 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm closed https://github.com/llvm/llvm-project/pull/80293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [flang] [libc] [llvm] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes This is yet another one-line patch to fix crashes on constraint substitution. ```cpp template struct formatter; template struct basic_format_context {}; template

[clang-tools-extra] [clang] [flang] [libc] [llvm] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Looks great, Thanks! https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [flang] [libc] [llvm] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread via cfe-commits
cor3ntin wrote: if that's impacting std::format we might want to backport @AaronBallman @erichkeane https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[llvm] [clang-tools-extra] [clang] [AMDGPU] Add IR-level pass to rewrite away address space 7 (PR #77952)

2024-02-02 Thread Piotr Sobczak via cfe-commits
@@ -0,0 +1,1983 @@ +//===-- AMDGPULowerBufferFatPointers.cpp ---=// +// +// 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.0

[clang] a52e9ec - [Preprocessor] Fix __has_builtin for CPU ID functions (#80058)

2024-02-02 Thread via cfe-commits
Author: Nemanja Ivanovic Date: 2024-02-02T10:49:45+01:00 New Revision: a52e9eca3001b23c7952300e5a32b5c58ef2e0e2 URL: https://github.com/llvm/llvm-project/commit/a52e9eca3001b23c7952300e5a32b5c58ef2e0e2 DIFF: https://github.com/llvm/llvm-project/commit/a52e9eca3001b23c7952300e5a32b5c58ef2e0e2.di

[clang] [Preprocessor] Fix __has_builtin for CPU ID functions (PR #80058)

2024-02-02 Thread Nemanja Ivanovic via cfe-commits
https://github.com/nemanjai closed https://github.com/llvm/llvm-project/pull/80058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-02-02 Thread via cfe-commits
https://github.com/mikaelholmen updated https://github.com/llvm/llvm-project/pull/76954 >From a967fdae9a8557331d2a228f391f39f9e27e8943 Mon Sep 17 00:00:00 2001 From: pvanhout Date: Thu, 4 Jan 2024 14:12:00 +0100 Subject: [PATCH 1/4] [AMDGPU] Introduce Code Object V6 Introduce Code Object V6 in

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

2024-02-02 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh updated https://github.com/llvm/llvm-project/pull/76954 >From a967fdae9a8557331d2a228f391f39f9e27e8943 Mon Sep 17 00:00:00 2001 From: pvanhout Date: Thu, 4 Jan 2024 14:12:00 +0100 Subject: [PATCH 1/4] [AMDGPU] Introduce Code Object V6 Introduce Code Object V6 in Cl

[llvm] [flang] [libc] [clang] [clang-tools-extra] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Thanks for the quick review! I tested the original bug report without the patch but couldn't reproduce it. Nevertheless, the example produced by @royjacobson (which still crashes the trunk) was fixed by this patch. I'm not sure if this merits a backport? https://github.com/llvm

[llvm] [flang] [libc] [clang] [clang-tools-extra] [clang][Sema] Populate function template depth at AddTemplateOverloadCandidate (PR #80395)

2024-02-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/80395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix a possible out-of-bounds read (PR #80023)

2024-02-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/80023 >From 675a369815ab8b328f7ec67732e34d67b342377c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 30 Jan 2024 17:04:23 +0100 Subject: [PATCH] [clang] Fix a possible out-of-bounds read Fixes

[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)

2024-02-02 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/77454 >From 43810d2b18e1e31c5f15dc58c847c83b3c34d982 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 9 Jan 2024 12:29:45 +0100 Subject: [PATCH 1/3] [coroutine] Suppress unreachable-code warning on coroutine statem

[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)

2024-02-02 Thread Haojian Wu via cfe-commits
@@ -453,26 +454,68 @@ bool DeadCodeScan::isDeadCodeRoot(const clang::CFGBlock *Block) { return isDeadRoot; } -static bool isValidDeadStmt(const Stmt *S) { +// Check if the given `DeadStmt` is a coroutine statement and is a substmt of +// the coroutine statement. +static boo

[clang] 6d1d2c6 - [clang] Fix a possible out-of-bounds read (#80023)

2024-02-02 Thread via cfe-commits
Author: Timm Baeder Date: 2024-02-02T11:15:57+01:00 New Revision: 6d1d2c67e7597dc417c097d5027558b0159ed2e2 URL: https://github.com/llvm/llvm-project/commit/6d1d2c67e7597dc417c097d5027558b0159ed2e2 DIFF: https://github.com/llvm/llvm-project/commit/6d1d2c67e7597dc417c097d5027558b0159ed2e2.diff L

[clang] [clang] Fix a possible out-of-bounds read (PR #80023)

2024-02-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/80023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] MIPS/clang: Disallow constraint f for softfloat (PR #79116)

2024-02-02 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/79116 >From afacadad3f6654c60609a8d024ab9b6c0123195d Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Tue, 23 Jan 2024 18:14:48 +0800 Subject: [PATCH] MIPS/clang: Fix asm constraint for softfloat This include 2 fixes:

[clang] [Clang][AArch64] Emit 'unimplemented' diagnostic for SME (PR #80295)

2024-02-02 Thread Dinar Temirbulatov via cfe-commits
https://github.com/dtemirbulatov approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/80295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [clang-tools-extra] [AMDGPU] Add IR-level pass to rewrite away address space 7 (PR #77952)

2024-02-02 Thread Piotr Sobczak via cfe-commits
piotrAMD wrote: Came across an assertion, see the attachment for the reproducer [repro.txt](https://github.com/llvm/llvm-project/files/14138750/repro.txt): opt -S -mcpu=gfx1100 -amdgpu-lower-buffer-fat-pointers repro.txt #10 0x03aed749 llvm::StructLayout::StructLayout(llvm::StructType*

[llvm] [clang] MIPS/clang: Disallow constraint f for softfloat (PR #79116)

2024-02-02 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/79116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [libc] [compiler-rt] [openmp] [clang-tools-extra] [libcxxabi] [clang] [mlir] [llvm] [libcxx] [clang] Avoid -Wshadow warning when init-capture named same as class field (PR #74512)

2024-02-02 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/74512 >From 169d962b64b8ae242c3a6d332677296cf7503839 Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Tue, 5 Dec 2023 10:28:44 -0800 Subject: [PATCH 1/4] [clang] Avoid -Wshadow warning when init-capture

[flang] [libcxxabi] [llvm] [libcxx] [clang] [mlir] [openmp] [clang-tools-extra] [libc] [compiler-rt] [clang] Avoid -Wshadow warning when init-capture named same as class field (PR #74512)

2024-02-02 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: Ping. https://github.com/llvm/llvm-project/pull/74512 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang] MIPS/clang: Disallow constraint f for softfloat (PR #79116)

2024-02-02 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/79116 >From afacadad3f6654c60609a8d024ab9b6c0123195d Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Tue, 23 Jan 2024 18:14:48 +0800 Subject: [PATCH] MIPS/clang: Fix asm constraint for softfloat This include 2 fixes:

[llvm] [clang] [AArch64] Support optional constant offset for constraint "S" (PR #80255)

2024-02-02 Thread Peter Smith via cfe-commits
https://github.com/smithp35 approved this pull request. Thanks for the response. LGTM. I think the RISCV inline-asm-S-constraint.ll is no longer necessary thanks to #80201 https://github.com/llvm/llvm-project/pull/80255 ___ cfe-commits mailing list c

[llvm] [clang] [AArch64] Support optional constant offset for constraint "S" (PR #80255)

2024-02-02 Thread Peter Smith via cfe-commits
https://github.com/smithp35 edited https://github.com/llvm/llvm-project/pull/80255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AArch64] Support optional constant offset for constraint "S" (PR #80255)

2024-02-02 Thread Peter Smith via cfe-commits
@@ -3,6 +3,7 @@ ; RUN: llc -mtriple=riscv64 < %s | FileCheck %s --check-prefix=RV64 @var = external dso_local global i32, align 4 +@a = external global [2 x [2 x i32]], align 4 smithp35 wrote: Did you mean to change this file in this PR? I think this change h

[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)

2024-02-02 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/77454 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)

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

[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)

2024-02-02 Thread Utkarsh Saxena via cfe-commits
@@ -33,33 +40,37 @@ task test3() { task test4() { abort(); - 1; // expected-warning {{code will never be executed}} + 1; // expected-warning {{code will never be executed}} co_return; } - task test5() { abort(); - co_await std::suspend_never{}; + co_await 1;

[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)

2024-02-02 Thread Utkarsh Saxena via cfe-commits
@@ -12,6 +12,13 @@ struct task { std::suspend_always yield_value(int) { return {}; } task get_return_object(); void unhandled_exception(); + +struct Awaiter { + bool await_ready(); + void await_suspend(auto); + int await_resume(); +}; +aut

[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)

2024-02-02 Thread Utkarsh Saxena via cfe-commits
@@ -453,26 +454,68 @@ bool DeadCodeScan::isDeadCodeRoot(const clang::CFGBlock *Block) { return isDeadRoot; } -static bool isValidDeadStmt(const Stmt *S) { +// Check if the given `DeadStmt` is a coroutine statement and is a substmt of +// the coroutine statement. +static boo

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread via cfe-commits
bgra8 wrote: https://github.com/llvm/llvm-project/pull/80023 does not fix the problem we're seeing here. The problem is extremely hard to reduce as it happens during preprocessing and even removing unrelated headers causes the crash to disappear. I've built `clang` with assertions enabled and

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: @bgra8 Thank you! This is helpful. > The problem is extremely hard to reduce as it happens during preprocessing > and even removing unrelated headers causes the crash to disappear. Yeah, crashes happening at this stage can easily be insane to reduce manually. > This crash is bl

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread via cfe-commits
bgra8 wrote: > As mentioned above, `-fno-color-diagnostics` is the flag you can deploy > internally this very moment. Disabling color diagnostics would make the job of other software engineers harder, right? This hammer is a bit too big for the problem at hand, right? https://github.com/llvm/

[clang] [Clang][Sema] Fix crash with const qualified member operator new (PR #80327)

2024-02-02 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/80327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Fix crash with const qualified member operator new (PR #80327)

2024-02-02 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: Needs a release note. https://github.com/llvm/llvm-project/pull/80327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Fix crash with const qualified member operator new (PR #80327)

2024-02-02 Thread Mariya Podchishchaeva via cfe-commits
@@ -37,3 +37,10 @@ void instantiateArrayDecay() { int a[1]; arrayDecay(a); } + +namespace GH79748 { +typedef decltype(sizeof(0)) size_t; +struct A { + void* operator new(size_t bytes) const; //expected-error {{static member function cannot have 'const' qualifier}} ---

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > > As mentioned above, `-fno-color-diagnostics` is the flag you can deploy > > internally this very moment. > > Disabling color diagnostics would make the job of other software engineers > harder, right? This hammer is a bit too big for the problem at hand, right? I thought we

[clang] [IRGen][AArch64][RISCV] Generalize bitcast between i1 predicate vector and i8 fixed vector. (PR #76548)

2024-02-02 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm edited https://github.com/llvm/llvm-project/pull/76548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [IRGen][AArch64][RISCV] Generalize bitcast between i1 predicate vector and i8 fixed vector. (PR #76548)

2024-02-02 Thread Sander de Smalen via cfe-commits
@@ -2136,14 +2136,16 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) { // bitcast. if (const auto *FixedSrc = dyn_cast(SrcTy)) { if (const auto *ScalableDst = dyn_cast(DstTy)) { -// If we are casting a fixed i8 vector to a scalable 16 x i1 predic

[clang] [IRGen][AArch64][RISCV] Generalize bitcast between i1 predicate vector and i8 fixed vector. (PR #76548)

2024-02-02 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm commented: Generalising this code makes sense, 16 should never have been hardcoded here. Is it possible to add a test for the case where the predicate type is not ``? > Though I do wonder if we have the bitcast on the wrong side. Maybe we should > be casting t

[clang] [IRGen][AArch64][RISCV] Generalize bitcast between i1 predicate vector and i8 fixed vector. (PR #76548)

2024-02-02 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm edited https://github.com/llvm/llvm-project/pull/76548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] MIPS/clang: Disallow constraint f for softfloat (PR #79116)

2024-02-02 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/79116 >From 009bd230a51a1790e6691ae3f104f57af311272f Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Tue, 23 Jan 2024 18:14:48 +0800 Subject: [PATCH] MIPS/clang: Fix asm constraint for softfloat This include 2 fixes:

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread via cfe-commits
bgra8 wrote: > I thought we are still talking about internal work being blocked on this, > which is much more severe issue. We can't push internally a compiler that crashes unless we disable color diagnostics. https://github.com/llvm/llvm-project/pull/66514 ___

[clang] [flang] [flang]Add support for -moutline-atomics and -mno-outline-atomics (PR #78755)

2024-02-02 Thread Mats Petersson via cfe-commits
https://github.com/Leporacanthicus updated https://github.com/llvm/llvm-project/pull/78755 >From a0e256f379130a98ba03793f7102c67d02cbdef1 Mon Sep 17 00:00:00 2001 From: Mats Petersson Date: Fri, 19 Jan 2024 16:30:31 + Subject: [PATCH 1/4] [flang]Add support for -moutline-atomics and -mno-o

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > We can't push internally a compiler that crashes unless we disable color > diagnostics. I hope you realize this is self-imposed limitation that Clang community doesn't necessary have to respect. https://github.com/llvm/llvm-project/pull/66514 _

[clang] [llvm] MIPS/clang: Fix asm constraint for softfloat (PR #79116)

2024-02-02 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/79116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-02-02 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh updated https://github.com/llvm/llvm-project/pull/76954 >From a967fdae9a8557331d2a228f391f39f9e27e8943 Mon Sep 17 00:00:00 2001 From: pvanhout Date: Thu, 4 Jan 2024 14:12:00 +0100 Subject: [PATCH 1/5] [AMDGPU] Introduce Code Object V6 Introduce Code Object V6 in Cl

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread via cfe-commits
bgra8 wrote: > I hope you realize this is self-imposed limitation that Clang community > doesn't necessary have to respect. Well, the actual LLVM policy is to revert to green: https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy ``` When should you revert your own change? * Any

[clang] [llvm] MIPS/clang: Fix asm constraint for softfloat (PR #79116)

2024-02-02 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/79116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 319f4c0 - [Clang][AArch64] Emit 'unimplemented' diagnostic for SME (#80295)

2024-02-02 Thread via cfe-commits
Author: Sander de Smalen Date: 2024-02-02T11:56:38Z New Revision: 319f4c03ba2909c7240ac157cc46216bf1518c10 URL: https://github.com/llvm/llvm-project/commit/319f4c03ba2909c7240ac157cc46216bf1518c10 DIFF: https://github.com/llvm/llvm-project/commit/319f4c03ba2909c7240ac157cc46216bf1518c10.diff L

[clang] [Clang][AArch64] Emit 'unimplemented' diagnostic for SME (PR #80295)

2024-02-02 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm closed https://github.com/llvm/llvm-project/pull/80295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Diagnose misuse of the cleanup attribute (PR #80040)

2024-02-02 Thread Bhuminjay Soni via cfe-commits
https://github.com/11happy updated https://github.com/llvm/llvm-project/pull/80040 >From 93adb872d0e18ff3a1356ab47527d81b61c920cd Mon Sep 17 00:00:00 2001 From: 11happy Date: Tue, 30 Jan 2024 23:19:04 +0530 Subject: [PATCH 1/5] Diagnose misuse of the cleanup attribute Signed-off-by: 11happy -

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-02 Thread Egor Zhdan via cfe-commits
egorzhdan wrote: @compnerd ping! ;) https://github.com/llvm/llvm-project/pull/78445 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2024-02-02 Thread Timm Baeder via cfe-commits
tbaederr wrote: > This I think qualifies as a serious problem as it introduces a crash which > may occur in _any_ existent codebase. Anyone using the compiler at trunk and > encountering the crash has no way to know how to deal with it. Since we don't have a reproducer, the danger is that we r

[clang] [Clang][Sema] Fix crash with const qualified member operator new (PR #80327)

2024-02-02 Thread via cfe-commits
@@ -37,3 +37,10 @@ void instantiateArrayDecay() { int a[1]; arrayDecay(a); } + +namespace GH79748 { +typedef decltype(sizeof(0)) size_t; +struct A { + void* operator new(size_t bytes) const; //expected-error {{static member function cannot have 'const' qualifier}} ---

[clang] [Clang][Sema] Fix crash with const qualified member operator new (PR #80327)

2024-02-02 Thread via cfe-commits
@@ -5914,8 +5914,10 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state, // // ... for instance. if (IsQualifiedFunction && -!(Kind == Member && !D.isExplicitObjectMemberFunction() && - D.getDeclSpec().getStorageClassSpec(

[clang] Diagnose misuse of the cleanup attribute (PR #80040)

2024-02-02 Thread Bhuminjay Soni via cfe-commits
11happy wrote: tried to implement the requested changes along the new direction, further I have some queries should I let this statament as is or assign to a variable: ``` S.CheckFunctionCall(FD, FunctionCallExpression, FD->getType()->getAs()); ``` Further I request some gu

[clang] [lldb] [clang-tools-extra] [c++20] P1907R1: Support for generalized non-type template arguments of scalar type. (PR #78041)

2024-02-02 Thread via cfe-commits
eaeltsin wrote: > #80050 opened. Nevertheless, a reproducer for future work would be > appreciated. I'm running a reduction, but it progresses extremely slowly. Will post as soon as it converges to something meaningful (or I'll get some time to reduce the test case by hand). https://github.

[clang] b8025d1 - Reapply "[AMDGPU] Add InstCombine rule for ballot.i64 intrinsic in wave32 mode." (#80303)

2024-02-02 Thread via cfe-commits
Author: Valery Pykhtin Date: 2024-02-02T13:09:25+01:00 New Revision: b8025d1482a9664463cfc727a0e51cad86fdf2fe URL: https://github.com/llvm/llvm-project/commit/b8025d1482a9664463cfc727a0e51cad86fdf2fe DIFF: https://github.com/llvm/llvm-project/commit/b8025d1482a9664463cfc727a0e51cad86fdf2fe.diff

[llvm] [clang] Reapply "[AMDGPU] Add InstCombine rule for ballot.i64 intrinsic in wave32 mode." (PR #80303)

2024-02-02 Thread Valery Pykhtin via cfe-commits
https://github.com/vpykhtin closed https://github.com/llvm/llvm-project/pull/80303 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [flang]Add support for -moutline-atomics and -mno-outline-atomics (PR #78755)

2024-02-02 Thread Mats Petersson via cfe-commits
https://github.com/Leporacanthicus updated https://github.com/llvm/llvm-project/pull/78755 >From a0e256f379130a98ba03793f7102c67d02cbdef1 Mon Sep 17 00:00:00 2001 From: Mats Petersson Date: Fri, 19 Jan 2024 16:30:31 + Subject: [PATCH 1/5] [flang]Add support for -moutline-atomics and -mno-o

  1   2   3   4   >