Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 1 | module LLVM_Analysis { |
| 2 | requires cplusplus |
| 3 | umbrella "Analysis" |
| 4 | module * { export * } |
Richard Smith | 85ef565 | 2015-03-06 23:39:54 +0000 | [diff] [blame] | 5 | |
Richard Smith | 85ef565 | 2015-03-06 23:39:54 +0000 | [diff] [blame] | 6 | // This is intended for (repeated) textual inclusion. |
| 7 | textual header "Analysis/TargetLibraryInfo.def" |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 8 | } |
| 9 | |
Adrian Prantl | e367eba | 2019-01-03 19:30:18 +0000 | [diff] [blame] | 10 | module LLVM_AsmParser { |
| 11 | requires cplusplus |
| 12 | umbrella "AsmParser" |
| 13 | module * { export * } |
| 14 | } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 15 | |
| 16 | // A module covering CodeGen/ and Target/. These are intertwined |
| 17 | // and codependent, and thus notionally form a single module. |
| 18 | module LLVM_Backend { |
| 19 | requires cplusplus |
| 20 | |
| 21 | module CodeGen { |
| 22 | umbrella "CodeGen" |
| 23 | module * { export * } |
| 24 | |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 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. |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 27 | exclude header "CodeGen/LinkAllAsmWriterComponents.h" |
| 28 | exclude header "CodeGen/LinkAllCodegenComponents.h" |
Duncan P. N. Exon Smith | 2648710 | 2015-06-16 00:43:52 +0000 | [diff] [blame] | 29 | |
| 30 | // These are intended for (repeated) textual inclusion. |
David Blaikie | 461bf52 | 2018-04-11 18:49:37 +0000 | [diff] [blame] | 31 | textual header "CodeGen/CommandFlags.inc" |
Duncan P. N. Exon Smith | 2648710 | 2015-06-16 00:43:52 +0000 | [diff] [blame] | 32 | textual header "CodeGen/DIEValue.def" |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 33 | } |
Adrian Prantl | ce64d36 | 2019-01-03 19:24:37 +0000 | [diff] [blame] | 34 | } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 35 | |
Adrian Prantl | ce64d36 | 2019-01-03 19:24:37 +0000 | [diff] [blame] | 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 { |
| 39 | umbrella "Target" |
| 40 | module * { export * } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 41 | } |
| 42 | |
Adrian Prantl | e367eba | 2019-01-03 19:30:18 +0000 | [diff] [blame] | 43 | module LLVM_Bitcode { |
| 44 | requires cplusplus |
| 45 | umbrella "Bitcode" |
| 46 | module * { export * } |
| 47 | } |
Eric Fiselier | 41609fe | 2017-06-07 17:16:25 +0000 | [diff] [blame] | 48 | |
Eric Fiselier | d715843 | 2018-11-21 20:46:50 +0000 | [diff] [blame] | 49 | |
Eric Fiselier | 41609fe | 2017-06-07 17:16:25 +0000 | [diff] [blame] | 50 | module LLVM_BinaryFormat { |
| 51 | requires cplusplus |
| 52 | umbrella "BinaryFormat" module * { export * } |
| 53 | textual header "BinaryFormat/Dwarf.def" |
Alexander Richardson | e132439 | 2018-03-21 14:17:50 +0000 | [diff] [blame] | 54 | textual header "BinaryFormat/DynamicTags.def" |
Eric Fiselier | 41609fe | 2017-06-07 17:16:25 +0000 | [diff] [blame] | 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" |
Leslie Zhai | 07192e9 | 2017-09-13 01:49:49 +0000 | [diff] [blame] | 59 | textual header "BinaryFormat/ELFRelocs/ARC.def" |
Eric Fiselier | 41609fe | 2017-06-07 17:16:25 +0000 | [diff] [blame] | 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" |
Anton Korobeynikov | 695940b | 2018-11-15 12:29:43 +0000 | [diff] [blame] | 66 | textual header "BinaryFormat/ELFRelocs/MSP430.def" |
Eric Fiselier | 41609fe | 2017-06-07 17:16:25 +0000 | [diff] [blame] | 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" |
Sam Clegg | ead036a | 2017-12-21 03:16:34 +0000 | [diff] [blame] | 73 | textual header "BinaryFormat/WasmRelocs.def" |
David Blaikie | 648e7fb | 2018-08-23 02:01:30 +0000 | [diff] [blame] | 74 | textual header "BinaryFormat/MsgPack.def" |
Eric Fiselier | 41609fe | 2017-06-07 17:16:25 +0000 | [diff] [blame] | 75 | } |
| 76 | |
Eric Fiselier | d715843 | 2018-11-21 20:46:50 +0000 | [diff] [blame] | 77 | module LLVM_Config { |
| 78 | requires cplusplus |
| 79 | umbrella "Config" |
| 80 | extern module LLVM_Extern_Config_Def "module.extern.modulemap" |
| 81 | module * { export * } |
| 82 | } |
Richard Smith | ef126cd | 2015-02-14 00:47:20 +0000 | [diff] [blame] | 83 | |
Richard Smith | 04df402 | 2015-04-23 23:22:26 +0000 | [diff] [blame] | 84 | module LLVM_DebugInfo { |
| 85 | requires cplusplus |
| 86 | module DIContext { header "DebugInfo/DIContext.h" export * } |
| 87 | } |
| 88 | |
Richard Smith | ef126cd | 2015-02-14 00:47:20 +0000 | [diff] [blame] | 89 | module LLVM_DebugInfo_DWARF { |
| 90 | requires cplusplus |
| 91 | |
| 92 | umbrella "DebugInfo/DWARF" |
| 93 | module * { export * } |
| 94 | } |
| 95 | |
| 96 | module LLVM_DebugInfo_PDB { |
| 97 | requires cplusplus |
| 98 | |
| 99 | umbrella "DebugInfo/PDB" |
| 100 | module * { export * } |
Richard Smith | 680fffd | 2015-02-14 05:54:56 +0000 | [diff] [blame] | 101 | |
| 102 | // Separate out this subdirectory; it's an optional component that depends on |
| 103 | // a separate library which might not be available. |
| 104 | // |
| 105 | // FIXME: There should be a better way to specify this. |
Richard Smith | 40053ce | 2015-02-18 00:21:45 +0000 | [diff] [blame] | 106 | exclude header "DebugInfo/PDB/DIA/DIADataStream.h" |
| 107 | exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h" |
Aleksandr Urakov | 8e47a8d | 2018-10-23 08:15:00 +0000 | [diff] [blame] | 108 | exclude header "DebugInfo/PDB/DIA/DIAEnumFrameData.h" |
Zachary Turner | fc9466d | 2018-03-13 20:16:37 +0000 | [diff] [blame] | 109 | exclude header "DebugInfo/PDB/DIA/DIAEnumInjectedSources.h" |
Richard Smith | 40053ce | 2015-02-18 00:21:45 +0000 | [diff] [blame] | 110 | exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h" |
Aaron Smith | b360e56 | 2018-03-22 04:08:15 +0000 | [diff] [blame] | 111 | exclude header "DebugInfo/PDB/DIA/DIAEnumSectionContribs.h" |
Richard Smith | 40053ce | 2015-02-18 00:21:45 +0000 | [diff] [blame] | 112 | exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h" |
| 113 | exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h" |
Aaron Smith | 69def8d | 2017-11-16 17:24:49 +0000 | [diff] [blame] | 114 | exclude header "DebugInfo/PDB/DIA/DIAEnumTables.h" |
Aleksandr Urakov | 8e47a8d | 2018-10-23 08:15:00 +0000 | [diff] [blame] | 115 | exclude header "DebugInfo/PDB/DIA/DIAFrameData.h" |
Zachary Turner | fc9466d | 2018-03-13 20:16:37 +0000 | [diff] [blame] | 116 | exclude header "DebugInfo/PDB/DIA/DIAInjectedSource.h" |
Richard Smith | 40053ce | 2015-02-18 00:21:45 +0000 | [diff] [blame] | 117 | exclude header "DebugInfo/PDB/DIA/DIALineNumber.h" |
| 118 | exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h" |
Aaron Smith | b360e56 | 2018-03-22 04:08:15 +0000 | [diff] [blame] | 119 | exclude header "DebugInfo/PDB/DIA/DIASectionContrib.h" |
Richard Smith | 40053ce | 2015-02-18 00:21:45 +0000 | [diff] [blame] | 120 | exclude header "DebugInfo/PDB/DIA/DIASession.h" |
| 121 | exclude header "DebugInfo/PDB/DIA/DIASourceFile.h" |
| 122 | exclude header "DebugInfo/PDB/DIA/DIASupport.h" |
Aaron Smith | 69def8d | 2017-11-16 17:24:49 +0000 | [diff] [blame] | 123 | exclude header "DebugInfo/PDB/DIA/DIATable.h" |
Zachary Turner | fc9466d | 2018-03-13 20:16:37 +0000 | [diff] [blame] | 124 | exclude header "DebugInfo/PDB/DIA/DIAUtils.h" |
Richard Smith | ef126cd | 2015-02-14 00:47:20 +0000 | [diff] [blame] | 125 | } |
| 126 | |
Richard Smith | ef126cd | 2015-02-14 00:47:20 +0000 | [diff] [blame] | 127 | module LLVM_DebugInfo_PDB_DIA { |
| 128 | requires cplusplus |
| 129 | |
| 130 | umbrella "DebugInfo/PDB/DIA" |
| 131 | module * { export * } |
| 132 | } |
| 133 | |
Benjamin Kramer | 4b6011e | 2016-07-30 12:05:17 +0000 | [diff] [blame] | 134 | module LLVM_DebugInfo_MSF { |
Zachary Turner | 731237c | 2016-07-25 18:18:59 +0000 | [diff] [blame] | 135 | requires cplusplus |
Benjamin Kramer | 4b6011e | 2016-07-30 12:05:17 +0000 | [diff] [blame] | 136 | |
| 137 | umbrella "DebugInfo/MSF" |
Zachary Turner | 731237c | 2016-07-25 18:18:59 +0000 | [diff] [blame] | 138 | module * { export * } |
| 139 | } |
| 140 | |
Adrian Prantl | 5e7e598 | 2016-07-01 15:54:46 +0000 | [diff] [blame] | 141 | module LLVM_DebugInfo_CodeView { |
| 142 | requires cplusplus |
| 143 | |
| 144 | umbrella "DebugInfo/CodeView" |
| 145 | module * { export * } |
| 146 | |
| 147 | // These are intended for (repeated) textual inclusion. |
Hans Wennborg | 0f3480d | 2017-10-03 18:27:22 +0000 | [diff] [blame] | 148 | textual header "DebugInfo/CodeView/CodeViewRegisters.def" |
Vedant Kumar | 4fb2b26 | 2017-05-31 01:08:43 +0000 | [diff] [blame] | 149 | textual header "DebugInfo/CodeView/CodeViewTypes.def" |
| 150 | textual header "DebugInfo/CodeView/CodeViewSymbols.def" |
Adrian Prantl | 5e7e598 | 2016-07-01 15:54:46 +0000 | [diff] [blame] | 151 | } |
| 152 | |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 153 | module LLVM_ExecutionEngine { |
| 154 | requires cplusplus |
| 155 | |
| 156 | umbrella "ExecutionEngine" |
| 157 | module * { export * } |
| 158 | |
| 159 | // Exclude this; it's an optional component of the ExecutionEngine. |
| 160 | exclude header "ExecutionEngine/OProfileWrapper.h" |
| 161 | |
| 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. |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 164 | exclude header "ExecutionEngine/MCJIT.h" |
| 165 | exclude header "ExecutionEngine/Interpreter.h" |
Richard Smith | 104a21d | 2015-01-24 01:55:52 +0000 | [diff] [blame] | 166 | exclude header "ExecutionEngine/OrcMCJITReplacement.h" |
Lang Hames | e95f35e | 2016-11-15 02:14:57 +0000 | [diff] [blame] | 167 | |
| 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" |
Lang Hames | f8e261b | 2017-09-05 04:31:14 +0000 | [diff] [blame] | 175 | exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h" |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 176 | } |
| 177 | |
Vassil Vassilev | 9ddfbe4 | 2016-06-16 08:00:29 +0000 | [diff] [blame] | 178 | module LLVM_Pass { |
| 179 | module Pass { |
| 180 | // PassSupport.h and PassAnalysisSupport.h are made available only through |
| 181 | // Pass.h. |
| 182 | header "Pass.h" |
| 183 | header "PassSupport.h" |
| 184 | header "PassAnalysisSupport.h" |
| 185 | export * |
| 186 | } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 187 | |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 188 | module PassRegistry { header "PassRegistry.h" export * } |
| 189 | module InitializePasses { header "InitializePasses.h" export * } |
Vassil Vassilev | 9ddfbe4 | 2016-06-16 08:00:29 +0000 | [diff] [blame] | 190 | } |
| 191 | |
Vassil Vassilev | 0863671 | 2016-06-28 12:27:09 +0000 | [diff] [blame] | 192 | module LLVM_intrinsic_gen { |
| 193 | requires cplusplus |
| 194 | |
| 195 | // Delay building the modules containing dependencies to Attributes.h and |
| 196 | // Intrinsics.h because they need to be generated by tablegen first. |
| 197 | |
| 198 | // Attributes.h |
| 199 | module IR_Argument { header "IR/Argument.h" export * } |
Eric Fiselier | d715843 | 2018-11-21 20:46:50 +0000 | [diff] [blame] | 200 | module IR_Attributes { |
| 201 | header "IR/Attributes.h" |
| 202 | extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap" |
| 203 | export * |
| 204 | } |
Vassil Vassilev | 0863671 | 2016-06-28 12:27:09 +0000 | [diff] [blame] | 205 | module IR_CallSite { header "IR/CallSite.h" export * } |
| 206 | module IR_ConstantFolder { header "IR/ConstantFolder.h" export * } |
Tim Northover | 63e43bc | 2017-05-11 14:51:43 +0000 | [diff] [blame] | 207 | module IR_GlobalVariable { header "IR/GlobalVariable.h" export * } |
Vassil Vassilev | 0863671 | 2016-06-28 12:27:09 +0000 | [diff] [blame] | 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 * } |
Peter Collingbourne | 87a1420 | 2017-01-05 04:40:09 +0000 | [diff] [blame] | 211 | module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * } |
Vassil Vassilev | 0863671 | 2016-06-28 12:27:09 +0000 | [diff] [blame] | 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 * } |
| 215 | |
| 216 | |
| 217 | // Intrinsics.h |
| 218 | module IR_CFG { header "IR/CFG.h" export * } |
Alina Sbirlea | 5c7c276 | 2018-08-14 20:49:19 +0000 | [diff] [blame] | 219 | module IR_CFGDiff { header "IR/CFGDiff.h" export * } |
Vassil Vassilev | 0863671 | 2016-06-28 12:27:09 +0000 | [diff] [blame] | 220 | module IR_ConstantRange { header "IR/ConstantRange.h" export * } |
| 221 | module IR_Dominators { header "IR/Dominators.h" export * } |
Jakub Kuderski | 57fa5c9 | 2018-07-03 02:06:23 +0000 | [diff] [blame] | 222 | module Analysis_PostDominators { header "Analysis/PostDominators.h" export * } |
| 223 | module IR_DomTreeUpdater { header "IR/DomTreeUpdater.h" export * } |
Vassil Vassilev | 0863671 | 2016-06-28 12:27:09 +0000 | [diff] [blame] | 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 * } |
Eric Fiselier | d715843 | 2018-11-21 20:46:50 +0000 | [diff] [blame] | 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" |
| 234 | export * |
| 235 | } |
Vassil Vassilev | 0863671 | 2016-06-28 12:27:09 +0000 | [diff] [blame] | 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 * } |
| 239 | |
| 240 | export * |
| 241 | } |
| 242 | |
Vassil Vassilev | 9ddfbe4 | 2016-06-16 08:00:29 +0000 | [diff] [blame] | 243 | module LLVM_IR { |
| 244 | requires cplusplus |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 245 | |
| 246 | umbrella "IR" |
| 247 | module * { export * } |
| 248 | |
Richard Smith | d948b98 | 2014-12-12 02:25:18 +0000 | [diff] [blame] | 249 | // These are intended for (repeated) textual inclusion. |
Richard Smith | 2013f8f | 2015-02-25 01:44:09 +0000 | [diff] [blame] | 250 | textual header "IR/DebugInfoFlags.def" |
Richard Smith | e2fc38a | 2014-11-26 03:44:47 +0000 | [diff] [blame] | 251 | textual header "IR/Instruction.def" |
Richard Smith | d948b98 | 2014-12-12 02:25:18 +0000 | [diff] [blame] | 252 | textual header "IR/Metadata.def" |
Benjamin Kramer | 78c5b7f | 2015-06-26 20:16:44 +0000 | [diff] [blame] | 253 | textual header "IR/Value.def" |
Peter Collingbourne | 5df3f9e | 2018-07-24 19:34:37 +0000 | [diff] [blame] | 254 | textual header "IR/RuntimeLibcalls.def" |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 255 | } |
| 256 | |
Adrian Prantl | e367eba | 2019-01-03 19:30:18 +0000 | [diff] [blame] | 257 | module LLVM_IRReader { |
| 258 | requires cplusplus |
| 259 | umbrella "IRReader" |
| 260 | module * { export * } |
| 261 | } |
| 262 | |
| 263 | module LLVM_LineEditor { |
| 264 | requires cplusplus |
| 265 | umbrella "LineEditor" |
| 266 | module * { export * } |
| 267 | } |
| 268 | |
| 269 | module LLVM_LTO { |
| 270 | requires cplusplus |
| 271 | umbrella "LTO" |
| 272 | module * { export * } |
| 273 | } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 274 | |
| 275 | module LLVM_MC { |
| 276 | requires cplusplus |
| 277 | |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 278 | umbrella "MC" |
| 279 | module * { export * } |
| 280 | |
David Blaikie | 461bf52 | 2018-04-11 18:49:37 +0000 | [diff] [blame] | 281 | textual header "MC/MCTargetOptionsCommandFlags.inc" |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 282 | } |
| 283 | |
NAKAMURA Takumi | 7c1fbc0 | 2017-10-11 11:08:52 +0000 | [diff] [blame] | 284 | // Used by llvm-tblgen |
| 285 | module LLVM_MC_TableGen { |
| 286 | requires cplusplus |
| 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 * } |
| 292 | } |
| 293 | |
Richard Smith | df6b3e5 | 2014-07-26 01:10:32 +0000 | [diff] [blame] | 294 | module LLVM_Object { |
| 295 | requires cplusplus |
| 296 | umbrella "Object" |
| 297 | module * { export * } |
Richard Smith | df6b3e5 | 2014-07-26 01:10:32 +0000 | [diff] [blame] | 298 | } |
| 299 | |
Adrian Prantl | e367eba | 2019-01-03 19:30:18 +0000 | [diff] [blame] | 300 | module LLVM_Option { |
| 301 | requires cplusplus |
| 302 | umbrella "Option" |
| 303 | module * { export * } |
| 304 | } |
Teresa Johnson | 2b1c1c1 | 2016-07-13 20:19:09 +0000 | [diff] [blame] | 305 | |
| 306 | module LLVM_ProfileData { |
| 307 | requires cplusplus |
| 308 | |
| 309 | umbrella "ProfileData" |
| 310 | module * { export * } |
Teresa Johnson | ba51593 | 2016-07-13 21:27:51 +0000 | [diff] [blame] | 311 | |
| 312 | textual header "ProfileData/InstrProfData.inc" |
Teresa Johnson | 2b1c1c1 | 2016-07-13 20:19:09 +0000 | [diff] [blame] | 313 | } |
| 314 | |
NAKAMURA Takumi | 933d4a5 | 2017-10-11 11:08:50 +0000 | [diff] [blame] | 315 | // FIXME: Mislayered? |
| 316 | module LLVM_Support_TargetRegistry { |
| 317 | requires cplusplus |
| 318 | header "Support/TargetRegistry.h" |
| 319 | export * |
| 320 | } |
| 321 | |
Adrian Prantl | e367eba | 2019-01-03 19:30:18 +0000 | [diff] [blame] | 322 | module LLVM_TableGen { |
| 323 | requires cplusplus |
| 324 | umbrella "TableGen" |
| 325 | module * { export * } |
| 326 | } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 327 | |
| 328 | module LLVM_Transforms { |
| 329 | requires cplusplus |
| 330 | umbrella "Transforms" |
| 331 | module * { export * } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 332 | } |
| 333 | |
Eric Fiselier | d715843 | 2018-11-21 20:46:50 +0000 | [diff] [blame] | 334 | extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap" |
| 335 | |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 336 | // A module covering ADT/ and Support/. These are intertwined and |
| 337 | // codependent, and notionally form a single module. |
| 338 | module LLVM_Utils { |
| 339 | module ADT { |
| 340 | requires cplusplus |
| 341 | |
| 342 | umbrella "ADT" |
| 343 | module * { export * } |
| 344 | } |
| 345 | |
| 346 | module Support { |
| 347 | requires cplusplus |
| 348 | |
| 349 | umbrella "Support" |
| 350 | module * { export * } |
| 351 | |
Kamil Rytarowski | 14b319c | 2017-06-22 21:28:48 +0000 | [diff] [blame] | 352 | // Exclude these; they are fundamentally non-modular. |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 353 | exclude header "Support/PluginLoader.h" |
Kamil Rytarowski | 14b319c | 2017-06-22 21:28:48 +0000 | [diff] [blame] | 354 | exclude header "Support/Solaris/sys/regset.h" |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 355 | |
Richard Smith | e2fc38a | 2014-11-26 03:44:47 +0000 | [diff] [blame] | 356 | // These are intended for textual inclusion. |
Richard Smith | 4f84072 | 2015-09-10 23:30:27 +0000 | [diff] [blame] | 357 | textual header "Support/ARMTargetParser.def" |
Richard Smith | baaf0f7 | 2016-05-26 20:13:50 +0000 | [diff] [blame] | 358 | textual header "Support/AArch64TargetParser.def" |
David Blaikie | b933411 | 2018-03-23 23:58:27 +0000 | [diff] [blame] | 359 | textual header "Support/TargetOpcodes.def" |
NAKAMURA Takumi | b99884c | 2017-11-11 02:05:47 +0000 | [diff] [blame] | 360 | textual header "Support/X86TargetParser.def" |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 361 | } |
Richard Smith | a6f58ad | 2015-09-11 03:14:00 +0000 | [diff] [blame] | 362 | |
| 363 | // This part of the module is usable from both C and C++ code. |
| 364 | module ConvertUTF { |
| 365 | header "Support/ConvertUTF.h" |
| 366 | export * |
| 367 | } |
Richard Smith | 651f680 | 2014-05-21 02:46:14 +0000 | [diff] [blame] | 368 | } |
| 369 | |
| 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" |
| 375 | export * |
| 376 | } |
Eric Beckmann | f74bed2 | 2017-07-26 01:21:55 +0000 | [diff] [blame] | 377 | |
| 378 | module LLVM_WindowsManifest { |
| 379 | requires cplusplus |
| 380 | umbrella "WindowsManifest" |
| 381 | module * { export * } |
| 382 | } |