[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
ktf wrote: Ping @zygoloid. I have addressed the last 6 comments. I hope I did not miss any this time. Ping @vgvassilev. Could you do one last pass as well and commit? I do not think I have commit rights. I also checked with my ROOT build and everything works as before and the memory gain is st

[libunwind] [libunwind] Add Unwind-wasm.c to CMakeLists.txt (PR #67770)

2023-09-29 Thread Heejin Ahn via cfe-commits
https://github.com/aheejin updated https://github.com/llvm/llvm-project/pull/67770 >From 3277e2c8058c5d9b0afcc073d711646ebbf7ed62 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Thu, 28 Sep 2023 23:43:26 -0700 Subject: [PATCH 1/2] [libunwind] Add Unwind-wasm.c to CMakeLists.txt This was missin

[PATCH] D156989: FloatingPointMode: Use -1 for "Dynamic"

2023-09-29 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. `Dynamic` cannot have value `-1`, its value must fits 3 bits. Some targets encode rounding mode in instructions, RISCV is an example. It allows five "real" rounding modes, enlisted now in `RoundingMode` to be specified in a special field or FP instruction. This field

[libunwind] [libunwind] Add Unwind-wasm.c to CMakeLists.txt (PR #67770)

2023-09-29 Thread Fangrui Song via cfe-commits
MaskRay wrote: > This was missing when the file was added. Please reference the commit 058222b2316615194c089f2bc68d11341f39d26e https://github.com/llvm/llvm-project/pull/67770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[libunwind] [libunwind] Add Unwind-wasm.c to CMakeLists.txt (PR #67770)

2023-09-29 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/67770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)

2023-09-29 Thread Heejin Ahn via cfe-commits
aheejin wrote: > > Yeah I get that we haven't been warning about a similar case > > (--trap-unreachable) before. But I think they are more of what ended up > > happen, and not the firm intention not to warn for conflicted requests. > > For example, that --trap-unreachable command line option wa

[clang] [CodeGen] Respect pointer-overflow sanitizer for void pointers (PR #67772)

2023-09-29 Thread Nikita Popov via cfe-commits
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/67772 Pointer arithmetic on void pointers (a GNU extension) was going through a different code path and bypassed the pointer-overflow sanitizer. Fixes https://github.com/llvm/llvm-project/issues/66451. >From ef96c971b50

[clang] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)

2023-09-29 Thread Heejin Ahn via cfe-commits
@@ -1,33 +1,133 @@ -; RUN: llc < %s -asm-verbose=false -verify-machineinstrs | FileCheck %s -; RUN: llc < %s -asm-verbose=false -fast-isel -fast-isel-abort=1 -verify-machineinstrs | FileCheck %s - -; Test that LLVM unreachable instruction and trap intrinsic are lowered to -; wasm

[clang] [CodeGen] Respect pointer-overflow sanitizer for void pointers (PR #67772)

2023-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Changes Pointer arithmetic on void pointers (a GNU extension) was going through a different code path and bypassed the pointer-overflow sanitizer. Fixes https://github.com/llvm/llvm-project/issues/66451. --- Full diff: https://github.com/

[libunwind] [libunwind] Add Unwind-wasm.c to CMakeLists.txt (PR #67770)

2023-09-29 Thread Heejin Ahn via cfe-commits
https://github.com/aheejin edited https://github.com/llvm/llvm-project/pull/67770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Add Unwind-wasm.c to CMakeLists.txt (PR #67770)

2023-09-29 Thread Heejin Ahn via cfe-commits
aheejin wrote: > > This was missing when the file was added. > > Please reference the commit > [058222b](https://github.com/llvm/llvm-project/commit/058222b2316615194c089f2bc68d11341f39d26e) Done. https://github.com/llvm/llvm-project/pull/67770 ___

[clang] e1ceb3f - [Clang][NFC] Fix sphinx documentation

2023-09-29 Thread via cfe-commits
Author: Yuanfang Chen Date: 2023-09-29T00:22:58-07:00 New Revision: e1ceb3f39230b4155cd42a225d5248913a717fd9 URL: https://github.com/llvm/llvm-project/commit/e1ceb3f39230b4155cd42a225d5248913a717fd9 DIFF: https://github.com/llvm/llvm-project/commit/e1ceb3f39230b4155cd42a225d5248913a717fd9.diff

[clang] [Driver] Hook up Haiku ARM support (PR #67222)

2023-09-29 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/67222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Hook up Haiku ARM support (PR #67222)

2023-09-29 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. Hope that a Haiku developer can confirm this is what they want:) https://github.com/llvm/llvm-project/pull/67222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [Driver] Hook up Haiku ARM support (PR #67222)

2023-09-29 Thread Fangrui Song via cfe-commits
@@ -33,6 +33,8 @@ // RUN: | FileCheck -check-prefix=CHECK-AAPCS-LINUX %s // RUN: %clang -target arm--openbsd- %s -### -o %t.o 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK-AAPCS-LINUX %s +// RUN: %clang -target arm--haiku- %s -### -o %t.o 2>&1 \ MaskRay wr

[clang] [Driver] Hook up Haiku ARM support (PR #67222)

2023-09-29 Thread Fangrui Song via cfe-commits
MaskRay wrote: > @MaskRay Will be out of town for ~2 weeks and will be slow to respond https://github.com/llvm/llvm-project/pull/67222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/67147 >From a64adec2680206523c99122dc53c2c5c2778e961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 22 Sep 2023 16:27:11 +0200 Subject: [PATCH] [clang][Interp] Handle CXXScalarValueInitExprs

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-29 Thread Timm Baeder via cfe-commits
tbaederr wrote: I've removed the second commit, so this needs https://github.com/llvm/llvm-project/pull/67229 to be merged first. https://github.com/llvm/llvm-project/pull/67147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] 512739e - [clang][Interp] Three-way comparisons (#65901)

2023-09-29 Thread via cfe-commits
Author: Timm Baeder Date: 2023-09-29T09:41:58+02:00 New Revision: 512739ebbb25a75a6298b783f97aea2fb9f6a8e8 URL: https://github.com/llvm/llvm-project/commit/512739ebbb25a75a6298b783f97aea2fb9f6a8e8 DIFF: https://github.com/llvm/llvm-project/commit/512739ebbb25a75a6298b783f97aea2fb9f6a8e8.diff L

[clang] [clang][Interp] Three-way comparisons (PR #65901)

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

[clang] [clang][RelativeVTables] Make the rtti_proxy LinkOnceODR instead of External linkage (PR #67755)

2023-09-29 Thread Petr Hosek via cfe-commits
petrhosek wrote: The change to `clang/test/CodeGenCXX/fixed-point-mangle.cpp` is unrelated. https://github.com/llvm/llvm-project/pull/67755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] Update GoogleTest to v1.14.0 (PR #65823)

2023-09-29 Thread Petr Hosek via cfe-commits
petrhosek wrote: We have seen occasional segfaults when using rpmalloc in other tools such as GN and Ninja which we haven't been able to get to the bottom of so we eventually switched to another allocator. It's possible that it's the same issue here, in which case perhaps we should reconsider

[clang] [clang] Fix a crash from nested ArrayInitLoopExpr (PR #67722)

2023-09-29 Thread via cfe-commits
cor3ntin wrote: Does this fixes #67317? #67688? If so, might as well add the test cases and mark these as being fixed too. You are going to need at add a release note in `clang/docs/ReleaseNotes.rst` https://github.com/llvm/llvm-project/pull/67722 ___

[PATCH] D155572: [clang][Interp] Start implementing binary operators for complex types

2023-09-29 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added inline comments. Comment at: clang/test/AST/Interp/complex.cpp:119-124 + using Bobble = _Complex float; + constexpr _Complex float A = { 13.0, 2.0 }; + constexpr Bobble B = { 2.0, 1.0 }; + constexpr _Complex float D = A - B; + static_assert(__real(D) == 11.0,

[PATCH] D153132: [clang analysis][NFCI] Preparatory work for D153131.

2023-09-29 Thread Clement Courbet via Phabricator via cfe-commits
courbet updated this revision to Diff 557475. courbet marked 2 inline comments as done. courbet added a comment. Address comments CHANGES SINCE LAST ACTION https://reviews.llvm.org/D153132/new/ https://reviews.llvm.org/D153132 Files: clang/lib/Analysis/ThreadSafety.cpp Index: clang/lib/An

[PATCH] D153132: [clang analysis][NFCI] Preparatory work for D153131.

2023-09-29 Thread Clement Courbet via Phabricator via cfe-commits
courbet added inline comments. Comment at: clang/lib/Analysis/ThreadSafety.cpp:1604-1606 +Handler.handleFunExcludesLock(Cp.getKind(), D->getNameAsString(), + (!Cp).toString(), Loc); +return; aaronpuchert wrote:

[clang] Reland "[clang analysis][NFCI] Preparatory work for D153131. (#67420)… (PR #67775)

2023-09-29 Thread Clement Courbet via cfe-commits
https://github.com/legrosbuffle created https://github.com/llvm/llvm-project/pull/67775 …" (#67523) Discussion in https://reviews.llvm.org/D153132. This reverts commit f70377471c990aa567584ae429e77adc9a55491b. >From efc22cc97bbc0238f9ab066132ba434d41677599 Mon Sep 17 00:00:00 2001 From: Cleme

[clang] a0ea5a4 - Reland "[clang analysis][NFCI] Preparatory work for D153131. (#67420)… (#67775)

2023-09-29 Thread via cfe-commits
Author: Clement Courbet Date: 2023-09-29T10:30:26+02:00 New Revision: a0ea5a4af96e2367164b3fda39618615853d25b2 URL: https://github.com/llvm/llvm-project/commit/a0ea5a4af96e2367164b3fda39618615853d25b2 DIFF: https://github.com/llvm/llvm-project/commit/a0ea5a4af96e2367164b3fda39618615853d25b2.dif

[clang] Reland "[clang analysis][NFCI] Preparatory work for D153131. (#67420)… (PR #67775)

2023-09-29 Thread Clement Courbet via cfe-commits
https://github.com/legrosbuffle closed https://github.com/llvm/llvm-project/pull/67775 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland "[clang analysis][NFCI] Preparatory work for D153131. (#67420)… (PR #67775)

2023-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes …" (#67523) Discussion in https://reviews.llvm.org/D153132. This reverts commit f70377471c990aa567584ae429e77adc9a55491b. --- Full diff: https://github.com/llvm/llvm-project/pull/67775.diff 1 Files Affected: - (modified) clang/lib/Anal

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-09-29 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/67572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][VE] Correct rpath handling on VE (PR #67671)

2023-09-29 Thread Kazushi Marukawa via cfe-commits
https://github.com/kaz7 resolved https://github.com/llvm/llvm-project/pull/67671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][VE] Correct rpath handling on VE (PR #67671)

2023-09-29 Thread Kazushi Marukawa via cfe-commits
https://github.com/kaz7 resolved https://github.com/llvm/llvm-project/pull/67671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1e00423 - [Clang][VE] Correct rpath handling on VE (#67671)

2023-09-29 Thread via cfe-commits
Author: Kazushi Marukawa Date: 2023-09-29T17:47:15+09:00 New Revision: 1e004237883260d5349d145cefd829824a86cdb8 URL: https://github.com/llvm/llvm-project/commit/1e004237883260d5349d145cefd829824a86cdb8 DIFF: https://github.com/llvm/llvm-project/commit/1e004237883260d5349d145cefd829824a86cdb8.di

[clang] [clang analysis][thread-safety] Handle return-by-reference... (PR #67776)

2023-09-29 Thread Clement Courbet via cfe-commits
https://github.com/legrosbuffle created https://github.com/llvm/llvm-project/pull/67776 ...of guarded variables, when the function is not marked as requiring locks: ``` class Return { Mutex mu; Foo foo GUARDED_BY(mu); Foo &returns_ref_locked() { MutexLock lock(&mu); return foo;

[clang] [Clang][VE] Correct rpath handling on VE (PR #67671)

2023-09-29 Thread Kazushi Marukawa via cfe-commits
https://github.com/kaz7 closed https://github.com/llvm/llvm-project/pull/67671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang analysis][thread-safety] Handle return-by-reference... (PR #67776)

2023-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes ...of guarded variables, when the function is not marked as requiring locks: ``` class Return { Mutex mu; Foo foo GUARDED_BY(mu); Foo &returns_ref_locked() { MutexLock lock(&mu); return foo; // BAD } Foo &returns_ref_lo

[clang] [clang analysis][thread-safety] Handle return-by-reference... (PR #67776)

2023-09-29 Thread Clement Courbet via cfe-commits
https://github.com/legrosbuffle updated https://github.com/llvm/llvm-project/pull/67776 >From 7212f4cff29784f9b874a2c52586792f02158200 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Fri, 29 Sep 2023 10:39:58 +0200 Subject: [PATCH] [clang analysis][thread-safety] Handle return-by-reference

[clang] [clang][Interp] Add IntegralAP for arbitrary-precision integers (PR #65844)

2023-09-29 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr resolved https://github.com/llvm/llvm-project/pull/65844 ___ cfe-commits mailing list cfe-commits@l

[clang] [clang][Interp] Add IntegralAP for arbitrary-precision integers (PR #65844)

2023-09-29 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/65844 >From 0d879e0dc2ae8bb24e396dc0cf1a6e7215fb1e2e Mon Sep 17 00:

[clang] 0468fa0 - [clang-format] Don't align ctors and dtors with other functions (#67618)

2023-09-29 Thread via cfe-commits
Author: Owen Pan Date: 2023-09-29T02:09:36-07:00 New Revision: 0468fa07f87fe3b33e2bb56c9012ecf3de6a6a87 URL: https://github.com/llvm/llvm-project/commit/0468fa07f87fe3b33e2bb56c9012ecf3de6a6a87 DIFF: https://github.com/llvm/llvm-project/commit/0468fa07f87fe3b33e2bb56c9012ecf3de6a6a87.diff LOG:

[clang] [clang-format] Don't align ctors and dtors with other functions (PR #67618)

2023-09-29 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/67618 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D154603: [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker

2023-09-29 Thread Endre Fülöp via Phabricator via cfe-commits
gamesh411 abandoned this revision. gamesh411 added a comment. Moving this to GitHub as Phabricator is shutting down. Relevant PR here: https://github.com/llvm/llvm-project/pull/67663 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D154603/new/ https:

[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-09-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/67778 The Expression here migth be value dependent, which makes us run into an assertion later on. Just bail out early. Fixes #67690 >From c696a6e15404235cf9cab8fc69a39e828d5da03e Mon Sep 17 00:00:00 2001 From: =?UT

[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes The Expression here migth be value dependent, which makes us run into an assertion later on. Just bail out early. Fixes #67690 --- Full diff: https://github.com/llvm/llvm-project/pull/67778.diff 2 Files Affected: - (modified) clang/lib

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. LGTM modulo my comments. Before merging could you verify that we still get the expected performance gains on the ROOT side? https://github.com/llvm/llvm-project/pull/66430 ___ cfe-commits maili

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,267 @@ +//===- llvm/ADT/PagedVector.h - 'Lazyly allocated' vectors *- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,342 @@ +//===- llvm/unittest/ADT/PagedVectorTest.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev edited https://github.com/llvm/llvm-project/pull/66430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,342 @@ +//===- llvm/unittest/ADT/PagedVectorTest.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,267 @@ +//===- llvm/ADT/PagedVector.h - 'Lazyly allocated' vectors *- C++ +//-*-===// vgvassilev wrote: ```suggestion //===- llvm/ADT/PagedVector.h - 'Lazily allocated' vectors --*- C++ -*-===// ``` https://github.com/llvm/llvm-project/pull/66

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,342 @@ +//===- llvm/unittest/ADT/PagedVectorTest.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf resolved https://github.com/llvm/llvm-project/pull/66430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf updated https://github.com/llvm/llvm-project/pull/66430 >From 07da9379065daab62d43ba453ba6b71f3880a089 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+...@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:58:21 +0200 Subject: [PATCH 01/11] Introduce PagedVector class

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf updated https://github.com/llvm/llvm-project/pull/66430 >From 07da9379065daab62d43ba453ba6b71f3880a089 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+...@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:58:21 +0200 Subject: [PATCH 01/12] Introduce PagedVector class

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf resolved https://github.com/llvm/llvm-project/pull/66430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf resolved https://github.com/llvm/llvm-project/pull/66430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf updated https://github.com/llvm/llvm-project/pull/66430 >From 07da9379065daab62d43ba453ba6b71f3880a089 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+...@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:58:21 +0200 Subject: [PATCH 01/13] Introduce PagedVector class

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf resolved https://github.com/llvm/llvm-project/pull/66430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf updated https://github.com/llvm/llvm-project/pull/66430 >From 07da9379065daab62d43ba453ba6b71f3880a089 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+...@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:58:21 +0200 Subject: [PATCH 01/14] Introduce PagedVector class

[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-09-29 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. This needs a release note, Otherwise LGTM https://github.com/llvm/llvm-project/pull/67778 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-09-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/67778 >From 04abbd57c0325ea0c1d5d5af6fafa18c0c0410ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 29 Sep 2023 11:23:55 +0200 Subject: [PATCH] [clang][ExprConst] Don't try to evaluate value-d

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf updated https://github.com/llvm/llvm-project/pull/66430 >From 07da9379065daab62d43ba453ba6b71f3880a089 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+...@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:58:21 +0200 Subject: [PATCH 01/15] Introduce PagedVector class

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
@@ -0,0 +1,267 @@ +//===- llvm/ADT/PagedVector.h - 'Lazyly allocated' vectors *- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
@@ -0,0 +1,342 @@ +//===- llvm/unittest/ADT/PagedVectorTest.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-09-29 Thread Timm Baeder via cfe-commits
tbaederr wrote: Should we get crash fixes like this into clang 17 as well? https://github.com/llvm/llvm-project/pull/67778 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang]Add vscale argument parsing (PR #67676)

2023-09-29 Thread Mats Petersson via cfe-commits
Leporacanthicus wrote: > Please could you add testing, like the tests you wrote for the loop > versioning flag. Tests added. https://github.com/llvm/llvm-project/pull/67676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2023-09-29 Thread Kristof Beyls via cfe-commits
@@ -0,0 +1,265 @@ +Pointer Authentication +== + +.. contents:: + :local: + +Introduction + + +Pointer authentication is a technology which offers strong probabilistic protection against exploiting a broad class of memory bugs to take control of

[clang] Introduce paged vector (PR #66430)

2023-09-29 Thread Giulio Eulisse via cfe-commits
ktf wrote: @vgvassilev Thanks, I have pushed an update with the remaining comments addressed. I also verified that ROOT peaks at 52 MB rather than 82. https://github.com/llvm/llvm-project/pull/66430 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-29 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,128 @@ +//===- SocketSupport.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (PR #67751)

2023-09-29 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/67751 >From 5919cbf2a91f1cff3e48ba10cd2e9f5d2f5023f0 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Fri, 29 Sep 2023 00:49:16 +0200 Subject: [PATCH] [NFC][clang] change remaining context-dependent type nodes to

[clang] [Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (PR #65246)

2023-09-29 Thread via cfe-commits
kasuga-fj wrote: Previous CI failures due to `offsetof` warnings have been resolved. Thank you for your cooperation! The current CI error (libcxx-ci Benchmark) does not seem to be caused by this patch (other PRs seem to be failing in the same one), so I'll wait until it's fixed. https://githu

[clang] [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (PR #67751)

2023-09-29 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/67751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in mis-annotating arrows (PR #67780)

2023-09-29 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/67780 Fixed #66923. >From 4d65ac64140d39edb70ba64d88971819c2602ea7 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 29 Sep 2023 02:30:47 -0700 Subject: [PATCH] [clang-format] Fix a bug in mis-annotating arrows Fixed

[clang] [clang-format] Fix a bug in mis-annotating arrows (PR #67780)

2023-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Changes Fixed #66923. --- Full diff: https://github.com/llvm/llvm-project/pull/67780.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+41-31) - (modified) clang/unittests/Format/TokenAnnotatorTest.cpp (+4)

[clang] [AST] Add dump() method to TypeLoc (PR #65484)

2023-09-29 Thread Sam McCall via cfe-commits
sam-mccall wrote: (gentle ping) https://github.com/llvm/llvm-project/pull/65484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in mis-annotating arrows (PR #67780)

2023-09-29 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/67780 >From 40d12f082ac712ea4b967db5a981a9fd08ef7c54 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 29 Sep 2023 02:30:47 -0700 Subject: [PATCH] [clang-format] Fix a bug in mis-annotating arrows Fixed #66923. --- c

[clang] fb0f557 - [clang][Interp][NFC] Enable SemaCXX/constexpr-many-arguments test

2023-09-29 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-09-29T12:34:25+02:00 New Revision: fb0f5579c86377f52f97453f8d9ba7c8d7d3 URL: https://github.com/llvm/llvm-project/commit/fb0f5579c86377f52f97453f8d9ba7c8d7d3 DIFF: https://github.com/llvm/llvm-project/commit/fb0f5579c86377f52f97453f8d9ba7c8d7d3.diff LO

[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-09-29 Thread Mariya Podchishchaeva via cfe-commits
@@ -177,3 +177,16 @@ namespace LambdaCallOp { p(); } } + +/// This used to crash due to an assertion failure, +/// see gh#67690 Fznamznon wrote: NIT, why three slashes? ```suggestion // This used to crash due to an assertion failure, // see gh#67690 ```

[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-09-29 Thread Timm Baeder via cfe-commits
@@ -177,3 +177,16 @@ namespace LambdaCallOp { p(); } } + +/// This used to crash due to an assertion failure, +/// see gh#67690 tbaederr wrote: Because it's not a RUN or expected-* line. https://github.com/llvm/llvm-project/pull/67778 __

[clang] 6dd96d6 - [clang analysis][thread-safety] Handle return-by-reference... (#67776)

2023-09-29 Thread via cfe-commits
Author: Clement Courbet Date: 2023-09-29T13:11:04+02:00 New Revision: 6dd96d6e80e9b3679a6161c590c60e0e99549b89 URL: https://github.com/llvm/llvm-project/commit/6dd96d6e80e9b3679a6161c590c60e0e99549b89 DIFF: https://github.com/llvm/llvm-project/commit/6dd96d6e80e9b3679a6161c590c60e0e99549b89.dif

[clang] [clang analysis][thread-safety] Handle return-by-reference... (PR #67776)

2023-09-29 Thread Clement Courbet via cfe-commits
https://github.com/legrosbuffle closed https://github.com/llvm/llvm-project/pull/67776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-09-29 Thread Sam McCall via cfe-commits
sam-mccall wrote: Ripping out this feature sounds great, as does fixing the non-translation of builtin buffer locations. My only concern is that this will make isBeforeInTranslationUnit more expensive. A loc being in one of these special "" is the rare case, and the code recognizing them does

[clang-tools-extra] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

2023-09-29 Thread Christian Kissig via cfe-commits
https://github.com/christiankissig created https://github.com/llvm/llvm-project/pull/67788 - [Support] Add KnownBits::computeForSubBorrow - [CodeGen] Implement USUBC, USUBO_CARRY, and SSUBO_CARRY with KnownBits::computeForSubBorrow - [CodeGen] Compute unknown bits for Carry/Borrow for ADD/SUB -

  1   2   3   4   5   >