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_DWARFLinker {
158 umbrella "DWARFLinker"
159 module * { export * }
162 module LLVM_ExecutionEngine {
165 umbrella "ExecutionEngine"
166 module * { export * }
168 // Exclude this; it's an optional component of the ExecutionEngine.
169 exclude header "ExecutionEngine/OProfileWrapper.h"
171 // Exclude these; they're intended to be included into only a single
172 // translation unit (or none) and aren't part of this module.
173 exclude header "ExecutionEngine/MCJIT.h"
174 exclude header "ExecutionEngine/Interpreter.h"
175 exclude header "ExecutionEngine/OrcMCJITReplacement.h"
177 // FIXME: These exclude directives were added as a workaround for
178 // <rdar://problem/29247092> and should be removed once it is fixed.
179 exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
180 exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
181 exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
182 exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
184 // Exclude headers from LLVM_OrcSupport.
185 exclude header "ExecutionEngine/Orc/OrcError.h"
186 exclude header "ExecutionEngine/Orc/RPC/RPCUtils.h"
187 exclude header "ExecutionEngine/Orc/RPC/RPCSerialization.h"
188 exclude header "ExecutionEngine/Orc/RPC/RawByteChannel.h"
192 // Orc utilities that don't depend only on Support (not ExecutionEngine or
193 // IR). This is a workaround for ExecutionEngine's broken layering, and will
194 // be removed in the future.
195 module LLVM_OrcSupport {
198 header "ExecutionEngine/Orc/OrcError.h"
199 header "ExecutionEngine/Orc/RPC/RPCUtils.h"
200 header "ExecutionEngine/Orc/RPC/RPCSerialization.h"
201 header "ExecutionEngine/Orc/RPC/RawByteChannel.h"
208 // PassSupport.h and PassAnalysisSupport.h are made available only through
211 header "PassSupport.h"
212 header "PassAnalysisSupport.h"
216 module PassRegistry { header "PassRegistry.h" export * }
217 module InitializePasses { header "InitializePasses.h" export * }
220 module LLVM_intrinsic_gen {
223 // Delay building the modules containing dependencies to Attributes.h and
224 // Intrinsics.h because they need to be generated by tablegen first.
227 module IR_Argument { header "IR/Argument.h" export * }
228 module IR_Attributes {
229 header "IR/Attributes.h"
230 extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
233 module IR_CallSite { header "IR/CallSite.h" export * }
234 module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
235 module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
236 module IR_NoFolder { header "IR/NoFolder.h" export * }
237 module IR_Module { header "IR/Module.h" export * }
238 module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
239 module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
240 module IR_Function { header "IR/Function.h" export * }
241 module IR_InstrTypes { header "IR/InstrTypes.h" export * }
242 module IR_Instructions { header "IR/Instructions.h" export * }
246 module IR_CFG { header "IR/CFG.h" export * }
247 module IR_CFGDiff { header "IR/CFGDiff.h" export * }
248 module IR_ConstantRange { header "IR/ConstantRange.h" export * }
249 module IR_Dominators { header "IR/Dominators.h" export * }
250 module Analysis_PostDominators { header "Analysis/PostDominators.h" export * }
251 module Analysis_DomTreeUpdater { header "Analysis/DomTreeUpdater.h" export * }
252 module IR_IRBuilder { header "IR/IRBuilder.h" export * }
253 module IR_PassManager { header "IR/PassManager.h" export * }
254 module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
255 module IR_Verifier { header "IR/Verifier.h" export * }
256 module IR_InstIterator { header "IR/InstIterator.h" export * }
257 module IR_InstVisitor { header "IR/InstVisitor.h" export * }
258 module IR_Intrinsics {
259 header "IR/Intrinsics.h"
260 extern module LLVM_Extern_IR_Intricsics_Gen "module.extern.modulemap"
261 extern module LLVM_Extern_IR_Intrinsics_Enum "module.extern.modulemap"
264 module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
265 module IR_PatternMatch { header "IR/PatternMatch.h" export * }
266 module IR_SafepointIRVerifier { header "IR/SafepointIRVerifier.h" export * }
267 module IR_Statepoint { header "IR/Statepoint.h" export * }
276 module * { export * }
278 // These are intended for (repeated) textual inclusion.
279 textual header "IR/ConstrainedOps.def"
280 textual header "IR/DebugInfoFlags.def"
281 textual header "IR/Instruction.def"
282 textual header "IR/Metadata.def"
283 textual header "IR/FixedMetadataKinds.def"
284 textual header "IR/Value.def"
285 textual header "IR/RuntimeLibcalls.def"
288 module LLVM_IRReader {
291 module * { export * }
294 module LLVM_LineEditor {
296 umbrella "LineEditor"
297 module * { export * }
303 module * { export * }
310 module * { export * }
312 textual header "MC/MCTargetOptionsCommandFlags.inc"
315 // Used by llvm-tblgen
316 module LLVM_MC_TableGen {
318 module MC_LaneBitmask { header "MC/LaneBitmask.h" export * }
319 module MC_FixedLenDisassembler { header "MC/MCFixedLenDisassembler.h" export * }
320 module MC_InstrItineraries { header "MC/MCInstrItineraries.h" export * }
321 module MC_Schedule { header "MC/MCSchedule.h" export * }
322 module MC_SubtargetFeature { header "MC/SubtargetFeature.h" export * }
328 module * { export * }
334 module * { export * }
337 module LLVM_ProfileData {
340 umbrella "ProfileData"
341 module * { export * }
343 textual header "ProfileData/InstrProfData.inc"
346 // FIXME: Mislayered?
347 module LLVM_Support_TargetRegistry {
349 header "Support/TargetRegistry.h"
353 module LLVM_TableGen {
356 module * { export * }
359 module LLVM_Transforms {
361 umbrella "Transforms"
363 module * { export * }
366 extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
368 // A module covering ADT/ and Support/. These are intertwined and
369 // codependent, and notionally form a single module.
375 module * { export * }
382 module * { export * }
384 // Exclude this; it should only be used on Windows.
385 exclude header "Support/Windows/WindowsSupport.h"
387 // Exclude these; they are fundamentally non-modular.
388 exclude header "Support/PluginLoader.h"
389 exclude header "Support/Solaris/sys/regset.h"
391 // These are intended for textual inclusion.
392 textual header "Support/ARMTargetParser.def"
393 textual header "Support/AArch64TargetParser.def"
394 textual header "Support/TargetOpcodes.def"
395 textual header "Support/X86TargetParser.def"
398 // This part of the module is usable from both C and C++ code.
400 header "Support/ConvertUTF.h"
405 // This is used for a $src == $build compilation. Otherwise we use
406 // LLVM_Support_DataTypes_Build, defined in a module map that is
407 // copied into the build area.
408 module LLVM_Support_DataTypes_Src {
409 header "llvm/Support/DataTypes.h"
413 module LLVM_WindowsManifest {
415 umbrella "WindowsManifest"
416 module * { export * }