]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/module.modulemap
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r304222, and update
[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_GlobalVariable { header "IR/GlobalVariable.h" export * }
152   module IR_NoFolder { header "IR/NoFolder.h" export * }
153   module IR_Module { header "IR/Module.h" export * }
154   module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
155   module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
156   module IR_Function { header "IR/Function.h" export * }
157   module IR_InstrTypes { header "IR/InstrTypes.h" export * }
158   module IR_Instructions { header "IR/Instructions.h" export * }
159
160
161   // Intrinsics.h
162   module IR_CFG { header "IR/CFG.h" export * }
163   module IR_ConstantRange { header "IR/ConstantRange.h" export * }
164   module IR_Dominators { header "IR/Dominators.h" export * }
165   module IR_IRBuilder { header "IR/IRBuilder.h" export * }
166   module IR_PassManager { header "IR/PassManager.h" export * }
167   module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
168   module IR_Verifier { header "IR/Verifier.h" export * }
169   module IR_InstIterator { header "IR/InstIterator.h" export * }
170   module IR_InstVisitor { header "IR/InstVisitor.h" export * }
171   module IR_Intrinsics { header "IR/Intrinsics.h" export * }
172   module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
173   module IR_PatternMatch { header "IR/PatternMatch.h" export * }
174   module IR_Statepoint { header "IR/Statepoint.h" export * }
175
176   export *
177 }
178
179 module LLVM_IR {
180   requires cplusplus
181
182   umbrella "IR"
183   module * { export * }
184
185   // These are intended for (repeated) textual inclusion.
186   textual header "IR/DebugInfoFlags.def"
187   textual header "IR/Instruction.def"
188   textual header "IR/Metadata.def"
189   textual header "IR/Value.def"
190 }
191
192 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
193 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
194 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
195
196 module LLVM_MC {
197   requires cplusplus
198
199   // FIXME: Mislayered?
200   module Support_TargetRegistry {
201     header "Support/TargetRegistry.h"
202     export *
203   }
204
205   umbrella "MC"
206   module * { export * }
207
208   // Exclude this; it's fundamentally non-modular.
209   exclude header "MC/MCTargetOptionsCommandFlags.h"
210 }
211
212 module LLVM_Object {
213   requires cplusplus
214   umbrella "Object"
215   module * { export * }
216 }
217
218 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
219
220 module LLVM_ProfileData {
221   requires cplusplus
222
223   umbrella "ProfileData"
224   module * { export * }
225
226   textual header "ProfileData/InstrProfData.inc"
227 }
228
229 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
230
231 module LLVM_Transforms {
232   requires cplusplus
233   umbrella "Transforms"
234   module * { export * }
235 }
236
237 // A module covering ADT/ and Support/. These are intertwined and
238 // codependent, and notionally form a single module.
239 module LLVM_Utils {
240   module ADT {
241     requires cplusplus
242
243     umbrella "ADT"
244     module * { export * }
245   }
246
247   module Support {
248     requires cplusplus
249
250     umbrella "Support"
251     module * { export * }
252
253     // Exclude this; it's only included on Solaris.
254     exclude header "Support/Solaris.h"
255
256     // Exclude this; it's fundamentally non-modular.
257     exclude header "Support/PluginLoader.h"
258
259     // These are intended for textual inclusion.
260     textual header "Support/ARMTargetParser.def"
261     textual header "Support/AArch64TargetParser.def"
262     textual header "Support/Dwarf.def"
263     textual header "Support/MachO.def"
264     textual header "Support/ELFRelocs/AArch64.def"
265     textual header "Support/ELFRelocs/AMDGPU.def"
266     textual header "Support/ELFRelocs/ARM.def"
267     textual header "Support/ELFRelocs/AVR.def"
268     textual header "Support/ELFRelocs/BPF.def"
269     textual header "Support/ELFRelocs/Hexagon.def"
270     textual header "Support/ELFRelocs/i386.def"
271     textual header "Support/ELFRelocs/Lanai.def"
272     textual header "Support/ELFRelocs/Mips.def"
273     textual header "Support/ELFRelocs/PowerPC64.def"
274     textual header "Support/ELFRelocs/PowerPC.def"
275     textual header "Support/ELFRelocs/RISCV.def"
276     textual header "Support/ELFRelocs/Sparc.def"
277     textual header "Support/ELFRelocs/SystemZ.def"
278     textual header "Support/ELFRelocs/x86_64.def"
279     textual header "Support/ELFRelocs/WebAssembly.def"
280     textual header "Support/WasmRelocs/WebAssembly.def"
281   }
282
283   // This part of the module is usable from both C and C++ code.
284   module ConvertUTF {
285     header "Support/ConvertUTF.h"
286     export *
287   }
288
289   module LLVM_CodeGen_MachineValueType {
290     requires cplusplus
291     header "CodeGen/MachineValueType.h"
292     export *
293   }
294 }
295
296 // This is used for a $src == $build compilation. Otherwise we use
297 // LLVM_Support_DataTypes_Build, defined in a module map that is
298 // copied into the build area.
299 module LLVM_Support_DataTypes_Src {
300   header "llvm/Support/DataTypes.h"
301   export *
302 }