Eliminate duplicate or unneccesary #include's
authorChris Lattner <sabre@nondot.org>
Mon, 29 Apr 2002 17:42:12 +0000 (17:42 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Apr 2002 17:42:12 +0000 (17:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2397 91177308-0d34-0410-b5e6-96231b3b80d8

80 files changed:
include/llvm/Bytecode/Writer.h
include/llvm/CodeGen/RegClass.h
lib/Analysis/IPA/FindUnsafePointerTypes.cpp
lib/Analysis/IPA/FindUsedTypes.cpp
lib/Analysis/LiveVar/BBLiveVar.cpp
lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
lib/Analysis/PostDominators.cpp
lib/AsmParser/Parser.cpp
lib/AsmParser/ParserInternals.h
lib/AsmParser/llvmAsmParser.y
lib/Bytecode/Reader/ConstantReader.cpp
lib/Bytecode/Reader/Reader.cpp
lib/Bytecode/Writer/InstructionWriter.cpp
lib/Bytecode/Writer/WriterInternals.h
lib/CodeGen/InstrSched/InstrScheduling.cpp
lib/CodeGen/InstrSched/SchedGraph.cpp
lib/CodeGen/InstrSched/SchedGraph.h
lib/CodeGen/InstrSched/SchedPriorities.cpp
lib/CodeGen/InstrSelection/InstrSelection.cpp
lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
lib/CodeGen/MachineCodeForInstruction.cpp
lib/CodeGen/RegAlloc/IGNode.h
lib/CodeGen/RegAlloc/InterferenceGraph.cpp
lib/CodeGen/RegAlloc/LiveRangeInfo.cpp
lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
lib/CodeGen/RegAlloc/RegClass.cpp
lib/CodeGen/RegAlloc/RegClass.h
lib/Support/CommandLine.cpp
lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
lib/Target/SparcV9/InstrSched/SchedGraph.cpp
lib/Target/SparcV9/InstrSched/SchedGraph.h
lib/Target/SparcV9/InstrSched/SchedPriorities.cpp
lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
lib/Target/SparcV9/LiveVar/BBLiveVar.cpp
lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp
lib/Target/SparcV9/RegAlloc/IGNode.h
lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp
lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp
lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
lib/Target/SparcV9/RegAlloc/RegClass.cpp
lib/Target/SparcV9/RegAlloc/RegClass.h
lib/Target/SparcV9/SparcV9AsmPrinter.cpp
lib/Target/SparcV9/SparcV9InstrInfo.cpp
lib/Target/SparcV9/SparcV9Internals.h
lib/Target/SparcV9/SparcV9RegClassInfo.cpp
lib/Target/SparcV9/SparcV9RegInfo.cpp
lib/Transforms/ExprTypeConvert.cpp
lib/Transforms/HoistPHIConstants.cpp
lib/Transforms/IPO/DeadTypeElimination.cpp
lib/Transforms/IPO/GlobalDCE.cpp
lib/Transforms/IPO/InlineSimple.cpp
lib/Transforms/IPO/OldPoolAllocate.cpp
lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
lib/Transforms/LevelRaise.cpp
lib/Transforms/Scalar/ADCE.cpp
lib/Transforms/Scalar/DCE.cpp
lib/Transforms/Scalar/GCSE.cpp
lib/Transforms/Scalar/IndVarSimplify.cpp
lib/Transforms/Scalar/InductionVars.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/Transforms/Utils/LowerAllocations.cpp
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/BasicBlock.cpp
lib/VMCore/Dominators.cpp
lib/VMCore/Function.cpp
lib/VMCore/Module.cpp
lib/VMCore/Verifier.cpp
support/lib/Support/CommandLine.cpp
tools/analyze/analyze.cpp
tools/as/as.cpp
tools/dis/dis.cpp
tools/gccas/gccas.cpp
tools/llc/llc.cpp
tools/llvm-as/as.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-dis/dis.cpp
tools/llvm-dis/llvm-dis.cpp

index e28ea77f07b0e5827070847844ba1e03c435e094..b4d5e78fd04f02745d90ba05d8ac0c90481a2f1b 100644 (file)
@@ -17,9 +17,9 @@
 #ifndef LLVM_BYTECODE_WRITER_H
 #define LLVM_BYTECODE_WRITER_H
 
-#include <iostream.h>
+#include <iosfwd>
 
 class Module;
-void WriteBytecodeToFile(const Module *C, ostream &Out);
+void WriteBytecodeToFile(const Module *C, std::ostream &Out);
 
 #endif
index 3db72b736395d1500d5abe65c769c3d2eeec24c5..c93d6961e0bd8251d5a14c4cc784ee65fbd6e926 100644 (file)
@@ -8,11 +8,9 @@
 #ifndef REG_CLASS_H
 #define REG_CLASS_H
 
-#include "llvm/CodeGen/IGNode.h"
 #include "llvm/CodeGen/InterferenceGraph.h"
 #include "llvm/Target/MachineRegInfo.h"
 #include <stack>
-#include <iostream>
 class MachineRegClassInfo;
 
 typedef std::vector<unsigned> ReservedColorListType;
index 9f908c6c71623965a8179202ca8b2cc7e6c45193..627c7ff5f37092e57e00731c27537e513517b18a 100644 (file)
@@ -20,7 +20,6 @@
 #include "llvm/Assembly/CachedWriter.h"
 #include "llvm/Type.h"
 #include "llvm/Instruction.h"
-#include "llvm/Function.h"
 #include "llvm/Module.h"
 #include "llvm/Support/InstIterator.h"
 #include "Support/CommandLine.h"
index 86061d8610ceafcd8d1ab03fd1a81dcccdfc1ace..b4897a265a879d4d420908a6f2cda476bbfd7aec 100644 (file)
@@ -10,7 +10,6 @@
 #include "llvm/GlobalVariable.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/Module.h"
-#include "llvm/Function.h"
 #include "llvm/Instruction.h"
 #include "llvm/Support/InstIterator.h"
 
index 958f7d7c6629730c7a846c0e67b320b515e31f69..7d735b79e40b653b223b53ac9be64d158b638ad7 100644 (file)
@@ -7,7 +7,6 @@
 #include "BBLiveVar.h"
 #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
 #include "llvm/CodeGen/MachineInstr.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Support/CFG.h"
 #include "Support/SetOperations.h"
 #include <iostream>
index 58d4691b763124b1e993e022241e1dd078dfce72..295a9ed5e5e7e66904f57ce51bae512594d8ee6f 100644 (file)
@@ -8,7 +8,6 @@
 #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
 #include "BBLiveVar.h"
 #include "llvm/CodeGen/MachineInstr.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Support/CFG.h"
 #include "Support/PostOrderIterator.h"
 #include "Support/SetOperations.h"
index 30d170b6698da43bdf5cbd1128e28457ed071c57..f542d112b8743955bc06d8fc4783ef0881580183 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "llvm/Analysis/Dominators.h"
 #include "llvm/Transforms/UnifyFunctionExitNodes.h"
-#include "llvm/Function.h"
 #include "llvm/Support/CFG.h"
 #include "Support/DepthFirstIterator.h"
 #include "Support/STLExtras.h"
index a99849d31b45f8a582d51b1b53a23670f17b1c98..19632dd13101ec897e434f7bf3a22e7af1e0a3fb 100644 (file)
@@ -7,7 +7,6 @@
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/Module.h"
 #include "ParserInternals.h"
-#include <stdio.h>  // for sprintf
 using std::string;
 
 // The useful interface defined by this file... Parse an ascii file, and return
index 3571138a0d290a450319308ce2ce31969761e6e4..656d718e385a0934f2f4c6336577a68fefd59fab 100644 (file)
@@ -8,10 +8,7 @@
 #ifndef PARSER_INTERNALS_H
 #define PARSER_INTERNALS_H
 
-#include <stdio.h>
 #define __STDC_LIMIT_MACROS
-
-#include "llvm/InstrTypes.h"
 #include "llvm/BasicBlock.h"
 #include "llvm/Constants.h"
 #include "llvm/iOther.h"
index 776e8c52a60a39d2a9641d33251983328081b60b..ad5e57e04ae4f66d21b6c2a43dcdc84155e08cb0 100644 (file)
@@ -6,13 +6,9 @@
 
 %{
 #include "ParserInternals.h"
-#include "llvm/Assembly/Parser.h"
 #include "llvm/SymbolTable.h"
 #include "llvm/Module.h"
 #include "llvm/GlobalVariable.h"
-#include "llvm/Function.h"
-#include "llvm/BasicBlock.h"
-#include "llvm/DerivedTypes.h"
 #include "llvm/iTerminators.h"
 #include "llvm/iMemory.h"
 #include "llvm/iPHINode.h"
@@ -22,7 +18,6 @@
 #include <list>
 #include <utility>            // Get definition of pair class
 #include <algorithm>
-#include <stdio.h>            // This embarasment is due to our flex lexer...
 #include <iostream>
 using std::list;
 using std::vector;
index 4c7ebb119acf6f3a7eabeb426d5715b07ac0193f..eb0cadc8ec86642a0470b0e1c670203c082fbcc7 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "ReaderInternals.h"
 #include "llvm/Module.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Constants.h"
 #include "llvm/GlobalVariable.h"
 #include <algorithm>
index 7418c81bbea1f239d5ea77db93b6fd6456b077f5..70a6ae97f3e4c97ac9add5f3c93064e194047919 100644 (file)
@@ -15,7 +15,6 @@
 #include "llvm/Bytecode/Format.h"
 #include "llvm/GlobalVariable.h"
 #include "llvm/Module.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Constants.h"
 #include "llvm/iPHINode.h"
 #include "llvm/iOther.h"
index c32c6b476ffe8a2753178caaaa0484e06677c3a4..2c1ce975bcf9e5604ee392d3f362a7ae71da8ba9 100644 (file)
@@ -13,7 +13,6 @@
 #include "llvm/Module.h"
 #include "llvm/Function.h"
 #include "llvm/BasicBlock.h"
-#include "llvm/Instruction.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iOther.h"
 #include "llvm/iTerminators.h"
index 73884bbdcc4e1285fc4deb4f121315a81dcd20ba..bd4a3288268e92dfe5c48c4f773016edca7340f2 100644 (file)
@@ -17,7 +17,6 @@
 #include "llvm/Bytecode/Primitives.h"
 #include "llvm/SlotCalculator.h"
 #include "llvm/Instruction.h"
-#include <deque>
 
 class BytecodeWriter {
   std::deque<unsigned char> &Out;
index b0422797475193f48454333b4e5fb23dbe22d28e..d219ef6b6dfde791bce0b13c8cae9d52d1ac3127 100644 (file)
@@ -5,7 +5,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/CodeGen/InstrScheduling.h"
+#include "SchedPriorities.h"
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineCodeForMethod.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/BasicBlock.h"
 #include "llvm/Instruction.h"
-#include "SchedPriorities.h"
-#include <ext/hash_set>
 #include <algorithm>
-#include <iterator>
-#include <iostream>
 using std::cerr;
 using std::vector;
 
index 28679bfbdc86832415430802fec1423db937d742..0629f8c75fb6d365fe62e43be92604f417e09482 100644 (file)
@@ -14,9 +14,7 @@
 
 #include "SchedGraph.h"
 #include "llvm/CodeGen/InstrSelection.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
-#include "llvm/Target/MachineInstrInfo.h"
 #include "llvm/Target/MachineRegInfo.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/BasicBlock.h"
index 8a8a523f004ea37e8d1458e19a4830289fd5080d..441a46c0e5e3f86560d6c0cb1c795f5f3d975c23 100644 (file)
@@ -20,7 +20,6 @@
 #define LLVM_CODEGEN_SCHEDGRAPH_H
 
 #include "llvm/CodeGen/MachineInstr.h"
-#include "Support/NonCopyable.h"
 #include "Support/HashExtras.h"
 #include "Support/GraphTraits.h"
 
index a4480e8865792d965a9c231a76cf373a185fc3a5..aba49bd54c16e3f85565b4864d9aae433f2c3e04 100644 (file)
@@ -22,7 +22,6 @@
 #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
 #include "llvm/Support/CFG.h"
 #include "Support/PostOrderIterator.h"
-#include <iostream>
 using std::cerr;
 
 SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G,
index 583df38360add36a049eca631eb6507ecafb97e9..1724ce448968eadfc0502d4053125ab6700d6550 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "llvm/CodeGen/InstrSelection.h"
 #include "llvm/CodeGen/InstrSelectionSupport.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/InstrForest.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineCodeForMethod.h"
index c042e368c9d80d82b2902d193f3e72ed1c024c31..d06ac172db0c8b676d90202db41f8ecb4902dd88 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "llvm/CodeGen/InstrSelectionSupport.h"
 #include "llvm/CodeGen/InstrSelection.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineCodeForMethod.h"
 #include "llvm/CodeGen/InstrForest.h"
index a4ebbec187f563017592a7da4bd61990d2183ab0..98871a7e85b0cd881dabafb352796b7c4e5c91df 100644 (file)
@@ -19,7 +19,6 @@
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/InstrSelection.h"
-#include "llvm/Instruction.h"
 
 static AnnotationID MCFI_AID(
              AnnotationManager::getID("CodeGen::MachineCodeForInstruction"));
index 177800c5bb9648d6a5138714ca49a7c2e5bab5f4..bcf850f68b321da4ab84333b3c16d63592f4f162 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef IG_NODE_H
 #define IG_NODE_H
 
-#include "llvm/CodeGen/RegAllocCommon.h"
 #include "llvm/CodeGen/LiveRange.h"
 class LiveRange;
 class RegClass;
index c90ae4ae24192d357138fa4171ab5ca2b01a1ee1..412f35fe932bdbd37fc7c21c08fa6991d43e40b8 100644 (file)
@@ -1,6 +1,6 @@
 #include "llvm/CodeGen/InterferenceGraph.h"
 #include "Support/STLExtras.h"
-#include <iostream>
+#include "llvm/CodeGen/RegAllocCommon.h"
 #include <algorithm>
 using std::cerr;
 
index fb29af2bf192a75becb904aacb90d018ee46464b..6661eca8011d5eefa70142e71075e81722ef93c0 100644 (file)
@@ -5,7 +5,7 @@
 #include "llvm/Function.h"
 #include "llvm/BasicBlock.h"
 #include "Support/SetOperations.h"
-#include <iostream>
+#include "llvm/CodeGen/RegAllocCommon.h"
 using std::cerr;
 
 LiveRangeInfo::LiveRangeInfo(const Function *F, const TargetMachine &tm,
index b783255699f85d6e2fa33f2889a4f212a6c6bcff..d54229e838fdaf7ee7149acef00a8282f758a6f6 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/BasicBlock.h"
 #include "llvm/Function.h"
 #include "llvm/Type.h"
+#include "llvm/CodeGen/RegAllocCommon.h"
 #include <iostream>
 #include <math.h>
 using std::cerr;
index 607a4daf62d312539d67e92025543bdd93061af4..249b8db26643796080349a06fb05a1018d389f81 100644 (file)
@@ -1,5 +1,5 @@
 #include "llvm/CodeGen/RegClass.h"
-#include <iostream>
+#include "llvm/CodeGen/RegAllocCommon.h"
 using std::cerr;
 
 //----------------------------------------------------------------------------
index 3db72b736395d1500d5abe65c769c3d2eeec24c5..c93d6961e0bd8251d5a14c4cc784ee65fbd6e926 100644 (file)
@@ -8,11 +8,9 @@
 #ifndef REG_CLASS_H
 #define REG_CLASS_H
 
-#include "llvm/CodeGen/IGNode.h"
 #include "llvm/CodeGen/InterferenceGraph.h"
 #include "llvm/Target/MachineRegInfo.h"
 #include <stack>
-#include <iostream>
 class MachineRegClassInfo;
 
 typedef std::vector<unsigned> ReservedColorListType;
index 8633bef934014931f67991b6a1e9aafc13f4f738..194dd33b27e3b5510cf6c422f786840d7cdced49 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "Support/CommandLine.h"
 #include "Support/STLExtras.h"
-#include <vector>
 #include <algorithm>
 #include <map>
 #include <set>
index b0422797475193f48454333b4e5fb23dbe22d28e..d219ef6b6dfde791bce0b13c8cae9d52d1ac3127 100644 (file)
@@ -5,7 +5,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/CodeGen/InstrScheduling.h"
+#include "SchedPriorities.h"
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineCodeForMethod.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/BasicBlock.h"
 #include "llvm/Instruction.h"
-#include "SchedPriorities.h"
-#include <ext/hash_set>
 #include <algorithm>
-#include <iterator>
-#include <iostream>
 using std::cerr;
 using std::vector;
 
index 28679bfbdc86832415430802fec1423db937d742..0629f8c75fb6d365fe62e43be92604f417e09482 100644 (file)
@@ -14,9 +14,7 @@
 
 #include "SchedGraph.h"
 #include "llvm/CodeGen/InstrSelection.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
-#include "llvm/Target/MachineInstrInfo.h"
 #include "llvm/Target/MachineRegInfo.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/BasicBlock.h"
index 8a8a523f004ea37e8d1458e19a4830289fd5080d..441a46c0e5e3f86560d6c0cb1c795f5f3d975c23 100644 (file)
@@ -20,7 +20,6 @@
 #define LLVM_CODEGEN_SCHEDGRAPH_H
 
 #include "llvm/CodeGen/MachineInstr.h"
-#include "Support/NonCopyable.h"
 #include "Support/HashExtras.h"
 #include "Support/GraphTraits.h"
 
index a4480e8865792d965a9c231a76cf373a185fc3a5..aba49bd54c16e3f85565b4864d9aae433f2c3e04 100644 (file)
@@ -22,7 +22,6 @@
 #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
 #include "llvm/Support/CFG.h"
 #include "Support/PostOrderIterator.h"
-#include <iostream>
 using std::cerr;
 
 SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G,
index 583df38360add36a049eca631eb6507ecafb97e9..1724ce448968eadfc0502d4053125ab6700d6550 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "llvm/CodeGen/InstrSelection.h"
 #include "llvm/CodeGen/InstrSelectionSupport.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/InstrForest.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineCodeForMethod.h"
index c042e368c9d80d82b2902d193f3e72ed1c024c31..d06ac172db0c8b676d90202db41f8ecb4902dd88 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "llvm/CodeGen/InstrSelectionSupport.h"
 #include "llvm/CodeGen/InstrSelection.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "llvm/CodeGen/MachineCodeForMethod.h"
 #include "llvm/CodeGen/InstrForest.h"
index 958f7d7c6629730c7a846c0e67b320b515e31f69..7d735b79e40b653b223b53ac9be64d158b638ad7 100644 (file)
@@ -7,7 +7,6 @@
 #include "BBLiveVar.h"
 #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
 #include "llvm/CodeGen/MachineInstr.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Support/CFG.h"
 #include "Support/SetOperations.h"
 #include <iostream>
index 58d4691b763124b1e993e022241e1dd078dfce72..295a9ed5e5e7e66904f57ce51bae512594d8ee6f 100644 (file)
@@ -8,7 +8,6 @@
 #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
 #include "BBLiveVar.h"
 #include "llvm/CodeGen/MachineInstr.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Support/CFG.h"
 #include "Support/PostOrderIterator.h"
 #include "Support/SetOperations.h"
index 177800c5bb9648d6a5138714ca49a7c2e5bab5f4..bcf850f68b321da4ab84333b3c16d63592f4f162 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef IG_NODE_H
 #define IG_NODE_H
 
-#include "llvm/CodeGen/RegAllocCommon.h"
 #include "llvm/CodeGen/LiveRange.h"
 class LiveRange;
 class RegClass;
index c90ae4ae24192d357138fa4171ab5ca2b01a1ee1..412f35fe932bdbd37fc7c21c08fa6991d43e40b8 100644 (file)
@@ -1,6 +1,6 @@
 #include "llvm/CodeGen/InterferenceGraph.h"
 #include "Support/STLExtras.h"
-#include <iostream>
+#include "llvm/CodeGen/RegAllocCommon.h"
 #include <algorithm>
 using std::cerr;
 
index fb29af2bf192a75becb904aacb90d018ee46464b..6661eca8011d5eefa70142e71075e81722ef93c0 100644 (file)
@@ -5,7 +5,7 @@
 #include "llvm/Function.h"
 #include "llvm/BasicBlock.h"
 #include "Support/SetOperations.h"
-#include <iostream>
+#include "llvm/CodeGen/RegAllocCommon.h"
 using std::cerr;
 
 LiveRangeInfo::LiveRangeInfo(const Function *F, const TargetMachine &tm,
index b783255699f85d6e2fa33f2889a4f212a6c6bcff..d54229e838fdaf7ee7149acef00a8282f758a6f6 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/BasicBlock.h"
 #include "llvm/Function.h"
 #include "llvm/Type.h"
+#include "llvm/CodeGen/RegAllocCommon.h"
 #include <iostream>
 #include <math.h>
 using std::cerr;
index 607a4daf62d312539d67e92025543bdd93061af4..249b8db26643796080349a06fb05a1018d389f81 100644 (file)
@@ -1,5 +1,5 @@
 #include "llvm/CodeGen/RegClass.h"
-#include <iostream>
+#include "llvm/CodeGen/RegAllocCommon.h"
 using std::cerr;
 
 //----------------------------------------------------------------------------
index 3db72b736395d1500d5abe65c769c3d2eeec24c5..c93d6961e0bd8251d5a14c4cc784ee65fbd6e926 100644 (file)
@@ -8,11 +8,9 @@
 #ifndef REG_CLASS_H
 #define REG_CLASS_H
 
-#include "llvm/CodeGen/IGNode.h"
 #include "llvm/CodeGen/InterferenceGraph.h"
 #include "llvm/Target/MachineRegInfo.h"
 #include <stack>
-#include <iostream>
 class MachineRegClassInfo;
 
 typedef std::vector<unsigned> ReservedColorListType;
index 8d87bfec6beda57dbca0bcdfa8bc5d37e109f574..868f8710d89bfd9b6da938cb384b6604e3a326bb 100644 (file)
@@ -17,7 +17,6 @@
 #include "llvm/GlobalVariable.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
-#include "llvm/Annotation.h"
 #include "llvm/BasicBlock.h"
 #include "llvm/Function.h"
 #include "llvm/Module.h"
@@ -25,7 +24,6 @@
 #include "llvm/Pass.h"
 #include "llvm/Assembly/Writer.h"
 #include "Support/StringExtras.h"
-#include "Support/HashExtras.h"
 #include <iostream>
 using std::string;
 
index 354c39aa6bcd5da7406932842aea85dabf1d81f5..71380ed92a2bc6ca5345a1632e0dd090336e195d 100644 (file)
@@ -15,7 +15,6 @@
 #include "llvm/Target/Sparc.h"
 #include "llvm/CodeGen/InstrSelection.h"
 #include "llvm/CodeGen/InstrSelectionSupport.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineCodeForMethod.h"
 #include "llvm/Function.h"
 #include "llvm/Constants.h"
index 0e80179f4eb5a1575e012fa9f7da7caec75fc3cc..4ca66163ac16151441a246aed61ea2d1dc227e7c 100644 (file)
@@ -13,7 +13,6 @@
 #define SPARC_INTERNALS_H
 
 #include "llvm/Target/TargetMachine.h"
-#include "llvm/Target/MachineInstrInfo.h"
 #include "llvm/Target/MachineSchedInfo.h"
 #include "llvm/Target/MachineFrameInfo.h"
 #include "llvm/Target/MachineCacheInfo.h"
index b25dd01ba93307987e414e6c7c340d47487f0d89..6f645b1df7ca7b0e88ebb1720532bcdad1781311 100644 (file)
@@ -1,5 +1,5 @@
 #include "SparcRegClassInfo.h"
-#include "llvm/CodeGen/IGNode.h"
+#include "llvm/CodeGen/RegAllocCommon.h"
 #include "llvm/Target/Sparc.h"
 #include "llvm/Type.h"
 #include <iostream>
index ad0dd25685ff6f4b486e4171c0611068e7ef7de6..b660e89805fb1b218ab16f97b1ff4002381769a7 100644 (file)
@@ -11,6 +11,7 @@
 #include "llvm/CodeGen/MachineCodeForMethod.h"
 #include "llvm/CodeGen/PhyRegAlloc.h"
 #include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/CodeGen/RegAllocCommon.h"
 #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
 #include "llvm/iTerminators.h"
 #include "llvm/iOther.h"
index cd14bb38284e9126082a948e5212f437650768b6..9f75198e1ca1bd3b659e15ebdb7973ea8bd9ede7 100644 (file)
@@ -7,16 +7,13 @@
 //===----------------------------------------------------------------------===//
 
 #include "TransformInternals.h"
-#include "llvm/Function.h"
 #include "llvm/iOther.h"
 #include "llvm/iPHINode.h"
 #include "llvm/iMemory.h"
-#include "llvm/Constants.h"
 #include "llvm/ConstantHandling.h"
 #include "llvm/Transforms/Scalar/DCE.h"
 #include "llvm/Analysis/Expressions.h"
 #include "Support/STLExtras.h"
-#include <map>
 #include <algorithm>
 #include <iostream>
 using std::cerr;
index 05480ea9503190983e1eac24d5232f0b1c25ff46..bdf2efc952b065928eb8dcc8accbd0e4dde4387a 100644 (file)
@@ -12,8 +12,6 @@
 #include "llvm/BasicBlock.h"
 #include "llvm/Function.h"
 #include "llvm/Pass.h"
-#include <map>
-#include <vector>
 
 typedef std::pair<BasicBlock *, Value*> BBConstTy;
 typedef std::map<BBConstTy, CastInst *> CachedCopyMap;
index dc330b29f8a16ab5dbfd72dbd7f4bd35a4cbcb97..75d1c5343abff156d2c71a3449816d3814788018 100644 (file)
@@ -25,7 +25,6 @@
 #include "llvm/iTerminators.h"
 #include "llvm/iOther.h"
 #include "llvm/Support/CFG.h"
-#include "llvm/Pass.h"
 #include <algorithm>
 #include <iostream>
 using std::vector;
index e852a6a29fcf67ea80b3139e37b28476cd36f6ac..2f938079a8481fd7d90235edb1be43552704fb64 100644 (file)
@@ -9,9 +9,7 @@
 #include "llvm/Analysis/CallGraph.h"
 #include "llvm/Module.h"
 #include "llvm/Function.h"
-#include "llvm/Pass.h"
 #include "Support/DepthFirstIterator.h"
-#include <set>
 
 static bool RemoveUnreachableFunctions(Module *M, CallGraph &CallGraph) {
   // Calculate which functions are reachable from the external functions in the
index ba64a6abce00cfb2ba7c24ed3db01283abaae86a..9e84138b08e34d681eb9c316b2f8c42a66e65609 100644 (file)
@@ -28,7 +28,6 @@
 #include "llvm/Type.h"
 #include "llvm/Argument.h"
 #include <algorithm>
-#include <map>
 #include <iostream>
 using std::cerr;
 
index bb990020529259545008a81c0253126c3d151840..8255bcac5225f268ee232c62b056d7155b6d6a55 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "llvm/Transforms/IPO/PoolAllocate.h"
 #include "llvm/Transforms/CloneFunction.h"
-#include "llvm/Analysis/DataStructure.h"
 #include "llvm/Analysis/DataStructureGraph.h"
 #include "llvm/Module.h"
 #include "llvm/Function.h"
index 3a44dbf918e63b15947aa027a56f2ccb9f580d59..ebd290cd9157f841ff9822ac3ae1b931410ec28c 100644 (file)
 #include "llvm/Transforms/Instrumentation/ProfilePaths.h"
 #include "llvm/Transforms/UnifyFunctionExitNodes.h"
 #include "llvm/Support/CFG.h"
-#include "llvm/Function.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iMemory.h"
-#include "llvm/Pass.h"
 #include "Graph.h"
 
 using std::vector;
index f9f9abeace97d5a19d81be3e78fb5fee93ae554c..2a6c6da20d56cf1576b388d326605451d1667a43 100644 (file)
@@ -8,10 +8,8 @@
 
 #include "llvm/Transforms/LevelChange.h"
 #include "TransformInternals.h"
-#include "llvm/Function.h"
 #include "llvm/iOther.h"
 #include "llvm/iMemory.h"
-#include "llvm/Constants.h"
 #include "llvm/Pass.h"
 #include "llvm/ConstantHandling.h"
 #include "llvm/Transforms/Scalar/DCE.h"
index bd60b519a784608cd2d649d162d9556b8b034be3..4c322aa9d38746ba69d245549e97f309a113980b 100644 (file)
@@ -7,7 +7,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Transforms/Scalar/DCE.h"
-#include "llvm/Instruction.h"
 #include "llvm/Type.h"
 #include "llvm/Analysis/Dominators.h"
 #include "llvm/Analysis/Writer.h"
index 4aac04114e0c33ad843af56dfc5a03d1ce49cea8..7fc519baf491f77c5f9eced943a39f98db5cd888 100644 (file)
@@ -26,8 +26,6 @@
 #include "llvm/Transforms/Scalar/DCE.h"
 #include "llvm/Module.h"
 #include "llvm/GlobalVariable.h"
-#include "llvm/Function.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/iTerminators.h"
 #include "llvm/iPHINode.h"
 #include "llvm/Constant.h"
index 2676609141dfc4f75bd45dd2248d2fe4278dcce0..06877a5ee9ed6238d6ce24cdb68bcf14958aa20f 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Transforms/Scalar/GCSE.h"
-#include "llvm/Pass.h"
 #include "llvm/InstrTypes.h"
 #include "llvm/iMemory.h"
 #include "llvm/Analysis/Dominators.h"
 #include "llvm/Support/InstVisitor.h"
 #include "llvm/Support/InstIterator.h"
-#include <set>
 #include <algorithm>
 
 namespace {
index 1e8621b5ed57633df75243d622768691dd58d382..6cfdc59687c22f02ef629a50816e2c31651a7a98 100644 (file)
@@ -11,9 +11,7 @@
 #include "llvm/iPHINode.h"
 #include "llvm/iOther.h"
 #include "llvm/Type.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Constants.h"
-#include "llvm/Pass.h"
 #include "llvm/Support/CFG.h"
 #include "Support/STLExtras.h"
 
index ee7c4c8a727196532c0bf0e4ce52823083ac2ec9..b4a440f4ccc775bb8283a66d5cd38a4234ba7fb0 100644 (file)
 
 #include "llvm/Transforms/Scalar/InductionVars.h"
 #include "llvm/Constants.h"
-#include "llvm/Analysis/IntervalPartition.h"
 #include "llvm/iPHINode.h"
-#include "llvm/Function.h"
-#include "llvm/BasicBlock.h"
-#include "llvm/InstrTypes.h"
 #include "llvm/Type.h"
 #include "llvm/Support/CFG.h"
+#include "llvm/Analysis/IntervalPartition.h"
 #include "Support/STLExtras.h"
 #include <algorithm>
 #include <iostream>
index c8d2bed789c2881c909797fad5443e302824641e..71c8723e42b159818781afb813b60baef5f31008 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "llvm/Transforms/Scalar/InstructionCombining.h"
 #include "llvm/ConstantHandling.h"
-#include "llvm/Function.h"
 #include "llvm/iMemory.h"
 #include "llvm/iOther.h"
 #include "llvm/iOperators.h"
index 8271c9bce438ff2bc55364ed73ff8230812329ff..1a3649e881ac4cd6116c8f167de468c90805af99 100644 (file)
@@ -18,8 +18,6 @@
 #include "llvm/Transforms/Scalar/ConstantProp.h"
 #include "llvm/ConstantHandling.h"
 #include "llvm/Function.h"
-#include "llvm/BasicBlock.h"
-#include "llvm/Constants.h"
 #include "llvm/iPHINode.h"
 #include "llvm/iMemory.h"
 #include "llvm/iTerminators.h"
@@ -28,7 +26,6 @@
 #include "llvm/Support/InstVisitor.h"
 #include "Support/STLExtras.h"
 #include <algorithm>
-#include <map>
 #include <set>
 #include <iostream>
 using std::cerr;
index c6cb81f0f52a6f4defa60b62bc19c7dd4d67f549..07c034bad0884362be188bb795f344727ea92c77 100644 (file)
@@ -8,13 +8,11 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Transforms/ChangeAllocations.h"
-#include "llvm/Target/TargetData.h"
 #include "llvm/Module.h"
 #include "llvm/Function.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iMemory.h"
 #include "llvm/iOther.h"
-#include "llvm/Constants.h"
 #include "llvm/Pass.h"
 #include "TransformInternals.h"
 using std::vector;
index 3d81a8bde05c08023cd9b08b261ef8450e958f29..cfaeeccdf6e2d251a541c9421036cdc7a10168c0 100644 (file)
@@ -22,7 +22,6 @@
 #include "llvm/iMemory.h"
 #include "llvm/iPHINode.h"
 #include "llvm/iTerminators.h"
-#include "llvm/Pass.h"
 #include "llvm/Function.h"
 #include "llvm/BasicBlock.h"
 #include "llvm/Constant.h"
index 5b4ad43d107a333a8b041b9a65e252a362e7bd7b..8e5de342561a2d644d4014ea80aa0e5b5809afe2 100644 (file)
@@ -25,7 +25,6 @@
 #include "Support/StringExtras.h"
 #include "Support/STLExtras.h"
 #include <algorithm>
-#include <map>
 using std::string;
 using std::map;
 using std::vector;
index bd750df1bfee301f8a5c19e9acd179c637d0e3e7..a3fdb28f498e48675891feec61a95ad095457ef4 100644 (file)
@@ -6,7 +6,6 @@
 
 #include "ValueHolderImpl.h"
 #include "llvm/iTerminators.h"
-#include "llvm/SymbolTable.h"
 #include "llvm/Type.h"
 #include "llvm/Support/CFG.h"
 #include "llvm/iPHINode.h"
index 30d170b6698da43bdf5cbd1128e28457ed071c57..f542d112b8743955bc06d8fc4783ef0881580183 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "llvm/Analysis/Dominators.h"
 #include "llvm/Transforms/UnifyFunctionExitNodes.h"
-#include "llvm/Function.h"
 #include "llvm/Support/CFG.h"
 #include "Support/DepthFirstIterator.h"
 #include "Support/STLExtras.h"
index c15a88808d0172501a183b01e757af3eeb03fd42..a91948f31c8840bbf0f79a874cfb321f5240337e 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "llvm/Function.h"
 #include "llvm/DerivedTypes.h"
-#include "llvm/SymbolTable.h"
 #include "llvm/Module.h"
 #include "llvm/GlobalVariable.h"
 #include "llvm/BasicBlock.h"
index f06c9e3f60e338a725f77c937258fd573c54173d..0d25691cba30345bb2ef1fbcb6b4594d82addedb 100644 (file)
@@ -8,7 +8,6 @@
 #include "llvm/Function.h"
 #include "llvm/GlobalVariable.h"
 #include "llvm/InstrTypes.h"
-#include "llvm/Type.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 #include "Support/STLExtras.h"
index 0196a99ce6f907286938c42a75adc35e43a6afb8..f33eb311d34c877afd6e9d38175081632b018bbf 100644 (file)
@@ -36,9 +36,7 @@
 
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/Pass.h"
-#include "llvm/Function.h"
 #include "llvm/Module.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iPHINode.h"
 #include "llvm/iTerminators.h"
index 8633bef934014931f67991b6a1e9aafc13f4f738..194dd33b27e3b5510cf6c422f786840d7cdced49 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "Support/CommandLine.h"
 #include "Support/STLExtras.h"
-#include <vector>
 #include <algorithm>
 #include <map>
 #include <set>
index 7dbd3b7d1b58a85cad40c212bce8e145b3937db8..e347b4331b9779d62fb6ff574e4c4b0d7fd82f99 100644 (file)
@@ -10,9 +10,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Instruction.h"
 #include "llvm/Module.h"
-#include "llvm/Function.h"
 #include "llvm/iPHINode.h"
 #include "llvm/Type.h"
 #include "llvm/PassManager.h"
@@ -34,7 +32,6 @@
 #include "llvm/Support/InstIterator.h"
 #include "Support/CommandLine.h"
 #include <algorithm>
-#include <iostream>
 
 using std::ostream;
 using std::string;
index 9eff9721720ac01368e61d85d8bbc4553f1c2495..594feb8dd8366d36eb708079c48fe3a220286765 100644 (file)
@@ -15,7 +15,6 @@
 #include "Support/CommandLine.h"
 #include "Support/Signals.h"
 #include <fstream>
-#include <string>
 #include <memory>
 
 cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-");
index e14dcdc9a79dca5164075e25f0da6f7c99d17daf..e3d0ef0a4b86569b418e713795ae7315edf0304a 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "llvm/Module.h"
 #include "llvm/Bytecode/Reader.h"
-#include "llvm/Function.h"
 #include "llvm/Support/CFG.h"
 #include "Support/DepthFirstIterator.h"
 #include "Support/PostOrderIterator.h"
index 613f51c8f39c65dd34123ed30a2acf6fd7c1e9f3..ef502c22f9f235d190f779291a323adcc4aa960c 100644 (file)
@@ -24,7 +24,6 @@
 #include "Support/Signals.h"
 #include <memory>
 #include <fstream>
-#include <string>
 
 cl::String InputFilename ("", "Parse <arg> file, compile to bytecode",
                           cl::Required, "");
index 802fd037293bac5b0427807e54758b1bef10c017..6f6ab2ade66a0baaa0e606eabd4083ed3e8153a0 100644 (file)
@@ -20,7 +20,6 @@
 #include "Support/CommandLine.h"
 #include "Support/Signals.h"
 #include <memory>
-#include <string>
 #include <fstream>
 using std::string;
 
index 9eff9721720ac01368e61d85d8bbc4553f1c2495..594feb8dd8366d36eb708079c48fe3a220286765 100644 (file)
@@ -15,7 +15,6 @@
 #include "Support/CommandLine.h"
 #include "Support/Signals.h"
 #include <fstream>
-#include <string>
 #include <memory>
 
 cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-");
index 9eff9721720ac01368e61d85d8bbc4553f1c2495..594feb8dd8366d36eb708079c48fe3a220286765 100644 (file)
@@ -15,7 +15,6 @@
 #include "Support/CommandLine.h"
 #include "Support/Signals.h"
 #include <fstream>
-#include <string>
 #include <memory>
 
 cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-");
index e14dcdc9a79dca5164075e25f0da6f7c99d17daf..e3d0ef0a4b86569b418e713795ae7315edf0304a 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "llvm/Module.h"
 #include "llvm/Bytecode/Reader.h"
-#include "llvm/Function.h"
 #include "llvm/Support/CFG.h"
 #include "Support/DepthFirstIterator.h"
 #include "Support/PostOrderIterator.h"
index e14dcdc9a79dca5164075e25f0da6f7c99d17daf..e3d0ef0a4b86569b418e713795ae7315edf0304a 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "llvm/Module.h"
 #include "llvm/Bytecode/Reader.h"
-#include "llvm/Function.h"
 #include "llvm/Support/CFG.h"
 #include "Support/DepthFirstIterator.h"
 #include "Support/PostOrderIterator.h"