]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/include/llvm/module.modulemap
Merge ^/vendor/compiler-rt/dist up to its last change, and resolve conflicts.
[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/FixedMetadataKinds.def"
257   textual header "IR/Value.def"
258   textual header "IR/RuntimeLibcalls.def"
259 }
260
261 module LLVM_IRReader {
262   requires cplusplus
263   umbrella "IRReader"
264   module * { export * }
265 }
266
267 module LLVM_LineEditor {
268   requires cplusplus
269   umbrella "LineEditor"
270   module * { export * }
271 }
272
273 module LLVM_LTO {
274   requires cplusplus
275   umbrella "LTO"
276   module * { export * }
277 }
278
279 module LLVM_MC {
280   requires cplusplus
281
282   umbrella "MC"
283   module * { export * }
284
285   textual header "MC/MCTargetOptionsCommandFlags.inc"
286 }
287
288 // Used by llvm-tblgen
289 module LLVM_MC_TableGen {
290   requires cplusplus
291   module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
292   module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
293   module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
294   module MC_Schedule { header "MC/MCSchedule.h" export * }
295   module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
296 }
297
298 module LLVM_Object {
299   requires cplusplus
300   umbrella "Object"
301   module * { export * }
302 }
303
304 module LLVM_Option {
305   requires cplusplus
306   umbrella "Option"
307   module * { export * }
308 }
309
310 module LLVM_ProfileData {
311   requires cplusplus
312
313   umbrella "ProfileData"
314   module * { export * }
315
316   textual header "ProfileData/InstrProfData.inc"
317 }
318
319 // FIXME: Mislayered?
320 module LLVM_Support_TargetRegistry {
321   requires cplusplus
322   header "Support/TargetRegistry.h"
323   export *
324 }
325
326 module LLVM_TableGen {
327   requires cplusplus
328   umbrella "TableGen"
329   module * { export * }
330 }
331
332 module LLVM_Transforms {
333   requires cplusplus
334   umbrella "Transforms"
335
336   module * { export * }
337 }
338
339 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
340
341 // A module covering ADT/ and Support/. These are intertwined and
342 // codependent, and notionally form a single module.
343 module LLVM_Utils {
344   module ADT {
345     requires cplusplus
346
347     umbrella "ADT"
348     module * { export * }
349   }
350
351   module Support {
352     requires cplusplus
353
354     umbrella "Support"
355     module * { export * }
356
357     // Exclude these; they are fundamentally non-modular.
358     exclude header "Support/PluginLoader.h"
359     exclude header "Support/Solaris/sys/regset.h"
360
361     // These are intended for textual inclusion.
362     textual header "Support/ARMTargetParser.def"
363     textual header "Support/AArch64TargetParser.def"
364     textual header "Support/TargetOpcodes.def"
365     textual header "Support/X86TargetParser.def"
366   }
367
368   // This part of the module is usable from both C and C++ code.
369   module ConvertUTF {
370     header "Support/ConvertUTF.h"
371     export *
372   }
373 }
374
375 // This is used for a $src == $build compilation. Otherwise we use
376 // LLVM_Support_DataTypes_Build, defined in a module map that is
377 // copied into the build area.
378 module LLVM_Support_DataTypes_Src {
379   header "llvm/Support/DataTypes.h"
380   export *
381 }
382
383 module LLVM_WindowsManifest {
384   requires cplusplus
385   umbrella "WindowsManifest"
386   module * { export * }
387 }