[llvm] [Target] Remove unused includes (NFC) (PR #116577)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 17 22:30:54 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-systemz

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

Identified with misc-include-cleaner.


---

Patch is 82.97 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/116577.diff


138 Files Affected:

- (modified) llvm/lib/Target/AVR/AVRAsmPrinter.cpp (-1) 
- (modified) llvm/lib/Target/AVR/AVRFrameLowering.cpp (-1) 
- (modified) llvm/lib/Target/AVR/AVRISelLowering.cpp (-1) 
- (modified) llvm/lib/Target/AVR/AVRInstrInfo.cpp (-6) 
- (modified) llvm/lib/Target/AVR/AVRRegisterInfo.cpp (-2) 
- (modified) llvm/lib/Target/AVR/AVRSubtarget.cpp (-1) 
- (modified) llvm/lib/Target/AVR/AVRTargetMachine.cpp (-1) 
- (modified) llvm/lib/Target/AVR/AVRTargetObjectFile.cpp (-1) 
- (modified) llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp (-2) 
- (modified) llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp (-3) 
- (modified) llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp (-1) 
- (modified) llvm/lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp (-1) 
- (modified) llvm/lib/Target/AVR/MCTargetDesc/AVRELFStreamer.cpp (-2) 
- (modified) llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp (-1) 
- (modified) llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp (-1) 
- (modified) llvm/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp (-1) 
- (modified) llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp (-2) 
- (modified) llvm/lib/Target/BPF/BPFAdjustOpt.cpp (-1) 
- (modified) llvm/lib/Target/BPF/BPFAsmPrinter.cpp (-2) 
- (modified) llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp (-3) 
- (modified) llvm/lib/Target/BPF/BPFFrameLowering.cpp (-3) 
- (modified) llvm/lib/Target/BPF/BPFIRPeephole.cpp (-2) 
- (modified) llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp (-4) 
- (modified) llvm/lib/Target/BPF/BPFISelLowering.cpp (-1) 
- (modified) llvm/lib/Target/BPF/BPFMIChecking.cpp (-3) 
- (modified) llvm/lib/Target/BPF/BPFPreserveDIType.cpp (-1) 
- (modified) llvm/lib/Target/BPF/BPFPreserveStaticOffset.cpp (-1) 
- (modified) llvm/lib/Target/BPF/BPFRegisterInfo.cpp (-1) 
- (modified) llvm/lib/Target/BPF/BPFSelectionDAGInfo.cpp (-1) 
- (modified) llvm/lib/Target/BPF/BPFTargetMachine.cpp (-1) 
- (modified) llvm/lib/Target/BPF/GISel/BPFCallLowering.cpp (-1) 
- (modified) llvm/lib/Target/BPF/GISel/BPFInstructionSelector.cpp (-2) 
- (modified) llvm/lib/Target/BPF/GISel/BPFLegalizerInfo.cpp (-1) 
- (modified) llvm/lib/Target/BPF/GISel/BPFRegisterBankInfo.cpp (-3) 
- (modified) llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp (-1) 
- (modified) llvm/lib/Target/BPF/MCTargetDesc/BPFInstPrinter.cpp (+1-4) 
- (modified) llvm/lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp (-1) 
- (modified) llvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp (-2) 
- (modified) llvm/lib/Target/Lanai/LanaiAsmPrinter.cpp (-6) 
- (modified) llvm/lib/Target/Lanai/LanaiFrameLowering.cpp (-2) 
- (modified) llvm/lib/Target/Lanai/LanaiISelDAGToDAG.cpp (-9) 
- (modified) llvm/lib/Target/Lanai/LanaiISelLowering.cpp (-2) 
- (modified) llvm/lib/Target/Lanai/LanaiInstrInfo.cpp (-2) 
- (modified) llvm/lib/Target/Lanai/LanaiMCInstLower.cpp (-1) 
- (modified) llvm/lib/Target/Lanai/LanaiRegisterInfo.cpp (-3) 
- (modified) llvm/lib/Target/Lanai/LanaiSelectionDAGInfo.cpp (-2) 
- (modified) llvm/lib/Target/Lanai/LanaiSubtarget.cpp (-2) 
- (modified) llvm/lib/Target/Lanai/LanaiTargetMachine.cpp (-2) 
- (modified) llvm/lib/Target/Lanai/LanaiTargetObjectFile.cpp (-3) 
- (modified) llvm/lib/Target/Lanai/MCTargetDesc/LanaiAsmBackend.cpp (-1) 
- (modified) llvm/lib/Target/Lanai/MCTargetDesc/LanaiInstPrinter.cpp (-3) 
- (modified) llvm/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp (-2) 
- (modified) llvm/lib/Target/LoongArch/Disassembler/LoongArchDisassembler.cpp (-2) 
- (modified) llvm/lib/Target/LoongArch/LoongArchAsmPrinter.cpp (-2) 
- (modified) llvm/lib/Target/LoongArch/LoongArchDeadRegisterDefinitions.cpp (-2) 
- (modified) llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp (-1) 
- (modified) llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp (-1) 
- (modified) llvm/lib/Target/LoongArch/LoongArchMCInstLower.cpp (-2) 
- (modified) llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.cpp (-2) 
- (modified) llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchInstPrinter.cpp (-2) 
- (modified) llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp (-1) 
- (modified) llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp (-1) 
- (modified) llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.cpp (-1) 
- (modified) llvm/lib/Target/MSP430/AsmParser/MSP430AsmParser.cpp (-2) 
- (modified) llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp (-1) 
- (modified) llvm/lib/Target/MSP430/MCTargetDesc/MSP430AsmBackend.cpp (-1) 
- (modified) llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.cpp (-1) 
- (modified) llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCCodeEmitter.cpp (-2) 
- (modified) llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp (-6) 
- (modified) llvm/lib/Target/MSP430/MSP430FrameLowering.cpp (-3) 
- (modified) llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp (-5) 
- (modified) llvm/lib/Target/MSP430/MSP430ISelLowering.cpp (-2) 
- (modified) llvm/lib/Target/MSP430/MSP430InstrInfo.cpp (-5) 
- (modified) llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp (-3) 
- (modified) llvm/lib/Target/MSP430/MSP430Subtarget.cpp (-1) 
- (modified) llvm/lib/Target/MSP430/MSP430TargetMachine.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXInstPrinter.cpp (-2) 
- (modified) llvm/lib/Target/NVPTX/NVPTXAliasAnalysis.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (-3) 
- (modified) llvm/lib/Target/NVPTX/NVPTXAtomicLower.cpp (-2) 
- (modified) llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp (-3) 
- (modified) llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVPTXImageOptimizer.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp (-3) 
- (modified) llvm/lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp (-2) 
- (modified) llvm/lib/Target/NVPTX/NVPTXLowerAlloca.cpp (-3) 
- (modified) llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVPTXProxyRegErasure.cpp (-3) 
- (modified) llvm/lib/Target/NVPTX/NVPTXRegisterInfo.cpp (-3) 
- (modified) llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVPTXUtilities.cpp (-4) 
- (modified) llvm/lib/Target/NVPTX/NVVMIntrRange.cpp (-1) 
- (modified) llvm/lib/Target/NVPTX/NVVMReflect.cpp (-3) 
- (modified) llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp (-1) 
- (modified) llvm/lib/Target/Sparc/DelaySlotFiller.cpp (-1) 
- (modified) llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp (-1) 
- (modified) llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp (-1) 
- (modified) llvm/lib/Target/Sparc/MCTargetDesc/SparcMCCodeEmitter.cpp (-3) 
- (modified) llvm/lib/Target/Sparc/SparcFrameLowering.cpp (-2) 
- (modified) llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp (-3) 
- (modified) llvm/lib/Target/Sparc/SparcInstrInfo.cpp (-2) 
- (modified) llvm/lib/Target/Sparc/SparcSubtarget.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/Disassembler/SystemZDisassembler.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZCallingConv.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZCopyPhysRegs.cpp (-2) 
- (modified) llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZSubtarget.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZTDC.cpp (-2) 
- (modified) llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp (-1) 
- (modified) llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp (-1) 
- (modified) llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp (-3) 
- (modified) llvm/lib/Target/VE/LVLGen.cpp (-2) 
- (modified) llvm/lib/Target/VE/MCTargetDesc/VEMCAsmInfo.cpp (-3) 
- (modified) llvm/lib/Target/VE/MCTargetDesc/VEMCCodeEmitter.cpp (-1) 
- (modified) llvm/lib/Target/VE/VEAsmPrinter.cpp (-3) 
- (modified) llvm/lib/Target/VE/VEFrameLowering.cpp (+1-4) 
- (modified) llvm/lib/Target/VE/VEISelDAGToDAG.cpp (-4) 
- (modified) llvm/lib/Target/VE/VEISelLowering.cpp (-1) 
- (modified) llvm/lib/Target/VE/VEInstrInfo.cpp (-1) 
- (modified) llvm/lib/Target/VE/VERegisterInfo.cpp (-4) 
- (modified) llvm/lib/Target/VE/VESubtarget.cpp (-2) 
- (modified) llvm/lib/Target/X86/MCA/X86CustomBehaviour.cpp (+1-2) 
- (modified) llvm/lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.cpp (-1) 
- (modified) llvm/lib/Target/XCore/XCoreAsmPrinter.cpp (-5) 
- (modified) llvm/lib/Target/XCore/XCoreFrameLowering.cpp (-2) 
- (modified) llvm/lib/Target/XCore/XCoreFrameToArgsOffsetElim.cpp (-2) 
- (modified) llvm/lib/Target/XCore/XCoreISelDAGToDAG.cpp (-6) 
- (modified) llvm/lib/Target/XCore/XCoreISelLowering.cpp (-1) 
- (modified) llvm/lib/Target/XCore/XCoreInstrInfo.cpp (-4) 
- (modified) llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp (-1) 
- (modified) llvm/lib/Target/XCore/XCoreRegisterInfo.cpp (+1-6) 
- (modified) llvm/lib/Target/XCore/XCoreTargetMachine.cpp (-2) 


``````````diff
diff --git a/llvm/lib/Target/AVR/AVRAsmPrinter.cpp b/llvm/lib/Target/AVR/AVRAsmPrinter.cpp
index 6cb154fc256707..deca7d584148c8 100644
--- a/llvm/lib/Target/AVR/AVRAsmPrinter.cpp
+++ b/llvm/lib/Target/AVR/AVRAsmPrinter.cpp
@@ -19,7 +19,6 @@
 #include "MCTargetDesc/AVRMCExpr.h"
 #include "TargetInfo/AVRTargetInfo.h"
 
-#include "llvm/BinaryFormat/ELF.h"
 #include "llvm/CodeGen/AsmPrinter.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/MachineInstr.h"
diff --git a/llvm/lib/Target/AVR/AVRFrameLowering.cpp b/llvm/lib/Target/AVR/AVRFrameLowering.cpp
index 91b0f8c6b2df48..ea94a90580c9c6 100644
--- a/llvm/lib/Target/AVR/AVRFrameLowering.cpp
+++ b/llvm/lib/Target/AVR/AVRFrameLowering.cpp
@@ -23,7 +23,6 @@
 #include "llvm/CodeGen/MachineFunctionPass.h"
 #include "llvm/CodeGen/MachineInstrBuilder.h"
 #include "llvm/CodeGen/MachineRegisterInfo.h"
-#include "llvm/IR/Function.h"
 
 namespace llvm {
 
diff --git a/llvm/lib/Target/AVR/AVRISelLowering.cpp b/llvm/lib/Target/AVR/AVRISelLowering.cpp
index 0046e757f4efa2..e01ed133c3e365 100644
--- a/llvm/lib/Target/AVR/AVRISelLowering.cpp
+++ b/llvm/lib/Target/AVR/AVRISelLowering.cpp
@@ -14,7 +14,6 @@
 #include "AVRISelLowering.h"
 
 #include "llvm/ADT/ArrayRef.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/CodeGen/CallingConvLower.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
diff --git a/llvm/lib/Target/AVR/AVRInstrInfo.cpp b/llvm/lib/Target/AVR/AVRInstrInfo.cpp
index 7b0f8d74e77c2f..7d58ece95c869f 100644
--- a/llvm/lib/Target/AVR/AVRInstrInfo.cpp
+++ b/llvm/lib/Target/AVR/AVRInstrInfo.cpp
@@ -12,16 +12,10 @@
 
 #include "AVRInstrInfo.h"
 
-#include "llvm/ADT/STLExtras.h"
-#include "llvm/CodeGen/MachineConstantPool.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineInstrBuilder.h"
 #include "llvm/CodeGen/MachineMemOperand.h"
-#include "llvm/IR/Constants.h"
-#include "llvm/IR/Function.h"
 #include "llvm/MC/MCContext.h"
-#include "llvm/MC/TargetRegistry.h"
-#include "llvm/Support/Debug.h"
 #include "llvm/Support/ErrorHandling.h"
 
 #include "AVR.h"
diff --git a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
index d345c50488a29d..6e66b4c111be95 100644
--- a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
+++ b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
@@ -16,9 +16,7 @@
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/MachineInstrBuilder.h"
-#include "llvm/CodeGen/MachineRegisterInfo.h"
 #include "llvm/CodeGen/TargetFrameLowering.h"
-#include "llvm/IR/Function.h"
 
 #include "AVR.h"
 #include "AVRInstrInfo.h"
diff --git a/llvm/lib/Target/AVR/AVRSubtarget.cpp b/llvm/lib/Target/AVR/AVRSubtarget.cpp
index 8051f9d21714bf..a119c4d6f3c07c 100644
--- a/llvm/lib/Target/AVR/AVRSubtarget.cpp
+++ b/llvm/lib/Target/AVR/AVRSubtarget.cpp
@@ -17,7 +17,6 @@
 
 #include "AVR.h"
 #include "AVRTargetMachine.h"
-#include "MCTargetDesc/AVRMCTargetDesc.h"
 
 #define DEBUG_TYPE "avr-subtarget"
 
diff --git a/llvm/lib/Target/AVR/AVRTargetMachine.cpp b/llvm/lib/Target/AVR/AVRTargetMachine.cpp
index 6851f575cc82fe..579f7ac7123131 100644
--- a/llvm/lib/Target/AVR/AVRTargetMachine.cpp
+++ b/llvm/lib/Target/AVR/AVRTargetMachine.cpp
@@ -14,7 +14,6 @@
 
 #include "llvm/CodeGen/Passes.h"
 #include "llvm/CodeGen/TargetPassConfig.h"
-#include "llvm/IR/Module.h"
 #include "llvm/MC/TargetRegistry.h"
 
 #include "AVR.h"
diff --git a/llvm/lib/Target/AVR/AVRTargetObjectFile.cpp b/llvm/lib/Target/AVR/AVRTargetObjectFile.cpp
index fe8e863be1a3ff..8cab0f3ba95b4b 100644
--- a/llvm/lib/Target/AVR/AVRTargetObjectFile.cpp
+++ b/llvm/lib/Target/AVR/AVRTargetObjectFile.cpp
@@ -10,7 +10,6 @@
 #include "AVRTargetMachine.h"
 
 #include "llvm/BinaryFormat/ELF.h"
-#include "llvm/IR/DerivedTypes.h"
 #include "llvm/IR/GlobalValue.h"
 #include "llvm/IR/Mangler.h"
 #include "llvm/MC/MCContext.h"
diff --git a/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp b/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
index b4971e43b48ebf..68bd89f624b8a1 100644
--- a/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
+++ b/llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
@@ -6,7 +6,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AVR.h"
 #include "AVRRegisterInfo.h"
 #include "MCTargetDesc/AVRMCELFStreamer.h"
 #include "MCTargetDesc/AVRMCExpr.h"
@@ -17,7 +16,6 @@
 #include "llvm/MC/MCContext.h"
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCInst.h"
-#include "llvm/MC/MCInstBuilder.h"
 #include "llvm/MC/MCParser/MCAsmLexer.h"
 #include "llvm/MC/MCParser/MCParsedAsmOperand.h"
 #include "llvm/MC/MCParser/MCTargetAsmParser.h"
diff --git a/llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp b/llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
index 07121ec29fff69..70428673fcd8da 100644
--- a/llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
+++ b/llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
@@ -10,9 +10,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AVR.h"
-#include "AVRRegisterInfo.h"
-#include "AVRSubtarget.h"
 #include "MCTargetDesc/AVRMCTargetDesc.h"
 #include "TargetInfo/AVRTargetInfo.h"
 
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
index c0bc1276967bf0..17c48c2fc35ff8 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
@@ -17,7 +17,6 @@
 #include "llvm/MC/MCAsmBackend.h"
 #include "llvm/MC/MCAssembler.h"
 #include "llvm/MC/MCContext.h"
-#include "llvm/MC/MCDirectives.h"
 #include "llvm/MC/MCELFObjectWriter.h"
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCFixupKindInfo.h"
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp
index d9a7a3addef3ab..1a08980d9df7b1 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp
@@ -7,7 +7,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "MCTargetDesc/AVRFixupKinds.h"
-#include "MCTargetDesc/AVRMCExpr.h"
 #include "MCTargetDesc/AVRMCTargetDesc.h"
 
 #include "llvm/MC/MCAssembler.h"
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRELFStreamer.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRELFStreamer.cpp
index e32d2d42717f3e..d68508410c4d30 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRELFStreamer.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRELFStreamer.cpp
@@ -1,10 +1,8 @@
 #include "AVRELFStreamer.h"
 #include "AVRMCTargetDesc.h"
 #include "llvm/BinaryFormat/ELF.h"
-#include "llvm/MC/MCAssembler.h"
 #include "llvm/MC/MCELFObjectWriter.h"
 #include "llvm/MC/MCSubtargetInfo.h"
-#include "llvm/Support/FormattedStream.h"
 #include "llvm/TargetParser/SubtargetFeature.h"
 
 namespace llvm {
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
index 178877aa006828..bf512dd07c0a0a 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
@@ -20,7 +20,6 @@
 #include "llvm/MC/MCInstrInfo.h"
 #include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/FormattedStream.h"
 
 #include <cstring>
 
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp
index aa69d618d8a0ad..5a0ad8119ddd54 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp
@@ -26,7 +26,6 @@
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/EndianStream.h"
-#include "llvm/Support/raw_ostream.h"
 
 #define DEBUG_TYPE "mccodeemitter"
 
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp
index 3153dfb3b827fe..f87fb70f97ff00 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp
@@ -14,7 +14,6 @@
 #include "AVRELFStreamer.h"
 #include "AVRInstPrinter.h"
 #include "AVRMCAsmInfo.h"
-#include "AVRMCELFStreamer.h"
 #include "AVRTargetStreamer.h"
 #include "TargetInfo/AVRTargetInfo.h"
 
diff --git a/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp b/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
index 32ddf11ec31968..119684b8bbeda0 100644
--- a/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
+++ b/llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
@@ -8,7 +8,6 @@
 
 #include "MCTargetDesc/BPFMCTargetDesc.h"
 #include "TargetInfo/BPFTargetInfo.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/MC/MCContext.h"
 #include "llvm/MC/MCExpr.h"
@@ -17,7 +16,6 @@
 #include "llvm/MC/MCParser/MCAsmLexer.h"
 #include "llvm/MC/MCParser/MCParsedAsmOperand.h"
 #include "llvm/MC/MCParser/MCTargetAsmParser.h"
-#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/MC/MCStreamer.h"
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/MC/TargetRegistry.h"
diff --git a/llvm/lib/Target/BPF/BPFAdjustOpt.cpp b/llvm/lib/Target/BPF/BPFAdjustOpt.cpp
index 4ca7bbe9c2a8c4..44a2e63afd3c98 100644
--- a/llvm/lib/Target/BPF/BPFAdjustOpt.cpp
+++ b/llvm/lib/Target/BPF/BPFAdjustOpt.cpp
@@ -12,7 +12,6 @@
 
 #include "BPF.h"
 #include "BPFCORE.h"
-#include "BPFTargetMachine.h"
 #include "llvm/IR/Instruction.h"
 #include "llvm/IR/Instructions.h"
 #include "llvm/IR/IntrinsicsBPF.h"
diff --git a/llvm/lib/Target/BPF/BPFAsmPrinter.cpp b/llvm/lib/Target/BPF/BPFAsmPrinter.cpp
index a9ac4f651ea27f..ab03a4e56ea076 100644
--- a/llvm/lib/Target/BPF/BPFAsmPrinter.cpp
+++ b/llvm/lib/Target/BPF/BPFAsmPrinter.cpp
@@ -14,13 +14,11 @@
 #include "BPF.h"
 #include "BPFInstrInfo.h"
 #include "BPFMCInstLower.h"
-#include "BPFTargetMachine.h"
 #include "BTFDebug.h"
 #include "MCTargetDesc/BPFInstPrinter.h"
 #include "TargetInfo/BPFTargetInfo.h"
 #include "llvm/CodeGen/AsmPrinter.h"
 #include "llvm/CodeGen/MachineConstantPool.h"
-#include "llvm/CodeGen/MachineFunctionPass.h"
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineModuleInfo.h"
 #include "llvm/IR/Module.h"
diff --git a/llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp b/llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
index 660e00b893c885..f0cf9b134c2109 100644
--- a/llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
+++ b/llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp
@@ -21,9 +21,7 @@
 
 #include "BPF.h"
 #include "BPFCORE.h"
-#include "BPFTargetMachine.h"
 #include "llvm/Analysis/LoopInfo.h"
-#include "llvm/IR/DebugInfoMetadata.h"
 #include "llvm/IR/GlobalVariable.h"
 #include "llvm/IR/IRBuilder.h"
 #include "llvm/IR/Instruction.h"
@@ -31,7 +29,6 @@
 #include "llvm/IR/IntrinsicsBPF.h"
 #include "llvm/IR/Module.h"
 #include "llvm/IR/Type.h"
-#include "llvm/IR/User.h"
 #include "llvm/IR/Value.h"
 #include "llvm/Pass.h"
 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
diff --git a/llvm/lib/Target/BPF/BPFFrameLowering.cpp b/llvm/lib/Target/BPF/BPFFrameLowering.cpp
index 123b99f254234d..00780b4d1406fa 100644
--- a/llvm/lib/Target/BPF/BPFFrameLowering.cpp
+++ b/llvm/lib/Target/BPF/BPFFrameLowering.cpp
@@ -11,12 +11,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "BPFFrameLowering.h"
-#include "BPFInstrInfo.h"
 #include "BPFSubtarget.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/CodeGen/MachineInstrBuilder.h"
-#include "llvm/CodeGen/MachineRegisterInfo.h"
 
 using namespace llvm;
 
diff --git a/llvm/lib/Target/BPF/BPFIRPeephole.cpp b/llvm/lib/Target/BPF/BPFIRPeephole.cpp
index a257f582f2a104..d82275c08d37c7 100644
--- a/llvm/lib/Target/BPF/BPFIRPeephole.cpp
+++ b/llvm/lib/Target/BPF/BPFIRPeephole.cpp
@@ -15,10 +15,8 @@
 #include "llvm/IR/Instruction.h"
 #include "llvm/IR/Instructions.h"
 #include "llvm/IR/IntrinsicInst.h"
-#include "llvm/IR/Module.h"
 #include "llvm/IR/PassManager.h"
 #include "llvm/IR/Type.h"
-#include "llvm/IR/User.h"
 #include "llvm/IR/Value.h"
 #include "llvm/Pass.h"
 
diff --git a/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp b/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
index 67f98bd7c05bac..352017e9b92926 100644
--- a/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
+++ b/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
@@ -12,15 +12,12 @@
 //===----------------------------------------------------------------------===//
 
 #include "BPF.h"
-#include "BPFRegisterInfo.h"
 #include "BPFSubtarget.h"
 #include "BPFTargetMachine.h"
 #include "llvm/CodeGen/FunctionLoweringInfo.h"
 #include "llvm/CodeGen/MachineConstantPool.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/CodeGen/MachineInstrBuilder.h"
-#include "llvm/CodeGen/MachineRegisterInfo.h"
 #include "llvm/CodeGen/SelectionDAGISel.h"
 #include "llvm/IR/Constants.h"
 #include "llvm/IR/IntrinsicInst.h"
@@ -29,7 +26,6 @@
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Target/TargetMachine.h"
 
 using namespace llvm;
 
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp
index ff23d3b055d0d5..da639903764e7a 100644
--- a/llvm/lib/Target/BPF/BPFISelLowering.cpp
+++ b/llvm/lib/Target/BPF/BPFISelLowering.cpp
@@ -14,7 +14,6 @@
 #include "BPFISelLowering.h"
 #include "BPF.h"
 #include "BPFSubtarget.h"
-#include "BPFTargetMachine.h"
 #include "llvm/CodeGen/CallingConvLower.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
diff --git a/llvm/lib/Target/BPF/BPFMIChecking.cpp b/llvm/lib/Target/BPF/BPFMIChecking.cpp
index 09635dbba17607..0633836df73b6b 100644
--- a/llvm/lib/Target/BPF/BPFMIChecking.cpp
+++ b/llvm/lib/Target/BPF/BPFMIChecking.cpp
@@ -15,11 +15,8 @@
 //===----------------------------------------------------------------------===//
 
 #include "BPF.h"
-#include "BPFInstrInfo.h"
 #include "BPFTargetMachine.h"
 #include "llvm/CodeGen/MachineFunctionPass.h"
-#include "llvm/CodeGen/MachineInstrBuilder.h"
-#include "llvm/CodeGen/MachineRegisterInfo.h"
 #include "llvm/IR/DiagnosticInfo.h"
 #include "llvm/Support/Debug.h"
 
diff --git a/llvm/lib/Target/BPF/BPFPreserveDIType.cpp b/llvm/lib/Target/BPF/BPFPreserveDIType.cpp
index afc154988050c8..d3b0c0246581b2 100644
--- a/llvm/lib/Target/BPF/BPFPreserveDIType.cpp
+++ b/llvm/lib/Target/BPF/BPFPreserveDIType.cpp
@@ -21,7 +21,6 @@
 #include "llvm/IR/Module.h"
 #include "llvm/IR/PassManager.h"
 #include "llvm/IR/Type.h"
-#include "llvm/IR/User.h"
 #include "llvm/IR/Value.h"
 #include "llvm/Pass.h"
 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
diff --git a/llvm/lib/Target/BPF/BPFPreserveStaticOffset.cpp b/llvm/lib/Target/BPF/BPFPreserveStaticOffset.cpp
index 9f7e3414beb8e3..d9b6f27399aa12 100644
--- a/llvm/lib/Target/BPF/BPFPreserveStaticOffset.cpp
+++ b/llvm/lib/Target/BPF/BPFPreserveStaticOffset.cpp
@@ -105,7 +105,6 @@
 #include "BPFCORE.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/IR/Argument.h"
 #include "llvm/IR/Attributes.h"
 #include "llvm/IR/BasicBlock.h"
 #include "llvm/IR/Constants.h"
diff --git a/llvm/lib/Target/BPF/BPFRegisterInfo.cpp b/llvm/lib/Target/BPF/BPFRegisterInfo.cpp
index 69e1318954a973..307f278025ff49 100644
--- a/llvm/lib/Target/BPF/BPFRegisterInfo.cpp
+++ b/llvm/lib/Target/BPF/BPFRegisterInfo.cpp
@@ -11,7 +11,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "BPFRegisterInfo.h"
-#include "BPF.h"
 #include "BPFSubtarget.h"
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
diff --git a/llvm/lib/Target/BPF/BPFSelectionDAGInfo.cpp b/llvm/lib/Target/BPF/BPFSelectionDAGInfo.cpp
index 4c36c0edcef6ff..3e29e6c7ed3865 100644
--- a/llvm/lib/Target/BPF/BPFSelectionDAGInfo.cpp
+++ b/llvm/lib/Target/BPF/BPFSelectionDAGInfo.cpp
@@ -12,7 +12,6 @@
 
 #include "BPFTargetMachine.h"
 #include "llvm/CodeGen/SelectionDAG.h"
-#include "llvm/IR/DerivedTypes.h"
 using namespace llvm;
 
 #define DEBUG_TYPE "bpf-selectiondag-info"
diff --git a/llvm/lib/Target/BPF/BPFTargetMachine.cpp b/llvm/lib/Target/BPF/BPFTargetMachine.cpp
index fac86ad2bace1a..3379af6fe8744b 100644
--- a/llvm/lib/Target/BPF/BPFTargetMachine.cpp
+++ b/llvm/lib/Target/BPF/BPFTargetMachine.cpp
@@ -26,7 +26,6 @@
 #include "llvm/InitializePasses.h"
 #include "llvm/MC/TargetRegistry.h"
 #include "llvm/Passes/PassBuilder.h"
-#include "llvm/Support/FormattedStream.h"
 #include "llvm/Target/TargetOptions.h"
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/Transforms/Scalar/SimplifyCFG.h"
diff --git a/llvm/lib/Target/BPF/GISel/BPFCallLowering.cpp b/llvm/lib/Target/BPF/GISel/BPFCallLowering.cpp
index 3829a1a3151f31..87d92da1b5761b 100644
--- a/llvm/lib/Target/BPF/GISel/BPFCallLowering.cpp
+++ b/llvm/lib/Target/BPF/GISel/BPFCallLowering.cpp
@@ -14,7 +14,6 @@
 
 #include "BPFCallLowering.h"
 #include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"
-#include "llvm/Support/Debug.h"
 
 #define DEBUG_TYPE "bpf-call-lowering"
 
diff --git a/llvm/lib/Target/BPF/GISel/BPFInstructionSelector.cpp b/llvm/lib/Target/BPF/GISel/BPFInstructionSelector.cpp
index c7db93a260c473..16cc98e24511bd 100644
--- a/llvm/lib/Target/BPF/GISel/BPFInstructionSelector.cpp
+++ b/llvm/lib/Target/BPF/GISel/BPFInstructionSelector.cpp
@@ -16,9 +16,7 @@
 #include "llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h"
 #include "llvm/CodeGen/GlobalISel/InstructionSelector.h"
 #include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"
-#include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/IR/IntrinsicsBPF.h"
-#include "llvm/Support/Debug.h"
 
 #define DEBUG_TYPE "bpf-gisel"
 
diff --git a/llvm/lib/Target/BPF/GISel/BPFLegalizerInfo.cpp b/llvm/lib/Target/BPF/GISel/BPFLegalizerInfo.cpp
index 04220c176376d1..7c95ecc075f36f 100644
--- a/llvm/lib/Target/BPF/GISel/BPFLegalizerInfo.cpp
+++ b/llvm/lib/Target/BPF/GISel/BPFLegalizerInfo.cpp
@@ -10,7 +10,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "BPFLegalizerInfo.h"
-#include "llvm/Support/Debug.h"
 
 #define DEBUG_TYPE "bpf-legalinfo"
 
diff --git a/llvm/lib/Target/BPF/GISel/BPFRegisterBankInfo.cpp b/llvm/lib/Target/BPF/GISel/BPFRegisterBankInfo.cpp
index f50e8f524a872b..54601a7764092e 100644
--- a/llvm/lib/Target/BPF/GISel/BPFRegisterBankInfo.cpp
+++ b/llvm/lib/Target/BPF/GISel/BPFRegisterBankInfo.cpp
@@ -10,9 +10,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "BPFRegisterBankInfo.h"
-#include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/CodeGen/MachineRegisterInfo.h"
-#include "llvm/Support/Debug.h"
 
 #define DEBUG_TYPE "bpf-reg-bank-info"
 
diff --git a/llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp b/llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
index a7a08714f05f5d..25bfb7ae143c8b 100644
--- a/llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
+++ b/llvm/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
@@ -8,7 +8,6 @@
 
 #include "MCTargetDesc/BPFMCFixups.h"
 #include "MCTargetDesc/BPFMCTargetDesc.h"
-#include "llvm/ADT/StringRef.h"
 #include "llvm/MC/MCAsmBackend.h"
 #include "llvm/MC/MCAssembler.h"
 #include "llvm/MC/MCContext.h"
diff --git a/llvm/lib/Target/BPF/MCTargetDesc/BPFInstPrinter.cpp b/llvm/lib/Target/BPF/MCTargetDesc/BPFInstPrinter.cpp
index c266538bec7361..792aa47e77a0a9 100644
--- a/llvm/lib/Target/BPF/MCTargetDesc/BPFInstPrinter.cpp
+++ b/llvm/lib/Target/BPF/MCTargetDesc/BPFInstPrinter.cpp
@@ -10,17 +10,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-
-#include "BPF.h"
 #include "MCTargetDesc/BPFInstPrinter.h"
+#include "BPF.h"
 #include "llvm/MC/MCAsmInfo.h"
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCInst.h"
-#include "llvm/MC/MCRegister.h"
 #include "llvm/MC/MCSymbol.h"
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/FormattedStream.h"
 using namespace llvm;
 
 #define DEBUG_TYPE "asm-printer"
diff --git a/llvm/lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp b/llvm/lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp
index b807d6904004d0..10a46f100bbea3 100644
--- a/llvm/lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp
+++ b/llvm/lib/Target/BPF/MCTargetDesc/BPFM...
[truncated]

``````````

</details>


https://github.com/llvm/llvm-project/pull/116577


More information about the llvm-commits mailing list