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