[clang] [NFC][Clang] Fix Static Code Analysis Concerns with copy without assign (PR #75091)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/75091 This patch adds missing assignment operator to the class which has user-defined copy constructor. >From 8772661bda9c93b8bcfeb67f236468c85d1d0253 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 11 Dec

[clang] [NFC][Clang] Fix Static Code Analysis Concerns with copy without assign (PR #75091)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (smanna12) Changes This patch adds missing assignment operator to the class which has user-defined copy constructor. --- Full diff: https://github.com/llvm/llvm-project/pull/75091.diff 1 Files Affected: - (modified) clang/utils/Ta

[clang] [llvm] [PseudoProbe] Mix and reorder block and call probe ID in lexical order (PR #75092)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-llvm-transforms Author: Lei Wang (wlei-llvm) Changes Before all the call probe ids are after block ids, in this change, it mixed the call probe and block probe by reordering them in lexical(line-number) order. For example: `

[clang] [OpenMP][CodeGen] Improved codegen for combined loop directives (PR #72417)

2023-12-11 Thread via cfe-commits
@@ -7485,6 +7485,99 @@ void CodeGenModule::printPostfixForExternalizedDecl(llvm::raw_ostream &OS, } } +namespace { +/// A 'teams loop' with a nested 'loop bind(parallel)' or generic function +/// call in the associated loop-nest cannot be a 'parllel for'. +class TeamsLoopCh

[clang] 631c6e8 - [CUDA] Add support for CUDA-12.3 and sm_90a (#74895)

2023-12-11 Thread via cfe-commits
Author: Artem Belevich Date: 2023-12-11T12:18:28-08:00 New Revision: 631c6e834cb07b2769e2c8f1e186dd3a3e0777a1 URL: https://github.com/llvm/llvm-project/commit/631c6e834cb07b2769e2c8f1e186dd3a3e0777a1 DIFF: https://github.com/llvm/llvm-project/commit/631c6e834cb07b2769e2c8f1e186dd3a3e0777a1.diff

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/75060 >From bd008b0d67bb08ef9414d93720bcb2f024997c0f Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 11 Dec 2023 07:26:40 -0800 Subject: [PATCH 1/2] [NFC][CLANG] Fix static analyzer bugs about large copy by

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-11 Thread via cfe-commits
@@ -110,7 +110,7 @@ void ModuleDepCollector::addOutputPaths(CowCompilerInvocation &CI, } static CowCompilerInvocation -makeCommonInvocationForModuleBuild(CompilerInvocation CI) { +makeCommonInvocationForModuleBuild(const CompilerInvocation &CI) { smanna12 wro

[clang] [AArch64][Clang] Fix linker error for function multiversioning (PR #74358)

2023-12-11 Thread via cfe-commits
@@ -1752,8 +1754,10 @@ static void AppendTargetClonesMangling(const CodeGenModule &CGM, const TargetInfo &TI = CGM.getTarget(); if (TI.getTriple().isAArch64()) { elizabethandrews wrote: Can you please explain why AArch64 needs to be 'specially' handled her

[compiler-rt] [llvm] [lld] [clang] [flang] [libc] [clang-tools-extra] [libcxx] [lldb] fix issue 73559. (PR #74926)

2023-12-11 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/2] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[compiler-rt] [llvm] [lld] [clang] [flang] [libc] [openmp] [clang-tools-extra] [libcxx] [lldb] [mlir] fix issue 73559. (PR #74926)

2023-12-11 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/2] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[compiler-rt] [llvm] [lld] [clang] [flang] [libc] [openmp] [clang-tools-extra] [libcxx] [lldb] [mlir] fix issue 73559. (PR #74926)

2023-12-11 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 f92d970c8cc27747478abb7df66bb8b6701cea49 e8419c3750f7b1cf877b042942204abaab48344b --

[compiler-rt] [llvm] [lld] [clang] [flang] [libc] [openmp] [clang-tools-extra] [libcxx] [lldb] [mlir] fix issue 73559. (PR #74926)

2023-12-11 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/3] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Momchil Velikov (momchil-velikov) Changes Add intrinsics of the form: svboolx2_t svwhile_b{8,16,32,64}_[{s,u}64]_x2([u]int64_t, [u]int64_t); and their overloaded variants as specified in https://github.com/ARM-software/acle/pul

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
isuckatcs wrote: > Consider downstream users that might use this reporting system and have their > own trackers. (We don't at Sonar, but pretend), then they would need to > remove one more unjust assert. This is also a fair point, though as far as I know, LLVM doesn't keep API compatibility e

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
@@ -2565,21 +2565,24 @@ class PRValueHandler final : public ExpressionHandler { using ExpressionHandler::ExpressionHandler; Tracker::Result handle(const Expr *E, const ExplodedNode *InputNode, - const ExplodedNode *ExprNode, +

[clang-tools-extra] [flang] [clang] [llvm] [compiler-rt] [lldb] [openmp] [mlir] [lld] [libc] [libcxx] fix issue 73559. (PR #74926)

2023-12-11 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/4] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[clang-tools-extra] [flang] [clang] [llvm] [compiler-rt] [lldb] [openmp] [mlir] [lld] [libc] [libcxx] fix issue 73559. (PR #74926)

2023-12-11 Thread via cfe-commits
ChipsSpectre wrote: The pull request is updated now, and passing tests and formatting checks. Is it ready to be merged in its new state? https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] e1655a9 - [-Wunsafe-buffer-usage] Add FixableGadget for AddAssign in UnspecifiedUntypedContext (#71862)

2023-12-11 Thread via cfe-commits
Author: Rashmi Mudduluru Date: 2023-12-11T15:00:08-08:00 New Revision: e1655a98cb9c098fa941ed199664927ba8a4b031 URL: https://github.com/llvm/llvm-project/commit/e1655a98cb9c098fa941ed199664927ba8a4b031 DIFF: https://github.com/llvm/llvm-project/commit/e1655a98cb9c098fa941ed199664927ba8a4b031.di

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/75060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-11 Thread via cfe-commits
smanna12 wrote: > Could you also update the description of the patch? Done. Thank you @Xazax-hun for reviews! https://github.com/llvm/llvm-project/pull/75060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang-tools-extra] [clangd] Add test for GH75115 (PR #75116)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Matheus Izvekov (mizvekov) Changes Add test for https://github.com/llvm/llvm-project/issues/75115 --- Full diff: https://github.com/llvm/llvm-project/pull/75116.diff 1 Files Affected: - (added) clang-tools-extra/clangd/test/GH75115.tes

[clang] 81d1df2 - [SpecialCaseList] Use glob by default (#74809)

2023-12-11 Thread via cfe-commits
Author: Fangrui Song Date: 2023-12-11T15:30:28-08:00 New Revision: 81d1df2a39f0616be4b530cbf86b3f575442a347 URL: https://github.com/llvm/llvm-project/commit/81d1df2a39f0616be4b530cbf86b3f575442a347 DIFF: https://github.com/llvm/llvm-project/commit/81d1df2a39f0616be4b530cbf86b3f575442a347.diff

[llvm] [clang] [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (PR #75117)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Momchil Velikov (momchil-velikov) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/75117.diff 4 Files Affected: - (modified) clang/include/clang/Basic/arm_sve.td (+2-2) - (modified) clang/test/CodeGen/aarch64-sve2-intr

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-11 Thread via cfe-commits
https://github.com/knightXun closed https://github.com/llvm/llvm-project/pull/74885 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] LLVM is not needed for chapter two. (PR #69823)

2023-12-11 Thread via cfe-commits
https://github.com/gonsolo updated https://github.com/llvm/llvm-project/pull/69823 >From 7a8e793c0017ee98584d1c29bdc511cc878d2899 Mon Sep 17 00:00:00 2001 From: Gon Solo Date: Sat, 21 Oct 2023 11:16:07 +0200 Subject: [PATCH] LLVM is not needed for chapter two. --- llvm/docs/tutorial/MyFirstLa

[clang] [Clang][AST] Fix crash in APValue::LValueBase::getType when we have invalid decl (PR #75130)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes In some cases when calling APValue::LValueBase::getType() when we have a ValueDecl in some cases we don't handle invalid decls. We iterating over redeclarations we reset the current decl to the current mos

[clang] [clang] Fix logic in APValue::LValueBase::getType() (PR #75131)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chenyang Gao (cygao90) Changes See #69468. --- Full diff: https://github.com/llvm/llvm-project/pull/75131.diff 1 Files Affected: - (modified) clang/lib/AST/APValue.cpp (+3-1) ``diff diff --git a/clang/lib/AST/APValue.cpp b/cl

[clang] [llvm] [RISCV] Bump zicfilp to 0.4 (PR #75134)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Yeting Kuo (yetingk) Changes Bump to https://github.com/riscv/riscv-cfi/releases/tag/v0.4.0. Actually there is no functional change here. --- Full diff: https://github.com/llvm/llvm-project/pull/75134.diff 6 Files Affected: -

[clang] [llvm] [RISCV] Bump zicfilp to 0.4 (PR #75134)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support @llvm/pr-subscribers-clang Author: Yeting Kuo (yetingk) Changes Bump to https://github.com/riscv/riscv-cfi/releases/tag/v0.4.0. Actually there is no functional change here. --- Full diff: https://github.com/llvm/llvm-project/pull/75134.dif

[clang] [clang][sema] check args of __atomic_exchange is complete type (PR #75135)

2023-12-11 Thread via cfe-commits
https://github.com/knightXun created https://github.com/llvm/llvm-project/pull/75135 make sure the args of __atomic_exchange is complete type, make it consistent with GCC issue: https://github.com/llvm/llvm-project/issues/74464 >From dc3714573f92b2303ca3bad046b355ccb66c2957 Mon Sep 17 00:00:00

[clang] [clang][sema] check args of __atomic_exchange is complete type (PR #75135)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: flyingcat (knightXun) Changes make sure the args of __atomic_exchange is complete type, make it consistent with GCC issue: https://github.com/llvm/llvm-project/issues/74464 --- Full diff: https://github.com/llvm/llvm-project/pull/75135.d

[clang] [clang][sema] check args of __atomic_exchange is complete type (PR #75135)

2023-12-11 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/75135 >From dc3714573f92b2303ca3bad046b355ccb66c2957 Mon Sep 17 00:00:00 2001 From: knightXun Date: Tue, 12 Dec 2023 12:23:54 +0800 Subject: [PATCH 1/2] [clang][sema] check args of __atomic_exchange is complete type

[clang] [llvm] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)

2023-11-14 Thread via cfe-commits
@@ -3124,6 +3125,36 @@ bool PPCInstrInfo::expandPostRAPseudo(MachineInstr &MI) const { .addReg(Reg); return true; } + case PPC::PPCLdFixedAddr: { +assert(Subtarget.isTargetLinux() && + "Only Linux target is expected to contain PPCLdFixedAddr"); +

[clang] [llvm] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)

2023-11-14 Thread via cfe-commits
@@ -2110,6 +2110,66 @@ static bool checkFPMathBuiltinElementType(Sema &S, SourceLocation Loc, return false; } +/// SemaBuiltinCpuSupports - Handle __builtin_cpu_supports(char *). +/// This checks that the target supports __builtin_cpu_supports and +/// that the string argum

[clang] [llvm] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)

2023-11-14 Thread via cfe-commits
https://github.com/diggerlin edited https://github.com/llvm/llvm-project/pull/68919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 410f130 - [clang][Interp] Fix classify for glvalues of function type (#72269)

2023-11-14 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-14T19:40:59+01:00 New Revision: 410f130bb99b88f1a8f21659d98053e6f3e5e8f6 URL: https://github.com/llvm/llvm-project/commit/410f130bb99b88f1a8f21659d98053e6f3e5e8f6 DIFF: https://github.com/llvm/llvm-project/commit/410f130bb99b88f1a8f21659d98053e6f3e5e8f6.diff L

[clang] [AVR] make the AVR ABI Swift compatible (PR #72298)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Carl Peto (carlos4242) Changes This patch is needed to add support to clang's AVR ABI for the Swift language. It is a pre-requisite for adding AVR support to the public Swift compiler itself. I'm open t

[clang] [AVR] make the AVR ABI Swift compatible (PR #72298)

2023-11-14 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 410f130bb99b88f1a8f21659d98053e6f3e5e8f6 ed8b63c31f8b9a496bc5c51ab83a132c224594f0 --

[clang] [AIX] Disable flaky ClangScanDeps tests (PR #72304)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jake Egan (jakeegan) Changes These tests are failing intermittently on the AIX bot, possibly due to some issue with `getpwuid_r`. Disable them for now while they are investigated. --- Full diff: https://github.com/llvm/llvm-project/pull/

[clang] [compiler-rt] [llvm] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andres Villegas (avillega) Changes This PR separates parts of the symbolizer markup implementation that are Fuchsia OS specific. This is in preparation of enabling symbolizer markup in other OSs. --- Full diff: https://github.com/llvm/llvm

[clang] [compiler-rt] [llvm] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

2023-11-14 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 2ccd79d70ef4a7295cd282f4f46b3483c035e1fa 8e47bce1f9ba79bd9006b69700b6f45e6dd7054d --

[compiler-rt] [llvm] [clang] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

2023-11-14 Thread via cfe-commits
=?utf-8?q?Andrés?= Villegas Message-ID: In-Reply-To: @@ -0,0 +1,66 @@ +//===-- sanitizer_unwind_fuchsia.cpp +//---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENS

[compiler-rt] [clang] [llvm] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

2023-11-14 Thread via cfe-commits
=?utf-8?q?Andrés?= Villegas Message-ID: In-Reply-To: @@ -0,0 +1,66 @@ +//===-- sanitizer_unwind_fuchsia.cpp +//---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENS

[clang] [compiler-rt] [llvm] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

2023-11-14 Thread via cfe-commits
=?utf-8?q?Andr=C3=A9s?= Villegas Message-ID: In-Reply-To: https://github.com/PiJoules approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/72305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[llvm] [compiler-rt] [clang] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

2023-11-14 Thread via cfe-commits
=?utf-8?q?Andrés?= Villegas Message-ID: In-Reply-To: @@ -0,0 +1,66 @@ +//===-- sanitizer_unwind_fuchsia.cpp +//---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENS

[clang] [compiler-rt] [llvm] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

2023-11-14 Thread via cfe-commits
=?utf-8?q?Andrés?= Villegas Message-ID: In-Reply-To: https://github.com/PiJoules edited https://github.com/llvm/llvm-project/pull/72305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [clang-tools-extra] [Clang] Fix linker error for function multiversioning (PR #71706)

2023-11-14 Thread via cfe-commits
https://github.com/elizabethandrews updated https://github.com/llvm/llvm-project/pull/71706 >From 534fad70af45a6a22ba2d03f474089e896f4fcd6 Mon Sep 17 00:00:00 2001 From: Elizabeth Andrews Date: Thu, 26 Oct 2023 08:53:54 -0700 Subject: [PATCH 1/2] [Clang] Fix linker error for function multivers

[clang] [llvm] [clang-tools-extra] [Clang] Fix linker error for function multiversioning (PR #71706)

2023-11-14 Thread via cfe-commits
@@ -4098,8 +4098,26 @@ void CodeGenModule::emitMultiVersionFunctions() { } llvm::Constant *ResolverConstant = GetOrCreateMultiVersionResolver(GD); -if (auto *IFunc = dyn_cast(ResolverConstant)) +if (auto *IFunc = dyn_cast(ResolverConstant)) { ResolverCon

[clang] [libcxx] [lldb] [llvm] [libc] [compiler-rt] [clang-tools-extra] [flang] [lld] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-14 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/71771 >From 06c4cf02dfb4b20c8349c5f3c7209276f6d56edf Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 9 Nov 2023 02:21:46 + Subject: [PATCH 1/2] Fix clang to recognize new C23 modifiers %w and %wf when pri

[clang] [libcxx] [lldb] [llvm] [libc] [compiler-rt] [clang-tools-extra] [flang] [lld] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-14 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/71771 >From 06c4cf02dfb4b20c8349c5f3c7209276f6d56edf Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 9 Nov 2023 02:21:46 + Subject: [PATCH 1/3] Fix clang to recognize new C23 modifiers %w and %wf when pri

[flang] [compiler-rt] [clang-tools-extra] [lldb] [lld] [llvm] [libcxx] [clang] [libc] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-14 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/71771 >From 06c4cf02dfb4b20c8349c5f3c7209276f6d56edf Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 9 Nov 2023 02:21:46 + Subject: [PATCH 1/3] Fix clang to recognize new C23 modifiers %w and %wf when pri

[clang] [clang] Remove fixed point arithmetic error (PR #71884)

2023-11-14 Thread via cfe-commits
PiJoules wrote: > I'm happy with the basic idea here of making fixed-point an opt-in feature. > It'd be nice to preserve the special diagnostic that tells the user that they > need to use `-ffixed-point`, though. Do we have any existing parsing paths > that recognize unrecognized identifiers t

[libunwind] [libunwind] Fix an inconsistent indentation (NFC) (PR #72314)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Heejin Ahn (aheejin) Changes A fix was tried in https://github.com/llvm/llvm-project/commit/d080b5f1737b4040aa74a5614ae01338f28cd714 but the line is still inconsistent with the surrounding code. --- Full diff: https://github.com/llvm/

[libunwind] [libunwind] Fix an inconsistent indentation (NFC) (PR #72314)

2023-11-14 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 a40900211a9c187a69b0c3028056275387ce7f1a 6fdc1096db89073020ffb9daa248d0c18c8992ee --

[clang-tools-extra] a3d76b3 - [clang-tidy] fix match for binaryOperator in ExprMutationAnalyzer for misc-const-correctness (#70559)

2023-11-14 Thread via cfe-commits
Author: Julian Schmidt Date: 2023-11-14T23:00:18+01:00 New Revision: a3d76b3fa3f8641f515ea8bc5de0844e01f6d7cd URL: https://github.com/llvm/llvm-project/commit/a3d76b3fa3f8641f515ea8bc5de0844e01f6d7cd DIFF: https://github.com/llvm/llvm-project/commit/a3d76b3fa3f8641f515ea8bc5de0844e01f6d7cd.diff

[clang-tools-extra] 2602d88 - [clang-tidy] Improved readability-bool-conversion to be more consistent when using parentheses (#72068)

2023-11-14 Thread via cfe-commits
Author: Félix-Antoine Constantin Date: 2023-11-14T23:32:58+01:00 New Revision: 2602d888d99ddcffa55dc55099b9a4dec6fdb97e URL: https://github.com/llvm/llvm-project/commit/2602d888d99ddcffa55dc55099b9a4dec6fdb97e DIFF: https://github.com/llvm/llvm-project/commit/2602d888d99ddcffa55dc55099b9a4dec6f

[clang] 2c2f785 - [AIX] Disable flaky ClangScanDeps tests (#72304)

2023-11-14 Thread via cfe-commits
Author: Jake Egan Date: 2023-11-14T17:40:16-05:00 New Revision: 2c2f785a2936aed88af9f05961b5b7c0c28f29ca URL: https://github.com/llvm/llvm-project/commit/2c2f785a2936aed88af9f05961b5b7c0c28f29ca DIFF: https://github.com/llvm/llvm-project/commit/2c2f785a2936aed88af9f05961b5b7c0c28f29ca.diff LOG

[clang] [clang] Add `::_placement_new` expression for built-in global placement new (PR #72209)

2023-11-14 Thread via cfe-commits
https://github.com/MaxEW707 updated https://github.com/llvm/llvm-project/pull/72209 >From 75cf305fe732d00be910a6aa0afe79953c5b7186 Mon Sep 17 00:00:00 2001 From: MaxEW707 <82551778+maxew...@users.noreply.github.com> Date: Sun, 12 Nov 2023 11:36:58 -0500 Subject: [PATCH 1/2] Implement `::_placeme

[clang] [clang] Add `::_placement_new` expression for built-in global placement new (PR #72209)

2023-11-14 Thread via cfe-commits
https://github.com/MaxEW707 updated https://github.com/llvm/llvm-project/pull/72209 >From 75cf305fe732d00be910a6aa0afe79953c5b7186 Mon Sep 17 00:00:00 2001 From: MaxEW707 <82551778+maxew...@users.noreply.github.com> Date: Sun, 12 Nov 2023 11:36:58 -0500 Subject: [PATCH 1/3] Implement `::_placeme

[clang] 3dc098d - [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (#72305)

2023-11-14 Thread via cfe-commits
Author: Andres Villegas Date: 2023-11-14T16:39:04-08:00 New Revision: 3dc098d39215228ca78e99c100ed31b87e5bbdd6 URL: https://github.com/llvm/llvm-project/commit/3dc098d39215228ca78e99c100ed31b87e5bbdd6 DIFF: https://github.com/llvm/llvm-project/commit/3dc098d39215228ca78e99c100ed31b87e5bbdd6.dif

[compiler-rt] [clang-tools-extra] [llvm] [flang] [clang] [clang] Add `::_placement_new` expression for built-in global placement new (PR #72209)

2023-11-14 Thread via cfe-commits
https://github.com/MaxEW707 updated https://github.com/llvm/llvm-project/pull/72209 >From 75cf305fe732d00be910a6aa0afe79953c5b7186 Mon Sep 17 00:00:00 2001 From: MaxEW707 <82551778+maxew...@users.noreply.github.com> Date: Sun, 12 Nov 2023 11:36:58 -0500 Subject: [PATCH 1/3] Implement `::_placeme

[flang] [clang-tools-extra] [clang] [compiler-rt] [llvm] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-14 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/18] [clang] Add support for new loop attribute [[clang::code

[flang] [clang-tools-extra] [clang] [compiler-rt] [llvm] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-14 Thread via cfe-commits
@@ -0,0 +1,126 @@ +// RUN: %clang_cc1 -fsyntax-only -verify=expected,c-local -x c %s +// RUN: %clang_cc1 -fsyntax-only -verify=expected,cpp-local -pedantic -x c++ -std=c++11 %s + +void foo() { + int i; + int a[10], b[10]; + + [[clang::code_align(8)]] + for (i = 0; i < 10; ++i

[flang] [clang-tools-extra] [clang] [compiler-rt] [llvm] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-14 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/19] [clang] Add support for new loop attribute [[clang::code

[compiler-rt] [flang] [clang] [clang-tools-extra] [llvm] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-14 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/20] [clang] Add support for new loop attribute [[clang::code

[llvm] [clang] [clang-tools-extra] [InstCombine] Convert or concat to fshl if opposite or concat exists (PR #68502)

2023-11-14 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/68502 >From 5b3b1bbb5b263bc5711adde031d85b1461ccbab6 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Sat, 7 Oct 2023 13:48:32 +0800 Subject: [PATCH 1/5] [InstCombine] Refactor matchFunnelShift to allow more pattern

[clang] [MS-ABI] create unique vftable name for vftable defined with internal alias. (PR #71748)

2023-11-14 Thread via cfe-commits
https://github.com/jyu2-git updated https://github.com/llvm/llvm-project/pull/71748 >From 3313aca0622da3882a9e5bf304b89f28fecce7fe Mon Sep 17 00:00:00 2001 From: Jennifer Yu Date: Mon, 6 Nov 2023 20:51:39 -0800 Subject: [PATCH 1/3] [SEH] Fix assertin when return scalar value from __try block.

[clang] [MS-ABI] create unique vftable name for vftable defined with internal alias. (PR #71748)

2023-11-14 Thread via cfe-commits
https://github.com/jyu2-git edited https://github.com/llvm/llvm-project/pull/71748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MS-ABI] create unique vftable name for vftable defined with internal alias. (PR #71748)

2023-11-14 Thread via cfe-commits
jyu2-git wrote: Thanks @efriedma-quic and @rnk, both ideas should fix our problem. I am choosing @efriedma-quic's idea, since this has less impact for compile. I also tried @rnk's idea, I don't fell comfort by adding getAnonymousNamespaceHash’s string for all lambda name mangling. Thanks all!

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

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #72264. --- Full diff: https://github.com/llvm/llvm-project/pull/72336.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+2-5) - (modified) clang/unittests/Format/TokenAnnot

[clang] Supports viewing class member variables in lambda when using the vs debugger (PR #71564)

2023-11-14 Thread via cfe-commits
https://github.com/GkvJwa updated https://github.com/llvm/llvm-project/pull/71564 >From abbecea6a3cfbc3cf34b0c0935a6c1cfcf3a97b7 Mon Sep 17 00:00:00 2001 From: GkvJwa Date: Wed, 8 Nov 2023 01:37:19 +0800 Subject: [PATCH] Supports viewing class member in lambda when using the vs debugger Use "

[clang] Supports viewing class member variables in lambda when using the vs debugger (PR #71564)

2023-11-14 Thread via cfe-commits
https://github.com/GkvJwa updated https://github.com/llvm/llvm-project/pull/71564 >From 696560f25a8d3ac36c6c1614628cd91353409ea0 Mon Sep 17 00:00:00 2001 From: GkvJwa Date: Wed, 8 Nov 2023 01:37:19 +0800 Subject: [PATCH] Supports viewing class member in lambda when using the vs debugger Use "

[clang-tools-extra] [clangd] Improve BlockEnd inlay hints presentation (PR #72345)

2023-11-14 Thread via cfe-commits
https://github.com/daiyousei-qz created https://github.com/llvm/llvm-project/pull/72345 Including: 1. Explicitly state a function call 2. Print literal nullptr 3. Escape for abbreviated string 4. Adjust min line limit to 10 Fixes issue [clangd/clangd#1807](https://github.com/clangd/clangd/issue

[clang-tools-extra] [clangd] Improve BlockEnd inlay hints presentation (PR #72345)

2023-11-14 Thread via cfe-commits
https://github.com/daiyousei-qz edited https://github.com/llvm/llvm-project/pull/72345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Improve BlockEnd inlay hints presentation (PR #72345)

2023-11-14 Thread via cfe-commits
daiyousei-qz wrote: @HighCommander4 @sam-mccall for opinions. I haven't update the test because the hard-coded limit 10 makes it hard to write the tests. Any opinion of how to structure this? https://github.com/llvm/llvm-project/pull/72345 ___ cfe-co

[clang] [Clang] Fix finding instantiated decls for class template specializations during instantiation (PR #72346)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yuxuan Chen (yuxuanchen1997) Changes This change aims to fix https://github.com/llvm/llvm-project/issues/70375 It appears to me that the logic here should be handling specializations in general. Not just partial specialization. It also se

[clang] [Clang] counted_by attr can apply only to C99 flexible array members (PR #72347)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes Ensure that we're dealing only with C99 flexible array members. I.e. ones with incomplete types: struct s { int count; char array[]; /* note: no size specified */ }; --- Full diff: https://gi

[lldb] [clang-tools-extra] [clang] [llvm] Add new API in SBTarget for loading core from SBFile (PR #71769)

2023-11-14 Thread via cfe-commits
https://github.com/GeorgeHuyubo updated https://github.com/llvm/llvm-project/pull/71769 >From fd42e87a663754ca7273715ea40f397df41e3da0 Mon Sep 17 00:00:00 2001 From: George Hu Date: Wed, 8 Nov 2023 16:25:34 -0800 Subject: [PATCH] Add new API in SBTarget for loading core from SBFile --- lldb/i

[clang] 8434b0b - [Clang][RISCV] Introduce tuple types for RVV bfloat16 (#72216)

2023-11-14 Thread via cfe-commits
Author: Yueh-Ting (eop) Chen Date: 2023-11-15T13:50:14+08:00 New Revision: 8434b0b9d39b7ffcd1f7f7b5746151e293620e0d URL: https://github.com/llvm/llvm-project/commit/8434b0b9d39b7ffcd1f7f7b5746151e293620e0d DIFF: https://github.com/llvm/llvm-project/commit/8434b0b9d39b7ffcd1f7f7b5746151e293620e0

[clang] e2f8ec7 - [clang][Interp] Fix variables referring to their own address (#70587)

2023-11-14 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-15T08:03:06+01:00 New Revision: e2f8ec72555cf42fc74468c9ff686d29434780af URL: https://github.com/llvm/llvm-project/commit/e2f8ec72555cf42fc74468c9ff686d29434780af DIFF: https://github.com/llvm/llvm-project/commit/e2f8ec72555cf42fc74468c9ff686d29434780af.diff L

[clang] [clang][Analyzer][NFC] Use condition type for comparison in several checkers (PR #72358)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Shi (benshi001) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72358.diff 3 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp (+2-2) - (modified) clang/lib/StaticAnalyzer/Checkers/

[clang] f5b378b - [clang] Use new interpreter in EvaluateAsConstantExpr if requested (#70763)

2023-11-14 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-15T08:29:22+01:00 New Revision: f5b378b0d6e516a55fceee79d97c2cbfe58e7845 URL: https://github.com/llvm/llvm-project/commit/f5b378b0d6e516a55fceee79d97c2cbfe58e7845 DIFF: https://github.com/llvm/llvm-project/commit/f5b378b0d6e516a55fceee79d97c2cbfe58e7845.diff L

[clang] 9a9933f - [llvm][DebugInfo] DWARFv5: static data members declarations are DW_TAG_variable (#72234)

2023-11-15 Thread via cfe-commits
Author: Michael Buch Date: 2023-11-15T08:16:24Z New Revision: 9a9933fae23249fbf6cf5b3c090e630f578b7f98 URL: https://github.com/llvm/llvm-project/commit/9a9933fae23249fbf6cf5b3c090e630f578b7f98 DIFF: https://github.com/llvm/llvm-project/commit/9a9933fae23249fbf6cf5b3c090e630f578b7f98.diff LOG:

[clang] [Clang][RISCV] Introduce tuple types for RVV bfloat16 (PR #72216)

2023-11-15 Thread via cfe-commits
kda wrote: This commit seems to be breaking Sanitizer buildbots: https://lab.llvm.org/buildbot/#/builders/168/builds/16824 https://lab.llvm.org/buildbot/#/builders/74/builds/23531 https://lab.llvm.org/buildbot/#/builders/5/builds/38325 https://github.com/llvm/llvm-project/pull/72216 ___

[llvm] [clang-tools-extra] [clang] [MCP] Enhance MCP copy Instruction removal for special case (PR #70778)

2023-11-15 Thread via cfe-commits
https://github.com/LWenH updated https://github.com/llvm/llvm-project/pull/70778 >From a42f48a44c614f2c996f3f4cb0561e2f7ab35d6f Mon Sep 17 00:00:00 2001 From: LWenH <924105...@qq.com> Date: Tue, 31 Oct 2023 16:33:41 +0800 Subject: [PATCH 1/7] add pre commit test for later mcp patch --- llvm/tes

[clang] [clang-tools-extra] [llvm] [MCP] Enhance MCP copy Instruction removal for special case (PR #70778)

2023-11-15 Thread via cfe-commits
LWenH wrote: Resolve conflict test file: ``` /llvm/test/CodeGen/AMDGPU/load-constant-i1.ll ``` https://github.com/llvm/llvm-project/pull/70778 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] fix: compatible C++ empty record with align UB with gcc (PR #72197)

2023-11-15 Thread via cfe-commits
https://github.com/hstk30-hw edited https://github.com/llvm/llvm-project/pull/72197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [flang] [clang-tools-extra] [clang] [flang ]GETLOG runtime and extension implementation: get login username (PR #70917)

2023-11-15 Thread via cfe-commits
https://github.com/jeanPerier edited https://github.com/llvm/llvm-project/pull/70917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [llvm] [clang-tools-extra] [flang ]GETLOG runtime and extension implementation: get login username (PR #70917)

2023-11-15 Thread via cfe-commits
@@ -37,5 +75,19 @@ void FORTRAN_PROCEDURE_NAME(getarg)( (void)RTNAME(GetCommandArgument)( n, &value, nullptr, nullptr, __FILE__, __LINE__); } + +void FORTRAN_PROCEDURE_NAME(getlog)(std::int8_t *arg, std::int64_t length) { + std::array str; + int error = getlogin_r(str

[clang-tools-extra] [llvm] [flang] [clang] [flang ]GETLOG runtime and extension implementation: get login username (PR #70917)

2023-11-15 Thread via cfe-commits
@@ -37,5 +75,19 @@ void FORTRAN_PROCEDURE_NAME(getarg)( (void)RTNAME(GetCommandArgument)( n, &value, nullptr, nullptr, __FILE__, __LINE__); } + +void FORTRAN_PROCEDURE_NAME(getlog)(std::int8_t *arg, std::int64_t length) { + std::array str; + int error = getlogin_r(str

[clang-tools-extra] [llvm] [clang] [flang] [flang ]GETLOG runtime and extension implementation: get login username (PR #70917)

2023-11-15 Thread via cfe-commits
https://github.com/jeanPerier commented: Thanks a lot for the update and addressing my previous comments! https://github.com/llvm/llvm-project/pull/70917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [flang] [clang-tools-extra] [llvm] [flang ]GETLOG runtime and extension implementation: get login username (PR #70917)

2023-11-15 Thread via cfe-commits
@@ -13,6 +13,44 @@ #include "flang/Runtime/command.h" #include "flang/Runtime/descriptor.h" #include "flang/Runtime/io-api.h" +#include + +#ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN +#define NOMINMAX +#include + +#include // UNLEN=256 +#include // wcstombs_s +#include // w

[llvm] [clang] split load to bytes to deduce load value (PR #72364)

2023-11-15 Thread via cfe-commits
https://github.com/mohammed-nurulhoque created https://github.com/llvm/llvm-project/pull/72364 When the last clobbering write for a load doesn't cover the whole load (example below). AnalyzeLoadAvailability would give up. This emits temporary byte-sized loads that cover the original load, the

[llvm] [clang] split load to bytes to deduce load value (PR #72364)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-analysis Author: None (mohammed-nurulhoque) Changes When the last clobbering write for a load doesn't cover the whole load (example below). AnalyzeLoadAvailability would give up. This emits temporary byte-sized loads that cover the original load,

[llvm] [clang] split load to bytes to deduce load value (PR #72364)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (mohammed-nurulhoque) Changes When the last clobbering write for a load doesn't cover the whole load (example below). AnalyzeLoadAvailability would give up. This emits temporary byte-sized loads that cover the original load, then ru

[llvm] [clang] split load to bytes to deduce load value (PR #72364)

2023-11-15 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 dedf2c6bb5193652f6ad7d9ff9e676624c2485b7 41a9dbd39fbb866e7fc090f82d58ee6364a7cfda --

[clang] Revert "[Clang][RISCV] Introduce tuple types for RVV bfloat16 (#72216)" (PR #72367)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Yueh-Ting (eop) Chen (eopXD) Changes This reverts commit 8434b0b9d39b7ffcd1f7f7b5746151e293620e0d. #72216 This commit broke the multiple buildbots, looks like the extension in `NUM_PREDEF_TYPE_IDS` might have broken some inheriti

[clang] Revert "[Clang][RISCV] Introduce tuple types for RVV bfloat16 (#72216)" (PR #72367)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yueh-Ting (eop) Chen (eopXD) Changes This reverts commit 8434b0b9d39b7ffcd1f7f7b5746151e293620e0d. #72216 This commit broke the multiple buildbots, looks like the extension in `NUM_PREDEF_TYPE_IDS` might have broken some inheriting usage

[clang] 5107a47 - Revert "[Clang][RISCV] Introduce tuple types for RVV bfloat16 (#72216)" (#72367)

2023-11-15 Thread via cfe-commits
Author: Yueh-Ting (eop) Chen Date: 2023-11-15T18:05:07+08:00 New Revision: 5107a47fee9c95489d3743a53e9578407b0e3656 URL: https://github.com/llvm/llvm-project/commit/5107a47fee9c95489d3743a53e9578407b0e3656 DIFF: https://github.com/llvm/llvm-project/commit/5107a47fee9c95489d3743a53e9578407b0e365

[clang] 0f7f8db - [clang][analyzer] Restrict 'fopen' modeling to POSIX versions in SimpleStreamChecker (#72016)

2023-11-15 Thread via cfe-commits
Author: Ben Shi Date: 2023-11-15T18:17:32+08:00 New Revision: 0f7f8dbcf5ec06cb1ea8912ffd234523f60a61be URL: https://github.com/llvm/llvm-project/commit/0f7f8dbcf5ec06cb1ea8912ffd234523f60a61be DIFF: https://github.com/llvm/llvm-project/commit/0f7f8dbcf5ec06cb1ea8912ffd234523f60a61be.diff LOG:

<    11   12   13   14   15   16   17   18   19   20   >