]> 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_ExecutionEngine {
156   requires cplusplus
157
158   umbrella "ExecutionEngine"
159   module * { export * }
160
161   // Exclude this; it's an optional component of the ExecutionEngine.
162   exclude header "ExecutionEngine/OProfileWrapper.h"
163
164   // Exclude these; they're intended to be included into only a single
165   // translation unit (or none) and aren't part of this module.
166   exclude header "ExecutionEngine/MCJIT.h"
167   exclude header "ExecutionEngine/Interpreter.h"
168   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
169
170   // FIXME: These exclude directives were added as a workaround for
171   //        <rdar://problem/29247092> and should be removed once it is fixed.
172   exclude header "ExecutionEngine/Orc/RawByteChannel.h"
173   exclude header "ExecutionEngine/Orc/RPCUtils.h"
174   exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
175   exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
176   exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
177   exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
178 }
179
180 module LLVM_Pass {
181   module Pass {
182     // PassSupport.h and PassAnalysisSupport.h are made available only through
183     // Pass.h.
184     header "Pass.h"
185     header "PassSupport.h"
186     header "PassAnalysisSupport.h"
187     export *
188   }
189
190   module PassRegistry { header "PassRegistry.h" export * }
191   module InitializePasses { header "InitializePasses.h" export * }
192 }
193
194 module LLVM_intrinsic_gen {
195   requires cplusplus
196
197   // Delay building the modules containing dependencies to Attributes.h and
198   // Intrinsics.h because they need to be generated by tablegen first.
199
200   // Attributes.h
201   module IR_Argument { header "IR/Argument.h" export * }
202   module IR_Attributes {
203     header "IR/Attributes.h"
204     extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
205     export *
206   }
207   module IR_CallSite { header "IR/CallSite.h" export * }
208   module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
209   module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
210   module IR_NoFolder { header "IR/NoFolder.h" export * }
211   module IR_Module { header "IR/Module.h" export * }
212   module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
213   module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
214   module IR_Function { header "IR/Function.h" export * }
215   module IR_InstrTypes { header "IR/InstrTypes.h" export * }
216   module IR_Instructions { header "IR/Instructions.h" export * }
217
218
219   // Intrinsics.h
220   module IR_CFG { header "IR/CFG.h" export * }
221   module IR_CFGDiff { header "IR/CFGDiff.h" export * }
222   module IR_ConstantRange { header "IR/ConstantRange.h" export * }
223   module IR_Dominators { header "IR/Dominators.h" export * }
224   module Analysis_PostDominators { header "Analysis/PostDominators.h" export * }
225   module Analysis_DomTreeUpdater { header "Analysis/DomTreeUpdater.h" export * }
226   module IR_IRBuilder { header "IR/IRBuilder.h" export * }
227   module IR_PassManager { header "IR/PassManager.h" export * }
228   module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
229   module IR_Verifier { header "IR/Verifier.h" export * }
230   module IR_InstIterator { header "IR/InstIterator.h" export * }
231   module IR_InstVisitor { header "IR/InstVisitor.h" export * }
232   module IR_Intrinsics {
233     header "IR/Intrinsics.h"
234     extern module LLVM_Extern_IR_Intricsics_Gen "module.extern.modulemap"
235     extern module LLVM_Extern_IR_Intrinsics_Enum "module.extern.modulemap"
236     export *
237   }
238   module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
239   module IR_PatternMatch { header "IR/PatternMatch.h" export * }
240   module IR_SafepointIRVerifier { header "IR/SafepointIRVerifier.h" export * }
241   module IR_Statepoint { header "IR/Statepoint.h" export * }
242
243   export *
244 }
245
246 module LLVM_IR {
247   requires cplusplus
248
249   umbrella "IR"
250   module * { export * }
251
252   // These are intended for (repeated) textual inclusion.
253   textual header "IR/DebugInfoFlags.def"
254   textual header "IR/Instruction.def"
255   textual header "IR/Metadata.def"
256   textual header "IR/Value.def"
257   textual header "IR/RuntimeLibcalls.def"
258 }
259
260 module LLVM_IRReader {
261   requires cplusplus
262   umbrella "IRReader"
263   module * { export * }
264 }
265
266 module LLVM_LineEditor {
267   requires cplusplus
268   umbrella "LineEditor"
269   module * { export * }
270 }
271
272 module LLVM_LTO {
273   requires cplusplus
274   umbrella "LTO"
275   module * { export * }
276 }
277
278 module LLVM_MC {
279   requires cplusplus
280
281   umbrella "MC"
282   module * { export * }
283
284   textual header "MC/MCTargetOptionsCommandFlags.inc"
285 }
286
287 // Used by llvm-tblgen
288 module LLVM_MC_TableGen {
289   requires cplusplus
290   module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
291   module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
292   module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
293   module MC_Schedule { header "MC/MCSchedule.h" export * }
294   module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
295 }
296
297 module LLVM_Object {
298   requires cplusplus
299   umbrella "Object"
300   module * { export * }
301 }
302
303 module LLVM_Option {
304   requires cplusplus
305   umbrella "Option"
306   module * { export * }
307 }
308
309 module LLVM_ProfileData {
310   requires cplusplus
311
312   umbrella "ProfileData"
313   module * { export * }
314
315   textual header "ProfileData/InstrProfData.inc"
316 }
317
318 // FIXME: Mislayered?
319 module LLVM_Support_TargetRegistry {
320   requires cplusplus
321   header "Support/TargetRegistry.h"
322   export *
323 }
324
325 module LLVM_TableGen {
326   requires cplusplus
327   umbrella "TableGen"
328   module * { export * }
329 }
330
331 module LLVM_Transforms {
332   requires cplusplus
333   umbrella "Transforms"
334   module * { export * }
335 }
336
337 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
338
339 // A module covering ADT/ and Support/. These are intertwined and
340 // codependent, and notionally form a single module.
341 module LLVM_Utils {
342   module ADT {
343     requires cplusplus
344
345     umbrella "ADT"
346     module * { export * }
347   }
348
349   module Support {
350     requires cplusplus
351
352     umbrella "Support"
353     module * { export * }
354
355     // Exclude these; they are fundamentally non-modular.
356     exclude header "Support/PluginLoader.h"
357     exclude header "Support/Solaris/sys/regset.h"
358
359     // These are intended for textual inclusion.
360     textual header "Support/ARMTargetParser.def"
361     textual header "Support/AArch64TargetParser.def"
362     textual header "Support/TargetOpcodes.def"
363     textual header "Support/X86TargetParser.def"
364   }
365
366   // This part of the module is usable from both C and C++ code.
367   module ConvertUTF {
368     header "Support/ConvertUTF.h"
369     export *
370   }
371 }
372
373 // This is used for a $src == $build compilation. Otherwise we use
374 // LLVM_Support_DataTypes_Build, defined in a module map that is
375 // copied into the build area.
376 module LLVM_Support_DataTypes_Src {
377   header "llvm/Support/DataTypes.h"
378   export *
379 }
380
381 module LLVM_WindowsManifest {
382   requires cplusplus
383   umbrella "WindowsManifest"
384   module * { export * }
385 }