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