6 // This is intended for (repeated) textual inclusion.
7 textual header "Analysis/TargetLibraryInfo.def"
8 textual header "Analysis/VecFuncs.def"
11 module LLVM_AsmParser {
17 // A module covering CodeGen/ and Target/. These are intertwined
18 // and codependent, and thus notionally form a single module.
26 // Exclude these; they're intended to be included into only a single
27 // translation unit (or none) and aren't part of this module.
28 exclude header "CodeGen/LinkAllAsmWriterComponents.h"
29 exclude header "CodeGen/LinkAllCodegenComponents.h"
31 // These are intended for (repeated) textual inclusion.
32 textual header "CodeGen/CommandFlags.inc"
33 textual header "CodeGen/DIEValue.def"
37 // FIXME: Make this as a submodule of LLVM_Backend again.
38 // Doing so causes a linker error in clang-format.
39 module LLVM_Backend_Target {
51 module LLVM_BinaryFormat {
53 umbrella "BinaryFormat" module * { export * }
54 textual header "BinaryFormat/Dwarf.def"
55 textual header "BinaryFormat/DynamicTags.def"
56 textual header "BinaryFormat/MachO.def"
57 textual header "BinaryFormat/MinidumpConstants.def"
58 textual header "BinaryFormat/ELFRelocs/AArch64.def"
59 textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
60 textual header "BinaryFormat/ELFRelocs/ARM.def"
61 textual header "BinaryFormat/ELFRelocs/ARC.def"
62 textual header "BinaryFormat/ELFRelocs/AVR.def"
63 textual header "BinaryFormat/ELFRelocs/BPF.def"
64 textual header "BinaryFormat/ELFRelocs/Hexagon.def"
65 textual header "BinaryFormat/ELFRelocs/i386.def"
66 textual header "BinaryFormat/ELFRelocs/Lanai.def"
67 textual header "BinaryFormat/ELFRelocs/Mips.def"
68 textual header "BinaryFormat/ELFRelocs/MSP430.def"
69 textual header "BinaryFormat/ELFRelocs/PowerPC64.def"
70 textual header "BinaryFormat/ELFRelocs/PowerPC.def"
71 textual header "BinaryFormat/ELFRelocs/RISCV.def"
72 textual header "BinaryFormat/ELFRelocs/Sparc.def"
73 textual header "BinaryFormat/ELFRelocs/SystemZ.def"
74 textual header "BinaryFormat/ELFRelocs/x86_64.def"
75 textual header "BinaryFormat/WasmRelocs.def"
76 textual header "BinaryFormat/MsgPack.def"
82 extern module LLVM_Extern_Config_Def "module.extern.modulemap"
86 module LLVM_DebugInfo {
88 module DIContext { header "DebugInfo/DIContext.h" export * }
91 module LLVM_DebugInfo_DWARF {
94 umbrella "DebugInfo/DWARF"
98 module LLVM_DebugInfo_PDB {
101 umbrella "DebugInfo/PDB"
102 module * { export * }
104 // Separate out this subdirectory; it's an optional component that depends on
105 // a separate library which might not be available.
107 // FIXME: There should be a better way to specify this.
108 exclude header "DebugInfo/PDB/DIA/DIADataStream.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"
112 exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
113 exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h"
114 exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
115 exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.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"
119 exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
120 exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
121 exclude header "DebugInfo/PDB/DIA/DIASectionContrib.h"
122 exclude header "DebugInfo/PDB/DIA/DIASession.h"
123 exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
124 exclude header "DebugInfo/PDB/DIA/DIASupport.h"
125 exclude header "DebugInfo/PDB/DIA/DIATable.h"
126 exclude header "DebugInfo/PDB/DIA/DIAUtils.h"
129 module LLVM_DebugInfo_PDB_DIA {
132 umbrella "DebugInfo/PDB/DIA"
133 module * { export * }
136 module LLVM_DebugInfo_MSF {
139 umbrella "DebugInfo/MSF"
140 module * { export * }
143 module LLVM_DebugInfo_CodeView {
146 umbrella "DebugInfo/CodeView"
147 module * { export * }
149 // These are intended for (repeated) textual inclusion.
150 textual header "DebugInfo/CodeView/CodeViewRegisters.def"
151 textual header "DebugInfo/CodeView/CodeViewTypes.def"
152 textual header "DebugInfo/CodeView/CodeViewSymbols.def"
155 module LLVM_ExecutionEngine {
158 umbrella "ExecutionEngine"
159 module * { export * }
161 // Exclude this; it's an optional component of the ExecutionEngine.
162 exclude header "ExecutionEngine/OProfileWrapper.h"
164 // Exclude these; they're intended to be included into only a single
165 // translation unit (or none) and aren't part of this module.
166 exclude header "ExecutionEngine/MCJIT.h"
167 exclude header "ExecutionEngine/Interpreter.h"
168 exclude header "ExecutionEngine/OrcMCJITReplacement.h"
170 // FIXME: These exclude directives were added as a workaround for
171 // <rdar://problem/29247092> and should be removed once it is fixed.
172 exclude header "ExecutionEngine/Orc/RawByteChannel.h"
173 exclude header "ExecutionEngine/Orc/RPCUtils.h"
174 exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
175 exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
176 exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
177 exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
182 // PassSupport.h and PassAnalysisSupport.h are made available only through
185 header "PassSupport.h"
186 header "PassAnalysisSupport.h"
190 module PassRegistry { header "PassRegistry.h" export * }
191 module InitializePasses { header "InitializePasses.h" export * }
194 module LLVM_intrinsic_gen {
197 // Delay building the modules containing dependencies to Attributes.h and
198 // Intrinsics.h because they need to be generated by tablegen first.
201 module IR_Argument { header "IR/Argument.h" export * }
202 module IR_Attributes {
203 header "IR/Attributes.h"
204 extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
207 module IR_CallSite { header "IR/CallSite.h" export * }
208 module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
209 module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
210 module IR_NoFolder { header "IR/NoFolder.h" export * }
211 module IR_Module { header "IR/Module.h" export * }
212 module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
213 module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
214 module IR_Function { header "IR/Function.h" export * }
215 module IR_InstrTypes { header "IR/InstrTypes.h" export * }
216 module IR_Instructions { header "IR/Instructions.h" export * }
220 module IR_CFG { header "IR/CFG.h" export * }
221 module IR_CFGDiff { header "IR/CFGDiff.h" export * }
222 module IR_ConstantRange { header "IR/ConstantRange.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 * }
226 module IR_IRBuilder { header "IR/IRBuilder.h" export * }
227 module IR_PassManager { header "IR/PassManager.h" export * }
228 module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
229 module IR_Verifier { header "IR/Verifier.h" export * }
230 module IR_InstIterator { header "IR/InstIterator.h" export * }
231 module IR_InstVisitor { header "IR/InstVisitor.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"
238 module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
239 module IR_PatternMatch { header "IR/PatternMatch.h" export * }
240 module IR_SafepointIRVerifier { header "IR/SafepointIRVerifier.h" export * }
241 module IR_Statepoint { header "IR/Statepoint.h" export * }
250 module * { export * }
252 // These are intended for (repeated) textual inclusion.
253 textual header "IR/DebugInfoFlags.def"
254 textual header "IR/Instruction.def"
255 textual header "IR/Metadata.def"
256 textual header "IR/FixedMetadataKinds.def"
257 textual header "IR/Value.def"
258 textual header "IR/RuntimeLibcalls.def"
261 module LLVM_IRReader {
264 module * { export * }
267 module LLVM_LineEditor {
269 umbrella "LineEditor"
270 module * { export * }
276 module * { export * }
283 module * { export * }
285 textual header "MC/MCTargetOptionsCommandFlags.inc"
288 // Used by llvm-tblgen
289 module LLVM_MC_TableGen {
291 module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
292 module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
293 module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
294 module MC_Schedule { header "MC/MCSchedule.h" export * }
295 module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
301 module * { export * }
307 module * { export * }
310 module LLVM_ProfileData {
313 umbrella "ProfileData"
314 module * { export * }
316 textual header "ProfileData/InstrProfData.inc"
319 // FIXME: Mislayered?
320 module LLVM_Support_TargetRegistry {
322 header "Support/TargetRegistry.h"
326 module LLVM_TableGen {
329 module * { export * }
332 module LLVM_Transforms {
334 umbrella "Transforms"
336 module * { export * }
339 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
341 // A module covering ADT/ and Support/. These are intertwined and
342 // codependent, and notionally form a single module.
348 module * { export * }
355 module * { export * }
357 // Exclude these; they are fundamentally non-modular.
358 exclude header "Support/PluginLoader.h"
359 exclude header "Support/Solaris/sys/regset.h"
361 // These are intended for textual inclusion.
362 textual header "Support/ARMTargetParser.def"
363 textual header "Support/AArch64TargetParser.def"
364 textual header "Support/TargetOpcodes.def"
365 textual header "Support/X86TargetParser.def"
368 // This part of the module is usable from both C and C++ code.
370 header "Support/ConvertUTF.h"
375 // This is used for a $src == $build compilation. Otherwise we use
376 // LLVM_Support_DataTypes_Build, defined in a module map that is
377 // copied into the build area.
378 module LLVM_Support_DataTypes_Src {
379 header "llvm/Support/DataTypes.h"
383 module LLVM_WindowsManifest {
385 umbrella "WindowsManifest"
386 module * { export * }