Nuke MCAnalysis.
[oota-llvm.git] / include / llvm / module.modulemap
1 module LLVM_Analysis {
2   requires cplusplus
3   umbrella "Analysis"
4   module * { export * }
5   exclude header "Analysis/BlockFrequencyInfoImpl.h"
6 }
7
8 module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } }
9
10 // A module covering CodeGen/ and Target/. These are intertwined
11 // and codependent, and thus notionally form a single module.
12 module LLVM_Backend {
13   requires cplusplus
14
15   module CodeGen {
16     umbrella "CodeGen"
17     module * { export * }
18
19     // FIXME: Why is this excluded?
20     exclude header "CodeGen/MachineValueType.h"
21
22     // Exclude these; they're intended to be included into only a single
23     // translation unit (or none) and aren't part of this module.
24     exclude header "CodeGen/CommandFlags.h"
25     exclude header "CodeGen/LinkAllAsmWriterComponents.h"
26     exclude header "CodeGen/LinkAllCodegenComponents.h"
27   }
28
29   module Target {
30     umbrella "Target"
31     module * { export * }
32   }
33
34   // FIXME: Where should this go?
35   module Analysis_BlockFrequencyInfoImpl {
36     header "Analysis/BlockFrequencyInfoImpl.h"
37     export *
38   }
39 }
40
41 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
42 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
43 module LLVM_DebugInfo { requires cplusplus umbrella "DebugInfo" module * { export * } }
44 module LLVM_ExecutionEngine {
45   requires cplusplus
46
47   umbrella "ExecutionEngine"
48   module * { export * }
49
50   // Exclude this; it's an optional component of the ExecutionEngine.
51   exclude header "ExecutionEngine/OProfileWrapper.h"
52
53   // Exclude these; they're intended to be included into only a single
54   // translation unit (or none) and aren't part of this module.
55   exclude header "ExecutionEngine/JIT.h"
56   exclude header "ExecutionEngine/MCJIT.h"
57   exclude header "ExecutionEngine/Interpreter.h"
58 }
59
60 module LLVM_IR {
61   requires cplusplus
62
63   // FIXME: Is this the right place for these?
64   module Pass { header "Pass.h" export * }
65   module PassSupport { header "PassSupport.h" export * }
66   module PassAnalysisSupport { header "PassAnalysisSupport.h" export * }
67   module PassRegistry { header "PassRegistry.h" export * }
68   module InitializePasses { header "InitializePasses.h" export * }
69
70   umbrella "IR"
71   module * { export * }
72
73   // We cannot have llvm/PassManager.h and llvm/IR/PassManager.h in the same TU,
74   // so we can't include llvm/IR/PassManager.h in the IR module.
75   exclude header "IR/PassManager.h"
76   exclude header "IR/LegacyPassManager.h"
77
78   // Exclude this; it's intended for (repeated) textual inclusion.
79   exclude header "IR/Instruction.def"
80 }
81
82 module LLVM_LegacyPassManager {
83   requires cplusplus
84   module CompatInterface { header "PassManager.h" export * }
85   module Implementation { header "IR/LegacyPassManager.h" export * }
86 }
87
88 module LLVM_IR_PassManager {
89   requires cplusplus
90   // FIXME PR19358: This doesn't work! conflict LLVM_LegacyPassManager, "cannot use legacy pass manager and new pass manager in same file"
91   header "IR/PassManager.h"
92   export *
93 }
94
95 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
96 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
97 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
98
99 module LLVM_MC {
100   requires cplusplus
101
102   // FIXME: Mislayered?
103   module Support_TargetRegistry {
104     header "Support/TargetRegistry.h"
105     export *
106   }
107
108   umbrella "MC"
109   module * { export * }
110
111   // Exclude this; it's fundamentally non-modular.
112   exclude header "MC/MCTargetOptionsCommandFlags.h"
113 }
114
115 module LLVM_Object {
116   requires cplusplus
117   umbrella "Object"
118   module * { export * }
119 }
120
121 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
122 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
123
124 module LLVM_Transforms {
125   requires cplusplus
126   umbrella "Transforms"
127   module * { export * }
128
129   // FIXME: Excluded because it does bad things with the legacy pass manager.
130   exclude header "Transforms/IPO/PassManagerBuilder.h"
131 }
132
133 // A module covering ADT/ and Support/. These are intertwined and
134 // codependent, and notionally form a single module.
135 module LLVM_Utils {
136   module ADT {
137     requires cplusplus
138
139     umbrella "ADT"
140     module * { export * }
141   }
142
143   module Support {
144     requires cplusplus
145
146     umbrella "Support"
147     module * { export * }
148
149     // Exclude this; it's only included on Solaris.
150     exclude header "Support/Solaris.h"
151
152     // Exclude this; it's only included on AIX and fundamentally non-modular.
153     exclude header "Support/AIXDataTypesFix.h"
154
155     // Exclude this; it's fundamentally non-modular.
156     exclude header "Support/Debug.h"
157
158     // Exclude this; it's fundamentally non-modular.
159     exclude header "Support/PluginLoader.h"
160
161     // Exclude this; it's a weirdly-factored part of llvm-gcov and conflicts
162     // with the Analysis module (which also defines an llvm::GCOVOptions).
163     exclude header "Support/GCOV.h"
164
165     // FIXME: Mislayered?
166     exclude header "Support/TargetRegistry.h"
167   }
168 }
169
170 module LLVM_CodeGen_MachineValueType {
171   requires cplusplus
172   header "CodeGen/MachineValueType.h"
173   export *
174 }
175
176 // This is used for a $src == $build compilation. Otherwise we use
177 // LLVM_Support_DataTypes_Build, defined in a module map that is
178 // copied into the build area.
179 module LLVM_Support_DataTypes_Src {
180   header "llvm/Support/DataTypes.h"
181   export *
182 }