[PM] Remove the old 'PassManager.h' header file at the top level of
[oota-llvm.git] / include / llvm / module.modulemap
1 module LLVM_Analysis {
2   requires cplusplus
3   umbrella "Analysis"
4   module * { export * }
5   exclude header "Analysis/BlockFrequencyInfoImpl.h"
6 }
7
8 module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } }
9
10 // A module covering CodeGen/ and Target/. These are intertwined
11 // and codependent, and thus notionally form a single module.
12 module LLVM_Backend {
13   requires cplusplus
14
15   module CodeGen {
16     umbrella "CodeGen"
17     module * { export * }
18
19     // FIXME: Why is this excluded?
20     exclude header "CodeGen/MachineValueType.h"
21
22     // Exclude these; they're intended to be included into only a single
23     // translation unit (or none) and aren't part of this module.
24     exclude header "CodeGen/CommandFlags.h"
25     exclude header "CodeGen/LinkAllAsmWriterComponents.h"
26     exclude header "CodeGen/LinkAllCodegenComponents.h"
27   }
28
29   module Target {
30     umbrella "Target"
31     module * { export * }
32   }
33
34   // FIXME: Where should this go?
35   module Analysis_BlockFrequencyInfoImpl {
36     header "Analysis/BlockFrequencyInfoImpl.h"
37     export *
38   }
39 }
40
41 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
42 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
43 module LLVM_DebugInfo { requires cplusplus umbrella "DebugInfo" module * { export * } }
44 module LLVM_ExecutionEngine {
45   requires cplusplus
46
47   umbrella "ExecutionEngine"
48   module * { export * }
49
50   // Exclude this; it's an optional component of the ExecutionEngine.
51   exclude header "ExecutionEngine/OProfileWrapper.h"
52
53   // Exclude these; they're intended to be included into only a single
54   // translation unit (or none) and aren't part of this module.
55   exclude header "ExecutionEngine/JIT.h"
56   exclude header "ExecutionEngine/MCJIT.h"
57   exclude header "ExecutionEngine/Interpreter.h"
58   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
59 }
60
61 module LLVM_IR {
62   requires cplusplus
63
64   // FIXME: Is this the right place for these?
65   module Pass { header "Pass.h" export * }
66   module PassSupport { header "PassSupport.h" export * }
67   module PassAnalysisSupport { header "PassAnalysisSupport.h" export * }
68   module PassRegistry { header "PassRegistry.h" export * }
69   module InitializePasses { header "InitializePasses.h" export * }
70
71   umbrella "IR"
72   module * { export * }
73
74   // These are intended for (repeated) textual inclusion.
75   textual header "IR/Instruction.def"
76   textual header "IR/Metadata.def"
77 }
78
79 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
80 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
81 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
82
83 module LLVM_MC {
84   requires cplusplus
85
86   // FIXME: Mislayered?
87   module Support_TargetRegistry {
88     header "Support/TargetRegistry.h"
89     export *
90   }
91
92   umbrella "MC"
93   module * { export * }
94
95   // Exclude this; it's fundamentally non-modular.
96   exclude header "MC/MCTargetOptionsCommandFlags.h"
97 }
98
99 module LLVM_Object {
100   requires cplusplus
101   umbrella "Object"
102   module * { export * }
103 }
104
105 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
106 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
107
108 module LLVM_Transforms {
109   requires cplusplus
110   umbrella "Transforms"
111   module * { export * }
112
113   // FIXME: Excluded because it does bad things with the legacy pass manager.
114   exclude header "Transforms/IPO/PassManagerBuilder.h"
115 }
116
117 // A module covering ADT/ and Support/. These are intertwined and
118 // codependent, and notionally form a single module.
119 module LLVM_Utils {
120   module ADT {
121     requires cplusplus
122
123     umbrella "ADT"
124     module * { export * }
125   }
126
127   module Support {
128     requires cplusplus
129
130     umbrella "Support"
131     module * { export * }
132
133     // Exclude this; it's only included on Solaris.
134     exclude header "Support/Solaris.h"
135
136     // Exclude this; it's only included on AIX and fundamentally non-modular.
137     exclude header "Support/AIXDataTypesFix.h"
138
139     // Exclude this; it's fundamentally non-modular.
140     exclude header "Support/PluginLoader.h"
141
142     // Exclude this; it's a weirdly-factored part of llvm-gcov and conflicts
143     // with the Analysis module (which also defines an llvm::GCOVOptions).
144     exclude header "Support/GCOV.h"
145
146     // FIXME: Mislayered?
147     exclude header "Support/TargetRegistry.h"
148
149     // These are intended for textual inclusion.
150     textual header "Support/ELFRelocs/AArch64.def"
151     textual header "Support/ELFRelocs/ARM.def"
152     textual header "Support/ELFRelocs/Hexagon.def"
153     textual header "Support/ELFRelocs/i386.def"
154     textual header "Support/ELFRelocs/Mips.def"
155     textual header "Support/ELFRelocs/PowerPC64.def"
156     textual header "Support/ELFRelocs/PowerPC.def"
157     textual header "Support/ELFRelocs/Sparc.def"
158     textual header "Support/ELFRelocs/SystemZ.def"
159     textual header "Support/ELFRelocs/x86_64.def"
160   }
161 }
162
163 module LLVM_CodeGen_MachineValueType {
164   requires cplusplus
165   header "CodeGen/MachineValueType.h"
166   export *
167 }
168
169 // This is used for a $src == $build compilation. Otherwise we use
170 // LLVM_Support_DataTypes_Build, defined in a module map that is
171 // copied into the build area.
172 module LLVM_Support_DataTypes_Src {
173   header "llvm/Support/DataTypes.h"
174   export *
175 }