]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/module.modulemap
Update clang to trunk r290819 and resolve conflicts.
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / module.modulemap
1 module LLVM_Analysis {
2   requires cplusplus
3   umbrella "Analysis"
4   module * { export * }
5
6   // This is intended for (repeated) textual inclusion.
7   textual header "Analysis/TargetLibraryInfo.def"
8 }
9
10 module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } }
11
12 // A module covering CodeGen/ and Target/. These are intertwined
13 // and codependent, and thus notionally form a single module.
14 module LLVM_Backend {
15   requires cplusplus
16
17   module CodeGen {
18     umbrella "CodeGen"
19     module * { export * }
20
21     // Exclude these; they're intended to be included into only a single
22     // translation unit (or none) and aren't part of this module.
23     exclude header "CodeGen/CommandFlags.h"
24     exclude header "CodeGen/LinkAllAsmWriterComponents.h"
25     exclude header "CodeGen/LinkAllCodegenComponents.h"
26
27     // These are intended for (repeated) textual inclusion.
28     textual header "CodeGen/DIEValue.def"
29   }
30
31   module Target {
32     umbrella "Target"
33     module * { export * }
34
35     // This is intended for (repeated) textual inclusion.
36     textual header "Target/TargetOpcodes.def"
37   }
38 }
39
40 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
41 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
42
43 module LLVM_DebugInfo {
44   requires cplusplus
45   module DIContext { header "DebugInfo/DIContext.h" export * }
46 }
47
48 module LLVM_DebugInfo_DWARF {
49   requires cplusplus
50
51   umbrella "DebugInfo/DWARF"
52   module * { export * }
53 }
54
55 module LLVM_DebugInfo_PDB {
56   requires cplusplus
57
58   umbrella "DebugInfo/PDB"
59   module * { export * }
60
61   // Separate out this subdirectory; it's an optional component that depends on
62   // a separate library which might not be available.
63   //
64   // FIXME: There should be a better way to specify this.
65   exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
66   exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
67   exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
68   exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
69   exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
70   exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
71   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
72   exclude header "DebugInfo/PDB/DIA/DIASession.h"
73   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
74   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
75 }
76
77 module LLVM_DebugInfo_PDB_DIA {
78   requires cplusplus
79
80   umbrella "DebugInfo/PDB/DIA"
81   module * { export * }
82 }
83
84 module LLVM_DebugInfo_MSF {
85   requires cplusplus
86
87   umbrella "DebugInfo/MSF"
88   module * { export * }
89 }
90
91 module LLVM_DebugInfo_CodeView {
92   requires cplusplus
93
94   umbrella "DebugInfo/CodeView"
95   module * { export * }
96
97   // These are intended for (repeated) textual inclusion.
98   textual header "DebugInfo/CodeView/TypeRecords.def"
99   textual header "DebugInfo/CodeView/CVSymbolTypes.def"
100 }
101
102 module LLVM_ExecutionEngine {
103   requires cplusplus
104
105   umbrella "ExecutionEngine"
106   module * { export * }
107
108   // Exclude this; it's an optional component of the ExecutionEngine.
109   exclude header "ExecutionEngine/OProfileWrapper.h"
110
111   // Exclude these; they're intended to be included into only a single
112   // translation unit (or none) and aren't part of this module.
113   exclude header "ExecutionEngine/MCJIT.h"
114   exclude header "ExecutionEngine/Interpreter.h"
115   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
116
117   // FIXME: These exclude directives were added as a workaround for
118   //        <rdar://problem/29247092> and should be removed once it is fixed.
119   exclude header "ExecutionEngine/Orc/RawByteChannel.h"
120   exclude header "ExecutionEngine/Orc/RPCUtils.h"
121   exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
122   exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
123   exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
124 }
125
126 module LLVM_Pass {
127   module Pass {
128     // PassSupport.h and PassAnalysisSupport.h are made available only through
129     // Pass.h.
130     header "Pass.h"
131     header "PassSupport.h"
132     header "PassAnalysisSupport.h"
133     export *
134   }
135
136   module PassRegistry { header "PassRegistry.h" export * }
137   module InitializePasses { header "InitializePasses.h" export * }
138 }
139
140 module LLVM_intrinsic_gen {
141   requires cplusplus
142
143   // Delay building the modules containing dependencies to Attributes.h and
144   // Intrinsics.h because they need to be generated by tablegen first.
145
146   // Attributes.h
147   module IR_Argument { header "IR/Argument.h" export * }
148   module IR_Attributes { header "IR/Attributes.h" export * }
149   module IR_CallSite { header "IR/CallSite.h" export * }
150   module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
151   module IR_NoFolder { header "IR/NoFolder.h" export * }
152   module IR_Module { header "IR/Module.h" export * }
153   module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
154   module IR_Function { header "IR/Function.h" export * }
155   module IR_InstrTypes { header "IR/InstrTypes.h" export * }
156   module IR_Instructions { header "IR/Instructions.h" export * }
157
158
159   // Intrinsics.h
160   module IR_CFG { header "IR/CFG.h" export * }
161   module IR_ConstantRange { header "IR/ConstantRange.h" export * }
162   module IR_Dominators { header "IR/Dominators.h" export * }
163   module IR_IRBuilder { header "IR/IRBuilder.h" export * }
164   module IR_PassManager { header "IR/PassManager.h" export * }
165   module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
166   module IR_Verifier { header "IR/Verifier.h" export * }
167   module IR_InstIterator { header "IR/InstIterator.h" export * }
168   module IR_InstVisitor { header "IR/InstVisitor.h" export * }
169   module IR_Intrinsics { header "IR/Intrinsics.h" export * }
170   module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
171   module IR_PatternMatch { header "IR/PatternMatch.h" export * }
172   module IR_Statepoint { header "IR/Statepoint.h" export * }
173
174   export *
175 }
176
177 module LLVM_IR {
178   requires cplusplus
179
180   umbrella "IR"
181   module * { export * }
182
183   // These are intended for (repeated) textual inclusion.
184   textual header "IR/DebugInfoFlags.def"
185   textual header "IR/Instruction.def"
186   textual header "IR/Metadata.def"
187   textual header "IR/Value.def"
188 }
189
190 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
191 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
192 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
193
194 module LLVM_MC {
195   requires cplusplus
196
197   // FIXME: Mislayered?
198   module Support_TargetRegistry {
199     header "Support/TargetRegistry.h"
200     export *
201   }
202
203   umbrella "MC"
204   module * { export * }
205
206   // Exclude this; it's fundamentally non-modular.
207   exclude header "MC/MCTargetOptionsCommandFlags.h"
208 }
209
210 module LLVM_Object {
211   requires cplusplus
212   umbrella "Object"
213   module * { export * }
214 }
215
216 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
217
218 module LLVM_ProfileData {
219   requires cplusplus
220
221   umbrella "ProfileData"
222   module * { export * }
223
224   textual header "ProfileData/InstrProfData.inc"
225 }
226
227 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
228
229 module LLVM_Transforms {
230   requires cplusplus
231   umbrella "Transforms"
232   module * { export * }
233 }
234
235 // A module covering ADT/ and Support/. These are intertwined and
236 // codependent, and notionally form a single module.
237 module LLVM_Utils {
238   module ADT {
239     requires cplusplus
240
241     umbrella "ADT"
242     module * { export * }
243   }
244
245   module Support {
246     requires cplusplus
247
248     umbrella "Support"
249     module * { export * }
250
251     // Exclude this; it's only included on Solaris.
252     exclude header "Support/Solaris.h"
253
254     // Exclude this; it's fundamentally non-modular.
255     exclude header "Support/PluginLoader.h"
256
257     // These are intended for textual inclusion.
258     textual header "Support/ARMTargetParser.def"
259     textual header "Support/AArch64TargetParser.def"
260     textual header "Support/Dwarf.def"
261     textual header "Support/MachO.def"
262     textual header "Support/ELFRelocs/AArch64.def"
263     textual header "Support/ELFRelocs/AMDGPU.def"
264     textual header "Support/ELFRelocs/ARM.def"
265     textual header "Support/ELFRelocs/AVR.def"
266     textual header "Support/ELFRelocs/BPF.def"
267     textual header "Support/ELFRelocs/Hexagon.def"
268     textual header "Support/ELFRelocs/i386.def"
269     textual header "Support/ELFRelocs/Lanai.def"
270     textual header "Support/ELFRelocs/Mips.def"
271     textual header "Support/ELFRelocs/PowerPC64.def"
272     textual header "Support/ELFRelocs/PowerPC.def"
273     textual header "Support/ELFRelocs/RISCV.def"
274     textual header "Support/ELFRelocs/Sparc.def"
275     textual header "Support/ELFRelocs/SystemZ.def"
276     textual header "Support/ELFRelocs/x86_64.def"
277     textual header "Support/ELFRelocs/WebAssembly.def"
278   }
279
280   // This part of the module is usable from both C and C++ code.
281   module ConvertUTF {
282     header "Support/ConvertUTF.h"
283     export *
284   }
285 }
286
287 module LLVM_CodeGen_MachineValueType {
288   requires cplusplus
289   header "CodeGen/MachineValueType.h"
290   export *
291 }
292
293 // This is used for a $src == $build compilation. Otherwise we use
294 // LLVM_Support_DataTypes_Build, defined in a module map that is
295 // copied into the build area.
296 module LLVM_Support_DataTypes_Src {
297   header "llvm/Support/DataTypes.h"
298   export *
299 }