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

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: Yueh-Ting (eop) Chen (eopXD) Changes This PR attempts to recommit the PR (#72216) with a safe-bounded TypeID that will not cause indeterminate results for the compiler. --- Full diff: https://github.com

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

2023-11-15 Thread via cfe-commits
@@ -163,7 +163,8 @@ class CopyTracker { /// Clobber a single register, removing it from the tracker's copy maps. void clobberRegister(MCRegister Reg, const TargetRegisterInfo &TRI, - const TargetInstrInfo &TII, bool UseCopyInstr) { +

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

2023-11-15 Thread via cfe-commits
@@ -784,18 +813,33 @@ void MachineCopyPropagation::ForwardCopyPropagateBlock(MachineBasicBlock &MBB) { // %xmm2 = copy %xmm0 // ... // %xmm2 = copy %xmm9 -Tracker.clobberRegister(Def, *TRI, *TII, UseCopyInstr); + +// While we do need to

[clang] faa3a5e - [clang][DebugInfo] DWARFv5: static data members declarations are DW_TAG_variable (#72235)

2023-11-15 Thread via cfe-commits
Author: Michael Buch Date: 2023-11-15T11:01:39Z New Revision: faa3a5ea9ae481da757dab1c95c589e2d5645982 URL: https://github.com/llvm/llvm-project/commit/faa3a5ea9ae481da757dab1c95c589e2d5645982 DIFF: https://github.com/llvm/llvm-project/commit/faa3a5ea9ae481da757dab1c95c589e2d5645982.diff LOG:

[lldb] [mlir] [openmp] [libc] [clang] [libcxx] [flang] [llvm] [clang-tools-extra] GlobalISel: Guard return in llvm::getIConstantSplatVal (PR #71989)

2023-11-15 Thread via cfe-commits
@@ -1116,9 +1116,9 @@ std::optional llvm::getIConstantSplatVal(const Register Reg, const MachineRegisterInfo &MRI) { if (auto SplatValAndReg = getAnyConstantSplat(Reg, MRI, /* AllowUndef */ false)) { -std::optional ValAndVReg = -getIConstantVRegValWithL

[clang-tools-extra] [clang-tidy] Add new modernize-string-find-startswith check (PR #72385)

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 2060bfcdc7eb704647c64bf925cdceb94c1f535f 5e5a2bac0f7373e6b1830fddc609e97dc61df9d4 --

[llvm] [clang] [clang-tools-extra] Dont alter cold function alignment unless using Os (PR #72387)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Phil Camp (FlameTop) Changes This PR alters the behaviour of function alignment for functions marked as 'cold'. Currently functions marked with a ‘cold’ attribute are also set as optimize by size. Optimize by size alters the function alig

[clang-tools-extra] [llvm] [clang] Dont alter cold function alignment unless using Os (PR #72387)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Phil Camp (FlameTop) Changes This PR alters the behaviour of function alignment for functions marked as 'cold'. Currently functions marked with a ‘cold’ attribute are also set as optimize by size. Optimize by size alters the functio

[llvm] [clang] [clang-tools-extra] Dont alter cold function alignment unless using Os (PR #72387)

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 2060bfcdc7eb704647c64bf925cdceb94c1f535f effbfe02b71638fe49dfc09423663f9077c4cc41 --

[clang] [APINotes] Upstream APINotesManager (PR #72389)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Egor Zhdan (egorzhdan) Changes This upstreams more of the Clang API Notes functionality that is currently implemented in the Apple fork: https://github.com/apple/llvm-project/tree/next/clang/lib/APINotes --- Patch is 35.64 KiB, truncate

[mlir] [llvm] [clang] [llvm] Improve implementation of StringRef::find_last_of and cie (PR #71865)

2023-11-15 Thread via cfe-commits
@@ -274,6 +278,23 @@ StringRef::size_type StringRef::find_first_not_of(StringRef Chars, /// Note: O(size() + Chars.size()) StringRef::size_type StringRef::find_last_of(StringRef Chars, size_t From) const { +#ifdef __SSE2__ + if (Ch

[clang] [lldb] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-15 Thread via cfe-commits
zmodem wrote: We're seeing crashes after this. Here is a reproducer: https://bugs.chromium.org/p/chromium/issues/detail?id=1502489#c1 Please consider reverting if it can't be fixed quickly (I had a look, but it seems there are some dependent changes on top). https://github.com/llvm/llvm-proje

[clang] 33b5158 - Replace usage of StringRef::find_last_of with a string literal of size one by the equivalent char literal

2023-11-15 Thread via cfe-commits
Author: serge-sans-paille Date: 2023-11-15T15:01:36+01:00 New Revision: 33b51588c5d51995909f1f0be0b47b1708dac4fa URL: https://github.com/llvm/llvm-project/commit/33b51588c5d51995909f1f0be0b47b1708dac4fa DIFF: https://github.com/llvm/llvm-project/commit/33b51588c5d51995909f1f0be0b47b1708dac4fa.d

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

2023-11-15 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/21] [clang] Add support for new loop attribute [[clang::code

[clang-tools-extra] [clang-tidy] Add new modernize-string-find-startswith check (PR #72385)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Nicolas van Kempen (nicovank) Changes Matchers are copied over from abseil-string-find-startswith, only the error message is different and suggests `std::{string|string_view}::starts_with` instead of the Abseil equivalent. --- Full

[clang] [llvm] [AArch64] Introduce the Armv9.5-A architecture version (PR #72392)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Lucas Duarte Prates (pratlucas) Changes This introduces the Armv9.5-A architecture version, including the relevant command-line option for -march. Mode details about the Armv9.5-A architecture version can

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

2023-11-15 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. The change is a straightforward, useful improvement. The failure of Modules/decl-params-determinisim.m (among the buildbot results) seems to be completely unrelated to this change. https://github.com/llvm/llvm-project/pull/72358 ___

[llvm] [clang] [AArch64] Introduce the Armv9.5-A architecture version (PR #72392)

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 b7b6d54004ef8a89dc3bad411f11a1ef93319a13 98ac417eff3ba114cc56241635917190930df266 --

[clang] [CUDA][HIP] make trivial ctor/dtor host device (PR #72394)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes Make trivial ctor/dtor implicitly host device functions so that they can be used to initialize file-scope device variables to match nvcc behavior. Fixes: https://github.com/llvm/llvm-project/issues/72261

[clang] [llvm] [AArch64] Add support for Cortex-A520, Cortex-A720 and Cortex-X4 CPUs (PR #72395)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-clang Author: Jonathan Thackray (jthackray) Changes Cortex-A520, Cortex-A720 and Cortex-X4 are Armv9.2 AArch64 CPUs. Technical Reference Manual for Cortex-A520: https://developer.arm.com/documentation/102517/lates

[llvm] [clang] [AArch64] Add support for Cortex-A520, Cortex-A720 and Cortex-X4 CPUs (PR #72395)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Jonathan Thackray (jthackray) Changes Cortex-A520, Cortex-A720 and Cortex-X4 are Armv9.2 AArch64 CPUs. Technical Reference Manual for Cortex-A520: https://developer.arm.com/documentation/102517/latest/ Technical Reference Manual

[llvm] [clang] [AArch64] Add support for Cortex-A520, Cortex-A720 and Cortex-X4 CPUs (PR #72395)

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 b7b6d54004ef8a89dc3bad411f11a1ef93319a13 2656af94138e61452f34b1a599fe1d54eee2aee9 --

[clang] [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (PR #71677)

2023-11-15 Thread via cfe-commits
serge-sans-paille wrote: @efriedma-quic : gentle ping :-) https://github.com/llvm/llvm-project/pull/71677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add missing LinkageSpec case to getCursorKindForDecl (PR #72401)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sebastian Poeplau (sebastianpoeplau) Changes The LinkageSpec case was omitted, and there is a declared CXCursor_Kind for it. Adapt the testsuite drivers to print mangled names for declarations with extern linkage. Also update the test bas

[clang] [libclang] Compute the right spelling location (PR #72400)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sebastian Poeplau (sebastianpoeplau) Changes Locations inside macro expansions have different spelling/expansion locations. Apply a FIXME to make the libclang function clang_getSpellingLocation return the right spelling location, and adap

[clang] [analyzer] Use AllocaRegion in MallocChecker (PR #72402)

2023-11-15 Thread via cfe-commits
https://github.com/DonatNagyE created https://github.com/llvm/llvm-project/pull/72402 ...to model the results of alloca() and _alloca() calls. Previously it acted as if these functions were returning memory from the heap, which led to alpha.security.ArrayBoundV2 producing incorrect messages.

[clang] [analyzer] Use AllocaRegion in MallocChecker (PR #72402)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: None (DonatNagyE) Changes ...to model the results of alloca() and _alloca() calls. Previously it acted as if these functions were returning memory from the heap, which led to alpha.security.Arr

[clang] [libclang] Compute the right spelling location (PR #72400)

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 ac378ac493426f8094cfaa176f1e88b62914f630 88b94c936257100e5400ad37273bb9d509ecfe3c --

[clang] 77ecb9a - [flang] Add dependent-lib option to flang -fc1 on Windows (#72121)

2023-11-15 Thread via cfe-commits
Author: David Truby Date: 2023-11-15T15:26:43Z New Revision: 77ecb9a49bb1640684c37f80ffe56bc54dae6502 URL: https://github.com/llvm/llvm-project/commit/77ecb9a49bb1640684c37f80ffe56bc54dae6502 DIFF: https://github.com/llvm/llvm-project/commit/77ecb9a49bb1640684c37f80ffe56bc54dae6502.diff LOG: [

[clang] [clang][Analyzer] Move checker 'alpha.unix.Errno' to 'unix.Errno'. (PR #69469)

2023-11-15 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. > > I also think that the > > [reports](https://codechecker-demo.eastus.cloudapp.azure.com/Default/report-detail?run=postgres_REL_13_0_errno_alpha_unix&newcheck=postgres_REL_13_0_errno_unix&is-unique=on&diff-type=New&report-id=3253666&rep

[clang] [clang][Analyzer] Move checker 'alpha.unix.Errno' to 'unix.Errno'. (PR #69469)

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

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

2023-11-15 Thread via cfe-commits
@@ -322,6 +322,81 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

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

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

[clang-tools-extra] [clang-tidy] Add new modernize-string-find-startswith check (PR #72385)

2023-11-15 Thread via cfe-commits
https://github.com/EugeneZelenko requested changes to this pull request. https://github.com/llvm/llvm-project/pull/72385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add new modernize-string-find-startswith check (PR #72385)

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

[clang-tools-extra] [clang-tidy] Add new modernize-string-find-startswith check (PR #72385)

2023-11-15 Thread via cfe-commits
@@ -0,0 +1,105 @@ +//===--- StringFindStartswithCheck.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] 1a09cfb - [Clang] counted_by attr can apply only to C99 flexible array members (#72347)

2023-11-15 Thread via cfe-commits
Author: Bill Wendling Date: 2023-11-15T08:27:06-08:00 New Revision: 1a09cfb2f35ddcb5d4ebe63be8eca74ea6ff4a0b URL: https://github.com/llvm/llvm-project/commit/1a09cfb2f35ddcb5d4ebe63be8eca74ea6ff4a0b DIFF: https://github.com/llvm/llvm-project/commit/1a09cfb2f35ddcb5d4ebe63be8eca74ea6ff4a0b.diff

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

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

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

2023-11-15 Thread via cfe-commits
Author: Heejin Ahn Date: 2023-11-15T11:34:15-05:00 New Revision: cb1a6392ce541b74a700d9440f7c0a832ca77d2b URL: https://github.com/llvm/llvm-project/commit/cb1a6392ce541b74a700d9440f7c0a832ca77d2b DIFF: https://github.com/llvm/llvm-project/commit/cb1a6392ce541b74a700d9440f7c0a832ca77d2b.diff LO

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

2023-11-15 Thread via cfe-commits
jyu2-git wrote: > I see unrelated changes on the branch? Otherwise LGTM This my first time using this new review. I need merge them in. I revert my first change add new one. But it seems it is not merged. https://github.com/llvm/llvm-project/pull/71748 __

[clang] [openmp] Fix ordering of processing of map clauses when mapping a struct. (PR #72410)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Gheorghe-Teodor Bercea (doru1004) Changes Mapping a struct, if done in the wrong order, can overwrite the pointer attachment details. This fixes this problem. Original failing example: ``` #include #include

[clang] [openmp] [Clang][OpenMP] Fix ordering of processing of map clauses when mapping a struct. (PR #72410)

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 cb1a6392ce541b74a700d9440f7c0a832ca77d2b 6f9450b5fa9ff47c35e7498b3a536a218655a9d6 --

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-15 Thread via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/71545 >From e2b6fa1cb088f2c3cf05a38959a3f3d34eda92c5 Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Tue, 7 Nov 2023 13:05:08 + Subject: [PATCH 1/3] [ARM] .fpu equals fpv5-d16 disables floating point MVE wh

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-15 Thread via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/71545 >From e2b6fa1cb088f2c3cf05a38959a3f3d34eda92c5 Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Tue, 7 Nov 2023 13:05:08 + Subject: [PATCH 1/4] [ARM] .fpu equals fpv5-d16 disables floating point MVE wh

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-15 Thread via cfe-commits
simpal01 wrote: @DavidSpickett i have removed the file arm-v8.1m-check-mve.ll and added a c file instead for testing clang/test/CodeGen/arm-v8.1m-check-mve.c. Mainly because to align with the structure of the current test files. https://github.com/llvm/llvm-project/pull/71545

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

2023-11-15 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/22] [clang] Add support for new loop attribute [[clang::code

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

2023-11-15 Thread via cfe-commits
@@ -322,6 +322,81 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [NFC] Cleanup and sort hlsl_intrinsics.h (PR #72414)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Chris B (llvm-beanz) Changes This is just a simple cleanup of hlsl_intrinsics.h. I've broken this into two commits to make it easier to follow during review. The first commit replaces the `__attribute__` annotations with preprocesso

[clang] [NFC] Cleanup and sort hlsl_intrinsics.h (PR #72414)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chris B (llvm-beanz) Changes This is just a simple cleanup of hlsl_intrinsics.h. I've broken this into two commits to make it easier to follow during review. The first commit replaces the `__attribute__` annotations with preprocessor macr

[clang] [clang][DebugInfo] Fix iterator invalidation during EmitGlobalVariable (PR #72415)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-debuginfo Author: Michael Buch (Michael137) Changes This patch fixes an issue introduced in https://github.com/llvm/llvm-project/pull/71780 where, if `EmitGlobalVariable` triggered a call to `CreateRecordStaticField` it would

[clang] 14a8451 - [clang][DebugInfo] Fix iterator invalidation during EmitGlobalVariable (#72415)

2023-11-15 Thread via cfe-commits
Author: Michael Buch Date: 2023-11-15T17:23:49Z New Revision: 14a84510f5d07b05b348188c7dfbe54076fa1485 URL: https://github.com/llvm/llvm-project/commit/14a84510f5d07b05b348188c7dfbe54076fa1485 DIFF: https://github.com/llvm/llvm-project/commit/14a84510f5d07b05b348188c7dfbe54076fa1485.diff LOG:

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

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: David Pagan (ddpagan) Changes IR for 'target teams loop' is now dependent on suitability of associated loop-nest. If a loop-nest: - does not contain a function call, or - the -fopenmp-assume-no-neste

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

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 ec64af5994213cf7933e961a2b7fe07193a77b61 8710c48fb90373ebd2afe1afa7399a6643b52c37 --

[clang] [APINotes] Upstream APINotesManager (PR #72389)

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 05f70f7987f6bb34393b6ea0781c1060234a22ea aa80c53b94e0d0a4ae86be41b47f8837a96b39d9 --

[clang] [lldb] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-15 Thread via cfe-commits
zmodem wrote: Thanks! https://github.com/llvm/llvm-project/pull/71780 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f0ad2e9 - [Driver] Make use of AddFilePathLibArgs() on NetBSD. (#71371)

2023-11-15 Thread via cfe-commits
Author: Brad Smith Date: 2023-11-15T13:36:16-05:00 New Revision: f0ad2e9fda5f78149198f67461e417d101318df5 URL: https://github.com/llvm/llvm-project/commit/f0ad2e9fda5f78149198f67461e417d101318df5 DIFF: https://github.com/llvm/llvm-project/commit/f0ad2e9fda5f78149198f67461e417d101318df5.diff LO

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

2023-11-15 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] [NFC] Cleanup and sort hlsl_intrinsics.h (PR #72414)

2023-11-15 Thread via cfe-commits
@@ -11,557 +11,614 @@ namespace hlsl { -__attribute__((availability(shadermodel, introduced = 6.0))) -__attribute__((clang_builtin_alias(__builtin_hlsl_wave_active_count_bits))) uint -WaveActiveCountBits(bool bBit); +// Note: Functions in this file are sorted alphabetically,

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

2023-11-15 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/23] [clang] Add support for new loop attribute [[clang::code

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

2023-11-15 Thread via cfe-commits
@@ -322,6 +322,79 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [clang] Enable --gcc-install-dir for RISCV baremetal toolchains (PR #71803)

2023-11-15 Thread via cfe-commits
abidh wrote: > Thanks for the pointer. However, the description doesn't appear to have > sufficient information to justify the `--gcc-toolchain=` dependent decision. > A toolchain should be selected completely from the target triple. I think > `RISCVToolChain` should be adjusted to either sele

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

2023-11-15 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/24] [clang] Add support for new loop attribute [[clang::code

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-15 Thread via cfe-commits
https://github.com/schenker updated https://github.com/llvm/llvm-project/pull/71974 >From dabfdee1a982000605e4b33930ba433c63d1684f Mon Sep 17 00:00:00 2001 From: Thomas Schenker Date: Fri, 10 Nov 2023 18:58:26 +0100 Subject: [PATCH 1/4] [clang-tidy] bugprone-assert-side-effect non-const operat

[clang] [clang][AST] Invalidate DecompositionDecl if it has invalid initializer. (PR #72428)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Fix #67495, #72198 CC @ADKaster, @ecnelises --- Full diff: https://github.com/llvm/llvm-project/pull/72428.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaDecl.cpp (+9) - (modified) clang/test/AST/as

[clang] [clang-tools-extra] [llvm] [MS-ABI] skip generate comdat for vftable defined with internal alias. (PR #71748)

2023-11-15 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] [flang] [llvm] [clang-tools-extra] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-15 Thread via cfe-commits
@@ -322,6 +322,90 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] d0ae239 - Add RunTimeLang to Class and Enumeration DIBuilder functions (#72011)

2023-11-15 Thread via cfe-commits
Author: Augusto Noronha Date: 2023-11-15T12:46:06-08:00 New Revision: d0ae2391897033c50225a20fd3024816dffd80b6 URL: https://github.com/llvm/llvm-project/commit/d0ae2391897033c50225a20fd3024816dffd80b6 DIFF: https://github.com/llvm/llvm-project/commit/d0ae2391897033c50225a20fd3024816dffd80b6.dif

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

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

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

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

[llvm] [clang] [AArch64] Add support for Cortex-A520, Cortex-A720 and Cortex-X4 CPUs (PR #72395)

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 c70f6fc4f4c33656b2048e37c287d5c811f413b2 07b24207d100ac7d5deac76543c01710b8cab79e --

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-15 Thread via cfe-commits
https://github.com/schenker updated https://github.com/llvm/llvm-project/pull/71974 >From dabfdee1a982000605e4b33930ba433c63d1684f Mon Sep 17 00:00:00 2001 From: Thomas Schenker Date: Fri, 10 Nov 2023 18:58:26 +0100 Subject: [PATCH 1/5] [clang-tidy] bugprone-assert-side-effect non-const operat

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

2023-11-15 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/25] [clang] Add support for new loop attribute [[clang::code

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

2023-11-15 Thread via cfe-commits
@@ -322,6 +322,90 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-15 Thread via cfe-commits
https://github.com/schenker updated https://github.com/llvm/llvm-project/pull/71974 >From 1f6e70ef97ba1bf90c829c212c6c1e09be4961f4 Mon Sep 17 00:00:00 2001 From: Thomas Schenker Date: Fri, 10 Nov 2023 18:58:26 +0100 Subject: [PATCH 1/5] [clang-tidy] bugprone-assert-side-effect non-const operat

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

2023-11-15 Thread via cfe-commits
@@ -322,6 +322,90 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

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

2023-11-15 Thread via cfe-commits
@@ -322,6 +322,90 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[llvm] [clang] [LinkerWrapper] Support device binaries in multiple link jobs (PR #72442)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-binary-utilities Author: Joseph Huber (jhuber6) Changes Summary: Currently the linker wrapper strictly assigns a single input binary to a single link job based off of its input architecture. This is not sufficient to implement the AMDGPU target ID c

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

2023-11-15 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/26] [clang] Add support for new loop attribute [[clang::code

[lldb] [clang] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-15 Thread via cfe-commits
dyung wrote: Hi @Michael137, we are seeing a failure in one of our internal tests that I bisected back to this change. Consider the following code: ```C++ struct X { static const int constant = 1; int x; X() { x = constant; } }; const int X::constant; int main() { X x; x.x

[clang-tools-extra] [clang] [llvm] [MS-ABI] skip generate comdat for vftable defined with internal alias. (PR #71748)

2023-11-15 Thread via cfe-commits
@@ -125,9 +125,9 @@ // MS-TYPEMETADATA: comdat($"??_7B@@6B0@@"), !type [[B8:![0-9]+]] // MS-TYPEMETADATA: comdat($"??_7B@@6BA@@@"), !type [[A8]] // MS-TYPEMETADATA: comdat($"??_7C@@6B@"), !type [[A8]] -// MS-TYPEMETADATA: comdat($"??_7D@?A0x{{[^@]*}}@@6BB@@@"), !type [[B8]], !

[lldb] [clang] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-15 Thread via cfe-commits
dyung wrote: > > Hi @Michael137, we are seeing a failure in one of our internal tests that I > > bisected back to this change. Consider the following code: > > ```c++ > > struct X > > { > > static const int constant = 1; > > int x; > > > > X() { x = constant; } > > }; > > const int

[clang] b04664b - [clang-format] Handle constrained auto in QualifierAlignment (#72251)

2023-11-15 Thread via cfe-commits
Author: Owen Pan Date: 2023-11-15T14:28:37-08:00 New Revision: b04664be6f484551ba34e5e34c511e77d5af709a URL: https://github.com/llvm/llvm-project/commit/b04664be6f484551ba34e5e34c511e77d5af709a DIFF: https://github.com/llvm/llvm-project/commit/b04664be6f484551ba34e5e34c511e77d5af709a.diff LOG:

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

2023-11-15 Thread via cfe-commits
Author: Owen Pan Date: 2023-11-15T14:31:30-08:00 New Revision: eaff083035c86e32bd220fef5a2fab47117b70c1 URL: https://github.com/llvm/llvm-project/commit/eaff083035c86e32bd220fef5a2fab47117b70c1 DIFF: https://github.com/llvm/llvm-project/commit/eaff083035c86e32bd220fef5a2fab47117b70c1.diff LOG:

[clang-tools-extra] [clang] [llvm] [MS-ABI] skip generate comdat for vftable defined with internal alias. (PR #71748)

2023-11-15 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/4] [SEH] Fix assertin when return scalar value from __try block.

[clang] [lldb] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-15 Thread via cfe-commits
dyung wrote: > > The member is const with an initializer in-class. How is the constant value > > not available for the definition? > > Right, it is available, we just don't attach it if we have a location for it. > Don't see why we couldn't put it on the definition if we have the constant on

[clang] [X86][AVX10] Fix a bug when using -march with no-evex512 attribute (PR #72126)

2023-11-15 Thread via cfe-commits
ronlieb wrote: thanks for the fix, working great now. https://github.com/llvm/llvm-project/pull/72126 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang codegen][regression] Add dso_local/hidden/etc. markings to VTT definitions and declarations (PR #72452)

2023-11-15 Thread via cfe-commits
https://github.com/bd1976bris created https://github.com/llvm/llvm-project/pull/72452 https://reviews.llvm.org/D128482 regressed certain cases of VTT emission which are no longer hidden with -fvisibility=hidden. Fix this regression by marking both declarations and definitions. Fixes [clang co

[clang] d5af076 - [clang][analyzer] Support `fputc` in StreamChecker (#71518)

2023-11-15 Thread via cfe-commits
Author: Ben Shi Date: 2023-11-16T07:36:57+08:00 New Revision: d5af076a99b625b4caf0b72b97ee6c88af6f4ba4 URL: https://github.com/llvm/llvm-project/commit/d5af076a99b625b4caf0b72b97ee6c88af6f4ba4 DIFF: https://github.com/llvm/llvm-project/commit/d5af076a99b625b4caf0b72b97ee6c88af6f4ba4.diff LOG:

[clang] [clang codegen][regression] Add dso_local/hidden/etc. markings to VTT definitions and declarations (PR #72452)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: bd1976bris (bd1976bris) Changes https://reviews.llvm.org/D128482 regressed certain cases of VTT emission which are no longer hidden with -fvisibility=hidden. Fix this regression by marking both declarations and definitions. Fixes [clang

[clang] [clang codegen][regression] Add dso_local/hidden/etc. markings to VTT definitions and declarations (PR #72452)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: bd1976bris (bd1976bris) Changes https://reviews.llvm.org/D128482 regressed certain cases of VTT emission which are no longer hidden with -fvisibility=hidden. Fix this regression by marking both declarations and definitions. Fixes

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

2023-11-15 Thread via cfe-commits
Author: Ben Shi Date: 2023-11-16T07:37:33+08:00 New Revision: 917a550f4d7aaa79b04ed8998a45695a29f0f748 URL: https://github.com/llvm/llvm-project/commit/917a550f4d7aaa79b04ed8998a45695a29f0f748 DIFF: https://github.com/llvm/llvm-project/commit/917a550f4d7aaa79b04ed8998a45695a29f0f748.diff LOG:

[clang] [clang codegen][regression] Add dso_local/hidden/etc. markings to VTT definitions and declarations (PR #72452)

2023-11-15 Thread via cfe-commits
https://github.com/bd1976bris updated https://github.com/llvm/llvm-project/pull/72452 >From f6e400224b3a90b4ec47bce2212a8e760b0fe9d8 Mon Sep 17 00:00:00 2001 From: Ben Dunbobbin Date: Wed, 15 Nov 2023 23:09:41 + Subject: [PATCH] [clang codegen] Add dso_local/hidden/etc. markings to VTT def

[libunwind] b7a249d - [libunwind] Remove unnecessary strcpy dependency (#72043)

2023-11-15 Thread via cfe-commits
Author: Michael Kenzel Date: 2023-11-15T18:41:53-05:00 New Revision: b7a249d26fe61432050df470d23bdea417fda574 URL: https://github.com/llvm/llvm-project/commit/b7a249d26fe61432050df470d23bdea417fda574 DIFF: https://github.com/llvm/llvm-project/commit/b7a249d26fe61432050df470d23bdea417fda574.diff

[clang-tools-extra] [llvm] [clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-15 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/68344 >From 1eb1638a12c619febf1fe9830f34e51a56d4c20e Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Thu, 5 Oct 2023 19:19:47 + Subject: [PATCH] [clang] Ensure fixed point conversions work in C++ --- clang/inc

[clang] [clang-format] Handle lambdas in QualifierAlignment (PR #72456)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #62780. --- Full diff: https://github.com/llvm/llvm-project/pull/72456.diff 3 Files Affected: - (modified) clang/lib/Format/QualifierAlignmentFixer.cpp (+9-3) - (modified) clang/lib/Format/Qualifi

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

2023-11-15 Thread via cfe-commits
HaohaiWen wrote: > > Thanks for the updated example! > > > > To explain what I meant in first comment using this example: We would > > perform the transform https://alive2.llvm.org/ce/z/nllcB_, which does not > > depend at all on how `%yx` is constructed, and whether there is any way to > > f

[clang] 1c93781 - Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (#72370)

2023-11-15 Thread via cfe-commits
Author: Yueh-Ting (eop) Chen Date: 2023-11-16T08:25:54+08:00 New Revision: 1c93781918135b16b19f7a9758040e0e18420617 URL: https://github.com/llvm/llvm-project/commit/1c93781918135b16b19f7a9758040e0e18420617 DIFF: https://github.com/llvm/llvm-project/commit/1c93781918135b16b19f7a9758040e0e1842061

[llvm] [clang-tools-extra] [clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-15 Thread via cfe-commits
@@ -156,7 +156,8 @@ ImplicitConversionRank clang::GetConversionRank(ImplicitConversionKind Kind) { // it was omitted by the patch that added // ICK_Zero_Queue_Conversion ICR_C_Conversion, -ICR_C_Conversion_Extension +ICR_C_

[llvm] [clang-tools-extra] [clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-15 Thread via cfe-commits
@@ -2192,6 +2194,9 @@ static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType, From->isIntegerConstantExpr(S.getASTContext())) { SCS.Second = ICK_Compatible_Conversion; FromType = ToType; + } else if (ToType->isFixedPointType() || FromType->

[clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-15 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/68344 >From 6eb6d223644f09e6c307856a2ddb71d65d06968d Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Thu, 5 Oct 2023 19:19:47 + Subject: [PATCH] [clang] Ensure fixed point conversions work in C++ --- clang/inc

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