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