blob: cc1895011dc333ce0644002e79d4b749e35abfbf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
module LLVM_Analysis {
requires cplusplus
umbrella "Analysis"
module * { export * }
// This is intended for (repeated) textual inclusion.
textual header "Analysis/TargetLibraryInfo.def"
}
module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } }
// A module covering CodeGen/ and Target/. These are intertwined
// and codependent, and thus notionally form a single module.
module LLVM_Backend {
requires cplusplus
module CodeGen {
umbrella "CodeGen"
module * { export * }
// FIXME: Why is this excluded?
exclude header "CodeGen/MachineValueType.h"
// Exclude these; they're intended to be included into only a single
// translation unit (or none) and aren't part of this module.
exclude header "CodeGen/CommandFlags.h"
exclude header "CodeGen/LinkAllAsmWriterComponents.h"
exclude header "CodeGen/LinkAllCodegenComponents.h"
// These are intended for (repeated) textual inclusion.
textual header "CodeGen/DIEValue.def"
}
module Target {
umbrella "Target"
module * { export * }
// This is intended for (repeated) textual inclusion.
textual header "Target/TargetOpcodes.def"
}
}
module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
module LLVM_DebugInfo {
requires cplusplus
module DIContext { header "DebugInfo/DIContext.h" export * }
}
module LLVM_DebugInfo_DWARF {
requires cplusplus
umbrella "DebugInfo/DWARF"
module * { export * }
}
module LLVM_DebugInfo_PDB {
requires cplusplus
umbrella "DebugInfo/PDB"
module * { export * }
// Separate out this subdirectory; it's an optional component that depends on
// a separate library which might not be available.
//
// FIXME: There should be a better way to specify this.
exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
exclude header "DebugInfo/PDB/DIA/DIASession.h"
exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
exclude header "DebugInfo/PDB/DIA/DIASupport.h"
}
module LLVM_DebugInfo_PDB_DIA {
requires cplusplus
umbrella "DebugInfo/PDB/DIA"
module * { export * }
}
module LLVM_DebugInfo_CodeView {
requires cplusplus
umbrella "DebugInfo/CodeView"
module * { export * }
// These are intended for (repeated) textual inclusion.
textual header "DebugInfo/CodeView/TypeRecords.def"
textual header "DebugInfo/CodeView/CVSymbolTypes.def"
}
module LLVM_ExecutionEngine {
requires cplusplus
umbrella "ExecutionEngine"
module * { export * }
// Exclude this; it's an optional component of the ExecutionEngine.
exclude header "ExecutionEngine/OProfileWrapper.h"
// Exclude these; they're intended to be included into only a single
// translation unit (or none) and aren't part of this module.
exclude header "ExecutionEngine/MCJIT.h"
exclude header "ExecutionEngine/Interpreter.h"
exclude header "ExecutionEngine/OrcMCJITReplacement.h"
}
module LLVM_Pass {
module Pass {
// PassSupport.h and PassAnalysisSupport.h are made available only through
// Pass.h.
header "Pass.h"
header "PassSupport.h"
header "PassAnalysisSupport.h"
export *
}
module PassRegistry { header "PassRegistry.h" export * }
module InitializePasses { header "InitializePasses.h" export * }
}
module LLVM_intrinsic_gen {
requires cplusplus
// Delay building the modules containing dependencies to Attributes.h and
// Intrinsics.h because they need to be generated by tablegen first.
// Attributes.h
module IR_Argument { header "IR/Argument.h" export * }
module IR_Attributes { header "IR/Attributes.h" export * }
module IR_CallSite { header "IR/CallSite.h" export * }
module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
module IR_NoFolder { header "IR/NoFolder.h" export * }
module IR_Module { header "IR/Module.h" export * }
module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
module IR_Function { header "IR/Function.h" export * }
module IR_InstrTypes { header "IR/InstrTypes.h" export * }
module IR_Instructions { header "IR/Instructions.h" export * }
// Intrinsics.h
module IR_CFG { header "IR/CFG.h" export * }
module IR_ConstantRange { header "IR/ConstantRange.h" export * }
module IR_Dominators { header "IR/Dominators.h" export * }
module IR_IRBuilder { header "IR/IRBuilder.h" export * }
module IR_PassManager { header "IR/PassManager.h" export * }
module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
module IR_Verifier { header "IR/Verifier.h" export * }
module IR_InstIterator { header "IR/InstIterator.h" export * }
module IR_InstVisitor { header "IR/InstVisitor.h" export * }
module IR_Intrinsics { header "IR/Intrinsics.h" export * }
module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
module IR_PatternMatch { header "IR/PatternMatch.h" export * }
module IR_Statepoint { header "IR/Statepoint.h" export * }
export *
}
module LLVM_IR {
requires cplusplus
umbrella "IR"
module * { export * }
// These are intended for (repeated) textual inclusion.
textual header "IR/DebugInfoFlags.def"
textual header "IR/Instruction.def"
textual header "IR/Metadata.def"
textual header "IR/Value.def"
}
module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
module LLVM_MC {
requires cplusplus
// FIXME: Mislayered?
module Support_TargetRegistry {
header "Support/TargetRegistry.h"
export *
}
umbrella "MC"
module * { export * }
// Exclude this; it's fundamentally non-modular.
exclude header "MC/MCTargetOptionsCommandFlags.h"
}
module LLVM_Object {
requires cplusplus
umbrella "Object"
module * { export * }
}
module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
module LLVM_ProfileData {
requires cplusplus
umbrella "ProfileData"
module * { export * }
textual header "ProfileData/InstrProfData.inc"
}
module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
module LLVM_Transforms {
requires cplusplus
umbrella "Transforms"
module * { export * }
// FIXME: Excluded because it does bad things with the legacy pass manager.
exclude header "Transforms/IPO/PassManagerBuilder.h"
}
// A module covering ADT/ and Support/. These are intertwined and
// codependent, and notionally form a single module.
module LLVM_Utils {
module ADT {
requires cplusplus
umbrella "ADT"
module * { export * }
}
module Support {
requires cplusplus
umbrella "Support"
module * { export * }
// Exclude this; it's only included on Solaris.
exclude header "Support/Solaris.h"
// Exclude this; it's fundamentally non-modular.
exclude header "Support/PluginLoader.h"
// FIXME: Mislayered?
exclude header "Support/TargetRegistry.h"
// These are intended for textual inclusion.
textual header "Support/ARMTargetParser.def"
textual header "Support/AArch64TargetParser.def"
textual header "Support/Dwarf.def"
textual header "Support/MachO.def"
textual header "Support/ELFRelocs/AArch64.def"
textual header "Support/ELFRelocs/AMDGPU.def"
textual header "Support/ELFRelocs/ARM.def"
textual header "Support/ELFRelocs/AVR.def"
textual header "Support/ELFRelocs/BPF.def"
textual header "Support/ELFRelocs/Hexagon.def"
textual header "Support/ELFRelocs/i386.def"
textual header "Support/ELFRelocs/Lanai.def"
textual header "Support/ELFRelocs/Mips.def"
textual header "Support/ELFRelocs/PowerPC64.def"
textual header "Support/ELFRelocs/PowerPC.def"
textual header "Support/ELFRelocs/Sparc.def"
textual header "Support/ELFRelocs/SystemZ.def"
textual header "Support/ELFRelocs/x86_64.def"
textual header "Support/ELFRelocs/WebAssembly.def"
}
// This part of the module is usable from both C and C++ code.
module ConvertUTF {
header "Support/ConvertUTF.h"
export *
}
}
module LLVM_CodeGen_MachineValueType {
requires cplusplus
header "CodeGen/MachineValueType.h"
export *
}
// This is used for a $src == $build compilation. Otherwise we use
// LLVM_Support_DataTypes_Build, defined in a module map that is
// copied into the build area.
module LLVM_Support_DataTypes_Src {
header "llvm/Support/DataTypes.h"
export *
}
|