[llvm-branch-commits] [llvm] AMDGPU: Create a dummy call sequence when emitting call error (PR #170656)

2025-12-04 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/170656 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] AMDGPU: Avoid crashing on statepoint-like pseudoinstructions (PR #170657)

2025-12-04 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/170657 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] AMDGPU: Avoid crashing on statepoint-like pseudoinstructions (PR #170657)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes At the moment the MIR tests are somewhat redundant. The waitcnt one is needed to ensure we actually have a load, given we are currently just emitting an error on ExternalSymbol. The asm printer one i

[llvm-branch-commits] [llvm] AMDGPU/PromoteAlloca: Always use i32 for indexing (PR #170511)

2025-12-04 Thread Fabian Ritter via llvm-branch-commits
@@ -461,22 +461,23 @@ static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, return nullptr; Value *Offset = VarOffset.first; - auto *OffsetType = dyn_cast(Offset->getType()); - if (!OffsetType) + if (!isa(Offset->getType())) return nullptr;

[llvm-branch-commits] [llvm] release/21.x: [rtsan] Handle attributed IR function declarations (#169577) (PR #170641)

2025-12-04 Thread via llvm-branch-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Developer Policy](https://llvm.org/docs/DeveloperPol

[llvm-branch-commits] [llvm] [AMDGPU] Add KnownBits simplification combines to RegBankCombiner (PR #141591)

2025-12-04 Thread Pierre van Houtryve via llvm-branch-commits
https://github.com/Pierre-vh updated https://github.com/llvm/llvm-project/pull/141591 >From 515092eec54b06b21c27a36d35b9f99448c436d8 Mon Sep 17 00:00:00 2001 From: pvanhout Date: Tue, 27 May 2025 12:29:02 +0200 Subject: [PATCH 1/3] [AMDGPU] Add KnownBits simplification combines to RegBankCombi

[llvm-branch-commits] [llvm] [AMDGPU] Add KnownBits simplification combines to RegBankCombiner (PR #141591)

2025-12-04 Thread Pierre van Houtryve via llvm-branch-commits
https://github.com/Pierre-vh updated https://github.com/llvm/llvm-project/pull/141591 >From 515092eec54b06b21c27a36d35b9f99448c436d8 Mon Sep 17 00:00:00 2001 From: pvanhout Date: Tue, 27 May 2025 12:29:02 +0200 Subject: [PATCH 1/3] [AMDGPU] Add KnownBits simplification combines to RegBankCombi

[llvm-branch-commits] [llvm] release/21.x: [rtsan] Handle attributed IR function declarations (#169577) (PR #170641)

2025-12-04 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/170641 Backport 5d4c441 Requested by: @davidtrevelyan >From b845b4cd771efebf7e09f0016f8c1e75a924a6fb Mon Sep 17 00:00:00 2001 From: davidtrevelyan Date: Mon, 1 Dec 2025 20:56:43 + Subject: [PATCH] [rtsan] Handle

[llvm-branch-commits] [llvm] release/21.x: [rtsan] Handle attributed IR function declarations (#169577) (PR #170641)

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

[llvm-branch-commits] [llvm] release/21.x: [rtsan] Handle attributed IR function declarations (#169577) (PR #170641)

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

[llvm-branch-commits] [llvm] release/21.x: [rtsan] Handle attributed IR function declarations (#169577) (PR #170641)

2025-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: None (llvmbot) Changes Backport 5d4c441 Requested by: @davidtrevelyan --- Full diff: https://github.com/llvm/llvm-project/pull/170641.diff 2 Files Affected: - (modified) llvm/lib/Transforms/Instrumentation/RealtimeSanit

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

2025-12-04 Thread Nikita Popov via llvm-branch-commits
https://github.com/nikic 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] [llvm] DAG: Add overload of getExternalSymbol using RTLIB::LibcallImpl (PR #170587)

2025-12-04 Thread Simon Pilgrim via llvm-branch-commits
https://github.com/RKSimon approved this pull request. LGTM cheers https://github.com/llvm/llvm-project/pull/170587 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-comm

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

2025-12-04 Thread Petr Hosek via llvm-branch-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/170222 ___ 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] Use static functions over the anonymous namespace (PR #170221)

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

[llvm-branch-commits] [llvm] [AMDGPU] Add BFX Formation Combines to RegBankCombiner (PR #141590)

2025-12-04 Thread Pierre van Houtryve via llvm-branch-commits
https://github.com/Pierre-vh edited https://github.com/llvm/llvm-project/pull/141590 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Track moved declarations to prevent false positives (PR #170007)

2025-12-04 Thread Haojian Wu via llvm-branch-commits
hokein wrote: > The lifetime safety analysis was previously generating false positives by > warning about use-after-lifetime when the original variable was destroyed > after being moved. This change prevents those false positives by tracking > moved declarations and exempting them from loan ex

[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] 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
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] 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] [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
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 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] [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] 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] 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] [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] [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] [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 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] [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 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 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 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 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 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] [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
@@ -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
@@ -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
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] [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] [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/3] [ExposeObjCDirect] Optimizations In many cases we can inf

[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-tools-extra] [clang-doc] Use static functions over the anonymous namespace (PR #170221)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 approved this pull request. https://github.com/llvm/llvm-project/pull/170221 ___ 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] Use static functions over the anonymous namespace (PR #170221)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/170221 ___ 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] Add Mustache case to test for DR 131697 (PR #170197)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170197 >From 3589489cbbcfb68fc730e5fac65c91b9dbdee6f6 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Fri, 28 Nov 2025 14:04:56 -0800 Subject: [PATCH] [clang-doc] Add Mustache case to test for DR 131697 The test for

[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

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Add Mustache case to test for DR 131697 (PR #170197)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170197 >From 3589489cbbcfb68fc730e5fac65c91b9dbdee6f6 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Fri, 28 Nov 2025 14:04:56 -0800 Subject: [PATCH] [clang-doc] Add Mustache case to test for DR 131697 The test for

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Fix enum partial indentation (PR #170196)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170196 >From fdf94797126631c52cbd71d8ae3d32884d09b38d Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Fri, 21 Nov 2025 19:39:37 -0800 Subject: [PATCH] [clang-doc] Fix enum partial indentation --- .../clang-doc/asset

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Fix enum partial indentation (PR #170196)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/170196 >From fdf94797126631c52cbd71d8ae3d32884d09b38d Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Fri, 21 Nov 2025 19:39:37 -0800 Subject: [PATCH] [clang-doc] Fix enum partial indentation --- .../clang-doc/asset

[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 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] [llvm] AMDGPU: Avoid crashing on statepoint-like pseudoinstructions (PR #170657)

2025-12-04 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/170657 >From 5c91afe00979438edfb664dfa69f22fff71c655d Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 4 Dec 2025 12:42:14 +0100 Subject: [PATCH] AMDGPU: Avoid crashing on statepoint-like pseudoinstructions At

[llvm-branch-commits] [llvm] AMDGPU: Avoid crashing on statepoint-like pseudoinstructions (PR #170657)

2025-12-04 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/170657 >From 5c91afe00979438edfb664dfa69f22fff71c655d Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 4 Dec 2025 12:42:14 +0100 Subject: [PATCH] AMDGPU: Avoid crashing on statepoint-like pseudoinstructions At

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

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/170222 ___ 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] Reorder struct fields to have less padding (PR #170222)

2025-12-04 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 approved this pull request. https://github.com/llvm/llvm-project/pull/170222 ___ 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
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] [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
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] [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] [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] [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] [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] [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] [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
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] [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] [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] [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] 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] [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] [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 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] [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

  1   2   >