Eliminate lots of unnecessary #includes and forward decls

there are probably more to kill


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-07-21 23:24:48 +00:00
parent 942d99e4c8
commit 68498cefe6
9 changed files with 7 additions and 88 deletions

View File

@@ -15,31 +15,11 @@
#ifndef LLVM_CODEGEN_MACHINEINSTR_H #ifndef LLVM_CODEGEN_MACHINEINSTR_H
#define LLVM_CODEGEN_MACHINEINSTR_H #define LLVM_CODEGEN_MACHINEINSTR_H
//************************** System Include Files **************************/ #include "llvm/CodeGen/InstrForest.h"
#include <string>
#include <vector>
//*************************** User Include Files ***************************/
#include "llvm/Tools/DataTypes.h" #include "llvm/Tools/DataTypes.h"
#include "llvm/Instruction.h"
#include "llvm/Support/Unique.h" #include "llvm/Support/Unique.h"
#include "llvm/CodeGen/TargetMachine.h" #include "llvm/CodeGen/TargetMachine.h"
//************************* Opaque Declarations ****************************/
class Value;
class InstrTreeNode;
class InstructionNode;
class MachineInstr;
class MachineInstrInfo;
class MachineOperand;
//************************ Exported Data Types *****************************/
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// class MachineOperand // class MachineOperand
// //

View File

@@ -12,19 +12,7 @@
#ifndef LLVM_CODEGEN_SPARC_H #ifndef LLVM_CODEGEN_SPARC_H
#define LLVM_CODEGEN_SPARC_H #define LLVM_CODEGEN_SPARC_H
//************************** System Include Files **************************/
//*************************** User Include Files ***************************/
#include "llvm/CodeGen/TargetMachine.h" #include "llvm/CodeGen/TargetMachine.h"
#include "llvm/CodeGen/MachineInstr.h"
//************************* Opaque Declarations ****************************/
//************************ Exported Constants ******************************/
// OpCodeMask definitions for the Sparc V9 // OpCodeMask definitions for the Sparc V9
// //
@@ -33,9 +21,6 @@ const OpCodeMask Annul = 0x20000000; // annul delay instr?
const OpCodeMask PredictTaken = 0x00080000; // predict branch taken? const OpCodeMask PredictTaken = 0x00080000; // predict branch taken?
//************************ Exported Data Types *****************************/
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// class UltraSparcMachine // class UltraSparcMachine
// //

View File

@@ -12,21 +12,12 @@
#ifndef LLVM_CODEGEN_TARGETMACHINE_H #ifndef LLVM_CODEGEN_TARGETMACHINE_H
#define LLVM_CODEGEN_TARGETMACHINE_H #define LLVM_CODEGEN_TARGETMACHINE_H
//************************** System Include Files **************************/
//*************************** User Include Files ***************************/
#include "llvm/Support/Unique.h" #include "llvm/Support/Unique.h"
#include "llvm/Tools/DataTypes.h" #include "llvm/Tools/DataTypes.h"
#include <string>
//************************* Opaque Declarations ****************************/
class Type; class Type;
class StructType; class StructType;
class MachineInstrInfo;
//************************ Exported Data Types *****************************/
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@@ -13,10 +13,7 @@
#include "llvm/Type.h" #include "llvm/Type.h"
#include "llvm/CodeGen/TargetMachine.h" #include "llvm/CodeGen/TargetMachine.h"
#include "vector" #include <vector>
class TargetMachine;
// Future derived types: SIMD packed format // Future derived types: SIMD packed format

View File

@@ -25,7 +25,6 @@
//*************************** User Include Files ***************************/ //*************************** User Include Files ***************************/
#include "llvm/CodeGen/InstrForest.h" #include "llvm/CodeGen/InstrForest.h"
#include "llvm/Module.h"
#include "llvm/Method.h" #include "llvm/Method.h"
#include "llvm/iTerminators.h" #include "llvm/iTerminators.h"
#include "llvm/iMemory.h" #include "llvm/iMemory.h"
@@ -33,8 +32,6 @@
#include "llvm/BasicBlock.h" #include "llvm/BasicBlock.h"
#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineInstr.h"
//************************ Class Implementations **************************/
//------------------------------------------------------------------------ //------------------------------------------------------------------------
// class InstrTreeNode // class InstrTreeNode

View File

@@ -12,22 +12,10 @@
// 7/2/01 - Vikram Adve - Created // 7/2/01 - Vikram Adve - Created
//**************************************************************************/ //**************************************************************************/
//************************** System Include Files **************************/
#include <strstream.h>
#include <string>
#include <vector>
//*************************** User Include Files ***************************/
#include "llvm/Type.h"
#include "llvm/DerivedTypes.h"
#include "llvm/ConstPoolVals.h"
#include "llvm/Value.h"
#include "llvm/Instruction.h"
#include "llvm/CodeGen/InstrForest.h"
#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineInstr.h"
#include "llvm/ConstPoolVals.h"
#include "llvm/Instruction.h"
#include <strstream>
//************************ Class Implementations **************************/ //************************ Class Implementations **************************/

View File

@@ -9,15 +9,8 @@
// 7/15/01 - Vikram Adve - Created // 7/15/01 - Vikram Adve - Created
//**************************************************************************/ //**************************************************************************/
//************************** System Include Files **************************/
//*************************** User Include Files ***************************/
#include "llvm/DerivedTypes.h"
#include "llvm/CodeGen/Sparc.h" #include "llvm/CodeGen/Sparc.h"
//************************ Exported Constants ******************************/ //************************ Exported Constants ******************************/

View File

@@ -10,23 +10,14 @@
//**************************************************************************/ //**************************************************************************/
//************************** System Include Files **************************/
//*************************** User Include Files ***************************/ //*************************** User Include Files ***************************/
#include "llvm/DerivedTypes.h"
#include "llvm/CodeGen/TargetMachine.h" #include "llvm/CodeGen/TargetMachine.h"
#include "llvm/DerivedTypes.h"
//************************* Opaque Declarations ****************************/
class StructType;
class MachineInstrInfo;
//************************ Class Implementations **************************/ //************************ Class Implementations **************************/
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// function TargetMachine::findOptimalMemberOffsets // function TargetMachine::findOptimalMemberOffsets
// //

View File

@@ -25,7 +25,6 @@
//*************************** User Include Files ***************************/ //*************************** User Include Files ***************************/
#include "llvm/CodeGen/InstrForest.h" #include "llvm/CodeGen/InstrForest.h"
#include "llvm/Module.h"
#include "llvm/Method.h" #include "llvm/Method.h"
#include "llvm/iTerminators.h" #include "llvm/iTerminators.h"
#include "llvm/iMemory.h" #include "llvm/iMemory.h"
@@ -33,8 +32,6 @@
#include "llvm/BasicBlock.h" #include "llvm/BasicBlock.h"
#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineInstr.h"
//************************ Class Implementations **************************/
//------------------------------------------------------------------------ //------------------------------------------------------------------------
// class InstrTreeNode // class InstrTreeNode