[llvm-branch-commits] [libunwind] release/21.x: [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (#152942) (PR #160638)

2025-09-24 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/160638 Backport a3d7c468bdc328f04da720088b2e542ef1f33ffc Requested by: @brad0 >From 841de79c34154f7d96d1f74c60edfb6299bd7494 Mon Sep 17 00:00:00 2001 From: Jade Marker Date: Thu, 25 Sep 2025 02:20:25 +0100 Subject: [

[llvm-branch-commits] [clang] [llvm] [HLSL] Update Frontend to support version 1.2 of root signature (PR #160616)

2025-09-24 Thread Finn Plummer via llvm-branch-commits
@@ -926,6 +929,20 @@ RootSignatureParser::parseStaticSamplerParams() { if (!Visibility.has_value()) return std::nullopt; Params.Visibility = Visibility; +} else if (tryConsumeExpectedToken(TokenKind::kw_flags)) { + // `flags` `=` UINT_BORDER_COLOR -

[llvm-branch-commits] [libunwind] release/21.x: [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (#152942) (PR #160638)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @wzssyqa What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/160638 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[llvm-branch-commits] [libunwind] release/21.x: [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (#152942) (PR #160638)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: None (llvmbot) Changes Backport a3d7c468bdc328f04da720088b2e542ef1f33ffc Requested by: @brad0 --- Full diff: https://github.com/llvm/llvm-project/pull/160638.diff 1 Files Affected: - (modified) libunwind/src/UnwindRegistersRestore.

[llvm-branch-commits] [libunwind] release/21.x: [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (#152942) (PR #160638)

2025-09-24 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/160638 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm-remarkutil] Introduce summary tool (PR #160549)

2025-09-24 Thread Jon Roelofs via llvm-branch-commits
@@ -34,6 +42,14 @@ std::optional Argument::getValAsInt() const { return KeyVal.getSExtValue(); } +std::optional Argument::getValAsSignedInt() const { jroelofs wrote: what's the difference between this and `getValAsInt`? https://github.com/llvm/llvm-project

[llvm-branch-commits] [clang] [llvm] [HLSL] Update Frontend to support version 1.2 of root signature (PR #160616)

2025-09-24 Thread Finn Plummer via llvm-branch-commits
@@ -266,7 +266,8 @@ TEST(HLSLRootSignatureTest, DefaultStaticSamplerDump) { "minLOD = 0.00e+00, " "maxLOD = 3.402823e+38, " "space = 0, " - "visibility = All" +

[llvm-branch-commits] [clang] [llvm] [HLSL] Update Frontend to support version 1.2 of root signature (PR #160616)

2025-09-24 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/160616 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/21.x: [NVPTX] Disable relative lookup tables (#159748) (PR #160064)

2025-09-24 Thread Artem Belevich via llvm-branch-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/160064 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [mlir][omp] Add omp.tile operation (PR #160292)

2025-09-24 Thread Tom Eccles via llvm-branch-commits
https://github.com/tblah commented: Looks great. Just one question about the change to generic MLIR code. https://github.com/llvm/llvm-project/pull/160292 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cg

[llvm-branch-commits] [mlir] [mlir][omp] Add omp.tile operation (PR #160292)

2025-09-24 Thread Tom Eccles via llvm-branch-commits
https://github.com/tblah edited https://github.com/llvm/llvm-project/pull/160292 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-24 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/160210 >From 6b191d041990ad667d86b6b07eeed7c802e3fe45 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Mon, 22 Sep 2025 15:31:47 -0700 Subject: [PATCH 1/5] adding metadata static sampler flags --- clang/test/Cod

[llvm-branch-commits] [libcxx] [libc++] Add accessor functions to __tree_node_base (PR #147679)

2025-09-24 Thread Louis Dionne via llvm-branch-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/147679 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_TARGET (PR #160573)

2025-09-24 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/160573 >From 525f12fa0da6c22dded6c19e2338b6bcc3c2da6f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 24 Sep 2025 07:59:16 -0500 Subject: [PATCH 1/4] [flang][OpenMP] Use OmpDirectiveSpecification in DEC

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in ASSUMES (PR #160591)

2025-09-24 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/160591 >From eb12400ffc25b62205183f3102a1e0afdb785510 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 24 Sep 2025 14:38:40 -0500 Subject: [PATCH 1/2] [flang][OpenMP] Use OmpDirectiveSpecification in ASSU

[llvm-branch-commits] [llvm] [DirectX] Updating DXContainer logic to read version 1.2 of static samplers (PR #160184)

2025-09-24 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic approved this pull request. https://github.com/llvm/llvm-project/pull/160184 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in ASSUMES (PR #160591)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-semantics Author: Krzysztof Parzyszek (kparzysz) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/160591.diff 6 Files Affected: - (modified) flang/include/flang/Parser/openmp-utils.h (-2) - (modified) flang/include/flang/Parse

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in ASSUMES (PR #160591)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-openmp Author: Krzysztof Parzyszek (kparzysz) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/160591.diff 6 Files Affected: - (modified) flang/include/flang/Parser/openmp-utils.h (-2) - (modified) flang/include/flang/Parser/p

[llvm-branch-commits] [llvm] [DirectX] Updating DXContainer logic to read version 1.2 of static samplers (PR #160184)

2025-09-24 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 h,cpp -- llvm/include/llvm/Object/DXContainer.h llvm/li

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_TARGET (PR #160573)

2025-09-24 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/160573 >From 525f12fa0da6c22dded6c19e2338b6bcc3c2da6f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 24 Sep 2025 07:59:16 -0500 Subject: [PATCH 1/3] [flang][OpenMP] Use OmpDirectiveSpecification in DEC

[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-24 Thread Finn Plummer via llvm-branch-commits
@@ -212,6 +212,8 @@ MDNode *MetadataBuilder::BuildStaticSampler(const StaticSampler &Sampler) { ConstantAsMetadata::get(Builder.getInt32(Sampler.Space)), ConstantAsMetadata::get( Builder.getInt32(to_underlying(Sampler.Visibility))), + ConstantAsMetad

[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-24 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/160210 >From 6b191d041990ad667d86b6b07eeed7c802e3fe45 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Mon, 22 Sep 2025 15:31:47 -0700 Subject: [PATCH 1/3] adding metadata static sampler flags --- clang/test/Cod

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_TARGET (PR #160573)

2025-09-24 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/160573 >From 525f12fa0da6c22dded6c19e2338b6bcc3c2da6f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 24 Sep 2025 07:59:16 -0500 Subject: [PATCH 1/2] [flang][OpenMP] Use OmpDirectiveSpecification in DEC

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_TARGET (PR #160573)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-semantics @llvm/pr-subscribers-flang-parser Author: Krzysztof Parzyszek (kparzysz) Changes --- Patch is 39.71 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/160573.diff 16 Files Affected: - (modifi

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_TARGET (PR #160573)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-fir-hlfir Author: Krzysztof Parzyszek (kparzysz) Changes --- Patch is 39.71 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/160573.diff 16 Files Affected: - (modified) flang/include/flang/Parser/ope

[llvm-branch-commits] [llvm] [DirectX] Updating DXContainer logic to read version 1.2 of static samplers (PR #160184)

2025-09-24 Thread Justin Bogner via llvm-branch-commits
https://github.com/bogner approved this pull request. LGTM once @inbelic is happy with it https://github.com/llvm/llvm-project/pull/160184 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[llvm-branch-commits] [llvm] Greedy: Merge VirtRegMap queries into one use (NFC) (PR #160485)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-systemz @llvm/pr-subscribers-backend-x86 Author: Matt Arsenault (arsenm) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/160485.diff 1 Files Affected: - (modified) llvm/lib/CodeGen/RegAllocGreedy.cpp (+3-2) ``diff

[llvm-branch-commits] [llvm-remarkutil] Introduce summary tool (PR #160549)

2025-09-24 Thread Jon Roelofs via llvm-branch-commits
https://github.com/jroelofs approved this pull request. https://github.com/llvm/llvm-project/pull/160549 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm-remarkutil] Introduce summary tool (PR #160549)

2025-09-24 Thread Jon Roelofs via llvm-branch-commits
@@ -0,0 +1,244 @@ +//===- RemarkSummary.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

[llvm-branch-commits] [llvm-remarkutil] Introduce summary tool (PR #160549)

2025-09-24 Thread Jon Roelofs via llvm-branch-commits
@@ -0,0 +1,244 @@ +//===- RemarkSummary.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

[llvm-branch-commits] [llvm-remarkutil] Introduce summary tool (PR #160549)

2025-09-24 Thread Tobias Stadler via llvm-branch-commits
https://github.com/tobias-stadler created https://github.com/llvm/llvm-project/pull/160549 This tool provides a harness for implementing different strategies that summarize many remarks (possibly from multiple translation units) into new summary remarks. The remark summaries can then be viewed u

[llvm-branch-commits] [llvm] Greedy: Merge VirtRegMap queries into one use (NFC) (PR #160485)

2025-09-24 Thread Philip Reames via llvm-branch-commits
https://github.com/preames approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/160485 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Greedy: Move physreg check when trying to recolor vregs (NFC) (PR #160484)

2025-09-24 Thread Philip Reames via llvm-branch-commits
https://github.com/preames approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/160484 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [llvm] [mlir] [Flang][OpenMP][MLIR] Initial declare target to for variables implementation (PR #119589)

2025-09-24 Thread Akash Banerjee via llvm-branch-commits
@@ -3664,6 +3690,30 @@ struct MapInfoData : MapInfosTy { MapInfosTy::append(CurInfo); } }; + +enum class TargetDirective : uint32_t { + None = 0, + Target = 1, + TargetData = 2, + TargetEnterData = 3, + TargetExitData = 4, + TargetUpdate = 5 +}; TIF

[llvm-branch-commits] [mlir] [mlir][omp] Improve canonloop/iv naming (PR #159773)

2025-09-24 Thread Tom Eccles via llvm-branch-commits
@@ -77,6 +77,177 @@ struct LLVMPointerPointerLikeModel }; } // namespace +/// Generate a name of a canonical loop nest of the format +/// `(_s_r)*` that describes its nesting inside parent +/// operations (`_r`) and that operation's region (`_s`). The region +/// number is omi

[llvm-branch-commits] [mlir] [mlir][omp] Improve canonloop/iv naming (PR #159773)

2025-09-24 Thread Tom Eccles via llvm-branch-commits
@@ -77,6 +77,177 @@ struct LLVMPointerPointerLikeModel }; } // namespace +/// Generate a name of a canonical loop nest of the format +/// `(_s_r)*` that describes its nesting inside parent +/// operations (`_r`) and that operation's region (`_s`). The region +/// number is omi

[llvm-branch-commits] [mlir] [mlir][omp] Improve canonloop/iv naming (PR #159773)

2025-09-24 Thread Tom Eccles via llvm-branch-commits
https://github.com/tblah edited https://github.com/llvm/llvm-project/pull/159773 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [profcheck][SimplifyCFG] Propagate !prof from `switch` to `select` (PR #159645)

2025-09-24 Thread Mircea Trofin via llvm-branch-commits
mtrofin wrote: > In general this patch LGTM. > > I noticed that one downside of using `-profcheck-weights-for-test` is that > the original branch weights aren't in the test, so it's hard for me to > understand how this change modifies the branch weights. You're right. I think I'll just use `-

[llvm-branch-commits] [llvm] [profcheck][SimplifyCFG] Propagate !prof from `switch` to `select` (PR #159645)

2025-09-24 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/159645 >From 8027f039bd2b99e46420d27a6d468f7f269ded14 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 15 Sep 2025 17:49:18 + Subject: [PATCH] [profcheck][SimplifyCFG] Propagate !prof from `switch` to `sele

[llvm-branch-commits] [flang] [llvm] [mlir] [Flang][OpenMP][MLIR] Initial declare target to for variables implementation (PR #119589)

2025-09-24 Thread Akash Banerjee via llvm-branch-commits
@@ -275,9 +275,21 @@ class MapInfoFinalizationPass return mapTypeFlag; mapFlags flags = mapFlags::OMP_MAP_TO | - (mapFlags(mapTypeFlag) & - (mapFlags::OMP_MAP_IMPLICIT | mapFlags::OMP_MAP_CLOSE | - mapFla

[llvm-branch-commits] [flang] [llvm] [mlir] [Flang][OpenMP][MLIR] Initial declare target to for variables implementation (PR #119589)

2025-09-24 Thread Akash Banerjee via llvm-branch-commits
@@ -0,0 +1,35 @@ +// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s + +// This tests the replacement of operations for `declare target to` with the +// generated `declare target to` global variable inside of target op regions when +// lowering to IR for device. Unfortunate

[llvm-branch-commits] [flang] [llvm] [mlir] [Flang][OpenMP][MLIR] Initial declare target to for variables implementation (PR #119589)

2025-09-24 Thread Akash Banerjee via llvm-branch-commits
@@ -0,0 +1,44 @@ +! Test that checks an allocatable array can be marked `declare target to` and +! functions without issue. +! REQUIRES: flang, amdgpu + +! RUN: %libomptarget-compile-fortran-run-and-check-generic +module test +implicit none +integer, allocatable, dimension

[llvm-branch-commits] [flang] [llvm] [mlir] [Flang][OpenMP][MLIR] Initial declare target to for variables implementation (PR #119589)

2025-09-24 Thread Akash Banerjee via llvm-branch-commits
https://github.com/TIFitis commented: LGTM overall. I've added some nits below. https://github.com/llvm/llvm-project/pull/119589 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llv

[llvm-branch-commits] [flang] [llvm] [mlir] [Flang][OpenMP][MLIR] Initial declare target to for variables implementation (PR #119589)

2025-09-24 Thread Akash Banerjee via llvm-branch-commits
@@ -0,0 +1,30 @@ +! Test `declare target to` interaction with an allocatable with a non-default TIFitis wrote: Nit: The `to` clause doesn't appear in the test. https://github.com/llvm/llvm-project/pull/119589 ___ llvm-

[llvm-branch-commits] [libcxx] [libc++] Add accessor functions to __tree_node_base (PR #147679)

2025-09-24 Thread Louis Dionne via llvm-branch-commits
https://github.com/ldionne approved this pull request. LGTM with nitpicks. https://github.com/llvm/llvm-project/pull/147679 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bra

[llvm-branch-commits] [libcxx] [libc++] Add accessor functions to __tree_node_base (PR #147679)

2025-09-24 Thread Louis Dionne via llvm-branch-commits
@@ -132,18 +139,18 @@ unsigned __tree_sub_invariant(_NodePtr __x) { if (__x->__left_ == __x->__right_ && __x->__left_ != nullptr) return 0; // If this is red, neither child can be red - if (!__x->__is_black_) { -if (__x->__left_ && !__x->__left_->__is_black_) + if

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/159991 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Utkarsh Saxena via llvm-branch-commits
@@ -138,7 +148,7 @@ class LifetimeSafetyAnalysis { std::unique_ptr Factory; std::unique_ptr FactMgr; std::unique_ptr LoanPropagation; - std::unique_ptr ExpiredLoans; + std::unique_ptr LiveOrigins; usx95 wrote: We cannot store these directly as we have

[llvm-branch-commits] [flang] [llvm] [openmp] [Flang] Add standalone tile support (PR #160298)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-fir-hlfir Author: Michael Kruse (Meinersbur) Changes Add support for the standalone OpenMP tile construct: ```f90 !$omp tile sizes(...) DO i = 1, 100 ... ``` This is complementary to #143715 which added support for the tile construct as part of

[llvm-branch-commits] [flang] [llvm] [openmp] [Flang] Add standalone tile support (PR #160298)

2025-09-24 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur ready_for_review https://github.com/llvm/llvm-project/pull/160298 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: make use of C++17 features and LLVM helpers (PR #141665)

2025-09-24 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/141665 >From 9e5d66ac23bd52eb56f959812426e4acaaa58a19 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 27 May 2025 21:06:03 +0300 Subject: [PATCH] [BOLT] Gadget scanner: make use of C++17 features and L

[llvm-branch-commits] [llvm] [LV] Use VPReductionRecipe for partial reductions (PR #147513)

2025-09-24 Thread Sam Tebbs via llvm-branch-commits
https://github.com/SamTebbs33 edited https://github.com/llvm/llvm-project/pull/147513 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159991 >From 8a7ec9fe4b3e098b629102219cf52a116472e9a2 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 21 Sep 2025 16:30:28 + Subject: [PATCH] liveness-based-lifetime-policy --- .../clang/Analysis/Analyses/

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/159991 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Utkarsh Saxena via llvm-branch-commits
@@ -873,19 +874,26 @@ class DataflowAnalysis { llvm::SmallBitVector Visited(Cfg.getNumBlockIDs() + 1); while (const CFGBlock *B = W.dequeue()) { - Lattice StateIn = getInState(B); + Lattice StateIn = *getInState(B); Lattice StateOut = transferBlock(B,

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Utkarsh Saxena via llvm-branch-commits
@@ -1118,109 +1119,189 @@ class LoanPropagationAnalysis OriginLoanMapFactory.add(In.Origins, DestOID, MergedLoans)); } - LoanSet getLoans(OriginID OID, ProgramPoint P) { + LoanSet getLoans(OriginID OID, ProgramPoint P) const { return getLoans(getState(P), OID)

[llvm-branch-commits] [llvm] [AllocToken, Clang] Implement __builtin_infer_alloc_token() and llvm.alloc.token.id (PR #156842)

2025-09-24 Thread Hans Wennborg via llvm-branch-commits
zmodem wrote: > for `__builtin_infer_allocation_token` that won't work, because then we have > to pull out all the token calculation logic in a way that Clang can access > it. And some of that depends on configuration specific to the LLVM IR pass, > that is not yet known. Not sure if there's a

[llvm-branch-commits] [mlir] [mlir][omp] Add omp.tile operation (PR #160292)

2025-09-24 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/160292 >From ff4eccb41e2973e1179734dd455f1e797e89d9be Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 23 Sep 2025 14:45:45 +0200 Subject: [PATCH] Add omp.tile operation --- .../mlir/Dialect/OpenMP/OpenMPCl

[llvm-branch-commits] [flang] [llvm] [openmp] [Flang] Add standalone tile support (PR #160298)

2025-09-24 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/160298 >From bfe9c6b642ebc01f113dbf0a574e424e83f7162a Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 23 Sep 2025 15:33:52 +0200 Subject: [PATCH 1/3] [flang] Add standalone tile support --- flang/lib/Lower

[llvm-branch-commits] [mlir] [mlir][omp] Add omp.tile operation (PR #160292)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-llvm Author: Michael Kruse (Meinersbur) Changes Add the `omp.tile` loop transformations for the OpenMP dialect. Used for lowering a standalone `!$omp tile` in Flang. The pretty operation printing format is currently inconcistent between `omp.cano

[llvm-branch-commits] [mlir] [mlir][omp] Add omp.tile operation (PR #160292)

2025-09-24 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/160292 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [llvm-remarkutil] Introduce filter command (PR #159784)

2025-09-24 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn edited https://github.com/llvm/llvm-project/pull/159784 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [llvm-remarkutil] Introduce filter command (PR #159784)

2025-09-24 Thread Florian Hahn via llvm-branch-commits
@@ -0,0 +1,84 @@ +//===- RemarkFilter.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: Apa

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: make use of C++17 features and LLVM helpers (PR #141665)

2025-09-24 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/141665 >From 9e5d66ac23bd52eb56f959812426e4acaaa58a19 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 27 May 2025 21:06:03 +0300 Subject: [PATCH] [BOLT] Gadget scanner: make use of C++17 features and L

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: optionally assume auth traps on failure (PR #139778)

2025-09-24 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/139778 >From 8dc0489843c88abe4749f3e29775cea04050d925 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 13 May 2025 19:50:41 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: optionally assume auth traps

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: prevent false positives due to jump tables (PR #138884)

2025-09-24 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/138884 >From 5c1edeb727636b1dcbf6573dd4d3f9d14abd8799 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 6 May 2025 11:31:03 +0300 Subject: [PATCH] [BOLT] Gadget scanner: prevent false positives due to ju

[llvm-branch-commits] [llvm] Greedy: Use initializer list for recoloring candidates (NFC) (PR #160486)

2025-09-24 Thread Luke Lau via llvm-branch-commits
https://github.com/lukel97 approved this pull request. https://github.com/llvm/llvm-project/pull/160486 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Greedy: Use initializer list for recoloring candidates (NFC) (PR #160486)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Matt Arsenault (arsenm) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/160486.diff 1 Files Affected: - (modified) llvm/lib/CodeGen/RegAllocGreedy.cpp (+2-4) ``diff diff --git a/llvm/lib/CodeGen/RegAll

[llvm-branch-commits] [llvm] Greedy: Use initializer list for recoloring candidates (NFC) (PR #160486)

2025-09-24 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/160486 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Greedy: Use initializer list for recoloring candidates (NFC) (PR #160486)

2025-09-24 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/160486?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] Greedy: Move physreg check when trying to recolor vregs (NFC) (PR #160484)

2025-09-24 Thread Luke Lau via llvm-branch-commits
https://github.com/lukel97 approved this pull request. https://github.com/llvm/llvm-project/pull/160484 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Greedy: Merge VirtRegMap queries into one use (NFC) (PR #160485)

2025-09-24 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/160485 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Greedy: Move physreg check when trying to recolor vregs (NFC) (PR #160484)

2025-09-24 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-systemz Author: Matt Arsenault (arsenm) Changes Instead of checking if the recoloring candidate is a virtual register, avoid adding it to the candidates in the first place. --- Full diff: https://github.com/llvm/llvm-project/pull/160484.diff 1

[llvm-branch-commits] [llvm] Greedy: Merge VirtRegMap queries into one use (NFC) (PR #160485)

2025-09-24 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/160485 None >From 549ba6c5469304a2949e2a1482f2a18a42ee1d54 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 24 Sep 2025 19:06:39 +0900 Subject: [PATCH] Greedy: Merge VirtRegMap queries into one use (NFC) ---

[llvm-branch-commits] [llvm] [LoongArch] Override cost hooks to expose more DAG combine opportunities (PR #157824)

2025-09-24 Thread via llvm-branch-commits
https://github.com/zhaoqi5 edited https://github.com/llvm/llvm-project/pull/157824 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Gábor Horváth via llvm-branch-commits
@@ -873,19 +874,26 @@ class DataflowAnalysis { llvm::SmallBitVector Visited(Cfg.getNumBlockIDs() + 1); while (const CFGBlock *B = W.dequeue()) { - Lattice StateIn = getInState(B); + Lattice StateIn = *getInState(B); Lattice StateOut = transferBlock(B,

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Gábor Horváth via llvm-branch-commits
@@ -1118,109 +1119,189 @@ class LoanPropagationAnalysis OriginLoanMapFactory.add(In.Origins, DestOID, MergedLoans)); } - LoanSet getLoans(OriginID OID, ProgramPoint P) { + LoanSet getLoans(OriginID OID, ProgramPoint P) const { return getLoans(getState(P), OID)

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-24 Thread Gábor Horváth via llvm-branch-commits
@@ -1085,11 +1080,17 @@ class LoanPropagationAnalysis /// Merges two lattices by taking the union of loans for each origin. // TODO(opt): Keep the state small by removing origins which become dead. Lattice join(Lattice A, Lattice B) { -OriginLoanMap JoinedOrigins = -

[llvm-branch-commits] [clang] [clang] simplify placeholder type deduction for constant template parameters (PR #160439)

2025-09-24 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/160439 This makes the deduction for dependent types operate in more similar ways to the non-dependent one, such as when matching template template parameters, making errors in those generate similar diagnostics to th

[llvm-branch-commits] [clang] [analyzer] Revert #115918, so empty base class optimization works again (#157480) (PR #160450)

2025-09-24 Thread Gábor Horváth via llvm-branch-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/160450 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-24 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/160210 >From 6b191d041990ad667d86b6b07eeed7c802e3fe45 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Mon, 22 Sep 2025 15:31:47 -0700 Subject: [PATCH 1/2] adding metadata static sampler flags --- clang/test/Cod