[Target] Remove unused forward declarations (NFC)
This commit is contained in:
parent
890e685492
commit
41bfac6aed
|
@ -26,7 +26,6 @@ class AArch64Subtarget;
|
|||
class AArch64TargetMachine;
|
||||
class FunctionPass;
|
||||
class InstructionSelector;
|
||||
class MachineFunctionPass;
|
||||
|
||||
FunctionPass *createAArch64DeadRegisterDefinitions();
|
||||
FunctionPass *createAArch64RedundantCopyEliminationPass();
|
||||
|
|
|
@ -487,7 +487,6 @@ const unsigned RoundingBitsPos = 22;
|
|||
} // namespace AArch64
|
||||
|
||||
class AArch64Subtarget;
|
||||
class AArch64TargetMachine;
|
||||
|
||||
class AArch64TargetLowering : public TargetLowering {
|
||||
public:
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class AArch64Subtarget;
|
||||
class AArch64TargetMachine;
|
||||
|
||||
static const MachineMemOperand::Flags MOSuppressPair =
|
||||
MachineMemOperand::MOTargetFlag1;
|
||||
|
|
|
@ -14,15 +14,12 @@
|
|||
|
||||
namespace llvm {
|
||||
class AsmPrinter;
|
||||
class MCAsmInfo;
|
||||
class MCContext;
|
||||
class MCInst;
|
||||
class MCOperand;
|
||||
class MCSymbol;
|
||||
class MachineInstr;
|
||||
class MachineModuleInfoMachO;
|
||||
class MachineOperand;
|
||||
class Mangler;
|
||||
|
||||
/// AArch64MCInstLower - This class is used to lower an MachineInstr
|
||||
/// into an MCInst.
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class AArch64RegisterBankInfo;
|
||||
|
||||
class AArch64TargetMachine : public LLVMTargetMachine {
|
||||
protected:
|
||||
std::unique_ptr<TargetLoweringObjectFile> TLOF;
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
|
||||
namespace llvm {
|
||||
class AArch64TargetMachine;
|
||||
|
||||
/// This implementation is used for AArch64 ELF targets (Linux in particular).
|
||||
class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
|
||||
|
|
|
@ -24,9 +24,7 @@ namespace llvm {
|
|||
|
||||
class AArch64TargetLowering;
|
||||
class CCValAssign;
|
||||
class DataLayout;
|
||||
class MachineIRBuilder;
|
||||
class MachineRegisterInfo;
|
||||
class Type;
|
||||
|
||||
class AArch64CallLowering: public CallLowering {
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class LLVMContext;
|
||||
class AArch64Subtarget;
|
||||
|
||||
/// This class provides the information for the target register banks.
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class MCStreamer;
|
||||
class Target;
|
||||
class Triple;
|
||||
|
||||
struct AArch64MCAsmInfoDarwin : public MCAsmInfoDarwin {
|
||||
|
|
|
@ -30,11 +30,7 @@ class MCStreamer;
|
|||
class MCSubtargetInfo;
|
||||
class MCTargetOptions;
|
||||
class MCTargetStreamer;
|
||||
class StringRef;
|
||||
class Target;
|
||||
class Triple;
|
||||
class raw_ostream;
|
||||
class raw_pwrite_stream;
|
||||
|
||||
MCCodeEmitter *createAArch64MCCodeEmitter(const MCInstrInfo &MCII,
|
||||
const MCRegisterInfo &MRI,
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class GCNSubtarget;
|
||||
class MachineFunction;
|
||||
class MachineInstr;
|
||||
class MachineInstrBuilder;
|
||||
class MachineMemOperand;
|
||||
|
||||
class AMDGPUInstrInfo {
|
||||
|
|
|
@ -30,7 +30,6 @@ namespace AMDGPU {
|
|||
struct ImageDimIntrinsicInfo;
|
||||
}
|
||||
|
||||
class AMDGPUInstrInfo;
|
||||
class AMDGPURegisterBankInfo;
|
||||
class AMDGPUTargetMachine;
|
||||
class BlockFrequencyInfo;
|
||||
|
@ -42,7 +41,6 @@ class MachineOperand;
|
|||
class MachineRegisterInfo;
|
||||
class RegisterBank;
|
||||
class SIInstrInfo;
|
||||
class SIMachineFunctionInfo;
|
||||
class SIRegisterInfo;
|
||||
class TargetRegisterClass;
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class GCNTargetMachine;
|
||||
class LLVMContext;
|
||||
class GCNSubtarget;
|
||||
class MachineIRBuilder;
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class GCNSubtarget;
|
||||
|
||||
class AMDGPUMachineFunction : public MachineFunctionInfo {
|
||||
/// A map to keep track of local memory objects and their offsets within the
|
||||
/// local memory space.
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class ScheduleDAGMILive;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// AMDGPU Target Machine (R600+)
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -25,7 +25,6 @@ class MachineFunction;
|
|||
class MachineInstr;
|
||||
class MachineOperand;
|
||||
class MachineRegisterInfo;
|
||||
class ScheduleDAG;
|
||||
class SIInstrInfo;
|
||||
class SIRegisterInfo;
|
||||
class GCNSubtarget;
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class R600InstrInfo;
|
||||
class R600Subtarget;
|
||||
|
||||
class R600TargetLowering final : public AMDGPUTargetLowering {
|
||||
|
|
|
@ -29,7 +29,6 @@ enum : uint64_t {
|
|||
};
|
||||
}
|
||||
|
||||
class AMDGPUTargetMachine;
|
||||
class DFAPacketizer;
|
||||
class MachineFunction;
|
||||
class MachineInstr;
|
||||
|
|
|
@ -21,12 +21,6 @@
|
|||
#include "Utils/AMDGPUBaseInfo.h"
|
||||
#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class MCInstrInfo;
|
||||
|
||||
} // namespace llvm
|
||||
|
||||
#define GET_SUBTARGETINFO_HEADER
|
||||
#include "R600GenSubtargetInfo.inc"
|
||||
|
||||
|
|
|
@ -13,11 +13,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class SIInstrInfo;
|
||||
class SIMachineFunctionInfo;
|
||||
class SIRegisterInfo;
|
||||
class GCNSubtarget;
|
||||
|
||||
class SIFrameLowering final : public AMDGPUFrameLowering {
|
||||
public:
|
||||
SIFrameLowering(StackDirection D, Align StackAl, int LAO,
|
||||
|
|
|
@ -29,8 +29,6 @@ struct BasicBlockInfo;
|
|||
class Function;
|
||||
class FunctionPass;
|
||||
class InstructionSelector;
|
||||
class MachineBasicBlock;
|
||||
class MachineFunction;
|
||||
class MachineInstr;
|
||||
class MCInst;
|
||||
class PassRegistry;
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class ARMTargetLowering;
|
||||
class MachineFunction;
|
||||
class MachineInstrBuilder;
|
||||
class MachineIRBuilder;
|
||||
class Value;
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class ARMSubtarget;
|
||||
|
||||
struct ARMRegisterInfo : public ARMBaseRegisterInfo {
|
||||
virtual void anchor();
|
||||
public:
|
||||
|
|
|
@ -36,8 +36,6 @@ class MCTargetStreamer;
|
|||
class StringRef;
|
||||
class Target;
|
||||
class Triple;
|
||||
class raw_ostream;
|
||||
class raw_pwrite_stream;
|
||||
|
||||
namespace ARM_MC {
|
||||
std::string ParseARMTriple(const Triple &TT, StringRef CPU);
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class ARMSubtarget;
|
||||
class ScheduleHazardRecognizer;
|
||||
|
||||
class Thumb2InstrInfo : public ARMBaseInstrInfo {
|
||||
ThumbRegisterInfo RI;
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class MachineMemOperand;
|
||||
class MipsTargetLowering;
|
||||
|
||||
class MipsCallLowering : public CallLowering {
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class APInt;
|
||||
class MCSubtargetInfo;
|
||||
|
||||
namespace RISCVMatInt {
|
||||
struct Inst {
|
||||
|
|
|
@ -23,11 +23,7 @@ class MCObjectTargetWriter;
|
|||
class MCRegisterInfo;
|
||||
class MCSubtargetInfo;
|
||||
class MCTargetOptions;
|
||||
class StringRef;
|
||||
class Target;
|
||||
class Triple;
|
||||
class raw_pwrite_stream;
|
||||
class raw_ostream;
|
||||
|
||||
namespace SystemZMC {
|
||||
// How many bytes are in the ABI-defined, caller-allocated part of
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class MCStreamer;
|
||||
class MachineBasicBlock;
|
||||
class MachineInstr;
|
||||
class Module;
|
||||
class raw_ostream;
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include "llvm/Support/TypeSize.h"
|
||||
|
||||
namespace llvm {
|
||||
class SystemZTargetMachine;
|
||||
class SystemZSubtarget;
|
||||
|
||||
class SystemZFrameLowering : public TargetFrameLowering {
|
||||
|
|
|
@ -381,7 +381,6 @@ enum {
|
|||
} // end namespace SystemZICMP
|
||||
|
||||
class SystemZSubtarget;
|
||||
class SystemZTargetMachine;
|
||||
|
||||
class SystemZTargetLowering : public TargetLowering {
|
||||
public:
|
||||
|
|
|
@ -18,7 +18,6 @@ class MCInst;
|
|||
class MCOperand;
|
||||
class MachineInstr;
|
||||
class MachineOperand;
|
||||
class Mangler;
|
||||
class SystemZAsmPrinter;
|
||||
|
||||
class LLVM_LIBRARY_VISIBILITY SystemZMCInstLower {
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class SystemZTargetMachine;
|
||||
|
||||
class SystemZSelectionDAGInfo : public SelectionDAGTargetInfo {
|
||||
public:
|
||||
explicit SystemZSelectionDAGInfo() = default;
|
||||
|
|
|
@ -27,10 +27,6 @@ class MCRegisterInfo;
|
|||
class MCSubtargetInfo;
|
||||
class MCTargetOptions;
|
||||
class Target;
|
||||
class Triple;
|
||||
class StringRef;
|
||||
class raw_pwrite_stream;
|
||||
class raw_ostream;
|
||||
|
||||
MCCodeEmitter *createVEMCCodeEmitter(const MCInstrInfo &MCII,
|
||||
const MCRegisterInfo &MRI, MCContext &Ctx);
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
namespace llvm {
|
||||
class FunctionPass;
|
||||
class VETargetMachine;
|
||||
class formatted_raw_ostream;
|
||||
class AsmPrinter;
|
||||
class MCInst;
|
||||
class MachineInstr;
|
||||
|
|
|
@ -26,7 +26,6 @@ class MCAsmBackend;
|
|||
class MCCodeEmitter;
|
||||
class MCInstrInfo;
|
||||
class MCObjectTargetWriter;
|
||||
class MVT;
|
||||
class Triple;
|
||||
|
||||
MCCodeEmitter *createWebAssemblyMCCodeEmitter(const MCInstrInfo &MCII);
|
||||
|
|
|
@ -25,7 +25,6 @@ class MachineInstr;
|
|||
class MachineOperand;
|
||||
class MCContext;
|
||||
class MCSymbolWasm;
|
||||
class StringRef;
|
||||
class WebAssemblyFunctionInfo;
|
||||
class WebAssemblySubtarget;
|
||||
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
namespace llvm {
|
||||
|
||||
template <typename T> class ArrayRef;
|
||||
class DataLayout;
|
||||
class MachineRegisterInfo;
|
||||
class X86TargetLowering;
|
||||
|
||||
class X86CallLowering : public CallLowering {
|
||||
|
|
Loading…
Reference in New Issue
Block a user