[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] [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

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