]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/include/llvm/module.modulemap
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / 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   textual header "Analysis/VecFuncs.def"
9 }
10
11 module LLVM_AsmParser {
12   requires cplusplus
13   umbrella "AsmParser"
14   module * { export * }
15 }
16
17 // A module covering CodeGen/ and Target/. These are intertwined
18 // and codependent, and thus notionally form a single module.
19 module LLVM_Backend {
20   requires cplusplus
21
22   module CodeGen {
23     umbrella "CodeGen"
24     module * { export * }
25
26     // Exclude these; they're intended to be included into only a single
27     // translation unit (or none) and aren't part of this module.
28     exclude header "CodeGen/LinkAllAsmWriterComponents.h"
29     exclude header "CodeGen/LinkAllCodegenComponents.h"
30
31     // These are intended for (repeated) textual inclusion.
32     textual header "CodeGen/CommandFlags.inc"
33     textual header "CodeGen/DIEValue.def"
34   }
35 }
36
37 // FIXME: Make this as a submodule of LLVM_Backend again.
38 //        Doing so causes a linker error in clang-format.
39 module LLVM_Backend_Target {
40   umbrella "Target"
41   module * { export * }
42 }
43
44 module LLVM_Bitcode {
45  requires cplusplus
46  umbrella "Bitcode"
47  module * { export * }
48 }
49
50
51 module LLVM_BinaryFormat {
52     requires cplusplus
53     umbrella "BinaryFormat" module * { export * }
54     textual header "BinaryFormat/Dwarf.def"
55     textual header "BinaryFormat/DynamicTags.def"
56     textual header "BinaryFormat/MachO.def"
57     textual header "BinaryFormat/MinidumpConstants.def"
58     textual header "BinaryFormat/ELFRelocs/AArch64.def"
59     textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
60     textual header "BinaryFormat/ELFRelocs/ARM.def"
61     textual header "BinaryFormat/ELFRelocs/ARC.def"
62     textual header "BinaryFormat/ELFRelocs/AVR.def"
63     textual header "BinaryFormat/ELFRelocs/BPF.def"
64     textual header "BinaryFormat/ELFRelocs/Hexagon.def"
65     textual header "BinaryFormat/ELFRelocs/i386.def"
66     textual header "BinaryFormat/ELFRelocs/Lanai.def"
67     textual header "BinaryFormat/ELFRelocs/Mips.def"
68     textual header "BinaryFormat/ELFRelocs/MSP430.def"
69     textual header "BinaryFormat/ELFRelocs/PowerPC64.def"
70     textual header "BinaryFormat/ELFRelocs/PowerPC.def"
71     textual header "BinaryFormat/ELFRelocs/RISCV.def"
72     textual header "BinaryFormat/ELFRelocs/Sparc.def"
73     textual header "BinaryFormat/ELFRelocs/SystemZ.def"
74     textual header "BinaryFormat/ELFRelocs/x86_64.def"
75     textual header "BinaryFormat/WasmRelocs.def"
76     textual header "BinaryFormat/MsgPack.def"
77 }
78
79 module LLVM_Config {
80   requires cplusplus
81   umbrella "Config"
82   extern module LLVM_Extern_Config_Def "module.extern.modulemap"
83   module * { export * }
84 }
85
86 module LLVM_DebugInfo {
87   requires cplusplus
88   module DIContext { header "DebugInfo/DIContext.h" export * }
89 }
90
91 module LLVM_DebugInfo_DWARF {
92   requires cplusplus
93
94   umbrella "DebugInfo/DWARF"
95   module * { export * }
96 }
97
98 module LLVM_DebugInfo_PDB {
99   requires cplusplus
100
101   umbrella "DebugInfo/PDB"
102   module * { export * }
103
104   // Separate out this subdirectory; it's an optional component that depends on
105   // a separate library which might not be available.
106   //
107   // FIXME: There should be a better way to specify this.
108   exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
109   exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
110   exclude header "DebugInfo/PDB/DIA/DIAEnumFrameData.h"
111   exclude header "DebugInfo/PDB/DIA/DIAEnumInjectedSources.h"
112   exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
113   exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h"
114   exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
115   exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
116   exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h"
117   exclude header "DebugInfo/PDB/DIA/DIAFrameData.h"
118   exclude header "DebugInfo/PDB/DIA/DIAInjectedSource.h"
119   exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
120   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
121   exclude header "DebugInfo/PDB/DIA/DIASectionContrib.h"
122   exclude header "DebugInfo/PDB/DIA/DIASession.h"
123   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
124   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
125   exclude header "DebugInfo/PDB/DIA/DIATable.h"
126   exclude header "DebugInfo/PDB/DIA/DIAUtils.h"
127 }
128
129 module LLVM_DebugInfo_PDB_DIA {
130   requires cplusplus
131
132   umbrella "DebugInfo/PDB/DIA"
133   module * { export * }
134 }
135
136 module LLVM_DebugInfo_MSF {
137   requires cplusplus
138
139   umbrella "DebugInfo/MSF"
140   module * { export * }
141 }
142
143 module LLVM_DebugInfo_CodeView {
144   requires cplusplus
145
146   umbrella "DebugInfo/CodeView"
147   module * { export * }
148
149   // These are intended for (repeated) textual inclusion.
150   textual header "DebugInfo/CodeView/CodeViewRegisters.def"
151   textual header "DebugInfo/CodeView/CodeViewTypes.def"
152   textual header "DebugInfo/CodeView/CodeViewSymbols.def"
153 }
154
155 module LLVM_DWARFLinker {
156   requires cplusplus
157
158   umbrella "DWARFLinker"
159   module * { export * }
160 }
161
162 module LLVM_ExecutionEngine {
163   requires cplusplus
164
165   umbrella "ExecutionEngine"
166   module * { export * }
167
168   // Exclude this; it's an optional component of the ExecutionEngine.
169   exclude header "ExecutionEngine/OProfileWrapper.h"
170
171   // Exclude these; they're intended to be included into only a single
172   // translation unit (or none) and aren't part of this module.
173   exclude header "ExecutionEngine/MCJIT.h"
174   exclude header "ExecutionEngine/Interpreter.h"
175   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
176
177   // FIXME: These exclude directives were added as a workaround for
178   //        <rdar://problem/29247092> and should be removed once it is fixed.
179   exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
180   exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
181   exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
182   exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
183
184   // Exclude headers from LLVM_OrcSupport.
185   exclude header "ExecutionEngine/Orc/OrcError.h"
186   exclude header "ExecutionEngine/Orc/RPC/RPCUtils.h"
187   exclude header "ExecutionEngine/Orc/RPC/RPCSerialization.h"
188   exclude header "ExecutionEngine/Orc/RPC/RawByteChannel.h"
189
190 }
191
192 // Orc utilities that don't depend only on Support (not ExecutionEngine or
193 // IR). This is a workaround for ExecutionEngine's broken layering, and will
194 // be removed in the future.
195 module LLVM_OrcSupport {
196   requires cplusplus
197
198   header "ExecutionEngine/Orc/OrcError.h"
199   header "ExecutionEngine/Orc/RPC/RPCUtils.h"
200   header "ExecutionEngine/Orc/RPC/RPCSerialization.h"
201   header "ExecutionEngine/Orc/RPC/RawByteChannel.h"
202
203   export *
204 }
205
206 module LLVM_Pass {
207   module Pass {
208     // PassSupport.h and PassAnalysisSupport.h are made available only through
209     // Pass.h.
210     header "Pass.h"
211     header "PassSupport.h"
212     header "PassAnalysisSupport.h"
213     export *
214   }
215
216   module PassRegistry { header "PassRegistry.h" export * }
217   module InitializePasses { header "InitializePasses.h" export * }
218 }
219
220 module LLVM_intrinsic_gen {
221   requires cplusplus
222
223   // Delay building the modules containing dependencies to Attributes.h and
224   // Intrinsics.h because they need to be generated by tablegen first.
225
226   // Attributes.h
227   module IR_Argument { header "IR/Argument.h" export * }
228   module IR_Attributes {
229     header "IR/Attributes.h"
230     extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
231     export *
232   }
233   module IR_CallSite { header "IR/CallSite.h" export * }
234   module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
235   module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
236   module IR_NoFolder { header "IR/NoFolder.h" export * }
237   module IR_Module { header "IR/Module.h" export * }
238   module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
239   module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
240   module IR_Function { header "IR/Function.h" export * }
241   module IR_InstrTypes { header "IR/InstrTypes.h" export * }
242   module IR_Instructions { header "IR/Instructions.h" export * }
243
244
245   // Intrinsics.h
246   module IR_CFG { header "IR/CFG.h" export * }
247   module IR_CFGDiff { header "IR/CFGDiff.h" export * }
248   module IR_ConstantRange { header "IR/ConstantRange.h" export * }
249   module IR_Dominators { header "IR/Dominators.h" export * }
250   module Analysis_PostDominators { header "Analysis/PostDominators.h" export * }
251   module Analysis_DomTreeUpdater { header "Analysis/DomTreeUpdater.h" export * }
252   module IR_IRBuilder { header "IR/IRBuilder.h" export * }
253   module IR_PassManager { header "IR/PassManager.h" export * }
254   module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
255   module IR_Verifier { header "IR/Verifier.h" export * }
256   module IR_InstIterator { header "IR/InstIterator.h" export * }
257   module IR_InstVisitor { header "IR/InstVisitor.h" export * }
258   module IR_Intrinsics {
259     header "IR/Intrinsics.h"
260     extern module LLVM_Extern_IR_Intricsics_Gen "module.extern.modulemap"
261     extern module LLVM_Extern_IR_Intrinsics_Enum "module.extern.modulemap"
262     export *
263   }
264   module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
265   module IR_PatternMatch { header "IR/PatternMatch.h" export * }
266   module IR_SafepointIRVerifier { header "IR/SafepointIRVerifier.h" export * }
267   module IR_Statepoint { header "IR/Statepoint.h" export * }
268
269   export *
270 }
271
272 module LLVM_IR {
273   requires cplusplus
274
275   umbrella "IR"
276   module * { export * }
277
278   // These are intended for (repeated) textual inclusion.
279   textual header "IR/ConstrainedOps.def"
280   textual header "IR/DebugInfoFlags.def"
281   textual header "IR/Instruction.def"
282   textual header "IR/Metadata.def"
283   textual header "IR/FixedMetadataKinds.def"
284   textual header "IR/Value.def"
285   textual header "IR/RuntimeLibcalls.def"
286 }
287
288 module LLVM_IRReader {
289   requires cplusplus
290   umbrella "IRReader"
291   module * { export * }
292 }
293
294 module LLVM_LineEditor {
295   requires cplusplus
296   umbrella "LineEditor"
297   module * { export * }
298 }
299
300 module LLVM_LTO {
301   requires cplusplus
302   umbrella "LTO"
303   module * { export * }
304 }
305
306 module LLVM_MC {
307   requires cplusplus
308
309   umbrella "MC"
310   module * { export * }
311
312   textual header "MC/MCTargetOptionsCommandFlags.inc"
313 }
314
315 // Used by llvm-tblgen
316 module LLVM_MC_TableGen {
317   requires cplusplus
318   module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
319   module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
320   module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
321   module MC_Schedule { header "MC/MCSchedule.h" export * }
322   module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
323 }
324
325 module LLVM_Object {
326   requires cplusplus
327   umbrella "Object"
328   module * { export * }
329 }
330
331 module LLVM_Option {
332   requires cplusplus
333   umbrella "Option"
334   module * { export * }
335 }
336
337 module LLVM_ProfileData {
338   requires cplusplus
339
340   umbrella "ProfileData"
341   module * { export * }
342
343   textual header "ProfileData/InstrProfData.inc"
344 }
345
346 // FIXME: Mislayered?
347 module LLVM_Support_TargetRegistry {
348   requires cplusplus
349   header "Support/TargetRegistry.h"
350   export *
351 }
352
353 module LLVM_TableGen {
354   requires cplusplus
355   umbrella "TableGen"
356   module * { export * }
357 }
358
359 module LLVM_Transforms {
360   requires cplusplus
361   umbrella "Transforms"
362
363   module * { export * }
364 }
365
366 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
367
368 // A module covering ADT/ and Support/. These are intertwined and
369 // codependent, and notionally form a single module.
370 module LLVM_Utils {
371   module ADT {
372     requires cplusplus
373
374     umbrella "ADT"
375     module * { export * }
376   }
377
378   module Support {
379     requires cplusplus
380
381     umbrella "Support"
382     module * { export * }
383     
384     // Exclude this; it should only be used on Windows.
385     exclude header "Support/Windows/WindowsSupport.h"
386
387     // Exclude these; they are fundamentally non-modular.
388     exclude header "Support/PluginLoader.h"
389     exclude header "Support/Solaris/sys/regset.h"
390
391     // These are intended for textual inclusion.
392     textual header "Support/ARMTargetParser.def"
393     textual header "Support/AArch64TargetParser.def"
394     textual header "Support/TargetOpcodes.def"
395     textual header "Support/X86TargetParser.def"
396   }
397
398   // This part of the module is usable from both C and C++ code.
399   module ConvertUTF {
400     header "Support/ConvertUTF.h"
401     export *
402   }
403 }
404
405 // This is used for a $src == $build compilation. Otherwise we use
406 // LLVM_Support_DataTypes_Build, defined in a module map that is
407 // copied into the build area.
408 module LLVM_Support_DataTypes_Src {
409   header "llvm/Support/DataTypes.h"
410   export *
411 }
412
413 module LLVM_WindowsManifest {
414   requires cplusplus
415   umbrella "WindowsManifest"
416   module * { export * }
417 }