[llvm] [Targets] Move *TargetStreamer.h files into their MCTargetDesc directory. (PR #127433)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 16 20:22:35 PST 2025


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/127433

This file is included from MCTargetDesc so should be there instead of in the main directory for the target.

>From a71b6c56ab561f2a22f60bead3b1c25c01a18d98 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Sun, 16 Feb 2025 20:16:40 -0800
Subject: [PATCH] [Target] Move *TargetStreamer.h files into their MCTargetDesc
 directory.

This file is included from MCTargetDesc so should be there instead
of in the main directory for the target.
---
 llvm/lib/Target/ARC/{ => MCTargetDesc}/ARCTargetStreamer.h      | 0
 llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp          | 2 +-
 llvm/lib/Target/Hexagon/HexagonAsmPrinter.cpp                   | 2 +-
 .../Target/Hexagon/{ => MCTargetDesc}/HexagonTargetStreamer.h   | 0
 llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp                | 2 +-
 llvm/lib/Target/Mips/{ => MCTargetDesc}/MipsTargetStreamer.h    | 0
 llvm/lib/Target/Mips/MipsAsmPrinter.cpp                         | 2 +-
 llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp              | 2 +-
 llvm/lib/Target/PowerPC/{ => MCTargetDesc}/PPCTargetStreamer.h  | 0
 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp                       | 2 +-
 llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp          | 2 +-
 .../Target/SystemZ/{ => MCTargetDesc}/SystemZTargetStreamer.h   | 0
 llvm/lib/Target/SystemZ/SystemZAsmPrinter.h                     | 2 +-
 llvm/lib/Target/XCore/{ => MCTargetDesc}/XCoreTargetStreamer.h  | 0
 llvm/lib/Target/XCore/XCoreAsmPrinter.cpp                       | 2 +-
 15 files changed, 9 insertions(+), 9 deletions(-)
 rename llvm/lib/Target/ARC/{ => MCTargetDesc}/ARCTargetStreamer.h (100%)
 rename llvm/lib/Target/Hexagon/{ => MCTargetDesc}/HexagonTargetStreamer.h (100%)
 rename llvm/lib/Target/Mips/{ => MCTargetDesc}/MipsTargetStreamer.h (100%)
 rename llvm/lib/Target/PowerPC/{ => MCTargetDesc}/PPCTargetStreamer.h (100%)
 rename llvm/lib/Target/SystemZ/{ => MCTargetDesc}/SystemZTargetStreamer.h (100%)
 rename llvm/lib/Target/XCore/{ => MCTargetDesc}/XCoreTargetStreamer.h (100%)

diff --git a/llvm/lib/Target/ARC/ARCTargetStreamer.h b/llvm/lib/Target/ARC/MCTargetDesc/ARCTargetStreamer.h
similarity index 100%
rename from llvm/lib/Target/ARC/ARCTargetStreamer.h
rename to llvm/lib/Target/ARC/MCTargetDesc/ARCTargetStreamer.h
diff --git a/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp b/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
index 20881de1d94f4..f8c57fc5e0058 100644
--- a/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
+++ b/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
@@ -6,13 +6,13 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "HexagonTargetStreamer.h"
 #include "MCTargetDesc/HexagonMCChecker.h"
 #include "MCTargetDesc/HexagonMCELFStreamer.h"
 #include "MCTargetDesc/HexagonMCExpr.h"
 #include "MCTargetDesc/HexagonMCInstrInfo.h"
 #include "MCTargetDesc/HexagonMCTargetDesc.h"
 #include "MCTargetDesc/HexagonShuffler.h"
+#include "MCTargetDesc/HexagonTargetStreamer.h"
 #include "TargetInfo/HexagonTargetInfo.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallVector.h"
diff --git a/llvm/lib/Target/Hexagon/HexagonAsmPrinter.cpp b/llvm/lib/Target/Hexagon/HexagonAsmPrinter.cpp
index f10122fdacfcd..c6f250353f736 100644
--- a/llvm/lib/Target/Hexagon/HexagonAsmPrinter.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonAsmPrinter.cpp
@@ -16,11 +16,11 @@
 #include "HexagonInstrInfo.h"
 #include "HexagonRegisterInfo.h"
 #include "HexagonSubtarget.h"
-#include "HexagonTargetStreamer.h"
 #include "MCTargetDesc/HexagonInstPrinter.h"
 #include "MCTargetDesc/HexagonMCExpr.h"
 #include "MCTargetDesc/HexagonMCInstrInfo.h"
 #include "MCTargetDesc/HexagonMCTargetDesc.h"
+#include "MCTargetDesc/HexagonTargetStreamer.h"
 #include "TargetInfo/HexagonTargetInfo.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringRef.h"
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetStreamer.h b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonTargetStreamer.h
similarity index 100%
rename from llvm/lib/Target/Hexagon/HexagonTargetStreamer.h
rename to llvm/lib/Target/Hexagon/MCTargetDesc/HexagonTargetStreamer.h
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index d108564e128c0..8c328d5ed7234 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -11,7 +11,7 @@
 #include "MCTargetDesc/MipsBaseInfo.h"
 #include "MCTargetDesc/MipsMCExpr.h"
 #include "MCTargetDesc/MipsMCTargetDesc.h"
-#include "MipsTargetStreamer.h"
+#include "MCTargetDesc/MipsTargetStreamer.h"
 #include "TargetInfo/MipsTargetInfo.h"
 #include "llvm/ADT/APFloat.h"
 #include "llvm/ADT/SmallVector.h"
diff --git a/llvm/lib/Target/Mips/MipsTargetStreamer.h b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.h
similarity index 100%
rename from llvm/lib/Target/Mips/MipsTargetStreamer.h
rename to llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.h
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
index b0b7b5dc7a31d..e06a9b36bfe4f 100644
--- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
+++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
@@ -17,12 +17,12 @@
 #include "MCTargetDesc/MipsInstPrinter.h"
 #include "MCTargetDesc/MipsMCNaCl.h"
 #include "MCTargetDesc/MipsMCTargetDesc.h"
+#include "MCTargetDesc/MipsTargetStreamer.h"
 #include "Mips.h"
 #include "MipsMCInstLower.h"
 #include "MipsMachineFunction.h"
 #include "MipsSubtarget.h"
 #include "MipsTargetMachine.h"
-#include "MipsTargetStreamer.h"
 #include "TargetInfo/MipsTargetInfo.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringRef.h"
diff --git a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
index dc75814b9796b..016e4f9f7c6b6 100644
--- a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
+++ b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
@@ -8,8 +8,8 @@
 
 #include "MCTargetDesc/PPCMCExpr.h"
 #include "MCTargetDesc/PPCMCTargetDesc.h"
+#include "MCTargetDesc/PPCTargetStreamer.h"
 #include "PPCInstrInfo.h"
-#include "PPCTargetStreamer.h"
 #include "TargetInfo/PowerPCTargetInfo.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/MC/MCContext.h"
diff --git a/llvm/lib/Target/PowerPC/PPCTargetStreamer.h b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCTargetStreamer.h
similarity index 100%
rename from llvm/lib/Target/PowerPC/PPCTargetStreamer.h
rename to llvm/lib/Target/PowerPC/MCTargetDesc/PPCTargetStreamer.h
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 162d11058266f..5784fe43879fe 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -19,12 +19,12 @@
 #include "MCTargetDesc/PPCMCExpr.h"
 #include "MCTargetDesc/PPCMCTargetDesc.h"
 #include "MCTargetDesc/PPCPredicates.h"
+#include "MCTargetDesc/PPCTargetStreamer.h"
 #include "PPC.h"
 #include "PPCInstrInfo.h"
 #include "PPCMachineFunctionInfo.h"
 #include "PPCSubtarget.h"
 #include "PPCTargetMachine.h"
-#include "PPCTargetStreamer.h"
 #include "TargetInfo/PowerPCTargetInfo.h"
 #include "llvm/ADT/MapVector.h"
 #include "llvm/ADT/SetVector.h"
diff --git a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
index b892c9ea69602..4b26437c5fecb 100644
--- a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
+++ b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
@@ -9,7 +9,7 @@
 #include "MCTargetDesc/SystemZGNUInstPrinter.h"
 #include "MCTargetDesc/SystemZMCAsmInfo.h"
 #include "MCTargetDesc/SystemZMCTargetDesc.h"
-#include "SystemZTargetStreamer.h"
+#include "MCTargetDesc/SystemZTargetStreamer.h"
 #include "TargetInfo/SystemZTargetInfo.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallVector.h"
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetStreamer.h b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZTargetStreamer.h
similarity index 100%
rename from llvm/lib/Target/SystemZ/SystemZTargetStreamer.h
rename to llvm/lib/Target/SystemZ/MCTargetDesc/SystemZTargetStreamer.h
diff --git a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h
index 2696702b44551..47e7f67e2cdc7 100644
--- a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h
+++ b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h
@@ -9,9 +9,9 @@
 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
 
+#include "MCTargetDesc/SystemZTargetStreamer.h"
 #include "SystemZMCInstLower.h"
 #include "SystemZTargetMachine.h"
-#include "SystemZTargetStreamer.h"
 #include "llvm/CodeGen/AsmPrinter.h"
 #include "llvm/CodeGen/StackMaps.h"
 #include "llvm/MC/MCInstBuilder.h"
diff --git a/llvm/lib/Target/XCore/XCoreTargetStreamer.h b/llvm/lib/Target/XCore/MCTargetDesc/XCoreTargetStreamer.h
similarity index 100%
rename from llvm/lib/Target/XCore/XCoreTargetStreamer.h
rename to llvm/lib/Target/XCore/MCTargetDesc/XCoreTargetStreamer.h
diff --git a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp
index 15be47a73cef3..a1f7608224b90 100644
--- a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp
+++ b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp
@@ -12,12 +12,12 @@
 //===----------------------------------------------------------------------===//
 
 #include "MCTargetDesc/XCoreInstPrinter.h"
+#include "MCTargetDesc/XCoreTargetStreamer.h"
 #include "TargetInfo/XCoreTargetInfo.h"
 #include "XCore.h"
 #include "XCoreMCInstLower.h"
 #include "XCoreSubtarget.h"
 #include "XCoreTargetMachine.h"
-#include "XCoreTargetStreamer.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/CodeGen/AsmPrinter.h"



More information about the llvm-commits mailing list