Home | History | Annotate | Download | only in llvm
      1 module LLVM_Analysis {
      2   requires cplusplus
      3   umbrella "Analysis"
      4   module * { export * }
      5 
      6   // This is intended for (repeated) textual inclusion.
      7   textual header "Analysis/TargetLibraryInfo.def"
      8 }
      9 
     10 module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } }
     11 
     12 // A module covering CodeGen/ and Target/. These are intertwined
     13 // and codependent, and thus notionally form a single module.
     14 module LLVM_Backend {
     15   requires cplusplus
     16 
     17   module CodeGen {
     18     umbrella "CodeGen"
     19     module * { export * }
     20 
     21     // Exclude these; they're intended to be included into only a single
     22     // translation unit (or none) and aren't part of this module.
     23     exclude header "CodeGen/CommandFlags.h"
     24     exclude header "CodeGen/LinkAllAsmWriterComponents.h"
     25     exclude header "CodeGen/LinkAllCodegenComponents.h"
     26 
     27     // These are intended for (repeated) textual inclusion.
     28     textual header "CodeGen/DIEValue.def"
     29   }
     30 
     31   module Target {
     32     umbrella "Target"
     33     module * { export * }
     34 
     35     // This is intended for (repeated) textual inclusion.
     36     textual header "Target/TargetOpcodes.def"
     37   }
     38 }
     39 
     40 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
     41 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
     42 
     43 module LLVM_DebugInfo {
     44   requires cplusplus
     45   module DIContext { header "DebugInfo/DIContext.h" export * }
     46 }
     47 
     48 module LLVM_DebugInfo_DWARF {
     49   requires cplusplus
     50 
     51   umbrella "DebugInfo/DWARF"
     52   module * { export * }
     53 }
     54 
     55 module LLVM_DebugInfo_PDB {
     56   requires cplusplus
     57 
     58   umbrella "DebugInfo/PDB"
     59   module * { export * }
     60 
     61   // Separate out this subdirectory; it's an optional component that depends on
     62   // a separate library which might not be available.
     63   //
     64   // FIXME: There should be a better way to specify this.
     65   exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
     66   exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
     67   exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
     68   exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
     69   exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
     70   exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
     71   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
     72   exclude header "DebugInfo/PDB/DIA/DIASession.h"
     73   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
     74   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
     75 }
     76 
     77 module LLVM_DebugInfo_PDB_DIA {
     78   requires cplusplus
     79 
     80   umbrella "DebugInfo/PDB/DIA"
     81   module * { export * }
     82 }
     83 
     84 module LLVM_DebugInfo_MSF {
     85   requires cplusplus
     86 
     87   umbrella "DebugInfo/MSF"
     88   module * { export * }
     89 }
     90 
     91 module LLVM_DebugInfo_CodeView {
     92   requires cplusplus
     93 
     94   umbrella "DebugInfo/CodeView"
     95   module * { export * }
     96 
     97   // These are intended for (repeated) textual inclusion.
     98   textual header "DebugInfo/CodeView/TypeRecords.def"
     99   textual header "DebugInfo/CodeView/CVSymbolTypes.def"
    100 }
    101 
    102 module LLVM_ExecutionEngine {
    103   requires cplusplus
    104 
    105   umbrella "ExecutionEngine"
    106   module * { export * }
    107 
    108   // Exclude this; it's an optional component of the ExecutionEngine.
    109   exclude header "ExecutionEngine/OProfileWrapper.h"
    110 
    111   // Exclude these; they're intended to be included into only a single
    112   // translation unit (or none) and aren't part of this module.
    113   exclude header "ExecutionEngine/MCJIT.h"
    114   exclude header "ExecutionEngine/Interpreter.h"
    115   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
    116 
    117   // FIXME: These exclude directives were added as a workaround for
    118   //        <rdar://problem/29247092> and should be removed once it is fixed.
    119   exclude header "ExecutionEngine/Orc/RawByteChannel.h"
    120   exclude header "ExecutionEngine/Orc/RPCUtils.h"
    121   exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
    122   exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
    123   exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
    124 }
    125 
    126 module LLVM_Pass {
    127   module Pass {
    128     // PassSupport.h and PassAnalysisSupport.h are made available only through
    129     // Pass.h.
    130     header "Pass.h"
    131     header "PassSupport.h"
    132     header "PassAnalysisSupport.h"
    133     export *
    134   }
    135 
    136   module PassRegistry { header "PassRegistry.h" export * }
    137   module InitializePasses { header "InitializePasses.h" export * }
    138 }
    139 
    140 module LLVM_intrinsic_gen {
    141   requires cplusplus
    142 
    143   // Delay building the modules containing dependencies to Attributes.h and
    144   // Intrinsics.h because they need to be generated by tablegen first.
    145 
    146   // Attributes.h
    147   module IR_Argument { header "IR/Argument.h" export * }
    148   module IR_Attributes { header "IR/Attributes.h" export * }
    149   module IR_CallSite { header "IR/CallSite.h" export * }
    150   module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
    151   module IR_NoFolder { header "IR/NoFolder.h" export * }
    152   module IR_Module { header "IR/Module.h" export * }
    153   module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
    154   module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
    155   module IR_Function { header "IR/Function.h" export * }
    156   module IR_InstrTypes { header "IR/InstrTypes.h" export * }
    157   module IR_Instructions { header "IR/Instructions.h" export * }
    158 
    159 
    160   // Intrinsics.h
    161   module IR_CFG { header "IR/CFG.h" export * }
    162   module IR_ConstantRange { header "IR/ConstantRange.h" export * }
    163   module IR_Dominators { header "IR/Dominators.h" export * }
    164   module IR_IRBuilder { header "IR/IRBuilder.h" export * }
    165   module IR_PassManager { header "IR/PassManager.h" export * }
    166   module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
    167   module IR_Verifier { header "IR/Verifier.h" export * }
    168   module IR_InstIterator { header "IR/InstIterator.h" export * }
    169   module IR_InstVisitor { header "IR/InstVisitor.h" export * }
    170   module IR_Intrinsics { header "IR/Intrinsics.h" export * }
    171   module IR_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
    172   module IR_PatternMatch { header "IR/PatternMatch.h" export * }
    173   module IR_Statepoint { header "IR/Statepoint.h" export * }
    174 
    175   export *
    176 }
    177 
    178 module LLVM_IR {
    179   requires cplusplus
    180 
    181   umbrella "IR"
    182   module * { export * }
    183 
    184   // These are intended for (repeated) textual inclusion.
    185   textual header "IR/DebugInfoFlags.def"
    186   textual header "IR/Instruction.def"
    187   textual header "IR/Metadata.def"
    188   textual header "IR/Value.def"
    189 }
    190 
    191 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
    192 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
    193 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
    194 
    195 module LLVM_MC {
    196   requires cplusplus
    197 
    198   // FIXME: Mislayered?
    199   module Support_TargetRegistry {
    200     header "Support/TargetRegistry.h"
    201     export *
    202   }
    203 
    204   umbrella "MC"
    205   module * { export * }
    206 
    207   // Exclude this; it's fundamentally non-modular.
    208   exclude header "MC/MCTargetOptionsCommandFlags.h"
    209 }
    210 
    211 module LLVM_Object {
    212   requires cplusplus
    213   umbrella "Object"
    214   module * { export * }
    215 }
    216 
    217 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
    218 
    219 module LLVM_ProfileData {
    220   requires cplusplus
    221 
    222   umbrella "ProfileData"
    223   module * { export * }
    224 
    225   textual header "ProfileData/InstrProfData.inc"
    226 }
    227 
    228 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
    229 
    230 module LLVM_Transforms {
    231   requires cplusplus
    232   umbrella "Transforms"
    233   module * { export * }
    234 }
    235 
    236 // A module covering ADT/ and Support/. These are intertwined and
    237 // codependent, and notionally form a single module.
    238 module LLVM_Utils {
    239   module ADT {
    240     requires cplusplus
    241 
    242     umbrella "ADT"
    243     module * { export * }
    244   }
    245 
    246   module Support {
    247     requires cplusplus
    248 
    249     umbrella "Support"
    250     module * { export * }
    251 
    252     // Exclude this; it's only included on Solaris.
    253     exclude header "Support/Solaris.h"
    254 
    255     // Exclude this; it's fundamentally non-modular.
    256     exclude header "Support/PluginLoader.h"
    257 
    258     // These are intended for textual inclusion.
    259     textual header "Support/ARMTargetParser.def"
    260     textual header "Support/AArch64TargetParser.def"
    261     textual header "Support/Dwarf.def"
    262     textual header "Support/MachO.def"
    263     textual header "Support/ELFRelocs/AArch64.def"
    264     textual header "Support/ELFRelocs/AMDGPU.def"
    265     textual header "Support/ELFRelocs/ARM.def"
    266     textual header "Support/ELFRelocs/AVR.def"
    267     textual header "Support/ELFRelocs/BPF.def"
    268     textual header "Support/ELFRelocs/Hexagon.def"
    269     textual header "Support/ELFRelocs/i386.def"
    270     textual header "Support/ELFRelocs/Lanai.def"
    271     textual header "Support/ELFRelocs/Mips.def"
    272     textual header "Support/ELFRelocs/PowerPC64.def"
    273     textual header "Support/ELFRelocs/PowerPC.def"
    274     textual header "Support/ELFRelocs/RISCV.def"
    275     textual header "Support/ELFRelocs/Sparc.def"
    276     textual header "Support/ELFRelocs/SystemZ.def"
    277     textual header "Support/ELFRelocs/x86_64.def"
    278     textual header "Support/ELFRelocs/WebAssembly.def"
    279     textual header "Support/WasmRelocs/WebAssembly.def"
    280   }
    281 
    282   // This part of the module is usable from both C and C++ code.
    283   module ConvertUTF {
    284     header "Support/ConvertUTF.h"
    285     export *
    286   }
    287 
    288   module LLVM_CodeGen_MachineValueType {
    289     requires cplusplus
    290     header "CodeGen/MachineValueType.h"
    291     export *
    292   }
    293 }
    294 
    295 // This is used for a $src == $build compilation. Otherwise we use
    296 // LLVM_Support_DataTypes_Build, defined in a module map that is
    297 // copied into the build area.
    298 module LLVM_Support_DataTypes_Src {
    299   header "llvm/Support/DataTypes.h"
    300   export *
    301 }
    302