Eliminate lots of unnecessary #includes and forward decls
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2001 23:24:48 +0000 (23:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2001 23:24:48 +0000 (23:24 +0000)
there are probably more to kill

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h
include/llvm/CodeGen/Sparc.h
include/llvm/CodeGen/TargetMachine.h
include/llvm/DerivedTypes.h
lib/CodeGen/InstrSelection/InstrForest.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/TargetMachine/Sparc/Sparc.cpp
lib/CodeGen/TargetMachine/TargetMachine.cpp
lib/Target/SparcV9/InstrSelection/InstrForest.cpp

index 19b3c08985da96da800751e56ee2fc9395da0cdb..3a28a1ee0b1b4db2f6ffed2347e426e19da46ea5 100644 (file)
 #ifndef LLVM_CODEGEN_MACHINEINSTR_H
 #define LLVM_CODEGEN_MACHINEINSTR_H
 
-//************************** System Include Files **************************/
-
-#include <string>
-#include <vector>
-
-//*************************** User Include Files ***************************/
-
+#include "llvm/CodeGen/InstrForest.h"
 #include "llvm/Tools/DataTypes.h"
-#include "llvm/Instruction.h"
 #include "llvm/Support/Unique.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 
 // 
index f623bc26994958e0ffaeaf4913462100d9b03d61..3eab4048cfe8f2f706771909eb59d3058bac98ed 100644 (file)
 #ifndef LLVM_CODEGEN_SPARC_H
 #define LLVM_CODEGEN_SPARC_H
 
-//************************** System Include Files **************************/
-
-//*************************** User Include Files ***************************/
-
 #include "llvm/CodeGen/TargetMachine.h"
-#include "llvm/CodeGen/MachineInstr.h"
-
-
-//************************* Opaque Declarations ****************************/
-
-
-//************************ Exported Constants ******************************/
-
 
 // OpCodeMask definitions for the Sparc V9
 // 
@@ -33,9 +21,6 @@ const OpCodeMask      Annul           = 0x20000000; // annul delay instr?
 const OpCodeMask       PredictTaken    = 0x00080000; // predict branch taken?
 
 
-//************************ Exported Data Types *****************************/
-
-
 //---------------------------------------------------------------------------
 // class UltraSparcMachine 
 // 
index 72545f88e96de9264f31d2961705e29ae79fb6cb..97bcc54e25a2fd34984071a57d9ac69c2ef238ae 100644 (file)
 #ifndef LLVM_CODEGEN_TARGETMACHINE_H
 #define LLVM_CODEGEN_TARGETMACHINE_H
 
-//************************** System Include Files **************************/
-
-//*************************** User Include Files ***************************/
-
 #include "llvm/Support/Unique.h"
 #include "llvm/Tools/DataTypes.h"
-
-//************************* Opaque Declarations ****************************/
+#include <string>
 
 class Type;
 class StructType;
-class MachineInstrInfo;
-
-
-//************************ Exported Data Types *****************************/
 
 
 //---------------------------------------------------------------------------
index a28210ba9543d132587947a184dc864b4ed2636d..405a632d359381a283257a3fffc89612295b14f1 100644 (file)
 
 #include "llvm/Type.h"
 #include "llvm/CodeGen/TargetMachine.h"
-#include "vector"
-
-class TargetMachine;
-
+#include <vector>
 
 // Future derived types: SIMD packed format
 
index a90da0b584bbc5654307df69ee573471129b7a33..5701ba4e114380730017a9cedcc7217c4e74cbe2 100644 (file)
@@ -25,7 +25,6 @@
 //*************************** User Include Files ***************************/
 
 #include "llvm/CodeGen/InstrForest.h"
-#include "llvm/Module.h"
 #include "llvm/Method.h"
 #include "llvm/iTerminators.h"
 #include "llvm/iMemory.h"
@@ -33,8 +32,6 @@
 #include "llvm/BasicBlock.h"
 #include "llvm/CodeGen/MachineInstr.h"
 
-//************************ Class Implementations **************************/
-
 
 //------------------------------------------------------------------------ 
 // class InstrTreeNode
index e8897bf2e962c6a1e4e405414d1b2fdcc32e4122..d48f2d4e357d98c39b34bb9d2cdecdd104bfcb4a 100644 (file)
 //     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/CodeGen/MachineInstr.h"
 #include "llvm/ConstPoolVals.h"
-#include "llvm/Value.h"
 #include "llvm/Instruction.h"
-#include "llvm/CodeGen/InstrForest.h"
-#include "llvm/CodeGen/MachineInstr.h"
+#include <strstream>
 
 //************************ Class Implementations **************************/
 
index c687da73d886230202409bb6ddc36f34d932cd8f..68270fae60198fc104e473d6815d9c8767b9d778 100644 (file)
@@ -9,15 +9,8 @@
 //     7/15/01  -  Vikram Adve  -  Created
 //**************************************************************************/
 
-
-//************************** System Include Files **************************/
-
-//*************************** User Include Files ***************************/
-
-#include "llvm/DerivedTypes.h"
 #include "llvm/CodeGen/Sparc.h"
 
-
 //************************ Exported Constants ******************************/
 
 
index 9b9729c1acfc1cbac2dda716b61dfdd8afb51505..653f0217cd8024c4302aa3ef6f0d142e3f99f435 100644 (file)
 //**************************************************************************/
 
 
-//************************** System Include Files **************************/
-
 //*************************** User Include Files ***************************/
 
-#include "llvm/DerivedTypes.h"
 #include "llvm/CodeGen/TargetMachine.h"
-
-
-//************************* Opaque Declarations ****************************/
-
-class StructType;
-class MachineInstrInfo;
+#include "llvm/DerivedTypes.h"
 
 
 //************************ Class Implementations **************************/
 
-
 //---------------------------------------------------------------------------
 // function TargetMachine::findOptimalMemberOffsets 
 // 
index a90da0b584bbc5654307df69ee573471129b7a33..5701ba4e114380730017a9cedcc7217c4e74cbe2 100644 (file)
@@ -25,7 +25,6 @@
 //*************************** User Include Files ***************************/
 
 #include "llvm/CodeGen/InstrForest.h"
-#include "llvm/Module.h"
 #include "llvm/Method.h"
 #include "llvm/iTerminators.h"
 #include "llvm/iMemory.h"
@@ -33,8 +32,6 @@
 #include "llvm/BasicBlock.h"
 #include "llvm/CodeGen/MachineInstr.h"
 
-//************************ Class Implementations **************************/
-
 
 //------------------------------------------------------------------------ 
 // class InstrTreeNode