[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread Alexander Richardson via llvm-branch-commits
arichardson wrote: Will fix formatting and the test failure tomorrow https://github.com/llvm/llvm-project/pull/170790 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-c

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread Alexander Richardson via llvm-branch-commits
@@ -162,11 +163,12 @@ class CompressInstEmitter { } // End anonymous namespace. bool CompressInstEmitter::validateRegister(const Record *Reg, - const Record *RegClass) { + const Record *RegClas

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread via llvm-branch-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 166773 tests passed * 2909 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### LLVM LLVM.TableGen/RegClassByHwMode.td ``` Exit Code: 2 Command Output (stdout): -- # RUN: at line 1 /home/g

[llvm-branch-commits] [compiler-rt] [UBSan] add test that all expected handlers can be linked (PR #170793)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Florian Mayer (fmayer) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/170793.diff 1 Files Affected: - (added) compiler-rt/test/ubsan_minimal/TestCases/handlers-link.c (+170) ``diff diff --gi

[llvm-branch-commits] [compiler-rt] [UBSan] add test that all expected handlers can be linked (PR #170793)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/170793 None ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread Craig Topper via llvm-branch-commits
@@ -162,11 +163,12 @@ class CompressInstEmitter { } // End anonymous namespace. bool CompressInstEmitter::validateRegister(const Record *Reg, - const Record *RegClass) { + const Record *RegClas

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread via llvm-branch-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 origin/main HEAD --extensions cpp,h -- llvm/utils/TableGen/Common/CodeGenInstAlias.cp

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson edited https://github.com/llvm/llvm-project/pull/170790 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson edited https://github.com/llvm/llvm-project/pull/170790 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-tablegen Author: Alexander Richardson (arichardson) Changes I was hitting this error and the error location was pointing to the register class definition instead of the incorrect InstAlias. Pass in the InstAlias location to make it easier to debug. Happ

[llvm-branch-commits] [TableGen] Slightly improve error location for a fatal error (PR #170790)

2025-12-04 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson created https://github.com/llvm/llvm-project/pull/170790 I was hitting this error and the error location was pointing to the register class definition instead of the incorrect InstAlias. Pass in the InstAlias location to make it easier to debug. Happens with `def

[llvm-branch-commits] [llvm] 3bea66b - Revert "[WebAssembly] Implement addrspacecast to funcref (#166820)"

2025-12-04 Thread via llvm-branch-commits
Author: Derek Schuff Date: 2025-12-04T16:54:47-08:00 New Revision: 3bea66b89bf7212bad6699beb49d1d1bd5a8c23a URL: https://github.com/llvm/llvm-project/commit/3bea66b89bf7212bad6699beb49d1d1bd5a8c23a DIFF: https://github.com/llvm/llvm-project/commit/3bea66b89bf7212bad6699beb49d1d1bd5a8c23a.diff

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread via llvm-branch-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 84872 tests passed * 1127 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### lldb-api lldb-api.tools/lldb-dap/breakpoint-assembly/TestDAP_breakpointAssembly.py ``` Script: -- /usr/bin/pyt

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -0,0 +1,70 @@ + +Structure Protection + + +.. contents:: + :local: + + +Introduction + + +Structure protection is an *experimental* mitigation fmayer wrote: actually, nevermind. i wanted to delete this comm

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer commented: leaving first batch of comments, mostly nits, but not done yet https://github.com/llvm/llvm-project/pull/133538 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -0,0 +1,70 @@ + +Structure Protection + + +.. contents:: + :local: + + +Introduction + + +Structure protection is an *experimental* mitigation fmayer wrote: optional nit: maybe reflow the text in this docum

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -15131,3 +15131,93 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl, ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames); return Result; } + +bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const { + b

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -15131,3 +15131,93 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl, ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames); return Result; } + +bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const { + b

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -3141,6 +3141,17 @@ defm experimental_omit_vtable_rtti : BoolFOption<"experimental-omit-vtable-rtti" NegFlag, BothFlags<[], [CC1Option], " the RTTI component from virtual tables">>; +defm experimental_pointer_field_protection : BoolFOption<"experimental-pointer-field-

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -15131,3 +15131,93 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl, ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames); return Result; } + +bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const { + b

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -1310,21 +1310,91 @@ static llvm::Value *CoerceIntOrPtrToIntOrPtr(llvm::Value *Val, llvm::Type *Ty, return Val; } +static std::vector findPFPCoercedFields(CodeGenFunction &CGF, + QualType SrcFETy) { + // Coercion directly

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -15131,3 +15131,93 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl, ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames); return Result; } + +bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const { + b

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -15131,3 +15131,93 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl, ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames); return Result; } + +bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const { + b

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -15131,3 +15131,93 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl, ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames); return Result; } + +bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const { + b

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -4522,18 +4522,48 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Address Dest = EmitPointerWithAlignment(E->getArg(0)); Address Src = EmitPointerWithAlignment(E->getArg(1)); Value *SizeVal = EmitScalarExpr(E->getArg(2)); +

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -2643,6 +2643,19 @@ def CountedByOrNull : DeclOrTypeAttr { let LangOpts = [COnly]; } +def NoFieldProtection : DeclOrTypeAttr { + let Spellings = [Clang<"no_field_protection">]; fmayer wrote: why not `pointer_field_protection` https://github.com/llvm/ll

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -15131,3 +15131,93 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl, ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames); return Result; } + +bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const { + b

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer commented: leaving first batch of comments, mostly nits, but not done yet https://github.com/llvm/llvm-project/pull/133538 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #133538)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer edited https://github.com/llvm/llvm-project/pull/133538 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170619 >From bbf2e85a9bc07a52c83d13af5db0d35878484b9a Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:45:04 -0800 Subject: [PATCH 1/8] [ExposeObjCDirect] Optimizations In many cases we can inf

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170619 >From bbf2e85a9bc07a52c83d13af5db0d35878484b9a Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:45:04 -0800 Subject: [PATCH 1/7] [ExposeObjCDirect] Optimizations In many cases we can inf

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Reorder struct fields to have less padding (PR #170222)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170222 >From 3d5418a1f02d809d6ee34ccbd821a6d05a94f08e Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 25 Nov 2025 16:23:11 -0800 Subject: [PATCH] [clang-doc] Reorder struct fields to have less padding --- .../cl

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Reorder struct fields to have less padding (PR #170222)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170222 >From 3d5418a1f02d809d6ee34ccbd821a6d05a94f08e Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 25 Nov 2025 16:23:11 -0800 Subject: [PATCH] [clang-doc] Reorder struct fields to have less padding --- .../cl

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170619 >From bbf2e85a9bc07a52c83d13af5db0d35878484b9a Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:45:04 -0800 Subject: [PATCH 1/5] [ExposeObjCDirect] Optimizations In many cases we can inf

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
@@ -4963,21 +4963,28 @@ void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E, AggValueSlot ArgSlot = AggValueSlot::ignored(); // For arguments with aggregate type, create an alloca to store - // the value. If the argument's type has a destructor, that dest

[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -5875,6 +5895,32 @@ SROA::runOnAlloca(AllocaInst &AI) { return {Changed, CFGChanged}; } + for (auto &P : AS.partitions()) { +std::optional ProtectedFieldDisc; +// For now, we can't split if a field is accessed both via protected +// field and not. +fo

[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -641,6 +648,9 @@ class AllocaSlices { /// Access the dead users for this alloca. ArrayRef getDeadUsers() const { return DeadUsers; } + /// Access the PFP users for this alloca. fmayer wrote: I don't think we have introduced the term "PFP" anywhere in

[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
@@ -5875,6 +5895,32 @@ SROA::runOnAlloca(AllocaInst &AI) { return {Changed, CFGChanged}; } + for (auto &P : AS.partitions()) { +std::optional ProtectedFieldDisc; +// For now, we can't split if a field is accessed both via protected fmayer wrote:

[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/151650 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/151650 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170518 >From b23585403b26d267cf21fcff4f3c550b1b0dd597 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 2 Dec 2025 15:14:32 -0800 Subject: [PATCH 1/7] [clang] Use tighter lifetime bounds for C temporary arguments

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170518 >From b23585403b26d267cf21fcff4f3c550b1b0dd597 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 2 Dec 2025 15:14:32 -0800 Subject: [PATCH 1/7] [clang] Use tighter lifetime bounds for C temporary arguments

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
@@ -34,10 +34,13 @@ template struct __libcpp_is_trivially_relocatable : is_trivially_copyable<_Tp> {}; #endif +// __trivially_relocatable on libc++'s builtin types does not currently return the right answer with PFP. pcc wrote: I looked at all the types and

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
@@ -1067,6 +1067,12 @@ typedef __char32_t char32_t; #define _LIBCPP_DIAGNOSE_NULLPTR # endif +# if __has_cpp_attribute(_Clang::__no_field_protection__) +#define _LIBCPP_NO_PFP [[_Clang::__no_field_protection__]] +# else +#define _LIBCPP_NO_PFP +# endif

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
@@ -300,7 +300,7 @@ class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH type_info protected: typedef __type_info_implementations::__impl __impl; - __impl::__type_name_t __type_name; + _LIBCPP_NO_PFP __impl::__type_name_t __type_name; pcc

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
@@ -214,7 +214,11 @@ set(LIBCXX_LIBRARY_VERSION "${LIBCXX_ABI_VERSION}.0" CACHE STRING For example, -DLIBCXX_LIBRARY_VERSION=x.y will result in the library being named libc++.x.y.dylib, along with the usual symlinks pointing to that. On Apple platforms, this also co

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc approved this pull request. https://github.com/llvm/llvm-project/pull/170752 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
pcc wrote: > > The frontend is expected to add unlikely annotations and we don't want this > > function to override them. > > To the function itself? I don't see how the frontend could add unlikely > annotations to a synthetic branch constructed by this pass. Ah, this is the case where the in

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 approved this pull request. https://github.com/llvm/llvm-project/pull/170752 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Aiden Grossman via llvm-branch-commits
boomanaiden154 wrote: > The frontend is expected to add unlikely annotations and we don't want this > function to override them. To the function itself? I don't see how the frontend could add unlikely annotations to a synthetic branch constructed by this pass. https://github.com/llvm/llvm-pro

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
pcc wrote: What does this function do? The frontend is expected to add unlikely annotations and we don't want this function to override them. https://github.com/llvm/llvm-project/pull/170752 ___ llvm-branch-commits mailing list llvm-branch-commits@lis

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Mircea Trofin (mtrofin) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/170752.diff 3 Files Affected: - (modified) llvm/lib/Transforms/IPO/LowerTypeTests.cpp (+3) - (modified) llvm/test/Transforms/LowerTypeT

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin ready_for_review https://github.com/llvm/llvm-project/pull/170752 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Eli Friedman via llvm-branch-commits
@@ -4963,21 +4963,28 @@ void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E, AggValueSlot ArgSlot = AggValueSlot::ignored(); // For arguments with aggregate type, create an alloca to store - // the value. If the argument's type has a destructor, that dest

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/170752 >From 48751a30a88593b7df37d10e432de27ae8b010f6 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Thu, 4 Dec 2025 13:48:43 -0800 Subject: [PATCH] [LTT] Add `unknown` branch weights when lowering type tests with

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/170752 >From 4752499d3a9b387ff7078baceb2522344ff875d3 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Thu, 4 Dec 2025 13:48:43 -0800 Subject: [PATCH] [LTT] Add `unknown` branch weights when lowering type tests with

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-04 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin edited https://github.com/llvm/llvm-project/pull/170752 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-04 Thread Peter Collingbourne via llvm-branch-commits
pcc wrote: > Please fix tests I think those aren't real test failures (a buggy previously uploaded version of a dependent PR triggered those failures). Let me try rebasing to silence the CI. https://github.com/llvm/llvm-project/pull/151650 ___ llvm-b

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170518 >From acdccf174bad71ff21f820660528bcd460bb1f37 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 2 Dec 2025 15:14:32 -0800 Subject: [PATCH 1/6] [clang] Use tighter lifetime bounds for C temporary arguments

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
@@ -6291,6 +6296,11 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, for (CallLifetimeEnd &LifetimeEnd : CallLifetimeEndAfterCall) LifetimeEnd.Emit(*this, /*Flags=*/{}); + if (!CGM.getCodeGenOpts().NoLifetimeMarkersForTemporaries) il

[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

2025-12-04 Thread Florian Mayer via llvm-branch-commits
fmayer wrote: Please fix tests https://github.com/llvm/llvm-project/pull/151650 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170518 >From acdccf174bad71ff21f820660528bcd460bb1f37 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 2 Dec 2025 15:14:32 -0800 Subject: [PATCH 1/5] [clang] Use tighter lifetime bounds for C temporary arguments

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread via llvm-branch-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 origin/main HEAD --extensions c,cpp,h -- clang/lib/CodeGen/CGCall.cpp clang/lib/CodeG

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
@@ -13,30 +13,27 @@ void test() { // CHECK: call void @llvm.lifetime.start.p0(ptr nonnull %[[AGG1]]) // CHECK: invoke void @_Z16func_that_throws7Trivial(ptr noundef nonnull byval(%struct.Trivial) align 8 %[[AGG1]]) - // CHECK-NEXT: to label %[[CONT1:.*]] unwind label %[[

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170518 >From acdccf174bad71ff21f820660528bcd460bb1f37 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 2 Dec 2025 15:14:32 -0800 Subject: [PATCH 1/4] [clang] Use tighter lifetime bounds for C temporary arguments

[llvm-branch-commits] [clang] [clang] Use tighter lifetime bounds for C temporary arguments (PR #170518)

2025-12-04 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170518 >From acdccf174bad71ff21f820660528bcd460bb1f37 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 2 Dec 2025 15:14:32 -0800 Subject: [PATCH 1/4] [clang] Use tighter lifetime bounds for C temporary arguments

[llvm-branch-commits] [llvm] release/21.x: [HEXAGON] [MachinePipeliner] Fix the DAG in case of dependent phis. (#135925) (PR #170749)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: None (llvmbot) Changes Backport 78ee4a5 Requested by: @alexrp --- Full diff: https://github.com/llvm/llvm-project/pull/170749.diff 3 Files Affected: - (modified) llvm/lib/CodeGen/MachinePipeliner.cpp (+13-2) - (added) llvm/t

[llvm-branch-commits] [llvm] release/21.x: [HEXAGON] [MachinePipeliner] Fix the DAG in case of dependent phis. (#135925) (PR #170749)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @iajbar What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/170749 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[llvm-branch-commits] [llvm] release/21.x: [HEXAGON] [MachinePipeliner] Fix the DAG in case of dependent phis. (#135925) (PR #170749)

2025-12-04 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/170749 Backport 78ee4a5 Requested by: @alexrp >From fcfa910e046db3bffada6515e0042f9c56dd3bdd Mon Sep 17 00:00:00 2001 From: Abinaya Saravanan Date: Fri, 5 Dec 2025 00:57:54 +0530 Subject: [PATCH] [HEXAGON] [MachinePi

[llvm-branch-commits] [llvm] release/21.x: [HEXAGON] [MachinePipeliner] Fix the DAG in case of dependent phis. (#135925) (PR #170749)

2025-12-04 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/170749 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Louis Dionne via llvm-branch-commits
@@ -214,7 +214,11 @@ set(LIBCXX_LIBRARY_VERSION "${LIBCXX_ABI_VERSION}.0" CACHE STRING For example, -DLIBCXX_LIBRARY_VERSION=x.y will result in the library being named libc++.x.y.dylib, along with the usual symlinks pointing to that. On Apple platforms, this also co

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Louis Dionne via llvm-branch-commits
@@ -1067,6 +1067,12 @@ typedef __char32_t char32_t; #define _LIBCPP_DIAGNOSE_NULLPTR # endif +# if __has_cpp_attribute(_Clang::__no_field_protection__) +#define _LIBCPP_NO_PFP [[_Clang::__no_field_protection__]] +# else +#define _LIBCPP_NO_PFP +# endif

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Louis Dionne via llvm-branch-commits
@@ -300,7 +300,7 @@ class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH type_info protected: typedef __type_info_implementations::__impl __impl; - __impl::__type_name_t __type_name; + _LIBCPP_NO_PFP __impl::__type_name_t __type_name; ldi

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Louis Dionne via llvm-branch-commits
@@ -34,10 +34,13 @@ template struct __libcpp_is_trivially_relocatable : is_trivially_copyable<_Tp> {}; #endif +// __trivially_relocatable on libc++'s builtin types does not currently return the right answer with PFP. ldionne wrote: ```suggestion // __trivia

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-04 Thread Louis Dionne via llvm-branch-commits
https://github.com/ldionne requested changes to this pull request. https://github.com/llvm/llvm-project/pull/151651 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-comm

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/170619 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/170619 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170619 >From bbf2e85a9bc07a52c83d13af5db0d35878484b9a Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:45:04 -0800 Subject: [PATCH 1/4] [ExposeObjCDirect] Optimizations In many cases we can inf

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/170619 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [flang][OpenMP] Generalize checks of loop construct structure (PR #170735)

2025-12-04 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: PR stack: 1. https://github.com/llvm/llvm-project/pull/170734 2. https://github.com/llvm/llvm-project/pull/170735 (this PR) https://github.com/llvm/llvm-project/pull/170735 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.

[llvm-branch-commits] [flang] [flang][OpenMP] Generalize checks of loop construct structure (PR #170735)

2025-12-04 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/170735 >From 9a2d3dca08ab237e7e949fd5642c96cf0fba89b8 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 2 Dec 2025 14:59:34 -0600 Subject: [PATCH 1/2] [flang][OpenMP] Generalize checks of loop construct s

[llvm-branch-commits] [flang] [flang][OpenMP] Generalize checks of loop construct structure (PR #170735)

2025-12-04 Thread via llvm-branch-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 origin/main HEAD --extensions cpp,h -- flang/lib/Semantics/check-omp-loop.cpp flang/

[llvm-branch-commits] [flang] [flang][OpenMP] Generalize checks of loop construct structure (PR #170735)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-openmp Author: Krzysztof Parzyszek (kparzysz) Changes For an OpenMP loop construct, count how many loops will effectively be contained in its associated block. For constructs that are loop-nest associated this number should be 1. Report cases whe

[llvm-branch-commits] [flang] [flang][OpenMP] Generalize checks of loop construct structure (PR #170735)

2025-12-04 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/170735 For an OpenMP loop construct, count how many loops will effectively be contained in its associated block. For constructs that are loop-nest associated this number should be 1. Report cases where this number is

[llvm-branch-commits] [clang] [ExposeObjCDirect] Setup helper functions (PR #170617)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170617 >From fb969c3e8f50f80f497ab6b1aca23537e04d172b Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:35:15 -0800 Subject: [PATCH 1/3] [ExposeObjCDirect] Setup helper functions 1. GenerateDire

[llvm-branch-commits] [clang] [ExposeObjCDirect] Optimizations (PR #170619)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170619 >From bbf2e85a9bc07a52c83d13af5db0d35878484b9a Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:45:04 -0800 Subject: [PATCH 1/3] [ExposeObjCDirect] Optimizations In many cases we can inf

[llvm-branch-commits] [llvm] DAG: Use RuntimeLibcalls to legalize vector frem calls (PR #170719)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-selectiondag Author: Matt Arsenault (arsenm) Changes This continues the replacement of TargetLibraryInfo uses in codegen with RuntimeLibcallsInfo started in 821d2825a4f782da3da3c03b8a002802bff4b95c. The series there handled all of the multiple resul

[llvm-branch-commits] [clang] [ExposeObjCDirect] Setup helper functions (PR #170617)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/170617 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Replace HTML generation with Mustache backend (PR #170199)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/170199 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [ExposeObjCDirect] Setup helper functions (PR #170617)

2025-12-04 Thread Peter Rong via llvm-branch-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170617 >From fb969c3e8f50f80f497ab6b1aca23537e04d172b Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:35:15 -0800 Subject: [PATCH 1/2] [ExposeObjCDirect] Setup helper functions 1. GenerateDire

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Replace HTML generation with Mustache backend (PR #170199)

2025-12-04 Thread Erick Velez via llvm-branch-commits
@@ -32,461 +41,15 @@ getClangDocContext(std::vector UserStylesheets = {}, ClangDocContext CDCtx{ {}, "test-project", {}, {}, {}, RepositoryUrl, RepositoryLinePrefix, Base, UserStylesheets}; - CDCtx.UserStylesheets.insert( - CDCtx.UserStylesheets.begin(),

[llvm-branch-commits] [llvm] [AArch64][PAC] Factor out printing real AUT/PAC/BLRA encodings (NFC) (PR #160901)

2025-12-04 Thread Anatoly Trosinenko via llvm-branch-commits
atrosinenko wrote: Rebased the stack onto current `main` branch to resolve the conflict with recently merged #133536. https://github.com/llvm/llvm-project/pull/160901 ___ llvm-branch-commits mailing list [email protected] https://list

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Add Mustache case to assets test (PR #170198)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170198 >From d56b271edbe76ccbdf2fad3533ea966bf77e527a Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 26 Nov 2025 22:28:10 -0800 Subject: [PATCH] [clang-doc] Add Mustache case to assets test Mustache wasn't test

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Add Mustache case to assets test (PR #170198)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170198 >From d56b271edbe76ccbdf2fad3533ea966bf77e527a Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 26 Nov 2025 22:28:10 -0800 Subject: [PATCH] [clang-doc] Add Mustache case to assets test Mustache wasn't test

[llvm-branch-commits] [llvm] [AArch64][PAC] Factor out printing real AUT/PAC/BLRA encodings (NFC) (PR #160901)

2025-12-04 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/160901 >From ce51a40dbff39fdca481ee9818ef34a9349b13de Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Thu, 25 Sep 2025 16:33:04 +0300 Subject: [PATCH 1/2] [AArch64][PAC] Factor out printing real AUT/PAC/BLR

[llvm-branch-commits] [llvm] [AArch64][PAC] Factor out printing real AUT/PAC/BLRA encodings (NFC) (PR #160901)

2025-12-04 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/160901 >From ce51a40dbff39fdca481ee9818ef34a9349b13de Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Thu, 25 Sep 2025 16:33:04 +0300 Subject: [PATCH 1/2] [AArch64][PAC] Factor out printing real AUT/PAC/BLR

[llvm-branch-commits] [llvm] [AArch64][PAC] Rework the expansion of AUT/AUTPAC pseudos (PR #169699)

2025-12-04 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/169699 >From 37dc9f869840fde61224fe8d0d687bc76984216d Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Thu, 25 Sep 2025 22:28:14 +0300 Subject: [PATCH] [AArch64][PAC] Rework the expansion of AUT/AUTPAC pseud

[llvm-branch-commits] [llvm] [AArch64][PAC] Rework the expansion of AUT/AUTPAC pseudos (PR #169699)

2025-12-04 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/169699 >From 37dc9f869840fde61224fe8d0d687bc76984216d Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Thu, 25 Sep 2025 22:28:14 +0300 Subject: [PATCH] [AArch64][PAC] Rework the expansion of AUT/AUTPAC pseud

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Add Mustache case to assets test (PR #170198)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170198 >From 11036c35f252319203c57abaad9263d767e83afd Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 26 Nov 2025 22:28:10 -0800 Subject: [PATCH] [clang-doc] Add Mustache case to assets test Mustache wasn't test

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Add Mustache case to assets test (PR #170198)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170198 >From 11036c35f252319203c57abaad9263d767e83afd Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 26 Nov 2025 22:28:10 -0800 Subject: [PATCH] [clang-doc] Add Mustache case to assets test Mustache wasn't test

  1   2   >