[llvm-branch-commits] [llvm] [SPARC] Mark Niagara3 as VIS3-capable (PR #138399)

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/138399 >From 8618666abc7028770617cd77adfc83c61550dbd0 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Sat, 3 May 2025 20:50:21 +0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20change?= =?UTF-8?q?

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

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135718 >From 50422a4d24403ef55bf76ccd710511e8dec6b77d Mon Sep 17 00:00:00 2001 From: Koakuma Date: Sun, 4 May 2025 09:33:39 +0700 Subject: [PATCH] Rework isFPImmLegal Created using spr 1.3.5 --- llvm/lib/Target/Sparc

[llvm-branch-commits] [llvm] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/138400 >From b2e8de55ea9e54239a017eb932f7107f29f465a4 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Sun, 4 May 2025 08:57:07 +0700 Subject: [PATCH] Add other instructions & fix typo Created using spr 1.3.5 --- llvm/li

[llvm-branch-commits] [clang] [llvm] [llvm] Introduce callee_type metadata (PR #87573)

2025-05-03 Thread Paul Kirth via llvm-branch-commits
@@ -1302,6 +1302,26 @@ static void addRange(SmallVectorImpl &EndPoints, EndPoints.push_back(High); } +MDNode *MDNode::getMergedCalleeTypeMetadata(LLVMContext &Ctx, MDNode *A, +MDNode *B) { + SmallVector AB; + SmallSet MergedCall

[llvm-branch-commits] [clang] [llvm] [llvm] Introduce callee_type metadata (PR #87573)

2025-05-03 Thread Paul Kirth via llvm-branch-commits
@@ -1302,6 +1302,26 @@ static void addRange(SmallVectorImpl &EndPoints, EndPoints.push_back(High); } +MDNode *MDNode::getMergedCalleeTypeMetadata(LLVMContext &Ctx, MDNode *A, +MDNode *B) { + SmallVector AB; + SmallSet MergedCall

[llvm-branch-commits] [clang] [llvm] [llvm] Introduce callee_type metadata (PR #87573)

2025-05-03 Thread Paul Kirth via llvm-branch-commits
@@ -5096,6 +5097,23 @@ void Verifier::visitCallsiteMetadata(Instruction &I, MDNode *MD) { visitCallStackMetadata(MD); } +void Verifier::visitCalleeTypeMetadata(Instruction &I, MDNode *MD) { + Check(isa(I), "!callee_type metadata should only exist on calls", +&I); +

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

2025-05-03 Thread via llvm-branch-commits
@@ -3613,13 +3613,15 @@ bool SparcTargetLowering::isFNegFree(EVT VT) const { bool SparcTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT, bool ForCodeSize) const { + bool CanLower = false; if (VT != MVT::f32 && VT != MVT::f64)

[llvm-branch-commits] [llvm] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread via llvm-branch-commits
koachan wrote: > What about other instructions? (OTHERW, NORMALW, INVALWP) Added, thanks! https://github.com/llvm/llvm-project/pull/138400 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread via llvm-branch-commits
@@ -0,0 +1,21 @@ +//=== SparcInstrVIS.td - Visual Instruction Set extensions (VIS) -===// +// +// 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: Apach

[llvm-branch-commits] [SPARC][IAS] Add definitions for OSA 2011 instructions (PR #138403)

2025-05-03 Thread Alex Rønne Petersen via llvm-branch-commits
@@ -87,3 +87,4 @@ ELF_RELOC(R_SPARC_GOTDATA_LOX10, 81) ELF_RELOC(R_SPARC_GOTDATA_OP_HIX22, 82) ELF_RELOC(R_SPARC_GOTDATA_OP_LOX10, 83) ELF_RELOC(R_SPARC_GOTDATA_OP, 84) +ELF_RELOC(R_SPARC_WDISP10, 88) alexrp wrote: Don't worry too much about it FWIW, I'

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

2025-05-03 Thread Matt Arsenault via llvm-branch-commits
@@ -3613,13 +3613,15 @@ bool SparcTargetLowering::isFNegFree(EVT VT) const { bool SparcTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT, bool ForCodeSize) const { + bool CanLower = false; arsenm wrote: ```suggest

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

2025-05-03 Thread Matt Arsenault via llvm-branch-commits
@@ -3613,13 +3613,15 @@ bool SparcTargetLowering::isFNegFree(EVT VT) const { bool SparcTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT, bool ForCodeSize) const { + bool CanLower = false; if (VT != MVT::f32 && VT != MVT::f64)

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

2025-05-03 Thread Matt Arsenault via llvm-branch-commits
@@ -3613,13 +3613,15 @@ bool SparcTargetLowering::isFNegFree(EVT VT) const { bool SparcTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT, bool ForCodeSize) const { + bool CanLower = false; if (VT != MVT::f32 && VT != MVT::f64)

[llvm-branch-commits] [lld] [LLD][COFF] Don't dllimport from static libraries (#134443) (PR #138354)

2025-05-03 Thread Martin Storsjö via llvm-branch-commits
https://github.com/mstorsjo approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/138354 ___ 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-tools-extra] release/20.x: [clang-tidy] Do not pass any file when listing checks in run_clang_ti… (#137286) (PR #137775)

2025-05-03 Thread Carlos Galvez via llvm-branch-commits
carlosgalvezp wrote: @HerrCai0907 Could you approve the PR so we can bring it to the release? https://github.com/llvm/llvm-project/pull/137775 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[llvm-branch-commits] [clang-tools-extra] release/20.x: [clang-tidy] Do not pass any file when listing checks in run_clang_ti… (#137286) (PR #137775)

2025-05-03 Thread Piotr Zegar via llvm-branch-commits
https://github.com/PiotrZSL approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/137775 ___ 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][IAS][NFC] Rename CBCOND -> CPBCOND (PR #138402)

2025-05-03 Thread Sergei Barannikov via llvm-branch-commits
https://github.com/s-barannikov approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/138402 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread Sergei Barannikov via llvm-branch-commits
@@ -0,0 +1,21 @@ +//=== SparcInstrVIS.td - Visual Instruction Set extensions (VIS) -===// s-barannikov wrote: Copy&paste bug https://github.com/llvm/llvm-project/pull/138400 ___ llvm-branch-commits mailing list

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread Sergei Barannikov via llvm-branch-commits
https://github.com/s-barannikov edited https://github.com/llvm/llvm-project/pull/138400 ___ 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][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread Sergei Barannikov via llvm-branch-commits
https://github.com/s-barannikov commented: What about other instructions? (OTHERW, NORMALW, INVALWP) https://github.com/llvm/llvm-project/pull/138400 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread Sergei Barannikov via llvm-branch-commits
@@ -0,0 +1,21 @@ +//=== SparcInstrVIS.td - Visual Instruction Set extensions (VIS) -===// +// +// 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: Apach

[llvm-branch-commits] [SPARC] Mark Niagara3 as VIS3-capable (PR #138399)

2025-05-03 Thread Sergei Barannikov via llvm-branch-commits
https://github.com/s-barannikov approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/138399 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

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

2025-05-03 Thread via llvm-branch-commits
koachan wrote: Ping? 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-05-03 Thread via llvm-branch-commits
koachan wrote: Ping? 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] [SPARC][IAS] Add definitions for OSA 2011 instructions (PR #138403)

2025-05-03 Thread via llvm-branch-commits
@@ -87,3 +87,4 @@ ELF_RELOC(R_SPARC_GOTDATA_LOX10, 81) ELF_RELOC(R_SPARC_GOTDATA_OP_HIX22, 82) ELF_RELOC(R_SPARC_GOTDATA_OP_LOX10, 83) ELF_RELOC(R_SPARC_GOTDATA_OP, 84) +ELF_RELOC(R_SPARC_WDISP10, 88) koachan wrote: This is redundant with the one in PR

[llvm-branch-commits] [SPARC][IAS] Add definitions for OSA 2011 instructions (PR #138403)

2025-05-03 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: Koakuma (koachan) Changes --- Patch is 56.90 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/138403.diff 15 Files Affected: - (modified) llvm/include/llvm/BinaryFormat/ELFRelocs/Sparc.def (+1)

[llvm-branch-commits] [SPARC][IAS] Add definitions for OSA 2011 instructions (PR #138403)

2025-05-03 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-binary-utilities Author: Koakuma (koachan) Changes --- Patch is 56.90 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/138403.diff 15 Files Affected: - (modified) llvm/include/llvm/BinaryFormat/ELFRel

[llvm-branch-commits] [SPARC][IAS][NFC] Rename CBCOND -> CPBCOND (PR #138402)

2025-05-03 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-sparc Author: Koakuma (koachan) Changes This is in prep for OSA2011 instruction definitions, which has a CBCond instruction family. --- Full diff: https://github.com/llvm/llvm-project/pull/138402.diff 3 Files Affected: - (modified) llvm/lib/

[llvm-branch-commits] [SPARC][IAS] Add definitions for OSA 2011 instructions (PR #138403)

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan created https://github.com/llvm/llvm-project/pull/138403 None ___ 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][IAS] Add definitions for UA 2007 instructions (PR #138401)

2025-05-03 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: Koakuma (koachan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/138401.diff 6 Files Affected: - (modified) llvm/lib/Target/Sparc/Sparc.td (+5-2) - (modified) llvm/lib/Target/Sparc/SparcInstrFormats.td (+17) - (modifie

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2007 instructions (PR #138401)

2025-05-03 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-sparc Author: Koakuma (koachan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/138401.diff 6 Files Affected: - (modified) llvm/lib/Target/Sparc/Sparc.td (+5-2) - (modified) llvm/lib/Target/Sparc/SparcInstrFormats.td (+17)

[llvm-branch-commits] [SPARC][IAS][NFC] Rename CBCOND -> CPBCOND (PR #138402)

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan created https://github.com/llvm/llvm-project/pull/138402 This is in prep for OSA2011 instruction definitions, which has a CBCond instruction family. ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org h

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: Koakuma (koachan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/138400.diff 5 Files Affected: - (modified) llvm/lib/Target/Sparc/Sparc.td (+9-4) - (modified) llvm/lib/Target/Sparc/SparcInstrInfo.td (+5) - (added) llvm

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2007 instructions (PR #138401)

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan created https://github.com/llvm/llvm-project/pull/138401 None ___ 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] Mark Niagara3 as VIS3-capable (PR #138399)

2025-05-03 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-sparc Author: Koakuma (koachan) Changes >From SPARC T3 Supplement to the UltraSPARC Architecture 2007 Specification: > T3 SPARC core has a new 9 stage floating point pipeline and added Fused > Multiply-Add (FMADD) instruction and VIS 3.0 Instruct

[llvm-branch-commits] [SPARC][IAS] Add definitions for UA 2005 instructions (PR #138400)

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan created https://github.com/llvm/llvm-project/pull/138400 None ___ 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] Mark Niagara3 as VIS3-capable (PR #138399)

2025-05-03 Thread via llvm-branch-commits
https://github.com/koachan created https://github.com/llvm/llvm-project/pull/138399 >From SPARC T3 Supplement to the UltraSPARC Architecture 2007 Specification: > T3 SPARC core has a new 9 stage floating point pipeline and added Fused > Multiply-Add (FMADD) instruction and VIS 3.0 Instructions c

[clang] release/20.x: [clang-format] RemoveParentheses shouldn't remove empty… (PR #138380)

2025-05-03 Thread Björn Schäpers via llvm-branch-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/138380 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commi

[llvm-branch-commits] [clang] release/20.x: [clang-format] RemoveParentheses shouldn't remove empty… (PR #138380)

2025-05-03 Thread Owen Pan via llvm-branch-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/138380 >From 4b85fd08252bfe37382d4f9a7ecde898422830c7 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 2 May 2025 19:19:39 -0700 Subject: [PATCH] release/20.x: [clang-format] RemoveParentheses shouldn't remove empty

[llvm-branch-commits] [clang] release/20.x: [clang-format] RemoveParentheses shouldn't remove empty… (PR #138380)

2025-05-03 Thread Owen Pan via llvm-branch-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/138380 >From 4b85fd08252bfe37382d4f9a7ecde898422830c7 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 2 May 2025 19:19:39 -0700 Subject: [PATCH 1/2] release/20.x: [clang-format] RemoveParentheses shouldn't remove em