6 // This is intended for (repeated) textual inclusion.
7 textual header "Analysis/TargetLibraryInfo.def"
10 module LLVM_AsmParser {
16 // A module covering CodeGen/ and Target/. These are intertwined
17 // and codependent, and thus notionally form a single module.
25 // Exclude these; they're intended to be included into only a single
26 // translation unit (or none) and aren't part of this module.
27 exclude header "CodeGen/LinkAllAsmWriterComponents.h"
28 exclude header "CodeGen/LinkAllCodegenComponents.h"
30 // These are intended for (repeated) textual inclusion.
31 textual header "CodeGen/CommandFlags.inc"
32 textual header "CodeGen/DIEValue.def"
36 // FIXME: Make this as a submodule of LLVM_Backend again.
37 // Doing so causes a linker error in clang-format.
38 module LLVM_Backend_Target {
50 module LLVM_BinaryFormat {
52 umbrella "BinaryFormat" module * { export * }
53 textual header "BinaryFormat/Dwarf.def"
54 textual header "BinaryFormat/DynamicTags.def"
55 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"
59 textual header "BinaryFormat/ELFRelocs/ARC.def"
60 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"
66 textual header "BinaryFormat/ELFRelocs/MSP430.def"
67 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"
73 textual header "BinaryFormat/WasmRelocs.def"
74 textual header "BinaryFormat/MsgPack.def"
80 extern module LLVM_Extern_Config_Def "module.extern.modulemap"
84 module LLVM_DebugInfo {
86 module DIContext { header "DebugInfo/DIContext.h" export * }
89 module LLVM_DebugInfo_DWARF {
92 umbrella "DebugInfo/DWARF"
96 module LLVM_DebugInfo_PDB {
99 umbrella "DebugInfo/PDB"
100 module * { export * }
102 // Separate out this subdirectory; it's an optional component that depends on
103 // a separate library which might not be available.
105 // FIXME: There should be a better way to specify this.
106 exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
107 exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
108 exclude header "DebugInfo/PDB/DIA/DIAEnumFrameData.h"
109 exclude header "DebugInfo/PDB/DIA/DIAEnumInjectedSources.h"
110 exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
111 exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h"
112 exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
113 exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
114 exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h"
115 exclude header "DebugInfo/PDB/DIA/DIAFrameData.h"
116 exclude header "DebugInfo/PDB/DIA/DIAInjectedSource.h"
117 exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
118 exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
119 exclude header "DebugInfo/PDB/DIA/DIASectionContrib.h"
120 exclude header "DebugInfo/PDB/DIA/DIASession.h"
121 exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
122 exclude header "DebugInfo/PDB/DIA/DIASupport.h"
123 exclude header "DebugInfo/PDB/DIA/DIATable.h"
124 exclude header "DebugInfo/PDB/DIA/DIAUtils.h"
127 module LLVM_DebugInfo_PDB_DIA {
130 umbrella "DebugInfo/PDB/DIA"
131 module * { export * }
134 module LLVM_DebugInfo_MSF {
137 umbrella "DebugInfo/MSF"
138 module * { export * }
141 module LLVM_DebugInfo_CodeView {
144 umbrella "DebugInfo/CodeView"
145 module * { export * }
147 // These are intended for (repeated) textual inclusion.
148 textual header "DebugInfo/CodeView/CodeViewRegisters.def"
149 textual header "DebugInfo/CodeView/CodeViewTypes.def"
150 textual header "DebugInfo/CodeView/CodeViewSymbols.def"
153 module LLVM_ExecutionEngine {
156 umbrella "ExecutionEngine"
157 module * { export * }
159 // Exclude this; it's an optional component of the ExecutionEngine.
160 exclude header "ExecutionEngine/OProfileWrapper.h"
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.
164 exclude header "ExecutionEngine/MCJIT.h"
165 exclude header "ExecutionEngine/Interpreter.h"
166 exclude header "ExecutionEngine/OrcMCJITReplacement.h"
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"
175 exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
180 // PassSupport.h and PassAnalysisSupport.h are made available only through
183 header "PassSupport.h"
184 header "PassAnalysisSupport.h"
188 module PassRegistry { header "PassRegistry.h" export * }
189 module InitializePasses { header "InitializePasses.h" export * }
192 module LLVM_intrinsic_gen {
195 // Delay building the modules containing dependencies to Attributes.h and
196 // Intrinsics.h because they need to be generated by tablegen first.
199 module IR_Argument { header "IR/Argument.h" export * }
200 module IR_Attributes {
201 header "IR/Attributes.h"
202 extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
205 module IR_CallSite { header "IR/CallSite.h" export * }
206 module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
207 module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
208 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 * }
211 module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
212 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 * }
218 module IR_CFG { header "IR/CFG.h" export * }
219 module IR_CFGDiff { header "IR/CFGDiff.h" export * }
220 module IR_ConstantRange { header "IR/ConstantRange.h" export * }
221 module IR_Dominators { header "IR/Dominators.h" export * }
222 module Analysis_PostDominators { header "Analysis/PostDominators.h" export * }
223 module Analysis_DomTreeUpdater { header "Analysis/DomTreeUpdater.h" export * }
224 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 * }
230 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"
236 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 * }
247 module * { export * }
249 // These are intended for (repeated) textual inclusion.
250 textual header "IR/DebugInfoFlags.def"
251 textual header "IR/Instruction.def"
252 textual header "IR/Metadata.def"
253 textual header "IR/Value.def"
254 textual header "IR/RuntimeLibcalls.def"
257 module LLVM_IRReader {
260 module * { export * }
263 module LLVM_LineEditor {
265 umbrella "LineEditor"
266 module * { export * }
272 module * { export * }
279 module * { export * }
281 textual header "MC/MCTargetOptionsCommandFlags.inc"
284 // Used by llvm-tblgen
285 module LLVM_MC_TableGen {
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 * }
297 module * { export * }
303 module * { export * }
306 module LLVM_ProfileData {
309 umbrella "ProfileData"
310 module * { export * }
312 textual header "ProfileData/InstrProfData.inc"
315 // FIXME: Mislayered?
316 module LLVM_Support_TargetRegistry {
318 header "Support/TargetRegistry.h"
322 module LLVM_TableGen {
325 module * { export * }
328 module LLVM_Transforms {
330 umbrella "Transforms"
331 module * { export * }
334 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
336 // A module covering ADT/ and Support/. These are intertwined and
337 // codependent, and notionally form a single module.
343 module * { export * }
350 module * { export * }
352 // Exclude these; they are fundamentally non-modular.
353 exclude header "Support/PluginLoader.h"
354 exclude header "Support/Solaris/sys/regset.h"
356 // These are intended for textual inclusion.
357 textual header "Support/ARMTargetParser.def"
358 textual header "Support/AArch64TargetParser.def"
359 textual header "Support/TargetOpcodes.def"
360 textual header "Support/X86TargetParser.def"
363 // This part of the module is usable from both C and C++ code.
365 header "Support/ConvertUTF.h"
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.
373 module LLVM_Support_DataTypes_Src {
374 header "llvm/Support/DataTypes.h"
378 module LLVM_WindowsManifest {
380 umbrella "WindowsManifest"
381 module * { export * }