]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/module.modulemap
Upgrade Unbound to 1.6.4. More to follow.
[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/CommandFlags.def"
29     textual header "CodeGen/DIEValue.def"
30     textual header "CodeGen/RuntimeLibcalls.def"
31     textual header "CodeGen/TargetOpcodes.def"
32   }
33
34   module Target {
35     umbrella "Target"
36     module * { export * }
37   }
38 }
39
40 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
41
42 module LLVM_BinaryFormat {
43     requires cplusplus
44     umbrella "BinaryFormat" module * { export * }
45     textual header "BinaryFormat/Dwarf.def"
46     textual header "BinaryFormat/MachO.def"
47     textual header "BinaryFormat/ELFRelocs/AArch64.def"
48     textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
49     textual header "BinaryFormat/ELFRelocs/ARM.def"
50     textual header "BinaryFormat/ELFRelocs/ARC.def"
51     textual header "BinaryFormat/ELFRelocs/AVR.def"
52     textual header "BinaryFormat/ELFRelocs/BPF.def"
53     textual header "BinaryFormat/ELFRelocs/Hexagon.def"
54     textual header "BinaryFormat/ELFRelocs/i386.def"
55     textual header "BinaryFormat/ELFRelocs/Lanai.def"
56     textual header "BinaryFormat/ELFRelocs/Mips.def"
57     textual header "BinaryFormat/ELFRelocs/PowerPC64.def"
58     textual header "BinaryFormat/ELFRelocs/PowerPC.def"
59     textual header "BinaryFormat/ELFRelocs/RISCV.def"
60     textual header "BinaryFormat/ELFRelocs/Sparc.def"
61     textual header "BinaryFormat/ELFRelocs/SystemZ.def"
62     textual header "BinaryFormat/ELFRelocs/x86_64.def"
63     textual header "BinaryFormat/ELFRelocs/WebAssembly.def"
64     textual header "BinaryFormat/WasmRelocs.def"
65 }
66
67 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
68
69 module LLVM_DebugInfo {
70   requires cplusplus
71   module DIContext { header "DebugInfo/DIContext.h" export * }
72 }
73
74 module LLVM_DebugInfo_DWARF {
75   requires cplusplus
76
77   umbrella "DebugInfo/DWARF"
78   module * { export * }
79 }
80
81 module LLVM_DebugInfo_PDB {
82   requires cplusplus
83
84   umbrella "DebugInfo/PDB"
85   module * { export * }
86
87   // Separate out this subdirectory; it's an optional component that depends on
88   // a separate library which might not be available.
89   //
90   // FIXME: There should be a better way to specify this.
91   exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
92   exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
93   exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
94   exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
95   exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
96   exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h"
97   exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
98   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
99   exclude header "DebugInfo/PDB/DIA/DIASession.h"
100   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
101   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
102   exclude header "DebugInfo/PDB/DIA/DIATable.h"
103 }
104
105 module LLVM_DebugInfo_PDB_DIA {
106   requires cplusplus
107
108   umbrella "DebugInfo/PDB/DIA"
109   module * { export * }
110 }
111
112 module LLVM_DebugInfo_MSF {
113   requires cplusplus
114
115   umbrella "DebugInfo/MSF"
116   module * { export * }
117 }
118
119 module LLVM_DebugInfo_CodeView {
120   requires cplusplus
121
122   umbrella "DebugInfo/CodeView"
123   module * { export * }
124
125   // These are intended for (repeated) textual inclusion.
126   textual header "DebugInfo/CodeView/CodeViewRegisters.def"
127   textual header "DebugInfo/CodeView/CodeViewTypes.def"
128   textual header "DebugInfo/CodeView/CodeViewSymbols.def"
129 }
130
131 module LLVM_ExecutionEngine {
132   requires cplusplus
133
134   umbrella "ExecutionEngine"
135   module * { export * }
136
137   // Exclude this; it's an optional component of the ExecutionEngine.
138   exclude header "ExecutionEngine/OProfileWrapper.h"
139
140   // Exclude these; they're intended to be included into only a single
141   // translation unit (or none) and aren't part of this module.
142   exclude header "ExecutionEngine/MCJIT.h"
143   exclude header "ExecutionEngine/Interpreter.h"
144   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
145
146   // FIXME: These exclude directives were added as a workaround for
147   //        <rdar://problem/29247092> and should be removed once it is fixed.
148   exclude header "ExecutionEngine/Orc/RawByteChannel.h"
149   exclude header "ExecutionEngine/Orc/RPCUtils.h"
150   exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
151   exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
152   exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
153   exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
154 }
155
156 module LLVM_Pass {
157   module Pass {
158     // PassSupport.h and PassAnalysisSupport.h are made available only through
159     // Pass.h.
160     header "Pass.h"
161     header "PassSupport.h"
162     header "PassAnalysisSupport.h"
163     export *
164   }
165
166   module PassRegistry { header "PassRegistry.h" export * }
167   module InitializePasses { header "InitializePasses.h" export * }
168 }
169
170 module LLVM_intrinsic_gen {
171   requires cplusplus
172
173   // Delay building the modules containing dependencies to Attributes.h and
174   // Intrinsics.h because they need to be generated by tablegen first.
175
176   // Attributes.h
177   module IR_Argument { header "IR/Argument.h" export * }
178   module IR_Attributes { header "IR/Attributes.h" export * }
179   module IR_CallSite { header "IR/CallSite.h" export * }
180   module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
181   module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
182   module IR_NoFolder { header "IR/NoFolder.h" export * }
183   module IR_Module { header "IR/Module.h" export * }
184   module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
185   module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
186   module IR_Function { header "IR/Function.h" export * }
187   module IR_InstrTypes { header "IR/InstrTypes.h" export * }
188   module IR_Instructions { header "IR/Instructions.h" export * }
189
190
191   // Intrinsics.h
192   module IR_CFG { header "IR/CFG.h" export * }
193   module IR_ConstantRange { header "IR/ConstantRange.h" export * }
194   module IR_Dominators { header "IR/Dominators.h" export * }
195   module IR_IRBuilder { header "IR/IRBuilder.h" export * }
196   module IR_PassManager { header "IR/PassManager.h" export * }
197   module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
198   module IR_Verifier { header "IR/Verifier.h" export * }
199   module IR_InstIterator { header "IR/InstIterator.h" export * }
200   module IR_InstVisitor { header "IR/InstVisitor.h" export * }
201   module IR_Intrinsics { header "IR/Intrinsics.h" export * }
202   module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
203   module IR_PatternMatch { header "IR/PatternMatch.h" export * }
204   module IR_Statepoint { header "IR/Statepoint.h" export * }
205
206   export *
207 }
208
209 module LLVM_IR {
210   requires cplusplus
211
212   umbrella "IR"
213   module * { export * }
214
215   // These are intended for (repeated) textual inclusion.
216   textual header "IR/DebugInfoFlags.def"
217   textual header "IR/Instruction.def"
218   textual header "IR/Metadata.def"
219   textual header "IR/Value.def"
220 }
221
222 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
223 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
224 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
225
226 module LLVM_MC {
227   requires cplusplus
228
229   umbrella "MC"
230   module * { export * }
231
232   textual header "MC/MCTargetOptionsCommandFlags.def"
233 }
234
235 // Used by llvm-tblgen
236 module LLVM_MC_TableGen {
237   requires cplusplus
238   module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
239   module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
240   module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
241   module MC_Schedule { header "MC/MCSchedule.h" export * }
242   module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
243 }
244
245 module LLVM_Object {
246   requires cplusplus
247   umbrella "Object"
248   module * { export * }
249 }
250
251 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
252
253 module LLVM_ProfileData {
254   requires cplusplus
255
256   umbrella "ProfileData"
257   module * { export * }
258
259   textual header "ProfileData/InstrProfData.inc"
260 }
261
262 // FIXME: Mislayered?
263 module LLVM_Support_TargetRegistry {
264   requires cplusplus
265   header "Support/TargetRegistry.h"
266   export *
267 }
268
269 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
270
271 module LLVM_Transforms {
272   requires cplusplus
273   umbrella "Transforms"
274   module * { export * }
275 }
276
277 // A module covering ADT/ and Support/. These are intertwined and
278 // codependent, and notionally form a single module.
279 module LLVM_Utils {
280   module ADT {
281     requires cplusplus
282
283     umbrella "ADT"
284     module * { export * }
285   }
286
287   module Support {
288     requires cplusplus
289
290     umbrella "Support"
291     module * { export * }
292
293     // Exclude these; they are fundamentally non-modular.
294     exclude header "Support/PluginLoader.h"
295     exclude header "Support/Solaris/sys/regset.h"
296
297     // These are intended for textual inclusion.
298     textual header "Support/ARMTargetParser.def"
299     textual header "Support/AArch64TargetParser.def"
300     textual header "Support/X86TargetParser.def"
301   }
302
303   // This part of the module is usable from both C and C++ code.
304   module ConvertUTF {
305     header "Support/ConvertUTF.h"
306     export *
307   }
308
309   module LLVM_CodeGen_MachineValueType {
310     requires cplusplus
311     header "CodeGen/MachineValueType.h"
312     export *
313   }
314 }
315
316 // This is used for a $src == $build compilation. Otherwise we use
317 // LLVM_Support_DataTypes_Build, defined in a module map that is
318 // copied into the build area.
319 module LLVM_Support_DataTypes_Src {
320   header "llvm/Support/DataTypes.h"
321   export *
322 }
323
324 module LLVM_WindowsManifest {
325   requires cplusplus
326   umbrella "WindowsManifest"
327   module * { export * }
328 }