diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
| commit | d8e91e46262bc44006913e6796843909f1ac7bcd (patch) | |
| tree | 7d0c143d9b38190e0fa0180805389da22cd834c5 /include/llvm/module.modulemap | |
| parent | b7eb8e35e481a74962664b63dfb09483b200209a (diff) | |
Notes
Diffstat (limited to 'include/llvm/module.modulemap')
| -rw-r--r-- | include/llvm/module.modulemap | 82 |
1 files changed, 68 insertions, 14 deletions
diff --git a/include/llvm/module.modulemap b/include/llvm/module.modulemap index 649cdf3b0a89..bcc12534ec85 100644 --- a/include/llvm/module.modulemap +++ b/include/llvm/module.modulemap @@ -7,7 +7,11 @@ module LLVM_Analysis { textual header "Analysis/TargetLibraryInfo.def" } -module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } } +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. @@ -27,14 +31,21 @@ module LLVM_Backend { textual header "CodeGen/CommandFlags.inc" textual header "CodeGen/DIEValue.def" } +} - module Target { - umbrella "Target" - module * { export * } - } +// FIXME: Make this as a submodule of LLVM_Backend again. +// Doing so causes a linker error in clang-format. +module LLVM_Backend_Target { + umbrella "Target" + module * { export * } +} + +module LLVM_Bitcode { + requires cplusplus + umbrella "Bitcode" + module * { export * } } -module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } } module LLVM_BinaryFormat { requires cplusplus @@ -52,6 +63,7 @@ module LLVM_BinaryFormat { textual header "BinaryFormat/ELFRelocs/i386.def" textual header "BinaryFormat/ELFRelocs/Lanai.def" textual header "BinaryFormat/ELFRelocs/Mips.def" + textual header "BinaryFormat/ELFRelocs/MSP430.def" textual header "BinaryFormat/ELFRelocs/PowerPC64.def" textual header "BinaryFormat/ELFRelocs/PowerPC.def" textual header "BinaryFormat/ELFRelocs/RISCV.def" @@ -59,9 +71,15 @@ module LLVM_BinaryFormat { textual header "BinaryFormat/ELFRelocs/SystemZ.def" textual header "BinaryFormat/ELFRelocs/x86_64.def" textual header "BinaryFormat/WasmRelocs.def" + textual header "BinaryFormat/MsgPack.def" } -module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } } +module LLVM_Config { + requires cplusplus + umbrella "Config" + extern module LLVM_Extern_Config_Def "module.extern.modulemap" + module * { export * } +} module LLVM_DebugInfo { requires cplusplus @@ -87,12 +105,14 @@ module LLVM_DebugInfo_PDB { // 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/DIAEnumFrameData.h" exclude header "DebugInfo/PDB/DIA/DIAEnumInjectedSources.h" exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h" exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h" exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h" exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h" exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h" + exclude header "DebugInfo/PDB/DIA/DIAFrameData.h" exclude header "DebugInfo/PDB/DIA/DIAInjectedSource.h" exclude header "DebugInfo/PDB/DIA/DIALineNumber.h" exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h" @@ -177,7 +197,11 @@ module LLVM_intrinsic_gen { // Attributes.h module IR_Argument { header "IR/Argument.h" export * } - module IR_Attributes { header "IR/Attributes.h" export * } + module IR_Attributes { + header "IR/Attributes.h" + extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap" + export * + } module IR_CallSite { header "IR/CallSite.h" export * } module IR_ConstantFolder { header "IR/ConstantFolder.h" export * } module IR_GlobalVariable { header "IR/GlobalVariable.h" export * } @@ -192,6 +216,7 @@ module LLVM_intrinsic_gen { // Intrinsics.h module IR_CFG { header "IR/CFG.h" export * } + module IR_CFGDiff { header "IR/CFGDiff.h" export * } module IR_ConstantRange { header "IR/ConstantRange.h" export * } module IR_Dominators { header "IR/Dominators.h" export * } module Analysis_PostDominators { header "Analysis/PostDominators.h" export * } @@ -202,7 +227,12 @@ module LLVM_intrinsic_gen { 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_Intrinsics { + header "IR/Intrinsics.h" + extern module LLVM_Extern_IR_Intricsics_Gen "module.extern.modulemap" + extern module LLVM_Extern_IR_Intrinsics_Enum "module.extern.modulemap" + 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 * } @@ -224,9 +254,23 @@ module LLVM_IR { textual header "IR/RuntimeLibcalls.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_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 @@ -253,7 +297,11 @@ module LLVM_Object { module * { export * } } -module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } } +module LLVM_Option { + requires cplusplus + umbrella "Option" + module * { export * } +} module LLVM_ProfileData { requires cplusplus @@ -271,7 +319,11 @@ module LLVM_Support_TargetRegistry { export * } -module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } } +module LLVM_TableGen { + requires cplusplus + umbrella "TableGen" + module * { export * } +} module LLVM_Transforms { requires cplusplus @@ -279,6 +331,8 @@ module LLVM_Transforms { module * { export * } } +extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap" + // A module covering ADT/ and Support/. These are intertwined and // codependent, and notionally form a single module. module LLVM_Utils { |
