[clang] 5480be1 - [clang][NFC] Refactor Sema::DiagnoseSentinelCalls

2023-11-14 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-11-15T08:37:01+01:00 New Revision: 5480be13d5bff9df8d306cd948ff975ed577c054 URL: https://github.com/llvm/llvm-project/commit/5480be13d5bff9df8d306cd948ff975ed577c054 DIFF: https://github.com/llvm/llvm-project/commit/5480be13d5bff9df8d306cd948ff975ed577c054.diff

[clang] [clang][Interp] Implement inc/dec for IntegralAP (PR #69597)

2023-11-14 Thread Timm Baeder via cfe-commits
tbaederr wrote: Ping https://github.com/llvm/llvm-project/pull/69597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement bitwise operations for IntegralAP (PR #71807)

2023-11-14 Thread Timm Baeder via cfe-commits
tbaederr wrote: Ping https://github.com/llvm/llvm-project/pull/71807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement IntegralAP subtraction (PR #71648)

2023-11-14 Thread Timm Baeder via cfe-commits
tbaederr wrote: Ping https://github.com/llvm/llvm-project/pull/71648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement builtin_expect (PR #69713)

2023-11-14 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: tbaederr wrote: Ping https://github.com/llvm/llvm-project/pull/69713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Reapply Handle templated operators with reversed arguments (PR #72213)

2023-11-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/72213 >From bc9e06ea87dca046227faf2996eb8de521863d57 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 20 Oct 2023 14:40:25 +0200 Subject: [PATCH 1/4] [clang] Handle templated operators with reversed arguments

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

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

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

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

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

2023-11-14 Thread Alexander Richardson via cfe-commits
https://github.com/arichardson approved this pull request. https://github.com/llvm/llvm-project/pull/72314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-14 Thread Alexander Richardson via cfe-commits
arichardson wrote: > > Making it consistent is good, but it sounds like we should update the > > .clang-format config file or reformat this whole file to not be indented. > > I'm not sure what the clang-format policy for libunwind is. How about landing > this as is and updating

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

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

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

2023-11-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 created https://github.com/llvm/llvm-project/pull/72358 None >From b2abb3ff72a2a9f57a3fc4b71d19daefd436410b Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Wed, 15 Nov 2023 15:16:18 +0800 Subject: [PATCH] [clang][Analyzer][NFC] Use condition type for comparison in

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

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

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

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

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

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

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

2023-11-14 Thread Matt Arsenault via cfe-commits
@@ -904,6 +904,32 @@ BUILTIN(__atomic_signal_fence, "vi", "n") BUILTIN(__atomic_always_lock_free, "bzvCD*", "nE") BUILTIN(__atomic_is_lock_free, "bzvCD*", "nE") +// GNU atomic builtins with atomic scopes. +ATOMIC_BUILTIN(__scoped_atomic_load, "v.", "t")

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

2023-11-14 Thread Matt Arsenault via cfe-commits
@@ -54,6 +59,16 @@ enum class SyncScope { inline llvm::StringRef getAsString(SyncScope S) { arsenm wrote: I guess this is a pre-existing problem, but why don't these just match the backend string names? https://github.com/llvm/llvm-project/pull/72280

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

2023-11-14 Thread Matt Arsenault via cfe-commits
@@ -205,6 +220,56 @@ class AtomicScopeHIPModel : public AtomicScopeModel { } }; +/// Defines the generic atomic scope model. +class AtomicScopeGenericModel : public AtomicScopeModel { +public: + /// The enum values match predefined built-in macros __ATOMIC_SCOPE_*. + enum

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

2023-11-14 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/72280 ___ 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 Matt Arsenault via cfe-commits
@@ -798,6 +798,13 @@ static void InitializePredefinedMacros(const TargetInfo , Builder.defineMacro("__ATOMIC_ACQ_REL", "4"); Builder.defineMacro("__ATOMIC_SEQ_CST", "5"); + // Define macros for the clang atomic scopes. + Builder.defineMacro("__MEMORY_SCOPE_SYSTEM",

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

2023-11-14 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm commented: Is there any actual difference now between these and the HIP/OpenCL flavors other than dropping the language from the name? https://github.com/llvm/llvm-project/pull/72280 ___ cfe-commits mailing list

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

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

[clang] [clang] Reapply Handle templated operators with reversed arguments (PR #72213)

2023-11-14 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: I ran this change internally and noticed a crash for ```cpp template class Foo { public: template bool operator==(const Foo& other) const; }; bool x = Foo{} == Foo{}; ``` stacktrace ``` F 00:00:1700029943.3152478971 logging.cc:57] assert.h assertion failed at

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

2023-11-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 updated https://github.com/llvm/llvm-project/pull/71518 >From 15367bae9f129b20885f13e5ca5ae816271d7214 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Tue, 7 Nov 2023 16:44:05 +0800 Subject: [PATCH] [clang][analyzer] Support `fputc` in StreamChecker ---

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

2023-11-14 Thread Ben Shi via cfe-commits
benshi001 wrote: > The functional change looks good but the reformatting should be put into a > separate change. Done. Thanks. https://github.com/llvm/llvm-project/pull/72016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

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

2023-11-14 Thread Ben Shi via cfe-commits
https://github.com/benshi001 updated https://github.com/llvm/llvm-project/pull/72016 >From dfcae6556ea05d72f871f13cc76984a0745fff26 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Wed, 15 Nov 2023 14:02:46 +0800 Subject: [PATCH] [clang][analyzer] Restrict 'fopen' modeling to POSIX versions in

[clang] [Docs][Clang] Missing DR status for C++23-era papers in cxx_status.html (PR #68846)

2023-11-14 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja updated https://github.com/llvm/llvm-project/pull/68846 >From b2ec5be2a9eb80a4aeaf329ea4aed727b36501a1 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Tue, 17 Oct 2023 10:41:18 +0800 Subject: [PATCH] [Docs][Clang] DR status in cxx_status.html ---

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

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

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

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

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

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

[clang] [Clang] Correct handling of negative and out-of-bounds indices (PR #71877)

2023-11-14 Thread Bill Wendling via cfe-commits
bwendling wrote: Friendly ping to @rapidsna and @nickdesaulniers https://github.com/llvm/llvm-project/pull/71877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

2023-11-14 Thread Bill Wendling via cfe-commits
https://github.com/bwendling created https://github.com/llvm/llvm-project/pull/72347 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 */ }; >From

[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

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

2023-11-14 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 ready_for_review https://github.com/llvm/llvm-project/pull/72346 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-14 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 created https://github.com/llvm/llvm-project/pull/72346 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

[clang] [clang] Reapply Handle templated operators with reversed arguments (PR #72213)

2023-11-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/72213 >From bc9e06ea87dca046227faf2996eb8de521863d57 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 20 Oct 2023 14:40:25 +0200 Subject: [PATCH 1/3] [clang] Handle templated operators with reversed arguments

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

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

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

2023-11-14 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. I see unrelated changes on the branch? Otherwise LGTM https://github.com/llvm/llvm-project/pull/71748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-tools-extra] [llvm] [polly] Reduction series : Refactor reduction detection code (PR #72343)

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

[clang] [clang-tools-extra] [llvm] [polly] Reduction series : Refactor reduction detection code (PR #72343)

2023-11-14 Thread Karthika Devi C via cfe-commits
https://github.com/kartcq created https://github.com/llvm/llvm-project/pull/72343 None >From 3a8c2b0b7485ea6ee3d45b87132554a2b812aa50 Mon Sep 17 00:00:00 2001 From: kartcq Date: Mon, 6 Nov 2023 03:42:09 -0800 Subject: [PATCH] [polly][NFC] Refactor reduction detection code for modularity This

[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] 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] [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] [clang-format] Fix more bugs in isStartOfName() (PR #72336)

2023-11-14 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/72336 Fixed #72264. >From 832b6dccb1a8b0d3af4c3970c6c85f97e9cf3283 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 14 Nov 2023 19:21:11 -0800 Subject: [PATCH] [clang-format] Fix more bugs in isStartOfName() Fixed

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

2023-11-14 Thread Artem Dergachev via cfe-commits
@@ -1312,21 +1353,29 @@ PointerInitGadget::getFixits(const Strategy ) const { return std::nullopt; } +static bool isNonNegativeIntegerExpr(const Expr *Expr, const VarDecl *VD, + const ASTContext ) { + if (auto ConstVal =

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

2023-11-14 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ commented: Yay I like this! https://github.com/llvm/llvm-project/pull/71862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-14 Thread Artem Dergachev via cfe-commits
@@ -1766,6 +1815,52 @@ fixUPCAddressofArraySubscriptWithSpan(const UnaryOperator *Node) { FixItHint::CreateReplacement(Node->getSourceRange(), SS.str())}; } +std::optional +UUCAddAssignGadget::getFixits(const Strategy ) const { + DeclUseList DREs =

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

2023-11-14 Thread Artem Dergachev via cfe-commits
@@ -0,0 +1,55 @@ +// RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage \ +// RUN:-fsafe-buffer-usage-suggestions \ +// RUN:-fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s +void foo(int * , int *); + +void add_assign_test(unsigned int n, int *a, int y)

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

2023-11-14 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ edited https://github.com/llvm/llvm-project/pull/71862 ___ 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] [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
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.

[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

[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] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2023-11-14 Thread Fangrui Song via cfe-commits
MaskRay wrote: > > In addition, I think our convention is to add the option when the feature > > is ready, rather than add a no-op option, than build functional patches on > > top of it. > > @MaskRay This feature will involve a lot of incremental patches. And we will > still need an

[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] [clang] Make `-fvisibility={}` and `-ftype-visibility={}` benign options. (PR #71985)

2023-11-14 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/71985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [flang] [clang-tools-extra] [libc] [clang] [compiler-rt] [llvm] [libc++] Implement ranges::iota (PR #68494)

2023-11-14 Thread James E T Smith via cfe-commits
https://github.com/jamesETsmith updated https://github.com/llvm/llvm-project/pull/68494 >From c4a3ccfbad090ad8314aa8ad53092edc8d5432bc Mon Sep 17 00:00:00 2001 From: James Smith Date: Thu, 28 Sep 2023 10:11:15 -0400 Subject: [PATCH 01/17] [libc++] Implement ranges::iota and

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

[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] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
@@ -424,6 +424,7 @@ namespace llvm { /// \param OffsetInBits Member offset. /// \param FlagsFlags to encode member attribute, e.g. private /// \param Elements class members. +/// \param RunTimeLang Optional parameter, Objective-C runtime version.

[clang] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
felipepiovezan wrote: > @felipepiovezan I don't this patch as it is has any changes that are > testable. I haven't added any code that will emit a RuntimeLang, only added > the option to do that so I can add those callers downstream. In retrospect I > should've marked it as NFC. I see. I

[llvm] [clang] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Augusto Noronha via cfe-commits
augusto2112 wrote: @felipepiovezan I don't this patch as it is has any changes that are testable. I haven't added any code that will emit a RuntimeLang, only added the option to do that so I can add those callers downstream. In retrospect I should've marked it as NFC.

[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

[llvm] [clang] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
https://github.com/felipepiovezan edited https://github.com/llvm/llvm-project/pull/72011 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Augusto Noronha via cfe-commits
@@ -424,6 +424,7 @@ namespace llvm { /// \param OffsetInBits Member offset. /// \param FlagsFlags to encode member attribute, e.g. private /// \param Elements class members. +/// \param RunTimeLang Optional parameter, Objective-C runtime version.

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

2023-11-14 Thread Andres Villegas via cfe-commits
=?utf-8?q?Andrés?= Villegas , =?utf-8?q?Andrés?= Villegas Message-ID: In-Reply-To: https://github.com/avillega closed https://github.com/llvm/llvm-project/pull/72305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

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

[clang] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
https://github.com/felipepiovezan edited https://github.com/llvm/llvm-project/pull/72011 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
@@ -424,6 +424,7 @@ namespace llvm { /// \param OffsetInBits Member offset. /// \param FlagsFlags to encode member attribute, e.g. private /// \param Elements class members. +/// \param RunTimeLang Optional parameter, Objective-C runtime version.

[clang] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
@@ -424,6 +424,7 @@ namespace llvm { /// \param OffsetInBits Member offset. /// \param FlagsFlags to encode member attribute, e.g. private /// \param Elements class members. +/// \param RunTimeLang Optional parameter, Objective-C runtime version.

[llvm] [clang] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
https://github.com/felipepiovezan edited https://github.com/llvm/llvm-project/pull/72011 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Felipe de Azevedo Piovezan via cfe-commits
https://github.com/felipepiovezan commented: Let's add the `[DebugInfo][CGDebugInfo]` tags the commit message so that the git log is more searchable. I think we should have at least one test in this patch as well https://github.com/llvm/llvm-project/pull/72011

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

2023-11-14 Thread Carl Peto via cfe-commits
https://github.com/carlos4242 updated https://github.com/llvm/llvm-project/pull/72298 >From 333916a07e90955564d03f14e004695802d9f618 Mon Sep 17 00:00:00 2001 From: Carl Peto Date: Tue, 14 Nov 2023 17:27:37 + Subject: [PATCH] [AVR] make the AVR ABI Swift compatible This patch is needed to

[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

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

2023-11-14 Thread Mehdi Amini 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

[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

[clang] 8dfac29 - [CodeGen] [riscv] Remove no-op ptr-to-ptr bitcasts (NFC)

2023-11-14 Thread Benjamin Kramer via cfe-commits
Author: Benjamin Kramer Date: 2023-11-15T01:09:23+01:00 New Revision: 8dfac290a441de21a24faccca6110bc738ebf1b7 URL: https://github.com/llvm/llvm-project/commit/8dfac290a441de21a24faccca6110bc738ebf1b7 DIFF:

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2023-11-14 Thread Yeoul Na via cfe-commits
rapidsna wrote: > In addition, I think our convention is to add the option when the feature is > ready, rather than add a no-op option, than build functional patches on top > of it. @MaskRay This feature will involve a lot of incremental patches. And we will still need an experimental flag

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

2023-11-14 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud updated https://github.com/llvm/llvm-project/pull/71862 >From 6636745d1c444747a33c91b366a730d81ca5db5a Mon Sep 17 00:00:00 2001 From: Rashmi Mudduluru Date: Wed, 1 Nov 2023 13:43:12 -0700 Subject: [PATCH 1/8] [-Wunsafe-buffer-usage][WIP] Fixable gadget for AddAssign

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

2023-11-14 Thread Adrian Prantl via cfe-commits
https://github.com/adrian-prantl approved this pull request. LGTM, then https://github.com/llvm/llvm-project/pull/72234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-14 Thread Carl Peto via cfe-commits
https://github.com/carlos4242 updated https://github.com/llvm/llvm-project/pull/72298 >From fe214850572ba740c0027e8f2908cde0bae75517 Mon Sep 17 00:00:00 2001 From: Carl Peto Date: Tue, 14 Nov 2023 17:27:37 + Subject: [PATCH] [AVR] make the AVR ABI Swift compatible This patch is needed to

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

2023-11-14 Thread Michael Buch via cfe-commits
Michael137 wrote: > I think this is missing a test in clang/test/CodeGenCXX that verifies Clang > generates the expected LLVM IR. I added those tests here: https://github.com/llvm/llvm-project/pull/72235 The IR doesn't change with this patch. It merely adds the necessary parameter to the

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

2023-11-14 Thread Adrian Prantl via cfe-commits
@@ -1681,7 +1681,8 @@ CGDebugInfo::CreateRecordStaticField(const VarDecl *Var, llvm::DIType *RecordTy, llvm::DINode::DIFlags Flags = getAccessFlag(Var->getAccess(), RD); auto Align = getDeclAlignIfRequired(Var, CGM.getContext()); llvm::DIDerivedType *GV =

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

2023-11-14 Thread Adrian Prantl via cfe-commits
https://github.com/adrian-prantl requested changes to this pull request. I think this is missing a test in clang/test/CodeGenCXX that verifies Clang generates the expected LLVM IR. https://github.com/llvm/llvm-project/pull/72234 ___ cfe-commits

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

2023-11-14 Thread Adrian Prantl via cfe-commits
@@ -1315,17 +1315,15 @@ LLVMDIBuilderCreateUnspecifiedType(LLVMDIBuilderRef Builder, const char *Name, return wrap(unwrap(Builder)->createUnspecifiedType({Name, NameLen})); } -LLVMMetadataRef -LLVMDIBuilderCreateStaticMemberType( +LLVMMetadataRef

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

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

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

2023-11-14 Thread Adrian Prantl via cfe-commits
https://github.com/adrian-prantl approved this pull request. https://github.com/llvm/llvm-project/pull/72234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c66844d - [CodeGenOpenCL] Remove pointer type caching

2023-11-14 Thread Benjamin Kramer via cfe-commits
Author: Benjamin Kramer Date: 2023-11-15T00:37:44+01:00 New Revision: c66844d629d8317ed9bbd7d4049d52d56597adcc URL: https://github.com/llvm/llvm-project/commit/c66844d629d8317ed9bbd7d4049d52d56597adcc DIFF:

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

2023-11-14 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/72251 >From 8e61a470fc7e4cf11a6cf285668a7f9eca72702c Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 14 Nov 2023 05:05:14 -0800 Subject: [PATCH 1/2] [clang-format] Handle constrained auto in QualifierAlignment

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

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

[clang] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-14 Thread Augusto Noronha via cfe-commits
augusto2112 wrote: ping :) https://github.com/llvm/llvm-project/pull/72011 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-14 Thread Owen Pan via cfe-commits
@@ -345,6 +345,8 @@ const FormatToken *LeftRightQualifierAlignmentFixer::analyzeRight( TypeToken = Next->getNextNonComment()->getNextNonComment(); } } +if (Next->is(tok::kw_auto)) owenca wrote: ```suggestion if

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

2023-11-14 Thread Owen Pan via cfe-commits
@@ -20875,13 +20875,15 @@ TEST_F(FormatTest, CatchAlignArrayOfStructuresRightAlignment) { "};", Style); // TODO: Fix the indentations below when this option is fully functional. +#if 0 owenca wrote: Because it's wrong as the

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2023-11-14 Thread Yeoul Na via cfe-commits
rapidsna wrote: > > @MaskRay To be clear, the check is now in Driver as you suggested. It's > > just that the frontend also has some extra checks too. So, you want me to > > remove the extra checks in the frontend? > > Yes, otherwise it's duplicated check. I just removed the check in the

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2023-11-14 Thread Yeoul Na via cfe-commits
rapidsna wrote: > > -fbounds-safety-experimental is an experimental flag for -fbounds-safety, > > -fexperimental-bounds-safety Changed the description in the PR! I'll adjust the commit message too when I squash all the changes once I get your approval.

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2023-11-14 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna updated https://github.com/llvm/llvm-project/pull/70480 >From 99ec6e055dd32a86bf6d589a6895658dcbe1d7bd Mon Sep 17 00:00:00 2001 From: Yeoul Na Date: Fri, 27 Oct 2023 08:34:37 -0700 Subject: [PATCH 01/11] [Driver][BoundsSafety] Add -fbounds-safety-experimental flag

  1   2   3   4   5   >