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

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

[clang] 2c65860 - [clang] Remove fixed point arithmetic error (#71884)

2023-11-13 Thread via cfe-commits
Author: PiJoules Date: 2023-11-13T12:31:49-08:00 New Revision: 2c65860667e202e182264d5c6dfe4c2961542f7d URL: https://github.com/llvm/llvm-project/commit/2c65860667e202e182264d5c6dfe4c2961542f7d DIFF: https://github.com/llvm/llvm-project/commit/2c65860667e202e182264d5c6dfe4c2961542f7d.diff LOG:

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

2023-11-13 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-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-13 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-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-13 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-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-13 Thread via cfe-commits
@@ -41,6 +41,10 @@ AST_MATCHER_P2(Expr, hasSideEffect, bool, CheckFunctionCalls, } if (const auto *OpCallExpr = dyn_cast(E)) { +if (const auto *FuncDecl = OpCallExpr->getDirectCallee()) + if (const auto *MethodDecl = dyn_cast(FuncDecl)) +return !MethodDecl

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

2023-11-13 Thread via cfe-commits
@@ -322,6 +322,66 @@ 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] [flang] [clang-tools-extra] [clang] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

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

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

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

2023-11-13 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] [clang] Add __has_feature(swiftcc) that checks whether the target supports the Swift calling convention (PR #72159)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kuba (Brecka) Mracek (kubamracek) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72159.diff 1 Files Affected: - (modified) clang/include/clang/Basic/Features.def (+3) ``diff diff --git a/clang/include/clang

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

2023-11-13 Thread via cfe-commits
https://github.com/smanna12 deleted 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] bugprone-assert-side-effect non-const operator methods (PR #71974)

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

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

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

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

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

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

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

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

2023-11-13 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-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-13 Thread via cfe-commits
schenker wrote: @PiotrZSL I changed some things, please take another look. All const operator calls are now considered to be side-effect free. This also fixes some false-positives, e.g. ``` struct t { int operator+=(int i) const { return i; } } t; assert(t += 1); ``` is no longer reported.

[clang] 7fb606e - [Clang] Fix a crash when using ast-dump=json (#70224)

2023-11-13 Thread via cfe-commits
Author: elizabethandrews Date: 2023-11-13T16:39:40-05:00 New Revision: 7fb606e9feb9a4f23acf96ccf73ae676ca883828 URL: https://github.com/llvm/llvm-project/commit/7fb606e9feb9a4f23acf96ccf73ae676ca883828 DIFF: https://github.com/llvm/llvm-project/commit/7fb606e9feb9a4f23acf96ccf73ae676ca883828.di

[clang] [Clang] Fix a crash when using ast-dump=json (PR #70224)

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

[clang] fff993b - [clang-format] Fix a bug in aligning comments in vector of structs (#72099)

2023-11-13 Thread via cfe-commits
Author: Owen Pan Date: 2023-11-13T13:41:01-08:00 New Revision: fff993b7cfd01f733216bd81d2a18838b7a4a97f URL: https://github.com/llvm/llvm-project/commit/fff993b7cfd01f733216bd81d2a18838b7a4a97f DIFF: https://github.com/llvm/llvm-project/commit/fff993b7cfd01f733216bd81d2a18838b7a4a97f.diff LOG:

[clang] [clang-format] Skip alignArrayInitializers() for 1-row matrices (PR #72166)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #68431. --- Full diff: https://github.com/llvm/llvm-project/pull/72166.diff 2 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.h (+1-1) - (modified) clang/unittests/Format/FormatTes

[clang] [ARC][Documentation] Explicitly state that messaging weak objects keeps a strong reference during call lifetime (PR #72169)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Akira Hatanaka (ahatanak) Changes rdar://113636046 --- Full diff: https://github.com/llvm/llvm-project/pull/72169.diff 1 Files Affected: - (modified) clang/docs/AutomaticReferenceCounting.rst (+15-2) ``diff diff --git a/clang

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

2023-11-13 Thread via cfe-commits
https://github.com/ronlieb unassigned 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] [X86][AVX10] Fix a bug when using -march with no-evex512 attribute (PR #72126)

2023-11-13 Thread via cfe-commits
ronlieb wrote: ok to land, 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] [X86][AVX10] Fix a bug when using -march with no-evex512 attribute (PR #72126)

2023-11-13 Thread via cfe-commits
https://github.com/ronlieb approved this pull request. 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

[llvm] [clang] [RFC] Introducing `__builtin_consistent` to generate AArch64 BC.cond … (PR #72175)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-spir-v Author: Pavel Iliin (ilinpv) Changes …instructions The patch adds new `__builtin_consistent` which when used with control flow conditions provides a hint to compiler that branch or switch is very unlikely to change direction. The hint i

[llvm] [clang] [RFC] Introducing `__builtin_consistent` to generate AArch64 BC.cond … (PR #72175)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-msp430 @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-backend-amdgpu Author: Pavel Iliin (ilinpv) Changes …instructions The patch adds new `__builtin_consistent` which when used with control flow co

[clang] [analyzer] Switch to PostStmt callbacks in ArrayBoundV2 (PR #72107)

2023-11-13 Thread via cfe-commits
DonatNagyE wrote: I ran an analysis that compares this commit with its parent on many open source projects. The results revealed that this commit "converts" many alpha.security.ArrayBound (V1) results into alpha.security.ArrayBoundV2 results because (if I understand it correctly) the new `Post

[clang] [llvm] [clang-tools-extra] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-13 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] Fix clang to recognize new C23 modifiers %w and %wf when printin

[clang] [llvm] [clang-tools-extra] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-13 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] [flang] [clang-tools-extra] [llvm] [libc] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-13 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] 731152e - [clang][DependencyScanner] Remove all warning flags when suppressing warnings (#71612)

2023-11-13 Thread via cfe-commits
Author: Michael Spencer Date: 2023-11-13T16:45:38-08:00 New Revision: 731152e18fa757aac213da0b3f10629ef05a7311 URL: https://github.com/llvm/llvm-project/commit/731152e18fa757aac213da0b3f10629ef05a7311 DIFF: https://github.com/llvm/llvm-project/commit/731152e18fa757aac213da0b3f10629ef05a7311.dif

[clang] [llvm] [clang][llvm][fatlto] Avoid cloning modules in FatLTO (PR #72180)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lto @llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) Changes https://github.com/llvm/llvm-project/issues/70703 pointed out that cloning LLVM modules could lead to miscompiles when using FatLTO. This is due to an existing issue when cloning modul

[clang] [llvm] [flang] [DebugInfo] Move jump table test to X86 directory (PR #72118)

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

[clang] [llvm] [clang][llvm][fatlto] Avoid cloning modules in FatLTO (PR #72180)

2023-11-13 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 731152e18fa757aac213da0b3f10629ef05a7311 061650962e36a9826de55770a51815ebd5a42fc9 --

[flang] [mlir] [clang] [clang-tools-extra] [llvm] [lldb] [compiler-rt] [CodeGen][DebugInfo] Add missing debug info for jump table BB (PR #71021)

2023-11-13 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/71021 >From 1be56cf6541d34e4e2ead3f4b3d3ce482d69f68f Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Thu, 2 Nov 2023 12:14:15 +0800 Subject: [PATCH 1/4] [DebugInfo] Add debug info test for jump table Test whether ju

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

2023-11-13 Thread via cfe-commits
https://github.com/hstk30-hw created https://github.com/llvm/llvm-project/pull/72197 About https://github.com/llvm/llvm-project/issues/69872 , just for compatible C++ empty record with align UB with gcc https://godbolt.org/z/qsze8fqra >From 84472eea164fe78e061e6c85a4f3a7874c5957a3 Mon Sep 1

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

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (hstk30-hw) Changes About https://github.com/llvm/llvm-project/issues/69872 , just for compatible C++ empty record with align UB with gcc https://godbolt.org/z/qsze8fqra --- Full diff: https://github.com/llvm/llvm-project/

[clang] 5079b27 - [ARC][Documentation] Explicitly state that messaging weak objects keeps a strong reference during call lifetime (#72169)

2023-11-13 Thread via cfe-commits
Author: Akira Hatanaka Date: 2023-11-13T18:53:15-08:00 New Revision: 5079b27c55137d58ca5f8048248c852d088be55c URL: https://github.com/llvm/llvm-project/commit/5079b27c55137d58ca5f8048248c852d088be55c DIFF: https://github.com/llvm/llvm-project/commit/5079b27c55137d58ca5f8048248c852d088be55c.diff

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

2023-11-13 Thread via cfe-commits
hstk30-hw wrote: @AaronBallman @erichkeane Check it plz. 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

[clang] [clang] Add per-global code model attribute (PR #72078)

2023-11-13 Thread via cfe-commits
@@ -3369,6 +3369,23 @@ static void handleSectionAttr(Sema &S, Decl *D, const ParsedAttr &AL) { } } +static void handleCodeModelAttr(Sema &S, Decl *D, const ParsedAttr &AL) { + StringRef Model; + SourceLocation LiteralLoc; + // Check that it is a string. + if (!S.checkSt

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

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

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

2023-11-13 Thread via cfe-commits
@@ -322,6 +322,66 @@ 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

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

2023-11-13 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

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

2023-11-13 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] [clang] Sema::isSimpleTypeSpecifier return true for _Bool in c99 (PR #72204)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Carl Peto (carlos4242) Changes Currently returns false for _Bool, regardless of C dialect. Fixes #72203. I'm unsure how to add a unit test for this? I am open to suggestions! @AaronBallman --- Full diff: https://github.com/llvm/llvm-pr

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

2023-11-13 Thread via cfe-commits
https://github.com/MaxEW707 created https://github.com/llvm/llvm-project/pull/72209 https://godbolt.org/z/7Khh33fxo for reference Background I work on a large software project where debug performance and compile-time performance are considered high priority. Clang has already done a lot

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

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: None (MaxEW707) Changes https://godbolt.org/z/7Khh33fxo for reference Background I work on a large software project where debug performance and compile-t

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

2023-11-13 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 1609f1c2a5ecc0e0e28f433ec9205122478ddaa3 75cf305fe732d00be910a6aa0afe79953c5b7186 --

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

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

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

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

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

2023-11-13 Thread via cfe-commits
https://github.com/GkvJwa updated https://github.com/llvm/llvm-project/pull/71564 >From 6698e36f62b5171ee33a756d4c649a76803137aa 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] Templated equals take 2 (PR #72213)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72213.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+21) - (modified) clang/lib/Sema/SemaOverload.cpp (+22-10) - (modified) c

[clang] Templated equals take 2 (PR #72213)

2023-11-13 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 c14602b318f2d439af254710095684c1f5a8a386 79181efd0d7aef1b8396d44cdf40c0dfa4054984 --

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

2023-11-13 Thread via cfe-commits
@@ -2605,6 +2605,9 @@ CodeViewDebug::lowerRecordFieldList(const DICompositeType *Ty) { MemberBaseType = TypeTable.writeLeafType(BFR); } uint64_t MemberOffsetInBytes = MemberOffsetInBits / 8; +if (Ty->getName().find("`, # overloads = 2, overload list = 0x4658

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

2023-11-13 Thread via cfe-commits
Author: Phoebe Wang Date: 2023-11-14T15:15:34+08:00 New Revision: 451c594bcbe528a44312cb698d78145c3ef18fa1 URL: https://github.com/llvm/llvm-project/commit/451c594bcbe528a44312cb698d78145c3ef18fa1 DIFF: https://github.com/llvm/llvm-project/commit/451c594bcbe528a44312cb698d78145c3ef18fa1.diff L

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

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yueh-Ting (eop) Chen (eopXD) Changes The first commit extends the capacity from the compiler infrastructure, and the second commit continues the effort in #71140 to introduce tuple types for bfloat16. --- Full diff: https://github.com/ll

[clang] [Driver] Default LoongArch to -fno-direct-access-external-data for non-PIC (PR #72221)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes For -fno-pic, if an extern variable is defined in a DSO, a copy relocation will be needed. However, loongarch*-linux does not and will not support copy relocations. Change Dr

[clang] [Driver] Default LoongArch to -fno-direct-access-external-data for non-PIC (PR #72221)

2023-11-14 Thread via cfe-commits
https://github.com/heiher approved this pull request. LGTM. Thank you. https://github.com/llvm/llvm-project/pull/72221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Don't imply -fdirect-access-external-data for non-PIC (PR #71887)

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

[clang] 47eeee2 - [Driver] Default LoongArch to -fno-direct-access-external-data for non-PIC (#72221)

2023-11-14 Thread via cfe-commits
Author: Fangrui Song Date: 2023-11-14T00:43:40-08:00 New Revision: 47297775347cbdb7624d6a766c2a3eec4a59 URL: https://github.com/llvm/llvm-project/commit/47297775347cbdb7624d6a766c2a3eec4a59 DIFF: https://github.com/llvm/llvm-project/commit/47297775347cbdb7624d6a766c2a3eec4a59.diff

[clang] [Sema] Check nullness of captured type before use (PR #72230)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiu Chaofan (ecnelises) Changes Fixes #72198 --- Full diff: https://github.com/llvm/llvm-project/pull/72230.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaExpr.cpp (+2) - (modified) clang/test/SemaCXX/lambda-invalid-capture.cp

[clang] 41fe5c9 - [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (#71373)

2023-11-14 Thread via cfe-commits
Author: Balázs Kéri Date: 2023-11-14T10:58:05+01:00 New Revision: 41fe5c9a08f585a548ccf917804d67c79abcd3c3 URL: https://github.com/llvm/llvm-project/commit/41fe5c9a08f585a548ccf917804d67c79abcd3c3 DIFF: https://github.com/llvm/llvm-project/commit/41fe5c9a08f585a548ccf917804d67c79abcd3c3.diff L

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

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes This patch adds the LLVM-side infrastructure to implement DWARFv5 issue 161118.1: "DW_TAG for C++ static data members". The clang-side of this patch will simply construct the DIDerivedType with a differe

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

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Michael Buch (Michael137) Changes This patch implements the DWARFv5 issue 161118.1: "DW_TAG for C++ static data members". This will simplify LLDB's handling of static data members greatly in the long term since we no longer need to

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-11-14 Thread via cfe-commits
https://github.com/tomekpaszek updated https://github.com/llvm/llvm-project/pull/70338 >From b5ba0b3fde2c6662e19dfdf96a787621ec767460 Mon Sep 17 00:00:00 2001 From: Tomek Paszek Date: Sat, 11 Nov 2023 19:38:00 +0100 Subject: [PATCH 1/8] Added an option to ignore macro definitions. --- clang/i

[clang] [clang][ASTImporter] Improve structural equivalence of overloadable operators. (PR #72242)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Balázs Kéri (balazske) Changes Operators that are overloadable may be parsed as `CXXOperatorCallExpr` or as `UnaryOperator` (or `BinaryOperator`). This depends on the context and can be different if a similar construct is imported into an

[clang] cc12449 - [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (#71795)

2023-11-14 Thread via cfe-commits
Author: Matthew Devereau Date: 2023-11-14T11:27:41Z New Revision: cc1244980b74f45a06e2002a33444ce757b577aa URL: https://github.com/llvm/llvm-project/commit/cc1244980b74f45a06e2002a33444ce757b577aa DIFF: https://github.com/llvm/llvm-project/commit/cc1244980b74f45a06e2002a33444ce757b577aa.diff L

[clang] [clang][Interp] Implement __builtin_clrsb (PR #72243)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72243.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/InterpBuiltin.cpp (+16) - (modified) clang/test/AST/Interp/builtin-functions.cpp (+

[clang] 6353787 - ExtractAPI: use zero-based indices for line/column in symbol graph (#71753)

2023-11-14 Thread via cfe-commits
Author: QuietMisdreavus Date: 2023-11-14T11:46:12Z New Revision: 63537872aefe845ba40770112d0a2cf0927f27b8 URL: https://github.com/llvm/llvm-project/commit/63537872aefe845ba40770112d0a2cf0927f27b8 DIFF: https://github.com/llvm/llvm-project/commit/63537872aefe845ba40770112d0a2cf0927f27b8.diff LO

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-11-14 Thread via cfe-commits
https://github.com/tomekpaszek updated https://github.com/llvm/llvm-project/pull/70338 >From b5ba0b3fde2c6662e19dfdf96a787621ec767460 Mon Sep 17 00:00:00 2001 From: Tomek Paszek Date: Sat, 11 Nov 2023 19:38:00 +0100 Subject: [PATCH 1/9] Added an option to ignore macro definitions. --- clang/i

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

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

[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 c014adafc88625e1f513494400f74a155f344cd4 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] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust created https://github.com/llvm/llvm-project/pull/72257 We can simplify this function and move some calculations out of loop. >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: thyecust (thyecust) Changes We can simplify this function and move some calculations out of loop. --- Full diff: https://github.com/llvm/llvm-project/pull/72257.diff 1 Files Affected: - (modified) clang/lib/Analysis/ReachableCode.cpp (+

[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 60fca5e4300aa88f18daa53f86b56a764834515a 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] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

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 daddf402d9a4e3bacc37098d990e56dc9957ca3e 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 --

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/2] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/3] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[clang] [clang][Interp] Fix classify for glvalues of function type (PR #72269)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This can't be tested right now but will show up once we use the new interpreter in evaluateAsConstantExpression() as well. Pulled out from https://github.com/llvm/llvm-project/pull/70763 --- Full diff: http

[clang] 216dfd5 - [clang][Interp] Fix stack peek offset for This ptr (#70663)

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

[flang] [llvm] [clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/3] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[clang] [AArch64][SME2] Enable CLAMP multi-vector builtins for SME2 (PR #72272)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Thing change add builtins for SME2: sclamp.single.x2 uclamp.single.x2 fclamp.single.x2 sclamp.single.x4 uclamp.single.x4 fclamp.single.x4 Patch by: Hassnaa Hamdi

[clang] [llvm] Add SME2 builtins for zero { zt0 } (PR #72274)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matthew Devereau (MDevereau) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72274.diff 8 Files Affected: - (modified) clang/include/clang/Basic/arm_sme.td (+5) - (added) clang/test/CodeGen/aarch64-sme2-intrinsics/acl

[llvm] [clang-tools-extra] [compiler-rt] [clang] [flang] [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

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

2023-11-14 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] [Clang] Introduce scoped variants of GNU atomic functions (PR #72280)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Joseph Huber (jhuber6) Changes Summary: The standard GNU atomic operations are a very common way to target hardware atomics on the device. With more hetergenous devices being introduced, the concept of memory scopes has been in the

[clang] [Clang] Introduce scoped variants of GNU atomic functions (PR #72280)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Joseph Huber (jhuber6) Changes Summary: The standard GNU atomic operations are a very common way to target hardware atomics on the device. With more hetergenous devices being introduced, the concept of memory scopes has been in the

[clang-tools-extra] [clang-tidy][abseil-string-find-startswith] Add string_view to default string-like classes (PR #72283)

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 57dd23bc0a2f7b4f7b68162923b3267c1f303de9 6854521facebbe13368b8638ade0c8636dcf9941 --

[clang] [clang] Sema::isSimpleTypeSpecifier return true for _Bool in c99 (PR #72204)

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 a852869398af71141d9422ab3e53a11433a3791f a3c5a71f93190204b17bfe01633ef0fa96c5f0ec --

[clang-tools-extra] [clang-tidy][abseil-string-find-startswith] Add string_view to default string-like classes (PR #72283)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Nicolas van Kempen (nicovank) Changes As per title. A small improvement to this check, `string_view` should work out of the box. I am slowly looking into adding an option to this check to recommend C++20's API `starts_with`, and mov

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

2023-12-04 Thread via cfe-commits
https://github.com/DanielKristofKiss created https://github.com/llvm/llvm-project/pull/74358 AArch64 part of https://github.com/llvm/llvm-project/pull/71706. Default version is now mangled with .default. Resolver for the TargetVersion need to be emitted from the CodeGenModule::EmitMultiVersionF

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

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Dani (DanielKristofKiss) Changes AArch64 part of https://github.com/llvm/llvm-project/pull/71706. Default version is now mangled with .default. Resolver for the TargetVersion need to be emitted from the CodeGenModule::EmitMultiVe

[clang] [Driver] Mark -arch as TargetSpecific (PR #74365)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes `-arch` is a Darwin-specific option that is ignored for other targets and not known by GCC. ``` % clang -arch arm64 -c a.c clang: warning: argument unused during compilation:

[clang] [clang][NFC] Refactor expected directives in C++ DRs 500-599 (PR #74373)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This patch continues the work started with ea5b1ef016d020c37f903d6c7d4f623be975dab8. See that commit and its corresponding PR for details. --- Patch is 47.59 KiB, truncated to 20.00 KiB below, full v

[clang] 78940a4 - [clang-format] Fix a bug in `git-clang-format --binary` (#74293)

2023-12-04 Thread via cfe-commits
Author: Owen Pan Date: 2023-12-04T13:49:23-08:00 New Revision: 78940a4e1f7f484d8a2dd0c646e288d6a5bf2f81 URL: https://github.com/llvm/llvm-project/commit/78940a4e1f7f484d8a2dd0c646e288d6a5bf2f81 DIFF: https://github.com/llvm/llvm-project/commit/78940a4e1f7f484d8a2dd0c646e288d6a5bf2f81.diff LOG:

[clang] fef1854 - [clang][modules] Reset codegen options. (#74006)

2023-12-04 Thread via cfe-commits
Author: Juergen Ributzka Date: 2023-12-04T13:54:57-08:00 New Revision: fef1854318bd797c1f8a141d4b45b113b04860d1 URL: https://github.com/llvm/llvm-project/commit/fef1854318bd797c1f8a141d4b45b113b04860d1 DIFF: https://github.com/llvm/llvm-project/commit/fef1854318bd797c1f8a141d4b45b113b04860d1.di

[clang] [flang] [flang][driver] Rename `flang-new` as `flang` (PR #74377)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Andrzej Warzyński (banach-space) Changes This patch renames `flang-new` as `flang`. Similarly to Clang, Flang's driver executable will be called: * `flang-` A symlink called `flang` point

<    4   5   6   7   8   9   10   11   12   13   >