[llvm] Remove unused forward declarations (NFC)

This commit is contained in:
Kazu Hirata 2022-01-07 20:00:34 -08:00
parent f142c45f1e
commit 4e2ec7e38d
59 changed files with 0 additions and 98 deletions

View File

@ -25,7 +25,6 @@
namespace llvm {
struct AAMDNodes;
class AssumptionCache;
class BasicBlock;
class DataLayout;

View File

@ -44,7 +44,6 @@ class IntToPtrInst;
class LLVMContext;
class LoadInst;
class PHINode;
class PointerType;
class SelectInst;
class Type;
class UndefValue;

View File

@ -23,7 +23,6 @@ namespace llvm {
class MachineFunction;
class MachineInstr;
struct PerFunctionMIParsingState;
struct SlotMapping;
/// MIRFormater - Interface to format MIR operand based on target
class MIRFormatter {

View File

@ -16,7 +16,6 @@
namespace llvm {
class DataExtractor;
class DWARFUnit;
/// DWARFDebugInfoEntry - A DIE with only the minimum required data.

View File

@ -17,7 +17,6 @@
namespace llvm {
class raw_ostream;
namespace gsym {
struct FileEntry;
struct SourceLocation {
StringRef Name; ///< Function or symbol name.

View File

@ -21,7 +21,6 @@ class ObjectFile;
namespace gsym {
struct CUInfo;
class GsymCreator;
class ObjectFileTransformer {

View File

@ -20,7 +20,6 @@
namespace llvm {
class FileBufferByteStream;
class WritableBinaryStream;
namespace msf {
class MSFBuilder {

View File

@ -283,9 +283,7 @@ struct StructorIdentifierNode;
struct ThunkSignatureNode;
struct PointerTypeNode;
struct ArrayTypeNode;
struct CustomNode;
struct TagTypeNode;
struct IntrinsicTypeNode;
struct NodeArrayNode;
struct QualifiedNameNode;
struct TemplateParameterReferenceNode;

View File

@ -24,7 +24,6 @@
namespace llvm {
class IntelJITEventsWrapper;
class MachineFunction;
class OProfileWrapper;
namespace object {

View File

@ -51,13 +51,8 @@
#include <vector>
namespace llvm {
class Value;
namespace orc {
class ExtractingIRMaterializationUnit;
class CompileOnDemandLayer : public IRLayer {
friend class PartitioningIRMaterializationUnit;

View File

@ -20,7 +20,6 @@
namespace llvm {
class MCContext;
class MemoryBuffer;
class Module;
class ObjectCache;

View File

@ -33,7 +33,6 @@ class ConstantArray;
class GlobalVariable;
class Function;
class Module;
class TargetMachine;
class Value;
namespace orc {

View File

@ -19,7 +19,6 @@
#include <memory>
namespace llvm {
class Module;
namespace orc {
/// A layer that applies a transform to emitted modules.

View File

@ -38,10 +38,6 @@ class LinkGraph;
class Symbol;
} // namespace jitlink
namespace object {
class ObjectFile;
} // namespace object
namespace orc {
class ObjectLinkingLayerJITLinkContext;

View File

@ -20,13 +20,6 @@
#include "llvm/Frontend/OpenMP/OMP.h.inc"
namespace llvm {
class Type;
class Module;
class ArrayType;
class StructType;
class PointerType;
class FunctionType;
namespace omp {
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();

View File

@ -22,7 +22,6 @@
namespace llvm {
class Comdat;
class MDNode;
class Metadata;
class GlobalObject : public GlobalValue {

View File

@ -34,7 +34,6 @@ class Constant;
class Module;
template <typename ValueSubClass> class SymbolTableListTraits;
class DIGlobalVariable;
class DIGlobalVariableExpression;
class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {

View File

@ -32,7 +32,6 @@ class Module;
class OptPassGate;
template <typename T> class SmallVectorImpl;
template <typename T> class StringMapEntry;
class SMDiagnostic;
class StringRef;
class Twine;
class LLVMRemarkStreamer;

View File

@ -90,7 +90,6 @@ template <typename T> class ArrayRef;
class Module;
class StringRef;
class Value;
class Timer;
class PMDataManager;
// enums for debugging strings

View File

@ -47,9 +47,7 @@ class GVMaterializer;
class LLVMContext;
class MemoryBuffer;
class ModuleSummaryIndex;
class Pass;
class RandomNumberGenerator;
template <class PtrType> class SmallPtrSetImpl;
class StructType;
class VersionTuple;

View File

@ -21,7 +21,6 @@
namespace llvm {
class Instruction;
class BasicBlock;
constexpr const char *PseudoProbeDescMetadataName = "llvm.pseudo_probe_desc";

View File

@ -26,7 +26,6 @@ class BasicBlock;
class Function;
class Instruction;
class Value;
template <typename> class SmallVectorImpl;
template <typename, bool> class DominatorTreeBase;
template <> class GenericSSAContext<Function> {

View File

@ -35,7 +35,6 @@ class LLVMContext;
class MemoryBufferRef;
class Module;
class raw_pwrite_stream;
class Target;
class ToolOutputFile;
/// Resolve linkage for prevailing symbols in the \p Index. Linkage changes

View File

@ -29,7 +29,6 @@
namespace llvm {
class StringRef;
class LLVMContext;
class TargetMachine;
/// Helper to gather options relevant to the target machine creation

View File

@ -14,8 +14,6 @@
namespace llvm {
class Module;
class StructType;
class Type;
/// This class provides the core functionality of linking in LLVM. It keeps a
/// pointer to the merged module so far. It doesn't take ownership of the

View File

@ -60,7 +60,6 @@
namespace llvm {
class MCSection;
class MCStreamer;
class MCSymbol;
class MCObjectStreamer;
class raw_ostream;

View File

@ -40,7 +40,6 @@ namespace llvm {
class AssemblerConstantPools;
class MCAsmBackend;
class MCCodeEmitter;
class MCContext;
struct MCDwarfFrameInfo;
class MCExpr;

View File

@ -22,8 +22,6 @@ class Twine;
namespace object {
class Binary;
const std::error_category &object_category();
enum class object_error {

View File

@ -20,10 +20,7 @@
namespace llvm {
class BitcodeModule;
class Mangler;
class Module;
class GlobalValue;
class Triple;
namespace object {
class ObjectFile;

View File

@ -22,7 +22,6 @@
namespace llvm {
class StringRef;
class Module;
class LLVMContext;
namespace object {

View File

@ -31,7 +31,6 @@
namespace llvm {
class ARMAttributeParser;
class SubtargetFeatures;
namespace object {

View File

@ -26,7 +26,6 @@ class raw_ostream;
namespace DWARFYAML {
struct Data;
struct PubSection;
Error emitDebugAbbrev(raw_ostream &OS, const Data &DI);
Error emitDebugStr(raw_ostream &OS, const Data &DI);

View File

@ -18,7 +18,6 @@
#include "llvm/Support/Error.h"
namespace llvm {
class StringRef;
class ARMAttributeParser : public ELFAttributeParser {
struct DisplayHandler {

View File

@ -14,7 +14,6 @@
#include "llvm/ADT/BitVector.h"
namespace llvm {
class LLVMContext;
class MemoryBuffer;
class CodeGenCoverage {

View File

@ -33,7 +33,6 @@
namespace llvm {
class DataLayout;
class Type;
class raw_ostream;

View File

@ -44,7 +44,6 @@ struct RecordContext;
} // namespace detail
class ListRecTy;
struct MultiClass;
class Record;
class RecordKeeper;
class RecordVal;

View File

@ -19,7 +19,6 @@
#include "llvm/Target/TargetOptions.h"
namespace llvm {
class TargetMachine;
enum class RunOutliner { TargetDefault, AlwaysOutline, NeverOutline };
enum class RegAllocType { Default, Basic, Fast, Greedy, PBQP };

View File

@ -25,9 +25,7 @@ namespace llvm {
class ConstantFP;
class ConstantInt;
class DbgVariable;
class DwarfCompileUnit;
class MachineOperand;
class MCDwarfDwoLineTable;
class MCSymbol;

View File

@ -19,8 +19,6 @@
namespace llvm {
class AsmPrinter;
class MCStreamer;
class Module;
class DILocation;
class PseudoProbeHandler : public AsmPrinterHandler {

View File

@ -23,7 +23,6 @@ class BasicBlock;
class MachineBranchProbabilityInfo;
class MachineFunction;
class MachineLoopInfo;
class MachineModuleInfo;
class MachineRegisterInfo;
class MBFIWrapper;
class ProfileSummaryInfo;

View File

@ -19,9 +19,6 @@
#define DEBUG_TYPE "jitlink"
namespace llvm {
class MemoryBufferRef;
namespace jitlink {
/// Base class for a JIT linker.

View File

@ -25,7 +25,6 @@ class ARMAsmPrinter;
class ARMBaseTargetMachine;
class ARMRegisterBankInfo;
class ARMSubtarget;
struct BasicBlockInfo;
class Function;
class FunctionPass;
class InstructionSelector;

View File

@ -23,7 +23,6 @@ class MCCodeEmitter;
class MCStreamer;
class X86Subtarget;
class TargetMachine;
struct ASanAccessInfo;
class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
const X86Subtarget *Subtarget = nullptr;

View File

@ -32,7 +32,6 @@
namespace llvm {
class AAResults;
class DataLayout;
class PHINode;
class SelectInst;
class Value;

View File

@ -138,8 +138,6 @@ AllowIVWidening("indvars-widen-indvars", cl::Hidden, cl::init(true),
namespace {
struct RewritePhi;
class IndVarSimplify {
LoopInfo *LI;
ScalarEvolution *SE;

View File

@ -405,7 +405,6 @@ public:
class VPlan;
class VPBasicBlock;
class VPRegionBlock;
/// This class can be used to assign consecutive numbers to all VPValues in a
/// VPlan and allows querying the numbering for printing, similar to the

View File

@ -25,7 +25,6 @@
namespace llvm {
class Value;
class PassInfo;
class Module;
class GlobalVariable;
@ -35,8 +34,6 @@ class AbstractInterpreter;
class Instruction;
class LLVMContext;
class DebugCrashes;
class CC;
extern bool DisableSimplifyCFG;

View File

@ -18,7 +18,6 @@ class Error;
namespace object {
class COFFObjectFile;
class COFFImportFile;
class ObjectFile;
class RelocationRef;
} // namespace object

View File

@ -21,10 +21,6 @@ class StringRef;
class Twine;
namespace object {
class ELFObjectFileBase;
class ELFSectionRef;
class MachOObjectFile;
class MachOUniversalBinary;
class RelocationRef;
struct VersionEntry;
} // namespace object

View File

@ -21,12 +21,6 @@
#include <string>
namespace llvm {
class BitVector;
namespace codeview {
class LazyRandomTypeCollection;
}
namespace object {
class COFFObjectFile;
}

View File

@ -26,7 +26,6 @@ class LazyRandomTypeCollection;
}
namespace object {
class COFFObjectFile;
class SectionRef;
} // namespace object
namespace pdb {

View File

@ -20,7 +20,6 @@
#include <list>
namespace llvm {
class BinaryStreamReader;
namespace msf {
class MSFStreamLayout;
} // namespace msf

View File

@ -13,7 +13,6 @@
namespace llvm {
namespace pdb {
class PDBFile;
class OutputStyle {
public:

View File

@ -27,13 +27,9 @@
#include <vector>
namespace llvm {
namespace codeview {
class DebugStringTableSubsection;
}
namespace pdb {
namespace yaml {
struct SerializationContext;
struct MSFHeaders {
msf::SuperBlock SuperBlock;

View File

@ -17,7 +17,6 @@
namespace llvm {
namespace pdb {
class ModuleDebugStreamRef;
class YAMLOutputStyle : public OutputStyle {
public:

View File

@ -24,9 +24,6 @@
#include <vector>
namespace llvm {
namespace opt {
class InputArgList;
}
namespace rc {
class RCParser {

View File

@ -21,7 +21,6 @@
namespace llvm {
class Record;
class RecordKeeper;
class CodeGenTarget;
struct CodeGenIntrinsic {
Record *TheDef; // The actual record defining this intrinsic.

View File

@ -28,7 +28,6 @@ namespace llvm {
class CodeGenTarget;
class CodeGenSchedModels;
class CodeGenInstruction;
class CodeGenRegisterClass;
using RecVec = std::vector<Record*>;
using RecIter = std::vector<Record*>::const_iterator;

View File

@ -14,7 +14,6 @@
namespace llvm {
class GIMatchDag;
class GIMatchDagInstr;
class GIMatchDagEdge;
class GIMatchDagPredicate;
/// Represents a dependency that must be met to evaluate a predicate.