Remove some unnecessary unreachables in favor of (sometimes implicit) assertions
[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
44 module LLVM_DebugInfo_DWARF {
45   requires cplusplus
46
47   umbrella "DebugInfo/DWARF"
48   module * { export * }
49 }
50
51 module LLVM_DebugInfo_PDB {
52   requires cplusplus
53
54   umbrella "DebugInfo/PDB"
55   module * { export * }
56
57   // Separate out this subdirectory; it's an optional component that depends on
58   // a separate library which might not be available.
59   //
60   // FIXME: There should be a better way to specify this.
61   exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
62   exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
63   exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
64   exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
65   exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
66   exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
67   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
68   exclude header "DebugInfo/PDB/DIA/DIASession.h"
69   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
70   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
71 }
72
73 module LLVM_DebugInfo_PDB_DIA {
74   requires cplusplus
75
76   umbrella "DebugInfo/PDB/DIA"
77   module * { export * }
78 }
79
80 module LLVM_ExecutionEngine {
81   requires cplusplus
82
83   umbrella "ExecutionEngine"
84   module * { export * }
85
86   // Exclude this; it's an optional component of the ExecutionEngine.
87   exclude header "ExecutionEngine/OProfileWrapper.h"
88
89   // Exclude these; they're intended to be included into only a single
90   // translation unit (or none) and aren't part of this module.
91   exclude header "ExecutionEngine/JIT.h"
92   exclude header "ExecutionEngine/MCJIT.h"
93   exclude header "ExecutionEngine/Interpreter.h"
94   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
95 }
96
97 module LLVM_IR {
98   requires cplusplus
99
100   // FIXME: Is this the right place for these?
101   module Pass { header "Pass.h" export * }
102   module PassSupport { header "PassSupport.h" export * }
103   module PassAnalysisSupport { header "PassAnalysisSupport.h" export * }
104   module PassRegistry { header "PassRegistry.h" export * }
105   module InitializePasses { header "InitializePasses.h" export * }
106
107   umbrella "IR"
108   module * { export * }
109
110   // These are intended for (repeated) textual inclusion.
111   textual header "IR/Instruction.def"
112   textual header "IR/Metadata.def"
113 }
114
115 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
116 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
117 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
118
119 module LLVM_MC {
120   requires cplusplus
121
122   // FIXME: Mislayered?
123   module Support_TargetRegistry {
124     header "Support/TargetRegistry.h"
125     export *
126   }
127
128   umbrella "MC"
129   module * { export * }
130
131   // Exclude this; it's fundamentally non-modular.
132   exclude header "MC/MCTargetOptionsCommandFlags.h"
133 }
134
135 module LLVM_Object {
136   requires cplusplus
137   umbrella "Object"
138   module * { export * }
139 }
140
141 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
142 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
143
144 module LLVM_Transforms {
145   requires cplusplus
146   umbrella "Transforms"
147   module * { export * }
148
149   // FIXME: Excluded because it does bad things with the legacy pass manager.
150   exclude header "Transforms/IPO/PassManagerBuilder.h"
151 }
152
153 // A module covering ADT/ and Support/. These are intertwined and
154 // codependent, and notionally form a single module.
155 module LLVM_Utils {
156   module ADT {
157     requires cplusplus
158
159     umbrella "ADT"
160     module * { export * }
161   }
162
163   module Support {
164     requires cplusplus
165
166     umbrella "Support"
167     module * { export * }
168
169     // Exclude this; it's only included on Solaris.
170     exclude header "Support/Solaris.h"
171
172     // Exclude this; it's only included on AIX and fundamentally non-modular.
173     exclude header "Support/AIXDataTypesFix.h"
174
175     // Exclude this; it's fundamentally non-modular.
176     exclude header "Support/PluginLoader.h"
177
178     // Exclude this; it's a weirdly-factored part of llvm-gcov and conflicts
179     // with the Analysis module (which also defines an llvm::GCOVOptions).
180     exclude header "Support/GCOV.h"
181
182     // FIXME: Mislayered?
183     exclude header "Support/TargetRegistry.h"
184
185     // These are intended for textual inclusion.
186     textual header "Support/Dwarf.def"
187     textual header "Support/ELFRelocs/AArch64.def"
188     textual header "Support/ELFRelocs/ARM.def"
189     textual header "Support/ELFRelocs/Hexagon.def"
190     textual header "Support/ELFRelocs/i386.def"
191     textual header "Support/ELFRelocs/Mips.def"
192     textual header "Support/ELFRelocs/PowerPC64.def"
193     textual header "Support/ELFRelocs/PowerPC.def"
194     textual header "Support/ELFRelocs/Sparc.def"
195     textual header "Support/ELFRelocs/SystemZ.def"
196     textual header "Support/ELFRelocs/x86_64.def"
197   }
198 }
199
200 module LLVM_CodeGen_MachineValueType {
201   requires cplusplus
202   header "CodeGen/MachineValueType.h"
203   export *
204 }
205
206 // This is used for a $src == $build compilation. Otherwise we use
207 // LLVM_Support_DataTypes_Build, defined in a module map that is
208 // copied into the build area.
209 module LLVM_Support_DataTypes_Src {
210   header "llvm/Support/DataTypes.h"
211   export *
212 }