comparison include/llvm/module.modulemap @ 148:63bd29f05246

merged
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Aug 2019 19:46:37 +0900
parents c2174574ed3a
children
comparison
equal deleted inserted replaced
146:3fc4d5c3e21e 148:63bd29f05246
3 umbrella "Analysis" 3 umbrella "Analysis"
4 module * { export * } 4 module * { export * }
5 5
6 // This is intended for (repeated) textual inclusion. 6 // This is intended for (repeated) textual inclusion.
7 textual header "Analysis/TargetLibraryInfo.def" 7 textual header "Analysis/TargetLibraryInfo.def"
8 } 8 textual header "Analysis/VecFuncs.def"
9 9 }
10 module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } } 10
11 module LLVM_AsmParser {
12 requires cplusplus
13 umbrella "AsmParser"
14 module * { export * }
15 }
11 16
12 // A module covering CodeGen/ and Target/. These are intertwined 17 // A module covering CodeGen/ and Target/. These are intertwined
13 // and codependent, and thus notionally form a single module. 18 // and codependent, and thus notionally form a single module.
14 module LLVM_Backend { 19 module LLVM_Backend {
15 requires cplusplus 20 requires cplusplus
18 umbrella "CodeGen" 23 umbrella "CodeGen"
19 module * { export * } 24 module * { export * }
20 25
21 // Exclude these; they're intended to be included into only a single 26 // Exclude these; they're intended to be included into only a single
22 // translation unit (or none) and aren't part of this module. 27 // translation unit (or none) and aren't part of this module.
23 exclude header "CodeGen/CommandFlags.h"
24 exclude header "CodeGen/LinkAllAsmWriterComponents.h" 28 exclude header "CodeGen/LinkAllAsmWriterComponents.h"
25 exclude header "CodeGen/LinkAllCodegenComponents.h" 29 exclude header "CodeGen/LinkAllCodegenComponents.h"
26 30
27 // These are intended for (repeated) textual inclusion. 31 // These are intended for (repeated) textual inclusion.
28 textual header "CodeGen/CommandFlags.def" 32 textual header "CodeGen/CommandFlags.inc"
29 textual header "CodeGen/DIEValue.def" 33 textual header "CodeGen/DIEValue.def"
30 textual header "CodeGen/RuntimeLibcalls.def" 34 }
31 textual header "CodeGen/TargetOpcodes.def" 35 }
32 } 36
33 37 // FIXME: Make this as a submodule of LLVM_Backend again.
34 module Target { 38 // Doing so causes a linker error in clang-format.
35 umbrella "Target" 39 module LLVM_Backend_Target {
36 module * { export * } 40 umbrella "Target"
37 } 41 module * { export * }
38 } 42 }
39 43
40 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } } 44 module LLVM_Bitcode {
45 requires cplusplus
46 umbrella "Bitcode"
47 module * { export * }
48 }
49
41 50
42 module LLVM_BinaryFormat { 51 module LLVM_BinaryFormat {
43 requires cplusplus 52 requires cplusplus
44 umbrella "BinaryFormat" module * { export * } 53 umbrella "BinaryFormat" module * { export * }
45 textual header "BinaryFormat/Dwarf.def" 54 textual header "BinaryFormat/Dwarf.def"
55 textual header "BinaryFormat/DynamicTags.def"
46 textual header "BinaryFormat/MachO.def" 56 textual header "BinaryFormat/MachO.def"
57 textual header "BinaryFormat/MinidumpConstants.def"
47 textual header "BinaryFormat/ELFRelocs/AArch64.def" 58 textual header "BinaryFormat/ELFRelocs/AArch64.def"
48 textual header "BinaryFormat/ELFRelocs/AMDGPU.def" 59 textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
49 textual header "BinaryFormat/ELFRelocs/ARM.def" 60 textual header "BinaryFormat/ELFRelocs/ARM.def"
50 textual header "BinaryFormat/ELFRelocs/ARC.def" 61 textual header "BinaryFormat/ELFRelocs/ARC.def"
51 textual header "BinaryFormat/ELFRelocs/AVR.def" 62 textual header "BinaryFormat/ELFRelocs/AVR.def"
52 textual header "BinaryFormat/ELFRelocs/BPF.def" 63 textual header "BinaryFormat/ELFRelocs/BPF.def"
53 textual header "BinaryFormat/ELFRelocs/Hexagon.def" 64 textual header "BinaryFormat/ELFRelocs/Hexagon.def"
54 textual header "BinaryFormat/ELFRelocs/i386.def" 65 textual header "BinaryFormat/ELFRelocs/i386.def"
55 textual header "BinaryFormat/ELFRelocs/Lanai.def" 66 textual header "BinaryFormat/ELFRelocs/Lanai.def"
56 textual header "BinaryFormat/ELFRelocs/Mips.def" 67 textual header "BinaryFormat/ELFRelocs/Mips.def"
68 textual header "BinaryFormat/ELFRelocs/MSP430.def"
57 textual header "BinaryFormat/ELFRelocs/PowerPC64.def" 69 textual header "BinaryFormat/ELFRelocs/PowerPC64.def"
58 textual header "BinaryFormat/ELFRelocs/PowerPC.def" 70 textual header "BinaryFormat/ELFRelocs/PowerPC.def"
59 textual header "BinaryFormat/ELFRelocs/RISCV.def" 71 textual header "BinaryFormat/ELFRelocs/RISCV.def"
60 textual header "BinaryFormat/ELFRelocs/Sparc.def" 72 textual header "BinaryFormat/ELFRelocs/Sparc.def"
61 textual header "BinaryFormat/ELFRelocs/SystemZ.def" 73 textual header "BinaryFormat/ELFRelocs/SystemZ.def"
62 textual header "BinaryFormat/ELFRelocs/x86_64.def" 74 textual header "BinaryFormat/ELFRelocs/x86_64.def"
63 textual header "BinaryFormat/ELFRelocs/WebAssembly.def"
64 textual header "BinaryFormat/WasmRelocs.def" 75 textual header "BinaryFormat/WasmRelocs.def"
65 } 76 textual header "BinaryFormat/MsgPack.def"
66 77 }
67 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } } 78
79 module LLVM_Config {
80 requires cplusplus
81 umbrella "Config"
82 extern module LLVM_Extern_Config_Def "module.extern.modulemap"
83 module * { export * }
84 }
68 85
69 module LLVM_DebugInfo { 86 module LLVM_DebugInfo {
70 requires cplusplus 87 requires cplusplus
71 module DIContext { header "DebugInfo/DIContext.h" export * } 88 module DIContext { header "DebugInfo/DIContext.h" export * }
72 } 89 }
88 // a separate library which might not be available. 105 // a separate library which might not be available.
89 // 106 //
90 // FIXME: There should be a better way to specify this. 107 // FIXME: There should be a better way to specify this.
91 exclude header "DebugInfo/PDB/DIA/DIADataStream.h" 108 exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
92 exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h" 109 exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
110 exclude header "DebugInfo/PDB/DIA/DIAEnumFrameData.h"
111 exclude header "DebugInfo/PDB/DIA/DIAEnumInjectedSources.h"
93 exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h" 112 exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
113 exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h"
94 exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h" 114 exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
95 exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h" 115 exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
96 exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h" 116 exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h"
117 exclude header "DebugInfo/PDB/DIA/DIAFrameData.h"
118 exclude header "DebugInfo/PDB/DIA/DIAInjectedSource.h"
97 exclude header "DebugInfo/PDB/DIA/DIALineNumber.h" 119 exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
98 exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h" 120 exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
121 exclude header "DebugInfo/PDB/DIA/DIASectionContrib.h"
99 exclude header "DebugInfo/PDB/DIA/DIASession.h" 122 exclude header "DebugInfo/PDB/DIA/DIASession.h"
100 exclude header "DebugInfo/PDB/DIA/DIASourceFile.h" 123 exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
101 exclude header "DebugInfo/PDB/DIA/DIASupport.h" 124 exclude header "DebugInfo/PDB/DIA/DIASupport.h"
102 exclude header "DebugInfo/PDB/DIA/DIATable.h" 125 exclude header "DebugInfo/PDB/DIA/DIATable.h"
126 exclude header "DebugInfo/PDB/DIA/DIAUtils.h"
103 } 127 }
104 128
105 module LLVM_DebugInfo_PDB_DIA { 129 module LLVM_DebugInfo_PDB_DIA {
106 requires cplusplus 130 requires cplusplus
107 131
173 // Delay building the modules containing dependencies to Attributes.h and 197 // Delay building the modules containing dependencies to Attributes.h and
174 // Intrinsics.h because they need to be generated by tablegen first. 198 // Intrinsics.h because they need to be generated by tablegen first.
175 199
176 // Attributes.h 200 // Attributes.h
177 module IR_Argument { header "IR/Argument.h" export * } 201 module IR_Argument { header "IR/Argument.h" export * }
178 module IR_Attributes { header "IR/Attributes.h" export * } 202 module IR_Attributes {
203 header "IR/Attributes.h"
204 extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
205 export *
206 }
179 module IR_CallSite { header "IR/CallSite.h" export * } 207 module IR_CallSite { header "IR/CallSite.h" export * }
180 module IR_ConstantFolder { header "IR/ConstantFolder.h" export * } 208 module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
181 module IR_GlobalVariable { header "IR/GlobalVariable.h" export * } 209 module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
182 module IR_NoFolder { header "IR/NoFolder.h" export * } 210 module IR_NoFolder { header "IR/NoFolder.h" export * }
183 module IR_Module { header "IR/Module.h" export * } 211 module IR_Module { header "IR/Module.h" export * }
188 module IR_Instructions { header "IR/Instructions.h" export * } 216 module IR_Instructions { header "IR/Instructions.h" export * }
189 217
190 218
191 // Intrinsics.h 219 // Intrinsics.h
192 module IR_CFG { header "IR/CFG.h" export * } 220 module IR_CFG { header "IR/CFG.h" export * }
221 module IR_CFGDiff { header "IR/CFGDiff.h" export * }
193 module IR_ConstantRange { header "IR/ConstantRange.h" export * } 222 module IR_ConstantRange { header "IR/ConstantRange.h" export * }
194 module IR_Dominators { header "IR/Dominators.h" export * } 223 module IR_Dominators { header "IR/Dominators.h" export * }
224 module Analysis_PostDominators { header "Analysis/PostDominators.h" export * }
225 module Analysis_DomTreeUpdater { header "Analysis/DomTreeUpdater.h" export * }
195 module IR_IRBuilder { header "IR/IRBuilder.h" export * } 226 module IR_IRBuilder { header "IR/IRBuilder.h" export * }
196 module IR_PassManager { header "IR/PassManager.h" export * } 227 module IR_PassManager { header "IR/PassManager.h" export * }
197 module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * } 228 module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
198 module IR_Verifier { header "IR/Verifier.h" export * } 229 module IR_Verifier { header "IR/Verifier.h" export * }
199 module IR_InstIterator { header "IR/InstIterator.h" export * } 230 module IR_InstIterator { header "IR/InstIterator.h" export * }
200 module IR_InstVisitor { header "IR/InstVisitor.h" export * } 231 module IR_InstVisitor { header "IR/InstVisitor.h" export * }
201 module IR_Intrinsics { header "IR/Intrinsics.h" export * } 232 module IR_Intrinsics {
233 header "IR/Intrinsics.h"
234 extern module LLVM_Extern_IR_Intricsics_Gen "module.extern.modulemap"
235 extern module LLVM_Extern_IR_Intrinsics_Enum "module.extern.modulemap"
236 export *
237 }
202 module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * } 238 module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
203 module IR_PatternMatch { header "IR/PatternMatch.h" export * } 239 module IR_PatternMatch { header "IR/PatternMatch.h" export * }
240 module IR_SafepointIRVerifier { header "IR/SafepointIRVerifier.h" export * }
204 module IR_Statepoint { header "IR/Statepoint.h" export * } 241 module IR_Statepoint { header "IR/Statepoint.h" export * }
205 242
206 export * 243 export *
207 } 244 }
208 245
214 251
215 // These are intended for (repeated) textual inclusion. 252 // These are intended for (repeated) textual inclusion.
216 textual header "IR/DebugInfoFlags.def" 253 textual header "IR/DebugInfoFlags.def"
217 textual header "IR/Instruction.def" 254 textual header "IR/Instruction.def"
218 textual header "IR/Metadata.def" 255 textual header "IR/Metadata.def"
256 textual header "IR/FixedMetadataKinds.def"
219 textual header "IR/Value.def" 257 textual header "IR/Value.def"
220 } 258 textual header "IR/RuntimeLibcalls.def"
221 259 }
222 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } } 260
223 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } } 261 module LLVM_IRReader {
224 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } } 262 requires cplusplus
263 umbrella "IRReader"
264 module * { export * }
265 }
266
267 module LLVM_LineEditor {
268 requires cplusplus
269 umbrella "LineEditor"
270 module * { export * }
271 }
272
273 module LLVM_LTO {
274 requires cplusplus
275 umbrella "LTO"
276 module * { export * }
277 }
225 278
226 module LLVM_MC { 279 module LLVM_MC {
227 requires cplusplus 280 requires cplusplus
228 281
229 umbrella "MC" 282 umbrella "MC"
230 module * { export * } 283 module * { export * }
231 284
232 textual header "MC/MCTargetOptionsCommandFlags.def" 285 textual header "MC/MCTargetOptionsCommandFlags.inc"
233 } 286 }
234 287
235 // Used by llvm-tblgen 288 // Used by llvm-tblgen
236 module LLVM_MC_TableGen { 289 module LLVM_MC_TableGen {
237 requires cplusplus 290 requires cplusplus
246 requires cplusplus 299 requires cplusplus
247 umbrella "Object" 300 umbrella "Object"
248 module * { export * } 301 module * { export * }
249 } 302 }
250 303
251 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } } 304 module LLVM_Option {
305 requires cplusplus
306 umbrella "Option"
307 module * { export * }
308 }
252 309
253 module LLVM_ProfileData { 310 module LLVM_ProfileData {
254 requires cplusplus 311 requires cplusplus
255 312
256 umbrella "ProfileData" 313 umbrella "ProfileData"
264 requires cplusplus 321 requires cplusplus
265 header "Support/TargetRegistry.h" 322 header "Support/TargetRegistry.h"
266 export * 323 export *
267 } 324 }
268 325
269 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } } 326 module LLVM_TableGen {
327 requires cplusplus
328 umbrella "TableGen"
329 module * { export * }
330 }
270 331
271 module LLVM_Transforms { 332 module LLVM_Transforms {
272 requires cplusplus 333 requires cplusplus
273 umbrella "Transforms" 334 umbrella "Transforms"
274 module * { export * } 335
275 } 336 module * { export * }
337 }
338
339 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
276 340
277 // A module covering ADT/ and Support/. These are intertwined and 341 // A module covering ADT/ and Support/. These are intertwined and
278 // codependent, and notionally form a single module. 342 // codependent, and notionally form a single module.
279 module LLVM_Utils { 343 module LLVM_Utils {
280 module ADT { 344 module ADT {
295 exclude header "Support/Solaris/sys/regset.h" 359 exclude header "Support/Solaris/sys/regset.h"
296 360
297 // These are intended for textual inclusion. 361 // These are intended for textual inclusion.
298 textual header "Support/ARMTargetParser.def" 362 textual header "Support/ARMTargetParser.def"
299 textual header "Support/AArch64TargetParser.def" 363 textual header "Support/AArch64TargetParser.def"
364 textual header "Support/TargetOpcodes.def"
300 textual header "Support/X86TargetParser.def" 365 textual header "Support/X86TargetParser.def"
301 } 366 }
302 367
303 // This part of the module is usable from both C and C++ code. 368 // This part of the module is usable from both C and C++ code.
304 module ConvertUTF { 369 module ConvertUTF {
305 header "Support/ConvertUTF.h" 370 header "Support/ConvertUTF.h"
306 export *
307 }
308
309 module LLVM_CodeGen_MachineValueType {
310 requires cplusplus
311 header "CodeGen/MachineValueType.h"
312 export * 371 export *
313 } 372 }
314 } 373 }
315 374
316 // This is used for a $src == $build compilation. Otherwise we use 375 // This is used for a $src == $build compilation. Otherwise we use