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

2025-06-26 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. This version looks good to me now, thanks! https://github.com/llvm/llvm-project/pull/133799 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

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

2025-06-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,106 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-06-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-06-24 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-06-24 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand edited https://github.com/llvm/llvm-project/pull/133799 ___ 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] [GOFF] Emit symbols for functions. (PR #144437)

2025-06-24 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand commented: There doesn't appear to be any asm output for these? https://github.com/llvm/llvm-project/pull/144437 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

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

2025-06-24 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,106 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-06-24 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand commented: Looks generally good to me now, still a few comments inline. https://github.com/llvm/llvm-project/pull/133799 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[llvm-branch-commits] [llvm] [GOFF] Add writing of text records (PR #137235)

2025-06-23 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. Still LGTM. https://github.com/llvm/llvm-project/pull/137235 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-com

[llvm-branch-commits] [llvm] [release/20.x] Update release notes for SystemZ changes (PR #140060)

2025-05-15 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand created https://github.com/llvm/llvm-project/pull/140060 None >From c97e80756a221267af0faebafaa956674f49d732 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 15 May 2025 16:00:30 +0200 Subject: [PATCH] Update release notes for SystemZ changes --- llvm/docs

[llvm-branch-commits] [llvm] [GOFF] Add writing of text records (PR #137235)

2025-05-09 Thread Ulrich Weigand via llvm-branch-commits
@@ -50,26 +53,26 @@ class MCSectionGOFF final : public MCSection { friend class MCContext; friend class MCSymbolGOFF; - MCSectionGOFF(StringRef Name, SectionKind K, GOFF::SDAttr SDAttributes, -MCSectionGOFF *Parent) - : MCSection(SV_GOFF, Name, K.isTe

[llvm-branch-commits] [llvm] [GOFF] Add writing of text records (PR #137235)

2025-05-08 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: Huh. Looks like the new test case now fails ... https://github.com/llvm/llvm-project/pull/137235 ___ 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] [llvm] [GOFF] Add writing of text records (PR #137235)

2025-05-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -571,7 +571,6 @@ void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) { GOFF::ESD_LB_Initial, GOFF::ESD_RQ_0, GOFF::ESD_ALIGN_Doubleword, 0}, RootSDSection); - uweigand wrote: This change is spurious

[llvm-branch-commits] [llvm] [GOFF] Add writing of text records (PR #137235)

2025-05-07 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. LGTM now, thanks! https://github.com/llvm/llvm-project/pull/137235 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bran

[llvm-branch-commits] [llvm] [GOFF] Add writing of text records (PR #137235)

2025-05-07 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand edited https://github.com/llvm/llvm-project/pull/137235 ___ 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] [GOFF] Add writing of text records (PR #137235)

2025-04-30 Thread Ulrich Weigand via llvm-branch-commits
@@ -688,28 +689,32 @@ MCSectionGOFF *MCContext::getGOFFSection(SectionKind Kind, StringRef Name, return Iter->second; StringRef CachedName = StringRef(Iter->first.c_str(), Name.size()); - MCSectionGOFF *GOFFSection = new (GOFFAllocator.Allocate()) MCSectionGOFF( -

[llvm-branch-commits] [llvm] release/20.x: [SystemZ] Fix compile time regression in adjustInliningThreshold(). (#137527) (PR #137628)

2025-04-28 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/137628 ___ 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] [GOFF] Add writing of text records (PR #137235)

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: Also, the new tests seem to be failing in CI. https://github.com/llvm/llvm-project/pull/137235 ___ 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] [GOFF] Add writing of text records (PR #137235)

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand commented: Why do we need all that "virtual section" stuff? Wouldn't it suffice to exit early from ::writeText if the section length is zero? https://github.com/llvm/llvm-project/pull/137235 ___ llvm-branch-commits mailin

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

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -223,13 +197,95 @@ void GOFFOstream::finalizeRecord() { } namespace { +// A GOFFSymbol holds all the data required for writing an ESD record. +class GOFFSymbol { +public: + std::string Name; + uint32_t EsdId; + uint32_t ParentEsdId; + uint64_t Offset = 0; // Offset of t

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

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,106 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,106 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,145 @@ +//===- MCSectionGOFF.cpp - GOFF Code Section Representation ---===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-25 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [clang] [llvm] [release/20.x] Support z17 processor name and scheduler description (PR #135413)

2025-04-14 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > This is a pretty large patch, how safe is this? A lot of this are test and comment-only changes, which should be harmless. Beyond that, the only actual changes are - introduction of the "z17" processor name (three single-line changes) - the new scheduler description (one sin

[llvm-branch-commits] [clang] [llvm] [release/20.x] Support z17 processor name and scheduler description (PR #135413)

2025-04-11 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand milestoned https://github.com/llvm/llvm-project/pull/135413 ___ 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] [release/20.x] Support z17 processor name and scheduler description (PR #135413)

2025-04-11 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand edited https://github.com/llvm/llvm-project/pull/135413 ___ 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -599,8 +615,23 @@ class MCContext { unsigned Flags, unsigned EntrySize); - MCSectionGOFF *getGOFFSection(StringRef Section, SectionKind Kind, -

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

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -239,6 +298,63 @@ class GOFFWriter { GOFFWriter::GOFFWriter(raw_pwrite_stream &OS, MCAssembler &Asm) : OS(OS), Asm(Asm) {} +void GOFFWriter::defineSectionSymbols(const MCSectionGOFF &Section) { + if (Section.isSD()) { +GOFFSymbol SD(Section.getName(), Section.getId

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

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -239,6 +298,63 @@ class GOFFWriter { GOFFWriter::GOFFWriter(raw_pwrite_stream &OS, MCAssembler &Asm) : OS(OS), Asm(Asm) {} +void GOFFWriter::defineSectionSymbols(const MCSectionGOFF &Section) { + if (Section.isSD()) { +GOFFSymbol SD(Section.getName(), Section.getId

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

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -230,10 +230,11 @@ class MCObjectFileInfo { MCSection *GLJMPSection = nullptr; // GOFF specific sections. - MCSection *PPA1Section = nullptr; - MCSection *PPA2Section = nullptr; - MCSection *PPA2ListSection = nullptr; - MCSection *ADASection = nullptr; + MCSection

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

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -239,6 +298,63 @@ class GOFFWriter { GOFFWriter::GOFFWriter(raw_pwrite_stream &OS, MCAssembler &Asm) : OS(OS), Asm(Asm) {} +void GOFFWriter::defineSectionSymbols(const MCSectionGOFF &Section) { + if (Section.isSD()) { +GOFFSymbol SD(Section.getName(), Section.getId

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

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,145 @@ +//===- MCSectionGOFF.cpp - GOFF Code Section Representation ---===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,145 @@ +//===- MCSectionGOFF.cpp - GOFF Code Section Representation ---===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,145 @@ +//===- MCSectionGOFF.cpp - GOFF Code Section Representation ---===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,145 @@ +//===- MCSectionGOFF.cpp - GOFF Code Section Representation ---===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,113 @@ +//===- MCGOFFAttributes.h - Attributes of GOFF symbols ===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -0,0 +1,145 @@ +//===- MCSectionGOFF.cpp - GOFF Code Section Representation ---===// +// +// 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] [GOFF] Add writing of section symbols (PR #133799)

2025-04-10 Thread Ulrich Weigand via llvm-branch-commits
@@ -16,6 +16,9 @@ namespace llvm { class GOFFObjectWriter; class MCGOFFStreamer : public MCObjectStreamer { + std::string RootSDName; + std::string ADAPRName; uweigand wrote: These are no longer used, I think. https://github.com/llvm/llvm-project/pull/1337

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

2025-04-09 Thread Ulrich Weigand via llvm-branch-commits
@@ -230,10 +230,11 @@ class MCObjectFileInfo { MCSection *GLJMPSection = nullptr; // GOFF specific sections. - MCSection *PPA1Section = nullptr; - MCSection *PPA2Section = nullptr; - MCSection *PPA2ListSection = nullptr; - MCSection *ADASection = nullptr; + MCSection

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

2025-04-08 Thread Ulrich Weigand via llvm-branch-commits
@@ -16,34 +16,94 @@ #define LLVM_MC_MCSECTIONGOFF_H #include "llvm/BinaryFormat/GOFF.h" +#include "llvm/MC/MCGOFFAttributes.h" #include "llvm/MC/MCSection.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" namespace llvm { class MCExpr;

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -16,34 +16,95 @@ #define LLVM_MC_MCSECTIONGOFF_H #include "llvm/BinaryFormat/GOFF.h" +#include "llvm/MC/MCGOFFAttributes.h" #include "llvm/MC/MCSection.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" namespace llvm { class MCExpr;

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > I use the ordinal number +1 of the section as the section number, but still > need a counter for the symbols. Can't we just set the ordinal to the correct value to begin with? ELF sets the ordinals while writing out the sections; I think we might as well do the same. (The

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -239,6 +298,63 @@ class GOFFWriter { GOFFWriter::GOFFWriter(raw_pwrite_stream &OS, MCAssembler &Asm) : OS(OS), Asm(Asm) {} +void GOFFWriter::defineSectionSymbols(const MCSectionGOFF &Section) { + if (Section.isSD()) { +GOFFSymbol SD(Section.getName(), Section.getId

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -671,24 +672,48 @@ MCContext::getELFUniqueIDForEntsize(StringRef SectionName, unsigned Flags, : std::nullopt; } -MCSectionGOFF *MCContext::getGOFFSection(StringRef Section, SectionKind Kind, - MC

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -26,6 +27,29 @@ GOFFObjectWriter &MCGOFFStreamer::getWriter() { return static_cast(getAssembler().getWriter()); } +void MCGOFFStreamer::initSections(bool /*NoExecStack*/, + const MCSubtargetInfo &STI) { + MCContext &Ctx = getContext(); +

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -26,6 +27,29 @@ GOFFObjectWriter &MCGOFFStreamer::getWriter() { return static_cast(getAssembler().getWriter()); } +void MCGOFFStreamer::initSections(bool /*NoExecStack*/, + const MCSubtargetInfo &STI) { + MCContext &Ctx = getContext(); +

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -239,6 +298,63 @@ class GOFFWriter { GOFFWriter::GOFFWriter(raw_pwrite_stream &OS, MCAssembler &Asm) : OS(OS), Asm(Asm) {} +void GOFFWriter::defineSectionSymbols(const MCSectionGOFF &Section) { + if (Section.isSD()) { +GOFFSymbol SD(Section.getName(), Section.getId

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

2025-04-07 Thread Ulrich Weigand via llvm-branch-commits
@@ -599,8 +615,23 @@ class MCContext { unsigned Flags, unsigned EntrySize); - MCSectionGOFF *getGOFFSection(StringRef Section, SectionKind Kind, -

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

2025-04-05 Thread Ulrich Weigand via llvm-branch-commits
@@ -2767,15 +2774,55 @@ MCSection *TargetLoweringObjectFileGOFF::getExplicitSectionGlobal( MCSection *TargetLoweringObjectFileGOFF::getSectionForLSDA( const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { std::string Name = ".gcc_exception_table." +

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

2025-04-04 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > I think that splitting the SD/ED/LD into 3 "section"s implies that a > MCSectionGOFF has a fundamentally different semantic than the other > MCSectionXXX. This is something I would like to avoid. On the other hand, the > SD/ED pair is almost the same as an ELF section, so jus

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

2025-04-03 Thread Ulrich Weigand via llvm-branch-commits
@@ -2767,15 +2774,55 @@ MCSection *TargetLoweringObjectFileGOFF::getExplicitSectionGlobal( MCSection *TargetLoweringObjectFileGOFF::getSectionForLSDA( const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const { std::string Name = ".gcc_exception_table." +

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

2025-04-03 Thread Ulrich Weigand via llvm-branch-commits
@@ -239,6 +309,102 @@ class GOFFWriter { GOFFWriter::GOFFWriter(raw_pwrite_stream &OS, MCAssembler &Asm) : OS(OS), Asm(Asm) {} +GOFFSymbol GOFFWriter::createGOFFSymbol(StringRef Name, const GOFF::SDAttr &Attr) { + return GOFFSymbol(Name, ++EsdIdCounter, Attr); +} + +GOFF

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

2025-04-03 Thread Ulrich Weigand via llvm-branch-commits
@@ -2759,6 +2760,12 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForLSDA( //===--===// TargetLoweringObjectFileGOFF::TargetLoweringObjectFileGOFF() = default; +void TargetLoweringObjectFileGOFF::ge

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

2025-04-03 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > I implemented the suggestion from @uweigand. The GOFF attributes are set > directly at the `MCSectionGOFF`, and the `GOFFSymbolMapper` is gone. I still > need to update a couple of tests, since now the section names have changed. Thanks, I actually like this better. Looking

[llvm-branch-commits] [llvm] release/20.x: [SystemZ] Move disabling of arg verification to before isFullyInternal(). (#130693) (PR #130998)

2025-03-13 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. https://github.com/llvm/llvm-project/pull/130998 ___ 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/20.x: [SystemZ] Move disabling of arg verification to before isFullyInternal(). (#130693) (PR #130998)

2025-03-12 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: Fixes a significant compile time regression in LLVM 20, see https://github.com/llvm/llvm-project/issues/130541 https://github.com/llvm/llvm-project/pull/130998 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org htt

[llvm-branch-commits] [clang] release/20.x: [SystemZ] Add header guard macros to vecintrin.h (#129170) (PR #129286)

2025-02-28 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. https://github.com/llvm/llvm-project/pull/129286 ___ 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/20.x: [SystemZ] Replace SELRMux with COPY in case of identical operands. (#125108) (PR #125236)

2025-02-10 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. Sorry for the delay, I've been travelling. This looks good to backport to me. Thanks! https://github.com/llvm/llvm-project/pull/125236 ___ llvm-branch-commits mailing list llvm-branch-commits@l

[llvm-branch-commits] [llvm] release/19.x: [SystemZ] Use the EVT version of getVectorVT() in combineTruncateExtract(). (#100150) (PR #116510)

2024-11-18 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/116510 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-c

[llvm-branch-commits] [clang] release/19.x: [SystemZ] Fix codegen for _[u]128 intrinsics (PR #111376)

2024-10-11 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > @uweigand (or anyone else). If you would like to add a note about this fix in > the release notes (completely optional). Please reply to this comment with a > one or two sentence description of the fix. When you are done, please add the > release:note label to this PR. Fix a

[llvm-branch-commits] [clang] release/19.x: [SystemZ] Fix codegen for _[u]128 intrinsics (PR #111376)

2024-10-07 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. I think this should be a candidate for backport, as the problem is a miscompilation regression and the fix is straightforward. https://github.com/llvm/llvm-project/pull/111376 ___ llvm-branch-com

[llvm-branch-commits] [llvm] release/18.x: [SystemZ] Bugfix in getDemandedSrcElements(). (#88623) (PR #95463)

2024-06-25 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. https://github.com/llvm/llvm-project/pull/95463 ___ 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/18.x: [SystemZ] Bugfix in getDemandedSrcElements(). (#88623) (PR #95463)

2024-06-25 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: It is not a regression, but a codegen wrong-code bug that can trigger based on random source code changes. Given that fact, and the fact the fix is very simple and "obviously correct", I do think this would be good to backport. https://github.com/llvm/llvm-project/pull/95463 _

[llvm-branch-commits] [llvm] release/18.x: [SystemZ] Handle address clobbering in splitMove(). (#92105) (PR #92221)

2024-05-15 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/92221 ___ 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/18.x: [SystemZ] Fix overflow flag for i128 USUBO (PR #86491)

2024-03-28 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > Hi @uweigand (or anyone else). If you would like to add a note about this fix > in the release notes (completely optional). Please reply to this comment with > a one or two sentence description of the fix. This fix is for a regression that only came in with LLVM 18 due to the

[llvm-branch-commits] [llvm] release/18.x: [SystemZ] Fix overflow flag for i128 USUBO (PR #86491)

2024-03-25 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand edited https://github.com/llvm/llvm-project/pull/86491 ___ 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] [SystemZ] Fix overflow flag for i128 USUBO (PR #86491)

2024-03-25 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand milestoned https://github.com/llvm/llvm-project/pull/86491 ___ 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] [SystemZ] Fix overflow flag for i128 USUBO (PR #86491)

2024-03-25 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand created https://github.com/llvm/llvm-project/pull/86491 We use the VSCBIQ/VSBIQ/VSBCBIQ family of instructions to implement USUBO/USUBO_CARRY for the i128 data type. However, these instructions use an inverted sense of the borrow indication flag (a value of 1 indic

[llvm-branch-commits] [llvm] release/18.x: Fix overflow flag for i128 USUBO (PR #86475)

2024-03-25 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand closed https://github.com/llvm/llvm-project/pull/86475 ___ 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/18.x: Fix overflow flag for i128 USUBO (PR #86475)

2024-03-25 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand requested changes to this pull request. Automatic merge was incorrect. I'll provide a manual merge. https://github.com/llvm/llvm-project/pull/86475 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org htt

[llvm-branch-commits] [clang] [lld] [llvm] [openmp] SystemZ release notes for 18.x. (PR #84560)

2024-03-11 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/84560 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-co

[llvm-branch-commits] [clang] [lld] [llvm] [openmp] SystemZ release notes for 18.x. (PR #84560)

2024-03-11 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > Looks like #73511 "munaligned-symbols" 34dd8ec never made it into the > 18-release branch... Ah OK, I had missed that. https://github.com/llvm/llvm-project/pull/84560 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.ll

[llvm-branch-commits] [clang] [lld] [llvm] SystemZ release notes for 18.x. (PR #84560)

2024-03-11 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: Thanks @JonPsson1 ! In addition, I see the following user-visible changes: - Support -munaligned-symbols command line option - Support SystemZ target in llvm-objcopy - Support OpenMP library on SystemZ Can you add those as well? https://github.com/llvm/llvm-project/pull/84560

[llvm-branch-commits] [llvm] release/18.x: [SystemZ] Require D12 for i128 accesses in isLegalAddressingMode() (#79221) (PR #83022)

2024-02-26 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. LGTM. This should be backported as a fixes a regression with i128 support. https://github.com/llvm/llvm-project/pull/83022 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org

[llvm-branch-commits] [llvm] release/18.x: [SystemZ] Use VT (not ArgVT) for SlotVT in LowerCall(). (#82475) (PR #83021)

2024-02-26 Thread Ulrich Weigand via llvm-branch-commits
https://github.com/uweigand approved this pull request. LGTM. This should be backported as a fixes a regression with i128 support. https://github.com/llvm/llvm-project/pull/83021 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org

[llvm-branch-commits] [llvm] release/18.x: [llvm-objcopy] Add SystemZ support (#81841) (PR #82324)

2024-02-21 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > > Also, as noted in the original PR, the corresponding doc change needs > > picking too. > > I'll add a cherry-pick for the doc PR if and when this PR is approved. https://github.com/llvm/llvm-project/pull/82470 https://github.com/llvm/llvm-project/pull/82324 ___

[llvm-branch-commits] [llvm] release/18.x: [llvm-objcopy] Add SystemZ support (#81841) (PR #82324)

2024-02-20 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: > Also, as noted in the original PR, the corresponding doc change needs picking > too. I'll add a cherry-pick for the doc PR if and when this PR is approved. https://github.com/llvm/llvm-project/pull/82324 ___ llvm-branch-commits mail

[llvm-branch-commits] [lld] release/18.x: [lld] Add target support for SystemZ (s390x) (#75643) (PR #81675)

2024-02-14 Thread Ulrich Weigand via llvm-branch-commits
uweigand wrote: We should also backport this part https://github.com/llvm/llvm-project/pull/81739 to enable building glibc with LLD on s390x. https://github.com/llvm/llvm-project/pull/81675 ___ llvm-branch-commits mailing list llvm-branch-commits@lis

[llvm-branch-commits] [llvm] b3a5abc - [NFC][Doc] Mention SystemZ supports StackMap generation

2021-01-21 Thread Ulrich Weigand via llvm-branch-commits
Author: Ulrich Weigand Date: 2021-01-21T18:29:46+01:00 New Revision: b3a5abcb36967bd4a83c0c12259d5193ac1a8245 URL: https://github.com/llvm/llvm-project/commit/b3a5abcb36967bd4a83c0c12259d5193ac1a8245 DIFF: https://github.com/llvm/llvm-project/commit/b3a5abcb36967bd4a83c0c12259d5193ac1a8245.diff

[llvm-branch-commits] [llvm] ebef921 - [SystemZ] Remove most hard-coded R1D instances for sibcalls

2020-12-15 Thread Ulrich Weigand via llvm-branch-commits
Author: Ulrich Weigand Date: 2020-12-15T16:31:18+01:00 New Revision: ebef92169ca5a50fb8aeec08f35ccb919311acc1 URL: https://github.com/llvm/llvm-project/commit/ebef92169ca5a50fb8aeec08f35ccb919311acc1 DIFF: https://github.com/llvm/llvm-project/commit/ebef92169ca5a50fb8aeec08f35ccb919311acc1.diff

[llvm-branch-commits] [llvm] dda0a18 - [LLVM 11] Add SystemZ changes to release notes

2020-09-29 Thread Ulrich Weigand via llvm-branch-commits
Author: Ulrich Weigand Date: 2020-09-29T14:59:38+02:00 New Revision: dda0a1867cc0c4ace4535f179aec85c3ff8cfa96 URL: https://github.com/llvm/llvm-project/commit/dda0a1867cc0c4ace4535f179aec85c3ff8cfa96 DIFF: https://github.com/llvm/llvm-project/commit/dda0a1867cc0c4ace4535f179aec85c3ff8cfa96.diff

[llvm-branch-commits] [llvm] aeba7ba - Add SystemZ release notes

2020-02-11 Thread Ulrich Weigand via llvm-branch-commits
Author: Ulrich Weigand Date: 2020-02-11T12:52:45+01:00 New Revision: aeba7ba9f3dada09e196d174e7f13b82f01300db URL: https://github.com/llvm/llvm-project/commit/aeba7ba9f3dada09e196d174e7f13b82f01300db DIFF: https://github.com/llvm/llvm-project/commit/aeba7ba9f3dada09e196d174e7f13b82f01300db.diff

[llvm-branch-commits] [llvm-branch] r366693 - [SystemZ] Add release notes on the LLVM 9 branch

2019-07-22 Thread Ulrich Weigand via llvm-branch-commits
Author: uweigand Date: Mon Jul 22 07:39:02 2019 New Revision: 366693 URL: http://llvm.org/viewvc/llvm-project?rev=366693&view=rev Log: [SystemZ] Add release notes on the LLVM 9 branch Modified: llvm/branches/release_90/docs/ReleaseNotes.rst Modified: llvm/branches/release_90/docs/ReleaseNote

[llvm-branch-commits] [compiler-rt-branch] r366690 - Revert r366413 on LLVM 9 branch

2019-07-22 Thread Ulrich Weigand via llvm-branch-commits
Author: uweigand Date: Mon Jul 22 07:07:55 2019 New Revision: 366690 URL: http://llvm.org/viewvc/llvm-project?rev=366690&view=rev Log: Revert r366413 on LLVM 9 branch This commit caused test suite failures on multiple platforms and has been reverted on mainline as r366472/r366482. Removed:

[llvm-branch-commits] [llvm-branch] r339355 - [7.0 branch] Update release notes (SystemZ, TableGen)

2018-08-10 Thread Ulrich Weigand via llvm-branch-commits
Author: uweigand Date: Thu Aug 9 09:18:00 2018 New Revision: 339355 URL: http://llvm.org/viewvc/llvm-project?rev=339355&view=rev Log: [7.0 branch] Update release notes (SystemZ, TableGen) This updates the 7.0 branch release notes to mention the SystemZ specific changes, and also the new support

[llvm-branch-commits] [llvm-branch] r324726 - [ReleaseNotes] Add SystemZ target section

2018-02-11 Thread Ulrich Weigand via llvm-branch-commits
Author: uweigand Date: Fri Feb 9 02:28:27 2018 New Revision: 324726 URL: http://llvm.org/viewvc/llvm-project?rev=324726&view=rev Log: [ReleaseNotes] Add SystemZ target section Modified: llvm/branches/release_60/docs/ReleaseNotes.rst Modified: llvm/branches/release_60/docs/ReleaseNotes.rst U