]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/module.modulemap
Upgrade our copies of clang, llvm, lld and lldb to r309439 from the
[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     exclude header "CodeGen/GlobalISel/InstructionSelectorImpl.h"
27
28     // These are intended for (repeated) textual inclusion.
29     textual header "CodeGen/DIEValue.def"
30   }
31
32   module Target {
33     umbrella "Target"
34     module * { export * }
35
36     // This is intended for (repeated) textual inclusion.
37     textual header "Target/TargetOpcodes.def"
38   }
39 }
40
41 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
42
43 module LLVM_BinaryFormat {
44     requires cplusplus
45     umbrella "BinaryFormat" module * { export * }
46     textual header "BinaryFormat/Dwarf.def"
47     textual header "BinaryFormat/MachO.def"
48     textual header "BinaryFormat/ELFRelocs/AArch64.def"
49     textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
50     textual header "BinaryFormat/ELFRelocs/ARM.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/WebAssembly.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/DIALineNumber.h"
97   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
98   exclude header "DebugInfo/PDB/DIA/DIASession.h"
99   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
100   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
101 }
102
103 module LLVM_DebugInfo_PDB_DIA {
104   requires cplusplus
105
106   umbrella "DebugInfo/PDB/DIA"
107   module * { export * }
108 }
109
110 module LLVM_DebugInfo_MSF {
111   requires cplusplus
112
113   umbrella "DebugInfo/MSF"
114   module * { export * }
115 }
116
117 module LLVM_DebugInfo_CodeView {
118   requires cplusplus
119
120   umbrella "DebugInfo/CodeView"
121   module * { export * }
122
123   // These are intended for (repeated) textual inclusion.
124   textual header "DebugInfo/CodeView/CodeViewTypes.def"
125   textual header "DebugInfo/CodeView/CodeViewSymbols.def"
126 }
127
128 module LLVM_ExecutionEngine {
129   requires cplusplus
130
131   umbrella "ExecutionEngine"
132   module * { export * }
133
134   // Exclude this; it's an optional component of the ExecutionEngine.
135   exclude header "ExecutionEngine/OProfileWrapper.h"
136
137   // Exclude these; they're intended to be included into only a single
138   // translation unit (or none) and aren't part of this module.
139   exclude header "ExecutionEngine/MCJIT.h"
140   exclude header "ExecutionEngine/Interpreter.h"
141   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
142
143   // FIXME: These exclude directives were added as a workaround for
144   //        <rdar://problem/29247092> and should be removed once it is fixed.
145   exclude header "ExecutionEngine/Orc/RawByteChannel.h"
146   exclude header "ExecutionEngine/Orc/RPCUtils.h"
147   exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
148   exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
149   exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
150 }
151
152 module LLVM_Pass {
153   module Pass {
154     // PassSupport.h and PassAnalysisSupport.h are made available only through
155     // Pass.h.
156     header "Pass.h"
157     header "PassSupport.h"
158     header "PassAnalysisSupport.h"
159     export *
160   }
161
162   module PassRegistry { header "PassRegistry.h" export * }
163   module InitializePasses { header "InitializePasses.h" export * }
164 }
165
166 module LLVM_intrinsic_gen {
167   requires cplusplus
168
169   // Delay building the modules containing dependencies to Attributes.h and
170   // Intrinsics.h because they need to be generated by tablegen first.
171
172   // Attributes.h
173   module IR_Argument { header "IR/Argument.h" export * }
174   module IR_Attributes { header "IR/Attributes.h" export * }
175   module IR_CallSite { header "IR/CallSite.h" export * }
176   module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
177   module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
178   module IR_NoFolder { header "IR/NoFolder.h" export * }
179   module IR_Module { header "IR/Module.h" export * }
180   module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
181   module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
182   module IR_Function { header "IR/Function.h" export * }
183   module IR_InstrTypes { header "IR/InstrTypes.h" export * }
184   module IR_Instructions { header "IR/Instructions.h" export * }
185
186
187   // Intrinsics.h
188   module IR_CFG { header "IR/CFG.h" export * }
189   module IR_ConstantRange { header "IR/ConstantRange.h" export * }
190   module IR_Dominators { header "IR/Dominators.h" export * }
191   module IR_IRBuilder { header "IR/IRBuilder.h" export * }
192   module IR_PassManager { header "IR/PassManager.h" export * }
193   module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
194   module IR_Verifier { header "IR/Verifier.h" export * }
195   module IR_InstIterator { header "IR/InstIterator.h" export * }
196   module IR_InstVisitor { header "IR/InstVisitor.h" export * }
197   module IR_Intrinsics { header "IR/Intrinsics.h" export * }
198   module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
199   module IR_PatternMatch { header "IR/PatternMatch.h" export * }
200   module IR_Statepoint { header "IR/Statepoint.h" export * }
201
202   export *
203 }
204
205 module LLVM_IR {
206   requires cplusplus
207
208   umbrella "IR"
209   module * { export * }
210
211   // These are intended for (repeated) textual inclusion.
212   textual header "IR/DebugInfoFlags.def"
213   textual header "IR/Instruction.def"
214   textual header "IR/Metadata.def"
215   textual header "IR/Value.def"
216 }
217
218 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
219 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
220 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
221
222 module LLVM_MC {
223   requires cplusplus
224
225   // FIXME: Mislayered?
226   module Support_TargetRegistry {
227     header "Support/TargetRegistry.h"
228     export *
229   }
230
231   umbrella "MC"
232   module * { export * }
233
234   // Exclude this; it's fundamentally non-modular.
235   exclude header "MC/MCTargetOptionsCommandFlags.h"
236 }
237
238 module LLVM_Object {
239   requires cplusplus
240   umbrella "Object"
241   module * { export * }
242 }
243
244 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
245
246 module LLVM_ProfileData {
247   requires cplusplus
248
249   umbrella "ProfileData"
250   module * { export * }
251
252   textual header "ProfileData/InstrProfData.inc"
253 }
254
255 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
256
257 module LLVM_Transforms {
258   requires cplusplus
259   umbrella "Transforms"
260   module * { export * }
261 }
262
263 // A module covering ADT/ and Support/. These are intertwined and
264 // codependent, and notionally form a single module.
265 module LLVM_Utils {
266   module ADT {
267     requires cplusplus
268
269     umbrella "ADT"
270     module * { export * }
271   }
272
273   module Support {
274     requires cplusplus
275
276     umbrella "Support"
277     module * { export * }
278
279     // Exclude these; they are fundamentally non-modular.
280     exclude header "Support/PluginLoader.h"
281     exclude header "Support/Solaris/sys/regset.h"
282
283     // These are intended for textual inclusion.
284     textual header "Support/ARMTargetParser.def"
285     textual header "Support/AArch64TargetParser.def"
286   }
287
288   // This part of the module is usable from both C and C++ code.
289   module ConvertUTF {
290     header "Support/ConvertUTF.h"
291     export *
292   }
293
294   module LLVM_CodeGen_MachineValueType {
295     requires cplusplus
296     header "CodeGen/MachineValueType.h"
297     export *
298   }
299 }
300
301 // This is used for a $src == $build compilation. Otherwise we use
302 // LLVM_Support_DataTypes_Build, defined in a module map that is
303 // copied into the build area.
304 module LLVM_Support_DataTypes_Src {
305   header "llvm/Support/DataTypes.h"
306   export *
307 }