blob: bcc12534ec85357621d75625f3623df25afacca1 [file] [log] [blame]
Richard Smith651f6802014-05-21 02:46:14 +00001module LLVM_Analysis {
2 requires cplusplus
3 umbrella "Analysis"
4 module * { export * }
Richard Smith85ef5652015-03-06 23:39:54 +00005
Richard Smith85ef5652015-03-06 23:39:54 +00006 // This is intended for (repeated) textual inclusion.
7 textual header "Analysis/TargetLibraryInfo.def"
Richard Smith651f6802014-05-21 02:46:14 +00008}
9
Adrian Prantle367eba2019-01-03 19:30:18 +000010module LLVM_AsmParser {
11 requires cplusplus
12 umbrella "AsmParser"
13 module * { export * }
14}
Richard Smith651f6802014-05-21 02:46:14 +000015
16// A module covering CodeGen/ and Target/. These are intertwined
17// and codependent, and thus notionally form a single module.
18module LLVM_Backend {
19 requires cplusplus
20
21 module CodeGen {
22 umbrella "CodeGen"
23 module * { export * }
24
Richard Smith651f6802014-05-21 02:46:14 +000025 // Exclude these; they're intended to be included into only a single
26 // translation unit (or none) and aren't part of this module.
Richard Smith651f6802014-05-21 02:46:14 +000027 exclude header "CodeGen/LinkAllAsmWriterComponents.h"
28 exclude header "CodeGen/LinkAllCodegenComponents.h"
Duncan P. N. Exon Smith26487102015-06-16 00:43:52 +000029
30 // These are intended for (repeated) textual inclusion.
David Blaikie461bf522018-04-11 18:49:37 +000031 textual header "CodeGen/CommandFlags.inc"
Duncan P. N. Exon Smith26487102015-06-16 00:43:52 +000032 textual header "CodeGen/DIEValue.def"
Richard Smith651f6802014-05-21 02:46:14 +000033 }
Adrian Prantlce64d362019-01-03 19:24:37 +000034}
Richard Smith651f6802014-05-21 02:46:14 +000035
Adrian Prantlce64d362019-01-03 19:24:37 +000036// FIXME: Make this as a submodule of LLVM_Backend again.
37// Doing so causes a linker error in clang-format.
38module LLVM_Backend_Target {
39 umbrella "Target"
40 module * { export * }
Richard Smith651f6802014-05-21 02:46:14 +000041}
42
Adrian Prantle367eba2019-01-03 19:30:18 +000043module LLVM_Bitcode {
44 requires cplusplus
45 umbrella "Bitcode"
46 module * { export * }
47}
Eric Fiselier41609fe2017-06-07 17:16:25 +000048
Eric Fiselierd7158432018-11-21 20:46:50 +000049
Eric Fiselier41609fe2017-06-07 17:16:25 +000050module LLVM_BinaryFormat {
51 requires cplusplus
52 umbrella "BinaryFormat" module * { export * }
53 textual header "BinaryFormat/Dwarf.def"
Alexander Richardsone1324392018-03-21 14:17:50 +000054 textual header "BinaryFormat/DynamicTags.def"
Eric Fiselier41609fe2017-06-07 17:16:25 +000055 textual header "BinaryFormat/MachO.def"
56 textual header "BinaryFormat/ELFRelocs/AArch64.def"
57 textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
58 textual header "BinaryFormat/ELFRelocs/ARM.def"
Leslie Zhai07192e92017-09-13 01:49:49 +000059 textual header "BinaryFormat/ELFRelocs/ARC.def"
Eric Fiselier41609fe2017-06-07 17:16:25 +000060 textual header "BinaryFormat/ELFRelocs/AVR.def"
61 textual header "BinaryFormat/ELFRelocs/BPF.def"
62 textual header "BinaryFormat/ELFRelocs/Hexagon.def"
63 textual header "BinaryFormat/ELFRelocs/i386.def"
64 textual header "BinaryFormat/ELFRelocs/Lanai.def"
65 textual header "BinaryFormat/ELFRelocs/Mips.def"
Anton Korobeynikov695940b2018-11-15 12:29:43 +000066 textual header "BinaryFormat/ELFRelocs/MSP430.def"
Eric Fiselier41609fe2017-06-07 17:16:25 +000067 textual header "BinaryFormat/ELFRelocs/PowerPC64.def"
68 textual header "BinaryFormat/ELFRelocs/PowerPC.def"
69 textual header "BinaryFormat/ELFRelocs/RISCV.def"
70 textual header "BinaryFormat/ELFRelocs/Sparc.def"
71 textual header "BinaryFormat/ELFRelocs/SystemZ.def"
72 textual header "BinaryFormat/ELFRelocs/x86_64.def"
Sam Cleggead036a2017-12-21 03:16:34 +000073 textual header "BinaryFormat/WasmRelocs.def"
David Blaikie648e7fb2018-08-23 02:01:30 +000074 textual header "BinaryFormat/MsgPack.def"
Eric Fiselier41609fe2017-06-07 17:16:25 +000075}
76
Eric Fiselierd7158432018-11-21 20:46:50 +000077module LLVM_Config {
78 requires cplusplus
79 umbrella "Config"
80 extern module LLVM_Extern_Config_Def "module.extern.modulemap"
81 module * { export * }
82}
Richard Smithef126cd2015-02-14 00:47:20 +000083
Richard Smith04df4022015-04-23 23:22:26 +000084module LLVM_DebugInfo {
85 requires cplusplus
86 module DIContext { header "DebugInfo/DIContext.h" export * }
87}
88
Richard Smithef126cd2015-02-14 00:47:20 +000089module LLVM_DebugInfo_DWARF {
90 requires cplusplus
91
92 umbrella "DebugInfo/DWARF"
93 module * { export * }
94}
95
96module LLVM_DebugInfo_PDB {
97 requires cplusplus
98
99 umbrella "DebugInfo/PDB"
100 module * { export * }
Richard Smith680fffd2015-02-14 05:54:56 +0000101
102 // Separate out this subdirectory; it's an optional component that depends on
103 // a separate library which might not be available.
104 //
105 // FIXME: There should be a better way to specify this.
Richard Smith40053ce2015-02-18 00:21:45 +0000106 exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
107 exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
Aleksandr Urakov8e47a8d2018-10-23 08:15:00 +0000108 exclude header "DebugInfo/PDB/DIA/DIAEnumFrameData.h"
Zachary Turnerfc9466d2018-03-13 20:16:37 +0000109 exclude header "DebugInfo/PDB/DIA/DIAEnumInjectedSources.h"
Richard Smith40053ce2015-02-18 00:21:45 +0000110 exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
Aaron Smithb360e562018-03-22 04:08:15 +0000111 exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h"
Richard Smith40053ce2015-02-18 00:21:45 +0000112 exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
113 exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
Aaron Smith69def8d2017-11-16 17:24:49 +0000114 exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h"
Aleksandr Urakov8e47a8d2018-10-23 08:15:00 +0000115 exclude header "DebugInfo/PDB/DIA/DIAFrameData.h"
Zachary Turnerfc9466d2018-03-13 20:16:37 +0000116 exclude header "DebugInfo/PDB/DIA/DIAInjectedSource.h"
Richard Smith40053ce2015-02-18 00:21:45 +0000117 exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
118 exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
Aaron Smithb360e562018-03-22 04:08:15 +0000119 exclude header "DebugInfo/PDB/DIA/DIASectionContrib.h"
Richard Smith40053ce2015-02-18 00:21:45 +0000120 exclude header "DebugInfo/PDB/DIA/DIASession.h"
121 exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
122 exclude header "DebugInfo/PDB/DIA/DIASupport.h"
Aaron Smith69def8d2017-11-16 17:24:49 +0000123 exclude header "DebugInfo/PDB/DIA/DIATable.h"
Zachary Turnerfc9466d2018-03-13 20:16:37 +0000124 exclude header "DebugInfo/PDB/DIA/DIAUtils.h"
Richard Smithef126cd2015-02-14 00:47:20 +0000125}
126
Richard Smithef126cd2015-02-14 00:47:20 +0000127module LLVM_DebugInfo_PDB_DIA {
128 requires cplusplus
129
130 umbrella "DebugInfo/PDB/DIA"
131 module * { export * }
132}
133
Benjamin Kramer4b6011e2016-07-30 12:05:17 +0000134module LLVM_DebugInfo_MSF {
Zachary Turner731237c2016-07-25 18:18:59 +0000135 requires cplusplus
Benjamin Kramer4b6011e2016-07-30 12:05:17 +0000136
137 umbrella "DebugInfo/MSF"
Zachary Turner731237c2016-07-25 18:18:59 +0000138 module * { export * }
139}
140
Adrian Prantl5e7e5982016-07-01 15:54:46 +0000141module LLVM_DebugInfo_CodeView {
142 requires cplusplus
143
144 umbrella "DebugInfo/CodeView"
145 module * { export * }
146
147 // These are intended for (repeated) textual inclusion.
Hans Wennborg0f3480d2017-10-03 18:27:22 +0000148 textual header "DebugInfo/CodeView/CodeViewRegisters.def"
Vedant Kumar4fb2b262017-05-31 01:08:43 +0000149 textual header "DebugInfo/CodeView/CodeViewTypes.def"
150 textual header "DebugInfo/CodeView/CodeViewSymbols.def"
Adrian Prantl5e7e5982016-07-01 15:54:46 +0000151}
152
Richard Smith651f6802014-05-21 02:46:14 +0000153module LLVM_ExecutionEngine {
154 requires cplusplus
155
156 umbrella "ExecutionEngine"
157 module * { export * }
158
159 // Exclude this; it's an optional component of the ExecutionEngine.
160 exclude header "ExecutionEngine/OProfileWrapper.h"
161
162 // Exclude these; they're intended to be included into only a single
163 // translation unit (or none) and aren't part of this module.
Richard Smith651f6802014-05-21 02:46:14 +0000164 exclude header "ExecutionEngine/MCJIT.h"
165 exclude header "ExecutionEngine/Interpreter.h"
Richard Smith104a21d2015-01-24 01:55:52 +0000166 exclude header "ExecutionEngine/OrcMCJITReplacement.h"
Lang Hamese95f35e2016-11-15 02:14:57 +0000167
168 // FIXME: These exclude directives were added as a workaround for
169 // <rdar://problem/29247092> and should be removed once it is fixed.
170 exclude header "ExecutionEngine/Orc/RawByteChannel.h"
171 exclude header "ExecutionEngine/Orc/RPCUtils.h"
172 exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
173 exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
174 exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
Lang Hamesf8e261b2017-09-05 04:31:14 +0000175 exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
Richard Smith651f6802014-05-21 02:46:14 +0000176}
177
Vassil Vassilev9ddfbe42016-06-16 08:00:29 +0000178module LLVM_Pass {
179 module Pass {
180 // PassSupport.h and PassAnalysisSupport.h are made available only through
181 // Pass.h.
182 header "Pass.h"
183 header "PassSupport.h"
184 header "PassAnalysisSupport.h"
185 export *
186 }
Richard Smith651f6802014-05-21 02:46:14 +0000187
Richard Smith651f6802014-05-21 02:46:14 +0000188 module PassRegistry { header "PassRegistry.h" export * }
189 module InitializePasses { header "InitializePasses.h" export * }
Vassil Vassilev9ddfbe42016-06-16 08:00:29 +0000190}
191
Vassil Vassilev08636712016-06-28 12:27:09 +0000192module LLVM_intrinsic_gen {
193 requires cplusplus
194
195 // Delay building the modules containing dependencies to Attributes.h and
196 // Intrinsics.h because they need to be generated by tablegen first.
197
198 // Attributes.h
199 module IR_Argument { header "IR/Argument.h" export * }
Eric Fiselierd7158432018-11-21 20:46:50 +0000200 module IR_Attributes {
201 header "IR/Attributes.h"
202 extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
203 export *
204 }
Vassil Vassilev08636712016-06-28 12:27:09 +0000205 module IR_CallSite { header "IR/CallSite.h" export * }
206 module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
Tim Northover63e43bc2017-05-11 14:51:43 +0000207 module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
Vassil Vassilev08636712016-06-28 12:27:09 +0000208 module IR_NoFolder { header "IR/NoFolder.h" export * }
209 module IR_Module { header "IR/Module.h" export * }
210 module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
Peter Collingbourne87a14202017-01-05 04:40:09 +0000211 module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
Vassil Vassilev08636712016-06-28 12:27:09 +0000212 module IR_Function { header "IR/Function.h" export * }
213 module IR_InstrTypes { header "IR/InstrTypes.h" export * }
214 module IR_Instructions { header "IR/Instructions.h" export * }
215
216
217 // Intrinsics.h
218 module IR_CFG { header "IR/CFG.h" export * }
Alina Sbirlea5c7c2762018-08-14 20:49:19 +0000219 module IR_CFGDiff { header "IR/CFGDiff.h" export * }
Vassil Vassilev08636712016-06-28 12:27:09 +0000220 module IR_ConstantRange { header "IR/ConstantRange.h" export * }
221 module IR_Dominators { header "IR/Dominators.h" export * }
Jakub Kuderski57fa5c92018-07-03 02:06:23 +0000222 module Analysis_PostDominators { header "Analysis/PostDominators.h" export * }
223 module IR_DomTreeUpdater { header "IR/DomTreeUpdater.h" export * }
Vassil Vassilev08636712016-06-28 12:27:09 +0000224 module IR_IRBuilder { header "IR/IRBuilder.h" export * }
225 module IR_PassManager { header "IR/PassManager.h" export * }
226 module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
227 module IR_Verifier { header "IR/Verifier.h" export * }
228 module IR_InstIterator { header "IR/InstIterator.h" export * }
229 module IR_InstVisitor { header "IR/InstVisitor.h" export * }
Eric Fiselierd7158432018-11-21 20:46:50 +0000230 module IR_Intrinsics {
231 header "IR/Intrinsics.h"
232 extern module LLVM_Extern_IR_Intricsics_Gen "module.extern.modulemap"
233 extern module LLVM_Extern_IR_Intrinsics_Enum "module.extern.modulemap"
234 export *
235 }
Vassil Vassilev08636712016-06-28 12:27:09 +0000236 module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
237 module IR_PatternMatch { header "IR/PatternMatch.h" export * }
238 module IR_Statepoint { header "IR/Statepoint.h" export * }
239
240 export *
241}
242
Vassil Vassilev9ddfbe42016-06-16 08:00:29 +0000243module LLVM_IR {
244 requires cplusplus
Richard Smith651f6802014-05-21 02:46:14 +0000245
246 umbrella "IR"
247 module * { export * }
248
Richard Smithd948b982014-12-12 02:25:18 +0000249 // These are intended for (repeated) textual inclusion.
Richard Smith2013f8f2015-02-25 01:44:09 +0000250 textual header "IR/DebugInfoFlags.def"
Richard Smithe2fc38a2014-11-26 03:44:47 +0000251 textual header "IR/Instruction.def"
Richard Smithd948b982014-12-12 02:25:18 +0000252 textual header "IR/Metadata.def"
Benjamin Kramer78c5b7f2015-06-26 20:16:44 +0000253 textual header "IR/Value.def"
Peter Collingbourne5df3f9e2018-07-24 19:34:37 +0000254 textual header "IR/RuntimeLibcalls.def"
Richard Smith651f6802014-05-21 02:46:14 +0000255}
256
Adrian Prantle367eba2019-01-03 19:30:18 +0000257module LLVM_IRReader {
258 requires cplusplus
259 umbrella "IRReader"
260 module * { export * }
261}
262
263module LLVM_LineEditor {
264 requires cplusplus
265 umbrella "LineEditor"
266 module * { export * }
267}
268
269module LLVM_LTO {
270 requires cplusplus
271 umbrella "LTO"
272 module * { export * }
273}
Richard Smith651f6802014-05-21 02:46:14 +0000274
275module LLVM_MC {
276 requires cplusplus
277
Richard Smith651f6802014-05-21 02:46:14 +0000278 umbrella "MC"
279 module * { export * }
280
David Blaikie461bf522018-04-11 18:49:37 +0000281 textual header "MC/MCTargetOptionsCommandFlags.inc"
Richard Smith651f6802014-05-21 02:46:14 +0000282}
283
NAKAMURA Takumi7c1fbc02017-10-11 11:08:52 +0000284// Used by llvm-tblgen
285module LLVM_MC_TableGen {
286 requires cplusplus
287 module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
288 module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
289 module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
290 module MC_Schedule { header "MC/MCSchedule.h" export * }
291 module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
292}
293
Richard Smithdf6b3e52014-07-26 01:10:32 +0000294module LLVM_Object {
295 requires cplusplus
296 umbrella "Object"
297 module * { export * }
Richard Smithdf6b3e52014-07-26 01:10:32 +0000298}
299
Adrian Prantle367eba2019-01-03 19:30:18 +0000300module LLVM_Option {
301 requires cplusplus
302 umbrella "Option"
303 module * { export * }
304}
Teresa Johnson2b1c1c12016-07-13 20:19:09 +0000305
306module LLVM_ProfileData {
307 requires cplusplus
308
309 umbrella "ProfileData"
310 module * { export * }
Teresa Johnsonba515932016-07-13 21:27:51 +0000311
312 textual header "ProfileData/InstrProfData.inc"
Teresa Johnson2b1c1c12016-07-13 20:19:09 +0000313}
314
NAKAMURA Takumi933d4a52017-10-11 11:08:50 +0000315// FIXME: Mislayered?
316module LLVM_Support_TargetRegistry {
317 requires cplusplus
318 header "Support/TargetRegistry.h"
319 export *
320}
321
Adrian Prantle367eba2019-01-03 19:30:18 +0000322module LLVM_TableGen {
323 requires cplusplus
324 umbrella "TableGen"
325 module * { export * }
326}
Richard Smith651f6802014-05-21 02:46:14 +0000327
328module LLVM_Transforms {
329 requires cplusplus
330 umbrella "Transforms"
331 module * { export * }
Richard Smith651f6802014-05-21 02:46:14 +0000332}
333
Eric Fiselierd7158432018-11-21 20:46:50 +0000334extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
335
Richard Smith651f6802014-05-21 02:46:14 +0000336// A module covering ADT/ and Support/. These are intertwined and
337// codependent, and notionally form a single module.
338module LLVM_Utils {
339 module ADT {
340 requires cplusplus
341
342 umbrella "ADT"
343 module * { export * }
344 }
345
346 module Support {
347 requires cplusplus
348
349 umbrella "Support"
350 module * { export * }
351
Kamil Rytarowski14b319c2017-06-22 21:28:48 +0000352 // Exclude these; they are fundamentally non-modular.
Richard Smith651f6802014-05-21 02:46:14 +0000353 exclude header "Support/PluginLoader.h"
Kamil Rytarowski14b319c2017-06-22 21:28:48 +0000354 exclude header "Support/Solaris/sys/regset.h"
Richard Smith651f6802014-05-21 02:46:14 +0000355
Richard Smithe2fc38a2014-11-26 03:44:47 +0000356 // These are intended for textual inclusion.
Richard Smith4f840722015-09-10 23:30:27 +0000357 textual header "Support/ARMTargetParser.def"
Richard Smithbaaf0f72016-05-26 20:13:50 +0000358 textual header "Support/AArch64TargetParser.def"
David Blaikieb9334112018-03-23 23:58:27 +0000359 textual header "Support/TargetOpcodes.def"
NAKAMURA Takumib99884c2017-11-11 02:05:47 +0000360 textual header "Support/X86TargetParser.def"
Richard Smith651f6802014-05-21 02:46:14 +0000361 }
Richard Smitha6f58ad2015-09-11 03:14:00 +0000362
363 // This part of the module is usable from both C and C++ code.
364 module ConvertUTF {
365 header "Support/ConvertUTF.h"
366 export *
367 }
Richard Smith651f6802014-05-21 02:46:14 +0000368}
369
370// This is used for a $src == $build compilation. Otherwise we use
371// LLVM_Support_DataTypes_Build, defined in a module map that is
372// copied into the build area.
373module LLVM_Support_DataTypes_Src {
374 header "llvm/Support/DataTypes.h"
375 export *
376}
Eric Beckmannf74bed22017-07-26 01:21:55 +0000377
378module LLVM_WindowsManifest {
379 requires cplusplus
380 umbrella "WindowsManifest"
381 module * { export * }
382}