Replace string GNU Triples with llvm::Triple in MCSubtargetInfo and create*MCSubtarge...
[oota-llvm.git] / include / llvm / module.modulemap
1 module LLVM_Analysis {
2   requires cplusplus
3   umbrella "Analysis"
4   module * { export * }
5
6   // FIXME: Why is this excluded?
7   exclude header "Analysis/BlockFrequencyInfoImpl.h"
8
9   // This is intended for (repeated) textual inclusion.
10   textual header "Analysis/TargetLibraryInfo.def"
11 }
12
13 module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } }
14
15 // A module covering CodeGen/ and Target/. These are intertwined
16 // and codependent, and thus notionally form a single module.
17 module LLVM_Backend {
18   requires cplusplus
19
20   module CodeGen {
21     umbrella "CodeGen"
22     module * { export * }
23
24     // FIXME: Why is this excluded?
25     exclude header "CodeGen/MachineValueType.h"
26
27     // Exclude these; they're intended to be included into only a single
28     // translation unit (or none) and aren't part of this module.
29     exclude header "CodeGen/CommandFlags.h"
30     exclude header "CodeGen/LinkAllAsmWriterComponents.h"
31     exclude header "CodeGen/LinkAllCodegenComponents.h"
32   }
33
34   module Target {
35     umbrella "Target"
36     module * { export * }
37   }
38
39   // FIXME: Where should this go?
40   module Analysis_BlockFrequencyInfoImpl {
41     header "Analysis/BlockFrequencyInfoImpl.h"
42     export *
43   }
44 }
45
46 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
47 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
48
49 module LLVM_DebugInfo {
50   requires cplusplus
51   module DIContext { header "DebugInfo/DIContext.h" export * }
52 }
53
54 module LLVM_DebugInfo_DWARF {
55   requires cplusplus
56
57   umbrella "DebugInfo/DWARF"
58   module * { export * }
59 }
60
61 module LLVM_DebugInfo_PDB {
62   requires cplusplus
63
64   umbrella "DebugInfo/PDB"
65   module * { export * }
66
67   // Separate out this subdirectory; it's an optional component that depends on
68   // a separate library which might not be available.
69   //
70   // FIXME: There should be a better way to specify this.
71   exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
72   exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
73   exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
74   exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
75   exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
76   exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
77   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
78   exclude header "DebugInfo/PDB/DIA/DIASession.h"
79   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
80   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
81 }
82
83 module LLVM_DebugInfo_PDB_DIA {
84   requires cplusplus
85
86   umbrella "DebugInfo/PDB/DIA"
87   module * { export * }
88 }
89
90 module LLVM_ExecutionEngine {
91   requires cplusplus
92
93   umbrella "ExecutionEngine"
94   module * { export * }
95
96   // Exclude this; it's an optional component of the ExecutionEngine.
97   exclude header "ExecutionEngine/OProfileWrapper.h"
98
99   // Exclude these; they're intended to be included into only a single
100   // translation unit (or none) and aren't part of this module.
101   exclude header "ExecutionEngine/JIT.h"
102   exclude header "ExecutionEngine/MCJIT.h"
103   exclude header "ExecutionEngine/Interpreter.h"
104   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
105 }
106
107 module LLVM_IR {
108   requires cplusplus
109
110   // FIXME: Is this the right place for these?
111   module Pass { header "Pass.h" export * }
112   module PassSupport { header "PassSupport.h" export * }
113   module PassAnalysisSupport { header "PassAnalysisSupport.h" export * }
114   module PassRegistry { header "PassRegistry.h" export * }
115   module InitializePasses { header "InitializePasses.h" export * }
116
117   umbrella "IR"
118   module * { export * }
119
120   // These are intended for (repeated) textual inclusion.
121   textual header "IR/DebugInfoFlags.def"
122   textual header "IR/Instruction.def"
123   textual header "IR/Metadata.def"
124 }
125
126 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
127 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
128 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
129
130 module LLVM_MC {
131   requires cplusplus
132
133   // FIXME: Mislayered?
134   module Support_TargetRegistry {
135     header "Support/TargetRegistry.h"
136     export *
137   }
138
139   umbrella "MC"
140   module * { export * }
141
142   // Exclude this; it's fundamentally non-modular.
143   exclude header "MC/MCTargetOptionsCommandFlags.h"
144 }
145
146 module LLVM_Object {
147   requires cplusplus
148   umbrella "Object"
149   module * { export * }
150 }
151
152 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
153 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
154
155 module LLVM_Transforms {
156   requires cplusplus
157   umbrella "Transforms"
158   module * { export * }
159
160   // FIXME: Excluded because it does bad things with the legacy pass manager.
161   exclude header "Transforms/IPO/PassManagerBuilder.h"
162 }
163
164 // A module covering ADT/ and Support/. These are intertwined and
165 // codependent, and notionally form a single module.
166 module LLVM_Utils {
167   module ADT {
168     requires cplusplus
169
170     umbrella "ADT"
171     module * { export * }
172   }
173
174   module Support {
175     requires cplusplus
176
177     umbrella "Support"
178     module * { export * }
179
180     // Exclude this; it's only included on Solaris.
181     exclude header "Support/Solaris.h"
182
183     // Exclude this; it's only included on AIX and fundamentally non-modular.
184     exclude header "Support/AIXDataTypesFix.h"
185
186     // Exclude this; it's fundamentally non-modular.
187     exclude header "Support/PluginLoader.h"
188
189     // Exclude this; it's a weirdly-factored part of llvm-gcov and conflicts
190     // with the Analysis module (which also defines an llvm::GCOVOptions).
191     exclude header "Support/GCOV.h"
192
193     // FIXME: Mislayered?
194     exclude header "Support/TargetRegistry.h"
195
196     // These are intended for textual inclusion.
197     textual header "Support/Dwarf.def"
198     textual header "Support/ELFRelocs/AArch64.def"
199     textual header "Support/ELFRelocs/ARM.def"
200     textual header "Support/ELFRelocs/Hexagon.def"
201     textual header "Support/ELFRelocs/i386.def"
202     textual header "Support/ELFRelocs/Mips.def"
203     textual header "Support/ELFRelocs/PowerPC64.def"
204     textual header "Support/ELFRelocs/PowerPC.def"
205     textual header "Support/ELFRelocs/Sparc.def"
206     textual header "Support/ELFRelocs/SystemZ.def"
207     textual header "Support/ELFRelocs/x86_64.def"
208   }
209 }
210
211 module LLVM_CodeGen_MachineValueType {
212   requires cplusplus
213   header "CodeGen/MachineValueType.h"
214   export *
215 }
216
217 // This is used for a $src == $build compilation. Otherwise we use
218 // LLVM_Support_DataTypes_Build, defined in a module map that is
219 // copied into the build area.
220 module LLVM_Support_DataTypes_Src {
221   header "llvm/Support/DataTypes.h"
222   export *
223 }