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/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 {
49 module LLVM_Bitstream {
55 module LLVM_BinaryFormat {
57 umbrella "BinaryFormat" module * { export * }
58 textual header "BinaryFormat/Dwarf.def"
59 textual header "BinaryFormat/DynamicTags.def"
60 textual header "BinaryFormat/MachO.def"
61 textual header "BinaryFormat/MinidumpConstants.def"
62 textual header "BinaryFormat/ELFRelocs/AArch64.def"
63 textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
64 textual header "BinaryFormat/ELFRelocs/ARM.def"
65 textual header "BinaryFormat/ELFRelocs/ARC.def"
66 textual header "BinaryFormat/ELFRelocs/AVR.def"
67 textual header "BinaryFormat/ELFRelocs/BPF.def"
68 textual header "BinaryFormat/ELFRelocs/Hexagon.def"
69 textual header "BinaryFormat/ELFRelocs/i386.def"
70 textual header "BinaryFormat/ELFRelocs/Lanai.def"
71 textual header "BinaryFormat/ELFRelocs/Mips.def"
72 textual header "BinaryFormat/ELFRelocs/MSP430.def"
73 textual header "BinaryFormat/ELFRelocs/PowerPC64.def"
74 textual header "BinaryFormat/ELFRelocs/PowerPC.def"
75 textual header "BinaryFormat/ELFRelocs/RISCV.def"
76 textual header "BinaryFormat/ELFRelocs/Sparc.def"
77 textual header "BinaryFormat/ELFRelocs/SystemZ.def"
78 textual header "BinaryFormat/ELFRelocs/VE.def"
79 textual header "BinaryFormat/ELFRelocs/x86_64.def"
80 textual header "BinaryFormat/WasmRelocs.def"
81 textual header "BinaryFormat/MsgPack.def"
87 extern module LLVM_Extern_Config_Def "module.extern.modulemap"
91 module LLVM_DebugInfo {
93 module DIContext { header "DebugInfo/DIContext.h" export * }
96 module LLVM_DebugInfo_DWARF {
99 umbrella "DebugInfo/DWARF"
100 module * { export * }
103 module LLVM_DebugInfo_PDB {
106 umbrella "DebugInfo/PDB"
107 module * { export * }
109 // Separate out this subdirectory; it's an optional component that depends on
110 // a separate library which might not be available.
112 // FIXME: There should be a better way to specify this.
113 exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
114 exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
115 exclude header "DebugInfo/PDB/DIA/DIAEnumFrameData.h"
116 exclude header "DebugInfo/PDB/DIA/DIAEnumInjectedSources.h"
117 exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
118 exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h"
119 exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
120 exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
121 exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h"
122 exclude header "DebugInfo/PDB/DIA/DIAError.h"
123 exclude header "DebugInfo/PDB/DIA/DIAFrameData.h"
124 exclude header "DebugInfo/PDB/DIA/DIAInjectedSource.h"
125 exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
126 exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
127 exclude header "DebugInfo/PDB/DIA/DIASectionContrib.h"
128 exclude header "DebugInfo/PDB/DIA/DIASession.h"
129 exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
130 exclude header "DebugInfo/PDB/DIA/DIASupport.h"
131 exclude header "DebugInfo/PDB/DIA/DIATable.h"
132 exclude header "DebugInfo/PDB/DIA/DIAUtils.h"
135 module LLVM_DebugInfo_PDB_DIA {
138 umbrella "DebugInfo/PDB/DIA"
139 module * { export * }
142 module LLVM_DebugInfo_MSF {
145 umbrella "DebugInfo/MSF"
146 module * { export * }
149 module LLVM_DebugInfo_CodeView {
152 umbrella "DebugInfo/CodeView"
153 module * { export * }
155 // These are intended for (repeated) textual inclusion.
156 textual header "DebugInfo/CodeView/CodeViewRegisters.def"
157 textual header "DebugInfo/CodeView/CodeViewTypes.def"
158 textual header "DebugInfo/CodeView/CodeViewSymbols.def"
161 module LLVM_DWARFLinker {
164 umbrella "DWARFLinker"
165 module * { export * }
168 module LLVM_ExecutionEngine {
171 umbrella "ExecutionEngine"
172 module * { export * }
174 // Exclude this; it's an optional component of the ExecutionEngine.
175 exclude header "ExecutionEngine/OProfileWrapper.h"
177 // Exclude these; they're intended to be included into only a single
178 // translation unit (or none) and aren't part of this module.
179 exclude header "ExecutionEngine/MCJIT.h"
180 exclude header "ExecutionEngine/Interpreter.h"
181 exclude header "ExecutionEngine/OrcMCJITReplacement.h"
183 // FIXME: These exclude directives were added as a workaround for
184 // <rdar://problem/29247092> and should be removed once it is fixed.
185 exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
186 exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
187 exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
188 exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
190 // Exclude headers from LLVM_OrcSupport.
191 exclude header "ExecutionEngine/Orc/OrcError.h"
192 exclude header "ExecutionEngine/Orc/RPC/RPCUtils.h"
193 exclude header "ExecutionEngine/Orc/RPC/RPCSerialization.h"
194 exclude header "ExecutionEngine/Orc/RPC/RawByteChannel.h"
198 // Orc utilities that don't depend only on Support (not ExecutionEngine or
199 // IR). This is a workaround for ExecutionEngine's broken layering, and will
200 // be removed in the future.
201 module LLVM_OrcSupport {
204 header "ExecutionEngine/Orc/OrcError.h"
205 header "ExecutionEngine/Orc/RPC/RPCUtils.h"
206 header "ExecutionEngine/Orc/RPC/RPCSerialization.h"
207 header "ExecutionEngine/Orc/RPC/RawByteChannel.h"
214 // PassSupport.h and PassAnalysisSupport.h are made available only through
217 textual header "PassSupport.h"
218 textual header "PassAnalysisSupport.h"
222 module PassRegistry { header "PassRegistry.h" export * }
223 module InitializePasses { header "InitializePasses.h" export * }
226 module LLVM_intrinsic_gen {
229 // Delay building the modules containing dependencies to Attributes.h and
230 // Intrinsics.h because they need to be generated by tablegen first.
233 module IR_Argument { header "IR/Argument.h" export * }
234 module IR_Attributes {
235 header "IR/Attributes.h"
236 extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
239 module IR_AbstractCallSite { header "IR/AbstractCallSite.h" export * }
240 module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
241 module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
242 module IR_NoFolder { header "IR/NoFolder.h" export * }
243 module IRBuilderFolder { header "IR/IRBuilderFolder.h" export * }
244 module IR_Module { header "IR/Module.h" export * }
245 module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
246 module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
247 module IR_Function { header "IR/Function.h" export * }
248 module IR_InstrTypes { header "IR/InstrTypes.h" export * }
249 module IR_Instructions { header "IR/Instructions.h" export * }
253 module IR_CFG { header "IR/CFG.h" export * }
254 module IR_ConstantRange { header "IR/ConstantRange.h" export * }
255 module IR_Dominators { header "IR/Dominators.h" export * }
256 module Analysis_PostDominators { header "Analysis/PostDominators.h" export * }
257 module Analysis_DomTreeUpdater { header "Analysis/DomTreeUpdater.h" export * }
258 module IR_IRBuilder { header "IR/IRBuilder.h" export * }
259 module IR_IRPrintingPasses { header "IR/IRPrintingPasses.h" export * }
260 module IR_MatrixBuilder { header "IR/MatrixBuilder.h" export * }
261 module IR_PassManager { header "IR/PassManager.h" export * }
262 module IR_PassManagerImpl { header "IR/PassManagerImpl.h" export * }
263 module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
264 module IR_Verifier { header "IR/Verifier.h" export * }
265 module IR_InstIterator { header "IR/InstIterator.h" export * }
266 module IR_InstVisitor { header "IR/InstVisitor.h" export * }
267 module IR_Intrinsics {
268 header "IR/Intrinsics.h"
269 extern module LLVM_Extern_IR_Intricsics_Gen "module.extern.modulemap"
270 extern module LLVM_Extern_IR_Intrinsics_Enum "module.extern.modulemap"
273 module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
274 module IR_PatternMatch { header "IR/PatternMatch.h" export * }
275 module IR_SafepointIRVerifier { header "IR/SafepointIRVerifier.h" export * }
276 module IR_Statepoint { header "IR/Statepoint.h" export * }
285 module * { export * }
287 // These are intended for (repeated) textual inclusion.
288 textual header "IR/ConstrainedOps.def"
289 textual header "IR/DebugInfoFlags.def"
290 textual header "IR/Instruction.def"
291 textual header "IR/Metadata.def"
292 textual header "IR/FixedMetadataKinds.def"
293 textual header "IR/Value.def"
294 textual header "IR/VPIntrinsics.def"
295 textual header "IR/RuntimeLibcalls.def"
298 module LLVM_IRReader {
301 module * { export * }
304 module LLVM_LineEditor {
306 umbrella "LineEditor"
307 module * { export * }
313 module * { export * }
320 module * { export * }
323 // Used by llvm-tblgen
324 module LLVM_MC_TableGen {
326 module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
327 module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
328 module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
329 module MC_Schedule { header "MC/MCSchedule.h" export * }
330 module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
336 module * { export * }
342 module * { export * }
345 module LLVM_ProfileData {
348 umbrella "ProfileData"
349 module * { export * }
351 textual header "ProfileData/InstrProfData.inc"
354 // FIXME: Mislayered?
355 module LLVM_Support_TargetRegistry {
357 header "Support/TargetRegistry.h"
361 module LLVM_TableGen {
364 module * { export * }
367 module LLVM_Transforms {
369 umbrella "Transforms"
371 module * { export * }
374 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
376 // A module covering ADT/ and Support/. These are intertwined and
377 // codependent, and notionally form a single module.
383 module * { export * }
390 module * { export * }
392 // Exclude this; it should only be used on Windows.
393 exclude header "Support/Windows/WindowsSupport.h"
395 // Exclude these; they are fundamentally non-modular.
396 exclude header "Support/PluginLoader.h"
397 exclude header "Support/Solaris/sys/regset.h"
399 // These are intended for textual inclusion.
400 textual header "Support/AArch64TargetParser.def"
401 textual header "Support/ARMTargetParser.def"
402 textual header "Support/RISCVTargetParser.def"
403 textual header "Support/TargetOpcodes.def"
404 textual header "Support/X86TargetParser.def"
407 // This part of the module is usable from both C and C++ code.
409 header "Support/ConvertUTF.h"
414 // This is used for a $src == $build compilation. Otherwise we use
415 // LLVM_Support_DataTypes_Build, defined in a module map that is
416 // copied into the build area.
417 module LLVM_Support_DataTypes_Src {
418 header "llvm/Support/DataTypes.h"
422 module LLVM_WindowsManifest {
424 umbrella "WindowsManifest"
425 module * { export * }