[llvm-branch-commits] [clang-tools-extra] [clang-doc] integrate the JSON generator with Mustache templates (PR #149006)

2025-07-15 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 HEAD~1 HEAD --extensions h,cpp -- clang-tools-extra/clang-doc/BitcodeReader.cpp clan

[llvm-branch-commits] [clang-tools-extra] [clang-doc] integrate the JSON generator with Mustache templates (PR #149006)

2025-07-15 Thread Erick Velez via llvm-branch-commits
evelez7 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/149006?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [clang-tools-extra] [clang-doc] integrate the JSON generator with Mustache templates (PR #149006)

2025-07-15 Thread Erick Velez via llvm-branch-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/149006 This patch changes the HTML Mustache generator to use the JSON generator and consume its output to generate its templates. >From 9f050635fe7181dc08a81cce6f6eb0033051badd Mon Sep 17 00:00:00 2001 From: Erick Vele

[llvm-branch-commits] [clang] release/21.x: [libclang] Fix version for symbol clang_visitCXXMethods (#148958) (PR #148980)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (llvmbot) Changes Backport 116110e1a93531a64d82f049b6e36403bc14f278 Requested by: @efriedma-quic --- Full diff: https://github.com/llvm/llvm-project/pull/148980.diff 1 Files Affected: - (modified) clang/tools/libclang/libclang.map

[llvm-branch-commits] [clang] release/21.x: [libclang] Fix version for symbol clang_visitCXXMethods (#148958) (PR #148980)

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

[llvm-branch-commits] [clang] release/21.x: [libclang] Fix version for symbol clang_visitCXXMethods (#148958) (PR #148980)

2025-07-15 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/148980 ___ 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] release/21.x: [libclang] Fix version for symbol clang_visitCXXMethods (#148958) (PR #148980)

2025-07-15 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/148980 Backport 116110e1a93531a64d82f049b6e36403bc14f278 Requested by: @efriedma-quic >From eec99aec396db52a23583c20e8c4d47fb5ae38fc Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 15 Jul 2025 15:39:51 -0700 S

[llvm-branch-commits] [clang] [LifetimeSafety] Add loan expiry analysis (PR #148712)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148712 >From c8089978cbc691370b2537d7942325147fd7dc3f Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Mon, 14 Jul 2025 19:32:35 + Subject: [PATCH 1/2] users/usx95/lifetime-safety-add-loan-expiry >From aca68c29a

[llvm-branch-commits] [clang] [LifetimeSafety] Add loan expiry analysis (PR #148712)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148712 >From c8089978cbc691370b2537d7942325147fd7dc3f Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Mon, 14 Jul 2025 19:32:35 + Subject: [PATCH 1/2] users/usx95/lifetime-safety-add-loan-expiry >From aca68c29a

[llvm-branch-commits] [clang] [LifetimeSafety] Support bidirectional dataflow analysis (PR #148967)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148967 >From 7502ee577452c5c5d9bb4c9a8b24d6c4825cedd1 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Tue, 15 Jul 2025 21:24:11 + Subject: [PATCH] add-backward-analysis-capability --- clang/lib/Analysis/Lifetim

[llvm-branch-commits] [clang] [LifetimeSafety] Add loan expiry analysis (PR #148712)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/148712 ___ 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] Support bidirectional dataflow analysis (PR #148967)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Utkarsh Saxena (usx95) Changes Generalize the dataflow analysis to support both forward and backward analyses. Some program analyses would be expressed as backward dataflow problems (like liveness analysis). This change enables t

[llvm-branch-commits] [clang] [LifetimeSafety] Support bidirectional dataflow analysis (PR #148967)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 ready_for_review https://github.com/llvm/llvm-project/pull/148967 ___ 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] Support bidirectional dataflow analysis (PR #148967)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/148967 ___ 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] Add loan expiry analysis (PR #148712)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148712 >From 63fc65843dfd135d60bb45b1311a21d60338 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Mon, 14 Jul 2025 19:32:35 + Subject: [PATCH 1/2] users/usx95/lifetime-safety-add-loan-expiry >From 5f0991338

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread Simon Pilgrim via llvm-branch-commits
@@ -1204,6 +1204,13 @@ def : Pat<(i16 (atomic_load_nonext_16 addr:$src)), (MOV16rm addr:$src)>; def : Pat<(i32 (atomic_load_nonext_32 addr:$src)), (MOV32rm addr:$src)>; def : Pat<(i64 (atomic_load_nonext_64 addr:$src)), (MOV64rm addr:$src)>; +def : Pat<(v4i32 (scalar_to_vecto

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread Simon Pilgrim via llvm-branch-commits
https://github.com/RKSimon requested changes to this pull request. https://github.com/llvm/llvm-project/pull/148898 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-comm

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread Simon Pilgrim via llvm-branch-commits
https://github.com/RKSimon edited https://github.com/llvm/llvm-project/pull/148898 ___ 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: [RISCV] Fix issues in ORI to QC.INSBI transformation (#148809) (PR #148933)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: None (llvmbot) Changes Backport d67d91a Requested by: @lenary --- Full diff: https://github.com/llvm/llvm-project/pull/148933.diff 4 Files Affected: - (modified) llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp (+8-2) - (modified)

[llvm-branch-commits] [llvm] release/21.x: [RISCV] Fix issues in ORI to QC.INSBI transformation (#148809) (PR #148933)

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

[llvm-branch-commits] [llvm] release/21.x: [RISCV] Fix issues in ORI to QC.INSBI transformation (#148809) (PR #148933)

2025-07-15 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/148933 ___ 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: [RISCV] Fix issues in ORI to QC.INSBI transformation (#148809) (PR #148933)

2025-07-15 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/148933 Backport d67d91a Requested by: @lenary >From cf964871a807982df7426e37423c061bd14a581e Mon Sep 17 00:00:00 2001 From: Sudharsan Veeravalli Date: Wed, 16 Jul 2025 00:31:33 +0530 Subject: [PATCH] [RISCV] Fix issu

[llvm-branch-commits] [llvm] [SelectionDAG] Legalize <1 x T> vector types for atomic load (PR #148894)

2025-07-15 Thread Craig Topper via llvm-branch-commits
@@ -455,6 +458,18 @@ SDValue DAGTypeLegalizer::ScalarizeVecRes_INSERT_VECTOR_ELT(SDNode *N) { return Op; } +SDValue DAGTypeLegalizer::ScalarizeVecRes_ATOMIC_LOAD(AtomicSDNode *N) { + SDValue Result = DAG.getAtomicLoad( + ISD::NON_EXTLOAD, SDLoc(N), N->getMemoryVT().ge

[llvm-branch-commits] [llvm] release/21.x: [RISCV] Remove incorrect and untested FrameIndex support from SelectAddrRegImm9. (#148779) (PR #148913)

2025-07-15 Thread Sam Elliott via llvm-branch-commits
https://github.com/lenary approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/148913 ___ 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] [AMDGPU] Add support for `v_sqrt_bf16` on gfx1250 (PR #148921)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Shilei Tian (shiltian) Changes Co-authored-by: Mekhanoshin, Stanislav --- Patch is 70.29 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/148921.diff 22

[llvm-branch-commits] [clang] [llvm] [DirectX] Add Range Overlap validation to `DXILPostOptimizationValidation.cpp` (PR #148919)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: None (joaosaffran) Changes According to Root Signature spec, we need to validate if ranges defined in root signature are overlapping. This PR adds such check. Closes: [#126645](https://github.com/llvm/llvm-project/issues/126645)

[llvm-branch-commits] [llvm] [AMDGPU] Add support for `v_sqrt_bf16` on gfx1250 (PR #148921)

2025-07-15 Thread Stanislav Mekhanoshin via llvm-branch-commits
https://github.com/rampitec approved this pull request. https://github.com/llvm/llvm-project/pull/148921 ___ 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] [AMDGPU] Add support for `v_sqrt_bf16` on gfx1250 (PR #148921)

2025-07-15 Thread Shilei Tian via llvm-branch-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/148921 ___ 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] [AMDGPU] Add support for `v_sqrt_bf16` on gfx1250 (PR #148921)

2025-07-15 Thread Shilei Tian via llvm-branch-commits
shiltian 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/148921?utm_source=stack-comment-downstack-mergeability-warning"

[llvm-branch-commits] [llvm] [AMDGPU] Add support for `v_sqrt_bf16` on gfx1250 (PR #148921)

2025-07-15 Thread Shilei Tian via llvm-branch-commits
https://github.com/shiltian created https://github.com/llvm/llvm-project/pull/148921 None >From 6893db624adb4a4f76ea6b7acfb8b30387f8bfc5 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 15 Jul 2025 14:31:34 -0400 Subject: [PATCH] [AMDGPU] Add support for `v_sqrt_bf16` on gfx1250 --- llv

[llvm-branch-commits] [clang] [llvm] [DirectX] Add Range Overlap validation to `DXILPostOptimizationValidation.cpp` (PR #148919)

2025-07-15 Thread via llvm-branch-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/148919 ___ 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] Add Range Overlap validation to `DXILPostOptimizationValidation.cpp` (PR #148919)

2025-07-15 Thread via llvm-branch-commits
https://github.com/joaosaffran created https://github.com/llvm/llvm-project/pull/148919 According to Root Signature spec, we need to validate if ranges defined in root signature are overlapping. This PR adds this. Closes: [#126645](https://github.com/llvm/llvm-project/issues/126645) >From 831d

[llvm-branch-commits] [libc] [libc] Modular printf option (float only) (PR #147426)

2025-07-15 Thread Daniel Thornburgh via llvm-branch-commits
https://github.com/mysterymath updated https://github.com/llvm/llvm-project/pull/147426 >From 68ff227b10bc8bd6c58526790e19787cbc554fb6 Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Thu, 19 Dec 2024 11:57:27 -0800 Subject: [PATCH] [libc] Modular printf option (float only) This adds LIB

[llvm-branch-commits] [libc] [libc] Modular printf option (float only) (PR #147426)

2025-07-15 Thread Daniel Thornburgh via llvm-branch-commits
https://github.com/mysterymath updated https://github.com/llvm/llvm-project/pull/147426 >From 68ff227b10bc8bd6c58526790e19787cbc554fb6 Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Thu, 19 Dec 2024 11:57:27 -0800 Subject: [PATCH] [libc] Modular printf option (float only) This adds LIB

[llvm-branch-commits] [clang] [clang] "modular_format" attribute for functions using format strings (PR #147431)

2025-07-15 Thread Daniel Thornburgh via llvm-branch-commits
https://github.com/mysterymath updated https://github.com/llvm/llvm-project/pull/147431 >From e77a85615ee9d775b397cc877b16eed91e1ad2e1 Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Tue, 10 Jun 2025 14:06:53 -0700 Subject: [PATCH 1/2] [clang] "modular_format" attribute for functions usi

[llvm-branch-commits] [clang] [llvm] [DirectX] Validate if Textures/TypedBuffers are being bound in Root Signatures (PR #147573)

2025-07-15 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/147573 >From 01a558be2b36a6bb00e1027c4d042c7bacd4ed5a Mon Sep 17 00:00:00 2001 From: joaosaffran Date: Mon, 7 Jul 2025 19:26:24 + Subject: [PATCH 1/7] add validation --- .../DXILPostOptimizationValidation.cpp

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread Eli Friedman via llvm-branch-commits
@@ -1204,6 +1204,13 @@ def : Pat<(i16 (atomic_load_nonext_16 addr:$src)), (MOV16rm addr:$src)>; def : Pat<(i32 (atomic_load_nonext_32 addr:$src)), (MOV32rm addr:$src)>; def : Pat<(i64 (atomic_load_nonext_64 addr:$src)), (MOV64rm addr:$src)>; +def : Pat<(v4i32 (scalar_to_vecto

[llvm-branch-commits] [llvm] release/21.x: [RISCV] Remove incorrect and untested FrameIndex support from SelectAddrRegImm9. (#148779) (PR #148913)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: None (llvmbot) Changes Backport 63d099a Requested by: @topperc --- Full diff: https://github.com/llvm/llvm-project/pull/148913.diff 1 Files Affected: - (modified) llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp (+4-4) `

[llvm-branch-commits] [llvm] release/21.x: [RISCV] Remove incorrect and untested FrameIndex support from SelectAddrRegImm9. (#148779) (PR #148913)

2025-07-15 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/148913 Backport 63d099a Requested by: @topperc >From 9bd120ac74d712e411dc461fe959953326d48e23 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 15 Jul 2025 10:49:23 -0700 Subject: [PATCH] [RISCV] Remove incorrec

[llvm-branch-commits] [llvm] release/21.x: [RISCV] Remove incorrect and untested FrameIndex support from SelectAddrRegImm9. (#148779) (PR #148913)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @lenary What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/148913 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[llvm-branch-commits] [llvm] release/21.x: [RISCV] Remove incorrect and untested FrameIndex support from SelectAddrRegImm9. (#148779) (PR #148913)

2025-07-15 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/148913 ___ 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] Add loan expiry analysis (PR #148712)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148712 >From 30deaddc558581426833360d74b302c1556f01ec Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Mon, 14 Jul 2025 19:32:35 + Subject: [PATCH 1/2] users/usx95/lifetime-safety-add-loan-expiry >From 04d61938d

[llvm-branch-commits] [clang] [LifetimeSafety] Add loan expiry analysis (PR #148712)

2025-07-15 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148712 >From 30deaddc558581426833360d74b302c1556f01ec Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Mon, 14 Jul 2025 19:32:35 + Subject: [PATCH 1/2] users/usx95/lifetime-safety-add-loan-expiry >From 04d61938d

[llvm-branch-commits] [llvm] [X86] Cast atomic vectors in IR to support floats (PR #148899)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (jofrn) Changes This commit casts floats to ints in an atomic load during AtomicExpand to support floating point types. It also is required to support 128 bit vectors in SSE/AVX. --- Full diff: https://github.com/llvm/llvm-proj

[llvm-branch-commits] [llvm] [X86] Manage atomic load of fp -> int promotion in DAG (PR #148895)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (jofrn) Changes When lowering atomic <1 x T> vector types with floats, selection can fail since this pattern is unsupported. To support this, floats can be casted to an integer type of the same size. --- Full diff: https://gith

[llvm-branch-commits] [llvm] [SelectionDAG] Widen <2 x T> vector types for atomic load (PR #148897)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (jofrn) Changes Vector types of 2 elements must be widened. This change does this for vector types of atomic load in SelectionDAG so that it can translate aligned vectors of >1 size. --- Full diff: https://github.com/llvm/llvm-p

[llvm-branch-commits] [llvm] [AtomicExpand] Add bitcasts when expanding load atomic vector (PR #148900)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm Author: None (jofrn) Changes AtomicExpand fails for aligned `load atomic ` because it does not find a compatible library call. This change adds appropriate bitcasts so that the call can be lowered. It also adds support for 128 bit lowe

[llvm-branch-commits] [llvm] [X86] Add atomic vector tests for unaligned >1 sizes. (PR #148896)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (jofrn) Changes Unaligned atomic vectors with size >1 are lowered to calls. Adding their tests separately here. --- Patch is 21.43 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/1488

[llvm-branch-commits] [llvm] [SelectionDAG] Legalize <1 x T> vector types for atomic load (PR #148894)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (jofrn) Changes `load atomic <1 x T>` is not valid. This change legalizes vector types of atomic load via scalarization in SelectionDAG so that it can, for example, translate from `v1i32` to `i32`. --- Full diff: https://github.

[llvm-branch-commits] [llvm] [SelectionDAG] Legalize <1 x T> vector types for atomic load (PR #148894)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-selectiondag Author: None (jofrn) Changes `load atomic <1 x T>` is not valid. This change legalizes vector types of atomic load via scalarization in SelectionDAG so that it can, for example, translate from `v1i32` to `i32`. --- Full diff: https://g

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (jofrn) Changes This change adds patterns to optimize out an extra MOV present after widening the atomic load. --- Full diff: https://github.com/llvm/llvm-project/pull/148898.diff 2 Files Affected: - (modified) llvm/lib/Targe

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn ready_for_review https://github.com/llvm/llvm-project/pull/148898 ___ 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] [X86] Add atomic vector tests for unaligned >1 sizes. (PR #148896)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn ready_for_review https://github.com/llvm/llvm-project/pull/148896 ___ 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] [X86] Manage atomic load of fp -> int promotion in DAG (PR #148895)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn ready_for_review https://github.com/llvm/llvm-project/pull/148895 ___ 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] [X86] Cast atomic vectors in IR to support floats (PR #148899)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn ready_for_review https://github.com/llvm/llvm-project/pull/148899 ___ 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] [SelectionDAG] Widen <2 x T> vector types for atomic load (PR #148897)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn ready_for_review https://github.com/llvm/llvm-project/pull/148897 ___ 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] [AtomicExpand] Add bitcasts when expanding load atomic vector (PR #148900)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn ready_for_review https://github.com/llvm/llvm-project/pull/148900 ___ 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] [SelectionDAG] Legalize <1 x T> vector types for atomic load (PR #148894)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn ready_for_review https://github.com/llvm/llvm-project/pull/148894 ___ 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] [SelectionDAG] Widen <2 x T> vector types for atomic load (PR #148897)

2025-07-15 Thread via llvm-branch-commits
jofrn 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/148897?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [llvm] [X86] Cast atomic vectors in IR to support floats (PR #148899)

2025-07-15 Thread via llvm-branch-commits
jofrn 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/148899?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [llvm] [AtomicExpand] Add bitcasts when expanding load atomic vector (PR #148900)

2025-07-15 Thread via llvm-branch-commits
jofrn 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/148900?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread via llvm-branch-commits
jofrn 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/148898?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [llvm] [X86] Manage atomic load of fp -> int promotion in DAG (PR #148895)

2025-07-15 Thread via llvm-branch-commits
jofrn 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/148895?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [llvm] [AtomicExpand] Add bitcasts when expanding load atomic vector (PR #148900)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn created https://github.com/llvm/llvm-project/pull/148900 AtomicExpand fails for aligned `load atomic ` because it does not find a compatible library call. This change adds appropriate bitcasts so that the call can be lowered. It also adds support for 128 bit lowering in

[llvm-branch-commits] [llvm] [X86] Add atomic vector tests for unaligned >1 sizes. (PR #148896)

2025-07-15 Thread via llvm-branch-commits
jofrn 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/148896?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [llvm] [X86] Add atomic vector tests for unaligned >1 sizes. (PR #148896)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn created https://github.com/llvm/llvm-project/pull/148896 Unaligned atomic vectors with size >1 are lowered to calls. Adding their tests separately here. >From 27e1e693d7a3d419195cb9cf8624c7a411dac7ad Mon Sep 17 00:00:00 2001 From: jofrn Date: Tue, 15 Jul 2025 12:58:55

[llvm-branch-commits] [llvm] [SelectionDAG] Legalize <1 x T> vector types for atomic load (PR #148894)

2025-07-15 Thread via llvm-branch-commits
jofrn 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/148894?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [llvm] [X86] Cast atomic vectors in IR to support floats (PR #148899)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn created https://github.com/llvm/llvm-project/pull/148899 This commit casts floats to ints in an atomic load during AtomicExpand to support floating point types. It also is required to support 128 bit vectors in SSE/AVX. >From b30786fccc10b31f15d2982cc8a58cb342352341 Mo

[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn created https://github.com/llvm/llvm-project/pull/148898 This change adds patterns to optimize out an extra MOV present after widening the atomic load. >From b8727ee0fd6935ff1bf3799a2a53005a1e89f37a Mon Sep 17 00:00:00 2001 From: jofrn Date: Tue, 15 Jul 2025 13:01:24 -

[llvm-branch-commits] [llvm] [SelectionDAG] Widen <2 x T> vector types for atomic load (PR #148897)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn created https://github.com/llvm/llvm-project/pull/148897 Vector types of 2 elements must be widened. This change does this for vector types of atomic load in SelectionDAG so that it can translate aligned vectors of >1 size. >From 73ea819b662345e96007257ef8113ec8117905b8

[llvm-branch-commits] [llvm] [X86] Manage atomic load of fp -> int promotion in DAG (PR #148895)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn created https://github.com/llvm/llvm-project/pull/148895 When lowering atomic <1 x T> vector types with floats, selection can fail since this pattern is unsupported. To support this, floats can be casted to an integer type of the same size. >From 0e8e100b4961c10dcd42505

[llvm-branch-commits] [llvm] [SelectionDAG] Legalize <1 x T> vector types for atomic load (PR #148894)

2025-07-15 Thread via llvm-branch-commits
https://github.com/jofrn created https://github.com/llvm/llvm-project/pull/148894 `load atomic <1 x T>` is not valid. This change legalizes vector types of atomic load via scalarization in SelectionDAG so that it can, for example, translate from `v1i32` to `i32`. >From 5cd825d2fd3c5d1615d0e9f8d

[llvm-branch-commits] [llvm] [CodeGen] Add 2 subtarget hooks canLowerToZeroCycleReg[Move|Zeroing] (PR #148428)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
tomershafir wrote: sorry for the 2 bad commit names, had a problem locally with `spr` and cant update them https://github.com/llvm/llvm-project/pull/148428 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/

[llvm-branch-commits] [llvm] [CodeGen] Prevent register coalescer rematerialization based on target (PR #148430)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/148430 >From 3d3d156da4c35e4421652d621e0a070ab2b8e5f7 Mon Sep 17 00:00:00 2001 From: tomershafir Date: Tue, 15 Jul 2025 19:13:17 +0300 Subject: [PATCH] fix format Created using spr 1.3.6 --- llvm/lib/CodeGen/Regi

[llvm-branch-commits] [CodeGen] Prevent register coalescer rematerialization based on target (PR #148430)

2025-07-15 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 HEAD~1 HEAD --extensions cpp -- llvm/lib/CodeGen/RegisterCoalescer.cpp ``

[llvm-branch-commits] [CodeGen] Prevent register coalescer rematerialization based on target (PR #148430)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/148430 ___ 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] [CodeGen] Add target hook shouldReMaterializeTrivialRegDef (PR #148429)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/148429 ___ 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] [CodeGen] Prevent register coalescer rematerialization based on target (PR #148430)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/148430 ___ 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] [CodeGen] Add target hook shouldReMaterializeTrivialRegDef (PR #148429)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/148429 ___ 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] [CodeGen] Add 2 subtarget hooks canLowerToZeroCycleReg[Move|Zeroing] (PR #148428)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/148428 >From 9efe85048c2f68b724949172898fb4880ad8b4a4 Mon Sep 17 00:00:00 2001 From: tomershafir Date: Tue, 15 Jul 2025 12:39:26 +0300 Subject: [PATCH 1/3] git log Created using spr 1.3.6 --- llvm/lib/Target/AArc

[llvm-branch-commits] [lldb] [lldb-dap] fix crash if disconnect request is not sent. (PR #148878)

2025-07-15 Thread Ebuka Ezike via llvm-branch-commits
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/148878 >From 5087ed54b6f1e81493524cca00500f615b1d8754 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Tue, 15 Jul 2025 16:56:03 +0100 Subject: [PATCH] [lldb-dap] fix crash if disconnect request is not sent. It crash

[llvm-branch-commits] [CodeGen] Prevent register coalescer rematerialization based on target (PR #148430)

2025-07-15 Thread Tomer Shafir via llvm-branch-commits
@@ -1400,6 +1403,12 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP, if (!Edit.canRematerializeAt(RM, ValNo, CopyIdx)) return false; + if (!TII->shouldReMaterializeTrivialRegDef(CopyMI, DstReg, SrcReg)) { tomershafir wrote:

[llvm-branch-commits] [lldb] [lldb-dap] fix crash if disconnect request is not sent. (PR #148878)

2025-07-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes It crashes because the event_thread and progress_event_thread not joined before calling `DAP` struct deconstructor. It now joins when we leave the `DAP::Loop` function. from [Discourse](https://discourse.llv

[llvm-branch-commits] [lldb] [lldb-dap] fix crash if disconnect request is not sent. (PR #148878)

2025-07-15 Thread Ebuka Ezike via llvm-branch-commits
https://github.com/da-viper milestoned https://github.com/llvm/llvm-project/pull/148878 ___ 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] [lldb] [lldb-dap] fix crash if disconnect request is not sent. (PR #148878)

2025-07-15 Thread Ebuka Ezike via llvm-branch-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/148878 It crashes because the event_thread and progress_event_thread not joined before calling `DAP` struct deconstructor. It now joins when we leave the `DAP::Loop` function. from [Discourse](https://discourse.llvm

[llvm-branch-commits] [llvm] [Offload] Add `olLinkProgram` (PR #148648)

2025-07-15 Thread Joseph Huber via llvm-branch-commits
jhuber6 wrote: This seems like something we should discuss at one of the weekly meetings, since it has pretty large implications for what this library is supposed to do. https://github.com/llvm/llvm-project/pull/148648 ___ llvm-branch-commits mailing

[llvm-branch-commits] [llvm] [Offload] Add `olLinkProgram` (PR #148648)

2025-07-15 Thread Ross Brunton via llvm-branch-commits
https://github.com/RossBrunton converted_to_draft https://github.com/llvm/llvm-project/pull/148648 ___ 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] TableGen: Avoid emitting trailing whitespace in StringToOffsetTable (PR #148840)

2025-07-15 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: ### Merge activity * **Jul 15, 2:13 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/148840). https://github.com/llvm/llvm-project/pull/148840 _

[llvm-branch-commits] [llvm] TableGen: Avoid emitting trailing whitespace in StringToOffsetTable (PR #148840)

2025-07-15 Thread Nikita Popov via llvm-branch-commits
@@ -38,7 +38,7 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS, #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Woverlength-strings" #endif -{} constexpr char {}{}Storage[] = )", +{} constexpr char {}{}Storage[] =)", nikic wrote: I

[llvm-branch-commits] [llvm] [Offload] Add `olLinkProgram` (PR #148648)

2025-07-15 Thread Ross Brunton via llvm-branch-commits
RossBrunton wrote: @jhuber6 That would mean that any program that wants to do dynamic linking would need to ship a full clang install alongside `libLLVMOffload.so`. The programmer would also have to mess around with writing/reading files and invoking a subprocess. IMO, since this code already

[llvm-branch-commits] [clang] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Henrich Lauko via llvm-branch-commits
xlauko wrote: ### Merge activity * **Jul 15, 2:11 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/148850). https://github.com/llvm/llvm-project/pull/148850 _

[llvm-branch-commits] [clang] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Henrich Lauko via llvm-branch-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/148850 ___ 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] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Henrich Lauko via llvm-branch-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/148850 ___ 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] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Erich Keane via llvm-branch-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/148850 ___ 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] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Henrich Lauko via llvm-branch-commits
xlauko wrote: > Can you update the commit message/topic of this to say WHY we are doing this? > The patch seems fine to me, I just don't understand why we are doing it. Is it clear now? https://github.com/llvm/llvm-project/pull/148850 ___ llvm-branch

[llvm-branch-commits] [clang] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Henrich Lauko via llvm-branch-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/148850 ___ 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] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Erich Keane via llvm-branch-commits
https://github.com/erichkeane commented: Can you update the commit message/topic of this to say WHY we are doing this? The patch seems fine to me, I just don't understand why we are doing it. https://github.com/llvm/llvm-project/pull/148850 ___ llvm-

[llvm-branch-commits] [llvm] TableGen: Avoid emitting trailing whitespace in StringToOffsetTable (PR #148840)

2025-07-15 Thread Nikita Popov via llvm-branch-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/148840 ___ 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] TableGen: Avoid emitting trailing whitespace in StringToOffsetTable (PR #148840)

2025-07-15 Thread Matt Arsenault via llvm-branch-commits
@@ -38,7 +38,7 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS, #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Woverlength-strings" #endif -{} constexpr char {}{}Storage[] = )", +{} constexpr char {}{}Storage[] =)", arsenm wrote:

[llvm-branch-commits] [llvm] TableGen: Avoid emitting trailing whitespace in StringToOffsetTable (PR #148840)

2025-07-15 Thread Nikita Popov via llvm-branch-commits
@@ -38,7 +38,7 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS, #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Woverlength-strings" #endif -{} constexpr char {}{}Storage[] = )", +{} constexpr char {}{}Storage[] =)", nikic wrote: I

  1   2   >