llvm.org GIT mirror llvm / 3889a2c
Remove a ton of extraneous #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6842 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
60 changed file(s) with 16 addition(s) and 120 deletion(s). Raw diff Collapse all Expand all
1717 #include
1818 #include
1919 #include "boost/type_traits/object_traits.hpp"
20
2120 #include
2221
2322 /// cl Namespace - This namespace contains all of the command line option
None //===-- Support/TarjanSCCIterator.h -Generic Tarjan SCC iterator -*- C++ -*--=//
0 //===-- Support/TarjanSCCIterator.h - Tarjan SCC iterator -------*- C++ -*-===//
11 //
22 // This builds on the Support/GraphTraits.h file to find the strongly
33 // connected components (SCCs) of a graph in O(N+E) time using
88 //
99 // To visit S1 *before* S2, use the TarjanSCCIterator on the Inverse graph.
1010 // (NOTE: This requires some simple wrappers and is not supported yet.)
11 //
1112 //===----------------------------------------------------------------------===//
1213
1314 #ifndef SUPPORT_TARJANSCCITERATOR_H
1415 #define SUPPORT_TARJANSCCITERATOR_H
1516
1617 #include "Support/GraphTraits.h"
17 #include
18 #include
18 #include "Support/Statistic.h"
19 #include "Support/iterator"
1920 #include
2021 #include
2122 #include
22
2323 #include
2424
2525 //--------------------------------------------------------------------------
2727 #include
2828 #include
2929 #include
30
3130 #include
3231
3332 class TimerGroup;
6362 PeakMemBase = T.PeakMemBase;
6463 Name = T.Name;
6564 Started = T.Started;
66 assert (TG == T.TG && "Can only assign timers in the same TimerGroup!");
65 assert(TG == T.TG && "Can only assign timers in the same TimerGroup!");
6766 return *this;
6867 }
6968
88 #define SUPPORT_TREE_H
99
1010 #include
11
1211 #include
1312
1413 template
None //===-- Support/TarjanSCCIterator.h -Generic Tarjan SCC iterator -*- C++ -*--=//
0 //===-- Support/TarjanSCCIterator.h - Tarjan SCC iterator -------*- C++ -*-===//
11 //
22 // This builds on the Support/GraphTraits.h file to find the strongly
33 // connected components (SCCs) of a graph in O(N+E) time using
88 //
99 // To visit S1 *before* S2, use the TarjanSCCIterator on the Inverse graph.
1010 // (NOTE: This requires some simple wrappers and is not supported yet.)
11 //
1112 //===----------------------------------------------------------------------===//
1213
1314 #ifndef SUPPORT_TARJANSCCITERATOR_H
1415 #define SUPPORT_TARJANSCCITERATOR_H
1516
1617 #include "Support/GraphTraits.h"
17 #include
18 #include
18 #include "Support/Statistic.h"
19 #include "Support/iterator"
1920 #include
2021 #include
2122 #include
22
2323 #include
2424
2525 //--------------------------------------------------------------------------
88 #define SUPPORT_TREE_H
99
1010 #include
11
1211 #include
1312
1413 template
88
99 #ifndef LLVM_ANALYSIS_ALIASSETTRACKER_H
1010 #define LLVM_ANALYSIS_ALIASSETTRACKER_H
11
12 #include
1311
1412 #include "llvm/Support/CallSite.h"
1513 #include "Support/iterator"
4040 #ifndef LLVM_ANALYSIS_CALLGRAPH_H
4141 #define LLVM_ANALYSIS_CALLGRAPH_H
4242
43 #include
44
4543 #include "Support/GraphTraits.h"
4644 #include "Support/STLExtras.h"
4745 #include "llvm/Pass.h"
77
88 #ifndef LLVM_ANALYSIS_CONSTANTSSCANNER_H
99 #define LLVM_ANALYSIS_CONSTANTSSCANNER_H
10
11 #include
1210
1311 #include "llvm/Support/InstIterator.h"
1412 #include "llvm/Instruction.h"
55
66 #ifndef LLVM_ANALYSIS_DSGRAPH_H
77 #define LLVM_ANALYSIS_DSGRAPH_H
8
9 #include
108
119 #include "llvm/Analysis/DSNode.h"
1210
77
88 #ifndef LLVM_ANALYSIS_DSGRAPHTRAITS_H
99 #define LLVM_ANALYSIS_DSGRAPHTRAITS_H
10
11 #include
1210
1311 #include "llvm/Analysis/DSGraph.h"
1412 #include "Support/GraphTraits.h"
66 #ifndef LLVM_ANALYSIS_DSSUPPORT_H
77 #define LLVM_ANALYSIS_DSSUPPORT_H
88
9 #include
10
119 #include
1210 #include
1311 #include
12 #include
1413 #include "Support/HashExtras.h"
1514 #include "Support/hash_set"
1615
55
66 #ifndef LLVM_ANALYSIS_DSGRAPH_H
77 #define LLVM_ANALYSIS_DSGRAPH_H
8
9 #include
108
119 #include "llvm/Analysis/DSNode.h"
1210
77
88 #ifndef LLVM_ANALYSIS_DSGRAPHTRAITS_H
99 #define LLVM_ANALYSIS_DSGRAPHTRAITS_H
10
11 #include
1210
1311 #include "llvm/Analysis/DSGraph.h"
1412 #include "Support/GraphTraits.h"
66 #ifndef LLVM_ANALYSIS_DSSUPPORT_H
77 #define LLVM_ANALYSIS_DSSUPPORT_H
88
9 #include
10
119 #include
1210 #include
1311 #include
12 #include
1413 #include "Support/HashExtras.h"
1514 #include "Support/hash_set"
1615
55
66 #ifndef LLVM_ANALYSIS_DATA_STRUCTURE_H
77 #define LLVM_ANALYSIS_DATA_STRUCTURE_H
8
9 #include
108
119 #include "llvm/Pass.h"
1210 #include "Support/HashExtras.h"
55
66 #ifndef LLVM_ANALYSIS_DATA_STRUCTURE_H
77 #define LLVM_ANALYSIS_DATA_STRUCTURE_H
8
9 #include
108
119 #include "llvm/Pass.h"
1210 #include "Support/HashExtras.h"
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16
1716 #ifndef LLVM_ANALYSIS_DEPENDENCEGRAPH_H
1817 #define LLVM_ANALYSIS_DEPENDENCEGRAPH_H
1918
2120 #include
2221 #include
2322 #include
24
2523 #include
2624
2725 class Instruction;
1919
2020 #include "llvm/Pass.h"
2121 #include
22 #include
2322 class Instruction;
2423
2524 template struct GraphTraits;
3737
3838 #ifndef LLVM_ANALYSIS_IPMODREF_H
3939 #define LLVM_ANALYSIS_IPMODREF_H
40
41 #include
4240
4341 #include "llvm/Pass.h"
4442 #include "Support/BitSetVector.h"
1313 #ifndef LLVM_ANALYSIS_INSTFOREST_H
1414 #define LLVM_ANALYSIS_INSTFOREST_H
1515
16 #include "llvm/Instruction.h"
17 #include "llvm/BasicBlock.h"
1816 #include "llvm/Function.h"
1917 #include "Support/Tree.h"
2018 #include
21 #include
2219
2320 template class InstTreeNode;
2421 template class InstForest;
2727
2828 #include "llvm/Analysis/IntervalPartition.h"
2929 #include "llvm/Function.h"
30 #include "llvm/BasicBlock.h"
3130 #include "llvm/Support/CFG.h"
3231 #include
3332 #include
3433 #include
35 #include
3634
3735 // getNodeHeader - Given a source graph node and the source graph, return the
3836 // BasicBlock that is the header node. This is the opposite of
66 //
77 // The result of this pass is a DependenceGraph for each function
88 // representing the memory-based data dependences between instructions.
9 //
910 //===----------------------------------------------------------------------===//
1011
1112 #ifndef LLVM_ANALYSIS_MEMORYDEPANALYSIS_H
1617 #include "llvm/Analysis/DataStructure.h"
1718 #include "llvm/Pass.h"
1819 #include "Support/TarjanSCCIterator.h"
19 #include "Support/NonCopyable.h"
2020 #include "Support/hash_map"
2121
22 #include
23
2422 class Instruction;
25 class Function;
26 class DSGraph;
2723 class ModRefTable;
28
2924
3025 ///---------------------------------------------------------------------------
3126 /// class MemoryDepGraph:
2525 //
2626 // class PgmDependenceGraph -- Interface to obtain PDGIterators for each
2727 // instruction.
28 //
2829 //===----------------------------------------------------------------------===//
2930
3031 #ifndef LLVM_ANALYSIS_PGMDEPENDENCEGRAPH_H
3435 #include "llvm/Analysis/MemoryDepAnalysis.h"
3536 /* #include "llvm/Analysis/PostDominators.h" -- see below */
3637 #include "llvm/Instruction.h"
37 #include "llvm/Value.h"
3838 #include "llvm/Pass.h"
39 #include "Support/NonCopyable.h"
4039 #include
4140
42 #include
43
44 class Instruction;
45 class Function;
4641 class DSGraph;
4742 class DependenceGraph;
4843 class PgmDependenceGraph;
2020
2121 #include "llvm/Instruction.h"
2222 #include "Support/HashExtras.h"
23 #include
2423
2524 class Constant;
26 class BasicBlock;
2725 class Function;
2826 class InstrTreeNode;
2927 class InstrForest;
77 #define LLVM_CODEGEN_INSTR_SELECTION_H
88
99 #include "llvm/Instruction.h"
10 #include
1110 class Function;
1211 class InstrForest;
1312 class MachineInstr;
2323
2424 #include "llvm/CodeGen/MachineFunctionPass.h"
2525 #include
26 #include
2726
2827 class MRegisterInfo;
2928
1919
2020 #include "Support/Annotation.h"
2121 #include
22 #include
2322
2423 class MachineInstr;
2524 class Instruction;
1212 #include "Support/Annotation.h"
1313 #include "Support/iterator"
1414 #include
15 #include
1615
1716 class Value;
1817 class Function;
88
99 #include "llvm/CodeGen/MachineInstr.h"
1010 #include "llvm/Target/TargetRegInfo.h"
11
12 #include
1311
1412 class Value;
1513 class TmpInstruction;
1010 #define LLVM_CODEGEN_SSAREGMAP_H
1111
1212 #include "llvm/Target/MRegisterInfo.h"
13
14 #include
15
1613 class TargetRegisterClass;
1714
1815 class SSARegMap {
66 #ifndef LLVM_CONSTANT_H
77 #define LLVM_CONSTANT_H
88
9 #include
109 #include "llvm/User.h"
1110
1211 class Constant : public User {
3131
3232 #ifndef LLVM_CONSTANTHANDLING_H
3333 #define LLVM_CONSTANTHANDLING_H
34
35 #include
3634
3735 #include "llvm/Constants.h"
3836 #include "llvm/Type.h"
66
77 #ifndef LLVM_CONSTANTS_H
88 #define LLVM_CONSTANTS_H
9
10 #include
119
1210 #include "llvm/Constant.h"
1311 #include "Support/DataTypes.h"
99
1010 #ifndef LLVM_DERIVED_TYPES_H
1111 #define LLVM_DERIVED_TYPES_H
12
13 #include
1412
1513 #include "llvm/Type.h"
1614
1111
1212 #ifndef LLVM_GLOBAL_VARIABLE_H
1313 #define LLVM_GLOBAL_VARIABLE_H
14
15 #include
1614
1715 #include "llvm/GlobalValue.h"
1816 class Module;
66
77 #ifndef LLVM_INSTRUCTION_H
88 #define LLVM_INSTRUCTION_H
9
10 #include
119
1210 #include "llvm/User.h"
1311 template struct ilist_traits;
2222 #define LLVM_PASS_H
2323
2424 #include
25
2625 #include
2726 #include
2827 #include
1212 #define LLVM_PASS_ANALYSIS_SUPPORT_H
1313
1414 // No need to include Pass.h, we are being included by it!
15
16 #include
1715
1816 //===----------------------------------------------------------------------===//
1917 // AnalysisUsage - Represent the analysis usage information of a pass. This
1212
1313 #ifndef LLVM_PASS_SUPPORT_H
1414 #define LLVM_PASS_SUPPORT_H
15
16 #include
1715
1816 // No need to include Pass.h, we are being included by it!
1917
1111 #include "llvm/Function.h"
1212 #include "llvm/InstrTypes.h"
1313 #include "Support/iterator"
14
15 #include
1614
1715 //===--------------------------------------------------------------------===//
1816 // BasicBlock pred_iterator definition
1717 #include
1818 #include
1919 #include "boost/type_traits/object_traits.hpp"
20
2120 #include
2221
2322 /// cl Namespace - This namespace contains all of the command line option
4343 #define LLVM_SUPPORT_INSTVISITOR_H
4444
4545 #include "llvm/Instruction.h"
46 #include
4746
4847 class Module;
4948
1919 #include "llvm/Pass.h"
2020 #include
2121 #include
22 #include
2322
2423 //===----------------------------------------------------------------------===//
2524 // PassNameParser class - Make use of the pass registration mechanism to
2727 #include
2828 #include
2929 #include
30
3130 #include
3231
3332 class TimerGroup;
6362 PeakMemBase = T.PeakMemBase;
6463 Name = T.Name;
6564 Started = T.Started;
66 assert (TG == T.TG && "Can only assign timers in the same TimerGroup!");
65 assert(TG == T.TG && "Can only assign timers in the same TimerGroup!");
6766 return *this;
6867 }
6968
1414
1515 #ifndef LLVM_SYMBOL_TABLE_H
1616 #define LLVM_SYMBOL_TABLE_H
17
18 #include
1917
2018 #include "llvm/Value.h"
2119 #include
99 #define LLVM_TARGET_MREGISTERINFO_H
1010
1111 #include "llvm/CodeGen/MachineBasicBlock.h"
12 #include
1312
1413 class Type;
1514 class MachineFunction;
99 #include "llvm/Target/TargetInstrInfo.h"
1010 #include "Support/hash_map"
1111 #include
12 #include
1312
1413 typedef long long cycles_t;
1514 static const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2));
1010
1111 #ifndef LLVM_USER_H
1212 #define LLVM_USER_H
13
14 #include
1513
1614 #include "llvm/Value.h"
1715
66
77 #ifndef LLVM_IOTHER_H
88 #define LLVM_IOTHER_H
9
10 #include
119
1210 #include "llvm/InstrTypes.h"
1311
55
66 #ifndef LLVM_IPHINODE_H
77 #define LLVM_IPHINODE_H
8
9 #include
108
119 #include "llvm/Instruction.h"
1210 class BasicBlock;
77
88 #ifndef LLVM_ITERMINATORS_H
99 #define LLVM_ITERMINATORS_H
10
11 #include
1210
1311 #include "llvm/InstrTypes.h"
1412
2525 #define IG_NODE_H
2626
2727 #include "llvm/CodeGen/LiveRange.h"
28 #include
2928 class RegClass;
3029
3130 //----------------------------------------------------------------------------
None //===-- LiveRange.h - Store info about a live range --------------*- C++ -*--=//
0 //===-- LiveRange.h - Store info about a live range -------------*- C++ -*-===//
11 //
22 // Implements a live range using a ValueSet. A LiveRange is a simple set
33 // of Values.
1313 #include "llvm/CodeGen/ValueSet.h"
1414 #include "llvm/Value.h"
1515
16 #include
17
1816 class RegClass;
1917 class IGNode;
20 class Type;
2118
2219 class LiveRange : public ValueSet {
2320 RegClass *MyRegClass; // register classs (e.g., int, FP) for this LR
1919
2020 #include "Support/Annotation.h"
2121 #include
22 #include
2322
2423 class MachineInstr;
2524 class Instruction;
88
99 #include "llvm/CodeGen/MachineInstr.h"
1010 #include "llvm/Target/TargetRegInfo.h"
11
12 #include
1311
1412 class Value;
1513 class TmpInstruction;
2525 #define IG_NODE_H
2626
2727 #include "llvm/CodeGen/LiveRange.h"
28 #include
2928 class RegClass;
3029
3130 //----------------------------------------------------------------------------
None //===-- LiveRange.h - Store info about a live range --------------*- C++ -*--=//
0 //===-- LiveRange.h - Store info about a live range -------------*- C++ -*-===//
11 //
22 // Implements a live range using a ValueSet. A LiveRange is a simple set
33 // of Values.
1313 #include "llvm/CodeGen/ValueSet.h"
1414 #include "llvm/Value.h"
1515
16 #include
17
1816 class RegClass;
1917 class IGNode;
20 class Type;
2118
2219 class LiveRange : public ValueSet {
2320 RegClass *MyRegClass; // register classs (e.g., int, FP) for this LR
3131
3232 #ifndef LLVM_CONSTANTHANDLING_H
3333 #define LLVM_CONSTANTHANDLING_H
34
35 #include
3634
3735 #include "llvm/Constants.h"
3836 #include "llvm/Type.h"
3131
3232 #ifndef LLVM_CONSTANTHANDLING_H
3333 #define LLVM_CONSTANTHANDLING_H
34
35 #include
3634
3735 #include "llvm/Constants.h"
3836 #include "llvm/Type.h"