[llvm-branch-commits] [llvm] [ci] set up llvm-symbolizer environment variable (PR #136156)

2025-04-17 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 approved this pull request. https://github.com/llvm/llvm-project/pull/136156 ___ 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] [ci] upload any generated clang reproducers as artifacts (PR #136157)

2025-04-17 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 approved this pull request. https://github.com/llvm/llvm-project/pull/136157 ___ 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] [llvm] [ci] add dependencies for lldb python binding tests (PR #136158)

2025-04-17 Thread Aiden Grossman via llvm-branch-commits
@@ -5,3 +5,5 @@ psutil>=5.9.4 # See llvm.org/pr22274. pexpect>=4.9.0; sys_platform != 'win32' packaging +# Required for python tests +swig boomanaiden154 wrote: This should probably have at least some versioning information tied to it? https://github.com/llvm

[llvm-branch-commits] [lldb] [llvm] [ci] add dependencies for lldb python binding tests (PR #136158)

2025-04-17 Thread Aiden Grossman via llvm-branch-commits
@@ -63,9 +63,13 @@ pip install -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt export LLVM_SYMBOLIZER_PATH=`which llvm-symbolizer` [[ ! -f "${LLVM_SYMBOLIZER_PATH}" ]] && echo "llvm-symbolizer not found!" +# Set up all runtimes either way. libcxx is a dependency of LLDB. +# If i

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-17 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay commented: LGTM. As I'm not familiar with z/OS, my review focused on its compatibility with the current MC infrastructure. (My internet access will be limited between April 20th and May 4th, which may cause delays in my response time.) Thanks for reimplementing the g

[llvm-branch-commits] [llvm] 9f06475 - Revert "[AMDGPU] Implement vop3p complex pattern optmization for gisel (#130234)"

2025-04-17 Thread via llvm-branch-commits
Author: Shoreshen Date: 2025-04-18T11:13:53+08:00 New Revision: 9f0647536e893f7ba104dda2ab8895abd6a83c0c URL: https://github.com/llvm/llvm-project/commit/9f0647536e893f7ba104dda2ab8895abd6a83c0c DIFF: https://github.com/llvm/llvm-project/commit/9f0647536e893f7ba104dda2ab8895abd6a83c0c.diff LOG

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: improve handling of unreachable basic blocks (PR #136183)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
atrosinenko 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/136183?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [lldb] [llvm] [ci] add dependencies for lldb python binding tests (PR #136158)

2025-04-17 Thread Jonas Devlieghere via llvm-branch-commits
https://github.com/JDevlieghere approved this pull request. https://github.com/llvm/llvm-project/pull/136158 ___ 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] c410a82 - Revert "[HLSL][RootSignature] Implement initial parsing of the descriptor tab…"

2025-04-17 Thread via llvm-branch-commits
Author: Finn Plummer Date: 2025-04-17T20:56:49-07:00 New Revision: c410a82b85a63274f7849de434d133a0f8706269 URL: https://github.com/llvm/llvm-project/commit/c410a82b85a63274f7849de434d133a0f8706269 DIFF: https://github.com/llvm/llvm-project/commit/c410a82b85a63274f7849de434d133a0f8706269.diff

[llvm-branch-commits] [clang] release/20.x: [clang-format] Fix mismatched break in BlockIndent (#124998) (PR #136238)

2025-04-17 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/136238 Backport b8734797a3f605c4aaa37fcb5007baa273565460 Requested by: @owenca >From b51a65f8d0ffb7c547fcc514c3ae686adcbf5b6a Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 30 Jan 2025 20:38:43 -0700 Subject:

[llvm-branch-commits] [SPARC] Use op-then-halve instructions when we have VIS3 (PR #135718)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135718 ___ 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/20.x: [clang-format] Fix mismatched break in BlockIndent (#124998) (PR #136238)

2025-04-17 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/136238 ___ 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/20.x: [clang-format] Fix mismatched break in BlockIndent (#124998) (PR #136238)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (llvmbot) Changes Backport b8734797a3f605c4aaa37fcb5007baa273565460 Requested by: @owenca --- Full diff: https://github.com/llvm/llvm-project/pull/136238.diff 2 Files Affected: - (modified) clang/lib/Format/ContinuationInde

[llvm-branch-commits] [clang] release/20.x: [clang-format] Fix mismatched break in BlockIndent (#124998) (PR #136238)

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

[llvm-branch-commits] [SPARC] Use op-then-halve instructions when we have VIS3 (PR #135718)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135718 ___ 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] [SPARC] Use op-then-neg instructions when we have VIS3 (PR #135717)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135717 ___ 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] Create ThreadPlanStepOut ctor that never skips frames (PR #136163)

2025-04-17 Thread Felipe de Azevedo Piovezan via llvm-branch-commits
https://github.com/felipepiovezan updated https://github.com/llvm/llvm-project/pull/136163 >From 0a2dc4a280d83ca35bc4458ecb939f96e4dee8af Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Thu, 17 Apr 2025 11:34:39 -0700 Subject: [PATCH 1/3] fixup! Run clang-format --- lldb/sourc

[llvm-branch-commits] [llvm] [ci] skip clang installation and separate configuration for runtimes. (PR #136162)

2025-04-17 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/136162 They will be built with the just built clang either way. This avoids building the runtimes twice when LLDB is also tested. >From cb827a1a19380f47213e5f2bafc32a5a8a9f32fe Mon Sep 17 00:00:00 2001 From: Matheus

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: improve handling of unreachable basic blocks (PR #136183)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko created https://github.com/llvm/llvm-project/pull/136183 Instead of refusing to analyze an instruction completely, when it is unreachable according to the CFG reconstructed by BOLT, pessimistically assume all registers to be unsafe at the start of basic blocks with

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: improve handling of unreachable basic blocks (PR #136183)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-bolt Author: Anatoly Trosinenko (atrosinenko) Changes Instead of refusing to analyze an instruction completely, when it is unreachable according to the CFG reconstructed by BOLT, pessimistically assume all registers to be unsafe at the start of basic blo

[llvm-branch-commits] [SPARC] Use native bitcast instructions when we have VIS3 (PR #135716)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135716 ___ 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: improve handling of unreachable basic blocks (PR #136183)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko ready_for_review https://github.com/llvm/llvm-project/pull/136183 ___ 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] Fix SBTarget::ReadInstruction with flavor (PR #136034)

2025-04-17 Thread Nikita Popov via llvm-branch-commits
https://github.com/nikic milestoned https://github.com/llvm/llvm-project/pull/136034 ___ 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] Create ThreadPlanStepOut ctor that never skips frames (PR #136163)

2025-04-17 Thread via llvm-branch-commits
https://github.com/jimingham approved this pull request. This looks right to me. There needs to be a version of step out that just does what it is told to do, and doesn't try to second-guess the agent that queued it. https://github.com/llvm/llvm-project/pull/136163

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: do not crash on debug-printing CFI instructions (PR #136151)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko ready_for_review https://github.com/llvm/llvm-project/pull/136151 ___ 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][nfc] Remove unused parameters in ThreadPlanStepOut ctor (PR #136161)

2025-04-17 Thread via llvm-branch-commits
https://github.com/jimingham commented: Removing the symbol context is fine. I'm not even sure it's necessary - the code that queues up the plan should really be the on to calculate where this should go to, and the plan can then just trust the frame_index it got passed. The first_insn was the

[llvm-branch-commits] [lldb] [lldb] Create ThreadPlanStepOut ctor that never skips frames (PR #136163)

2025-04-17 Thread via llvm-branch-commits
@@ -17,12 +17,21 @@ namespace lldb_private { class ThreadPlanStepOut : public ThreadPlan, public ThreadPlanShouldStopHere { public: + /// Creates a thread plan to step out from frame_idx, skipping parent frames + /// that artificial and hidden frames. Also skips frames witho

[llvm-branch-commits] [llvm] [LoopVectorizer] Bundle partial reductions inside VPMulAccumulateReductionRecipe (PR #136173)

2025-04-17 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 56dcd90446b72d182e856cfffb09c31397f01c5e 89372f1b9283a74b52005c2ec3f3fda520c283a3 --e

[llvm-branch-commits] [llvm] [LoopVectorizer] Bundle partial reductions inside VPMulAccumulateReductionRecipe (PR #136173)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-vectorizers Author: Sam Tebbs (SamTebbs33) Changes This PR bundles compatible partial reductions into a `VPMulAccumulateReductionRecipe` so that the cost of the extends and mul can be hidden. Depends on https://github.com/llvm/llvm-project/pull/113903.

[llvm-branch-commits] [llvm] [LoopVectorizer] Bundle partial reductions inside VPMulAccumulateReductionRecipe (PR #136173)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Sam Tebbs (SamTebbs33) Changes This PR bundles compatible partial reductions into a `VPMulAccumulateReductionRecipe` so that the cost of the extends and mul can be hidden. Depends on https://github.com/llvm/llvm-project/pull/113

[llvm-branch-commits] [SPARC] Use native bitcast instructions when we have VIS3 (PR #135716)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135716 ___ 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] [llvm] [ci] add dependencies for lldb python binding tests (PR #136158)

2025-04-17 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/136158 >From cfb1035622f1530a2c981a47c49dcae01309b617 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Thu, 17 Apr 2025 13:31:32 -0300 Subject: [PATCH] [ci] add dependencies for lldb python binding tests Add corr

[llvm-branch-commits] [lldb] [lldb] Create ThreadPlanStepOut ctor that never skips frames (PR #136163)

2025-04-17 Thread Felipe de Azevedo Piovezan via llvm-branch-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/136163 The function QueueThreadPlanForStepOutNoShouldStop has the semantics of "go this parent frame"; ThreadPlanStepOut needs to respect that, not skipping over any frames it finds uninteresting. This commit c

[llvm-branch-commits] [lldb] [lldb] Create ThreadPlanStepOut ctor that never skips frames (PR #136163)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Felipe de Azevedo Piovezan (felipepiovezan) Changes The function QueueThreadPlanForStepOutNoShouldStop has the semantics of "go this parent frame"; ThreadPlanStepOut needs to respect that, not skipping over any frames it finds uninterestin

[llvm-branch-commits] [MTE] do not tag zero sized globals (PR #136020)

2025-04-17 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/136020 ___ 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][nfc] Split the constructor of ThreadPlanStepOut (PR #136160)

2025-04-17 Thread via llvm-branch-commits
https://github.com/jimingham approved this pull request. This is also purely mechanical, and looks fine. https://github.com/llvm/llvm-project/pull/136160 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect authentication oracles (PR #135663)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/135663 >From cf8c516866e0815b7e93782ca35fa33f6287feac Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Sat, 5 Apr 2025 14:54:01 +0300 Subject: [PATCH] [BOLT] Gadget scanner: detect authentication oracles Im

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: clarify MCPlusBuilder callbacks interface (PR #136147)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko ready_for_review https://github.com/llvm/llvm-project/pull/136147 ___ 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][nfc] Remove unused parameters in ThreadPlanStepOut ctor (PR #136161)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Felipe de Azevedo Piovezan (felipepiovezan) Changes These have been unused for at least a decade. --- Full diff: https://github.com/llvm/llvm-project/pull/136161.diff 13 Files Affected: - (modified) lldb/include/lldb/API/SBThreadPlan.h (

[llvm-branch-commits] [lldb] [lldb] Create ThreadPlanStepOut ctor that never skips frames (PR #136163)

2025-04-17 Thread Felipe de Azevedo Piovezan via llvm-branch-commits
@@ -17,12 +17,21 @@ namespace lldb_private { class ThreadPlanStepOut : public ThreadPlan, public ThreadPlanShouldStopHere { public: + /// Creates a thread plan to step out from frame_idx, skipping parent frames + /// that artificial and hidden frames. Also skips frames witho

[llvm-branch-commits] [MTE] do not tag zero sized globals (PR #136020)

2025-04-17 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/136020 ___ 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][nfc] Split the constructor of ThreadPlanStepOut (PR #136160)

2025-04-17 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 -- lldb/include/lldb/Target/ThreadPlanStepOut.h lldb/

[llvm-branch-commits] [lldb] [lldb][nfc] Split the constructor of ThreadPlanStepOut (PR #136160)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Felipe de Azevedo Piovezan (felipepiovezan) Changes A subsequent commit will create a new constructor for ThreadPlanStepOut, which needs to reuse much of the same logic of the existing constructor. This commit places all of that reusable l

[llvm-branch-commits] [lldb] [lldb][nfc] Remove unused parameters in ThreadPlanStepOut ctor (PR #136161)

2025-04-17 Thread Felipe de Azevedo Piovezan via llvm-branch-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/136161 These have been unused for at least a decade. >From e668877c091baf943e5030e2f49f4e68015fc477 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Thu, 17 Apr 2025 08:18:13 -0700 Subject: [PATC

[llvm-branch-commits] [lldb] [lldb][nfc] Split the constructor of ThreadPlanStepOut (PR #136160)

2025-04-17 Thread Felipe de Azevedo Piovezan via llvm-branch-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/136160 A subsequent commit will create a new constructor for ThreadPlanStepOut, which needs to reuse much of the same logic of the existing constructor. This commit places all of that reusable logic into a sepa

[llvm-branch-commits] [lldb] [llvm] [ci] add dependencies for lldb python binding tests (PR #136158)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Matheus Izvekov (mizvekov) Changes Add correct configuration and dependencies for LLDB testing which is actually relevant for clang changes. --- Full diff: https://github.com/llvm/llvm-project/pull/136158.diff 2 Files Affected: - (modif

[llvm-branch-commits] [lldb] [llvm] [ci] add dependencies for lldb python binding tests (PR #136158)

2025-04-17 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/136158 Add correct configuration and dependencies for LLDB testing which is actually relevant for clang changes. >From 20f393ed197d31619d169740afa4adae3393d26b Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Th

[llvm-branch-commits] [llvm] [ci] upload any generated clang reproducers as artifacts (PR #136157)

2025-04-17 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/136157 Make sure any generated clang reproducers end up as artifacts. >From 3f62c811580c82ead2cb227c4af1a6a5df93c576 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Thu, 17 Apr 2025 13:20:07 -0300 Subject: [PATC

[llvm-branch-commits] [llvm] [ci] set up llvm-symbolizer environment variable (PR #136156)

2025-04-17 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/136156 Set up llvm-symbolizer environment variable so that its preferred over any symbolizer just built, as it can be much slower when built for debugging. >From ae4da1886cd2af4c6ac0dc283fcf735ad992b566 Mon Sep 17 00

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: do not crash on debug-printing CFI instructions (PR #136151)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
atrosinenko 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/136151?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: do not crash on debug-printing CFI instructions (PR #136151)

2025-04-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-bolt Author: Anatoly Trosinenko (atrosinenko) Changes Some instruction-printing code used under LLVM_DEBUG does not handle CFI instructions well. While CFI instructions seem to be harmless for the correctness of the analysis results, they do not convey a

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: do not crash on debug-printing CFI instructions (PR #136151)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko created https://github.com/llvm/llvm-project/pull/136151 Some instruction-printing code used under LLVM_DEBUG does not handle CFI instructions well. While CFI instructions seem to be harmless for the correctness of the analysis results, they do not convey any usefu

[llvm-branch-commits] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-17 Thread via llvm-branch-commits
@@ -3599,6 +3615,15 @@ bool SparcTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT, bool SparcTargetLowering::isCtlzFast() const { return Subtarget->isVIS3(); } +bool SparcTargetLowering::isCheapToSpeculateCttz(Type *Ty) const { + // We lack native cttz, however, + /

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect authentication oracles (PR #135663)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
atrosinenko wrote: After testing current mainline version of gadget scanner (with this stack of PRs applied) against llvm-test-suite, I spotted false positives for combined instructions like `retaa`: they were reported as authentication oracles, because `getAuthenticatedReg` returns LR for the

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: clarify MCPlusBuilder callbacks interface (PR #136147)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
atrosinenko 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/136147?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect authentication oracles (PR #135663)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko edited https://github.com/llvm/llvm-project/pull/135663 ___ 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: clarify MCPlusBuilder callbacks interface (PR #136147)

2025-04-17 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko created https://github.com/llvm/llvm-project/pull/136147 Clarify the semantics of `getAuthenticatedReg` and remove a redundant `isAuthenticationOfReg` method, as combined auth+something instructions (such as `retaa` on AArch64) should be handled carefully, especi

[llvm-branch-commits] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-17 Thread Sergei Barannikov via llvm-branch-commits
@@ -3599,6 +3615,15 @@ bool SparcTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT, bool SparcTargetLowering::isCtlzFast() const { return Subtarget->isVIS3(); } +bool SparcTargetLowering::isCheapToSpeculateCttz(Type *Ty) const { + // We lack native cttz, however, + /

[llvm-branch-commits] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-17 Thread Sergei Barannikov via llvm-branch-commits
@@ -3599,6 +3615,15 @@ bool SparcTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT, bool SparcTargetLowering::isCtlzFast() const { return Subtarget->isVIS3(); } +bool SparcTargetLowering::isCheapToSpeculateCttz(Type *Ty) const { + // We lack native cttz, however, + /

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-17 Thread via llvm-branch-commits
@@ -0,0 +1,183 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=sparcv9 | FileCheck %s -check-prefix=V9 +; RUN: llc < %s -mtriple=sparcv9 -mattr=popc | FileCheck %s -check-prefix=POPC +; RUN: llc < %s -mtriple=sparcv9 -mat

[llvm-branch-commits] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135894 ___ 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] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135894 ___ 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] [SPARC] Use op-then-neg instructions when we have VIS3 (PR #135717)

2025-04-17 Thread Matt Arsenault via llvm-branch-commits
@@ -0,0 +1,59 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc -mtriple=sparc64 -mattr=+vis3 < %s | FileCheck %s + +define float @fnadds(float %a, float %b) nounwind { +; CHECK-LABEL: fnadds: +; CHECK: ! %bb

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135715 >From 6e865810ea2acaf636a4759fd4ffc67aa3dbb848 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 17 Apr 2025 08:24:54 +0700 Subject: [PATCH 1/4] Promote i32 CTLZ when we don't have VIS3 or POPC Created using sp

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135715 >From 6e865810ea2acaf636a4759fd4ffc67aa3dbb848 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 17 Apr 2025 08:24:54 +0700 Subject: [PATCH 1/3] Promote i32 CTLZ when we don't have VIS3 or POPC Created using sp

[llvm-branch-commits] [SPARC] Use op-then-neg instructions when we have VIS3 (PR #135717)

2025-04-17 Thread Matt Arsenault via llvm-branch-commits
@@ -316,4 +316,17 @@ def : Pat<(i64 (sext (i32 (bitconvert f32:$src, (MOVSTOSW $src)>; def : Pat<(f32 (bitconvert i32:$src)), (MOVWTOS $src)>; def : Pat<(i64 (bitconvert f64:$src)), (MOVDTOX $src)>; def : Pat<(f64 (bitconvert i64:$src)), (MOVXTOD $src)>; + +// OP-then-neg

[llvm-branch-commits] [clang] 6170581 - Revert "[Clang] Bypass TAD during overload resolution if a perfect match exis…"

2025-04-17 Thread via llvm-branch-commits
Author: cor3ntin Date: 2025-04-17T11:00:23+02:00 New Revision: 61705818e19b6a2e35a4a65f1104d26ce0c1929a URL: https://github.com/llvm/llvm-project/commit/61705818e19b6a2e35a4a65f1104d26ce0c1929a DIFF: https://github.com/llvm/llvm-project/commit/61705818e19b6a2e35a4a65f1104d26ce0c1929a.diff LOG:

[llvm-branch-commits] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-17 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135894 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits