llvm-6502/include/llvm/module.modulemap
Chandler Carruth 417c5c172c [PM] Remove the old 'PassManager.h' header file at the top level of
LLVM's include tree and the use of using declarations to hide the
'legacy' namespace for the old pass manager.

This undoes the primary modules-hostile change I made to keep
out-of-tree targets building. I sent an email inquiring about whether
this would be reasonable to do at this phase and people seemed fine with
it, so making it a reality. This should allow us to start bootstrapping
with modules to a certain extent along with making it easier to mix and
match headers in general.

The updates to any code for users of LLVM are very mechanical. Switch
from including "llvm/PassManager.h" to "llvm/IR/LegacyPassManager.h".
Qualify the types which now produce compile errors with "legacy::". The
most common ones are "PassManager", "PassManagerBase", and
"FunctionPassManager".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229094 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-13 10:01:29 +00:00

176 lines
5.2 KiB
Plaintext

module LLVM_Analysis {
requires cplusplus
umbrella "Analysis"
module * { export * }
exclude header "Analysis/BlockFrequencyInfoImpl.h"
}
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.
module LLVM_Backend {
requires cplusplus
module CodeGen {
umbrella "CodeGen"
module * { export * }
// FIXME: Why is this excluded?
exclude header "CodeGen/MachineValueType.h"
// Exclude these; they're intended to be included into only a single
// translation unit (or none) and aren't part of this module.
exclude header "CodeGen/CommandFlags.h"
exclude header "CodeGen/LinkAllAsmWriterComponents.h"
exclude header "CodeGen/LinkAllCodegenComponents.h"
}
module Target {
umbrella "Target"
module * { export * }
}
// FIXME: Where should this go?
module Analysis_BlockFrequencyInfoImpl {
header "Analysis/BlockFrequencyInfoImpl.h"
export *
}
}
module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
module LLVM_DebugInfo { requires cplusplus umbrella "DebugInfo" module * { export * } }
module LLVM_ExecutionEngine {
requires cplusplus
umbrella "ExecutionEngine"
module * { export * }
// Exclude this; it's an optional component of the ExecutionEngine.
exclude header "ExecutionEngine/OProfileWrapper.h"
// Exclude these; they're intended to be included into only a single
// translation unit (or none) and aren't part of this module.
exclude header "ExecutionEngine/JIT.h"
exclude header "ExecutionEngine/MCJIT.h"
exclude header "ExecutionEngine/Interpreter.h"
exclude header "ExecutionEngine/OrcMCJITReplacement.h"
}
module LLVM_IR {
requires cplusplus
// FIXME: Is this the right place for these?
module Pass { header "Pass.h" export * }
module PassSupport { header "PassSupport.h" export * }
module PassAnalysisSupport { header "PassAnalysisSupport.h" export * }
module PassRegistry { header "PassRegistry.h" export * }
module InitializePasses { header "InitializePasses.h" export * }
umbrella "IR"
module * { export * }
// These are intended for (repeated) textual inclusion.
textual header "IR/Instruction.def"
textual header "IR/Metadata.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_MC {
requires cplusplus
// FIXME: Mislayered?
module Support_TargetRegistry {
header "Support/TargetRegistry.h"
export *
}
umbrella "MC"
module * { export * }
// Exclude this; it's fundamentally non-modular.
exclude header "MC/MCTargetOptionsCommandFlags.h"
}
module LLVM_Object {
requires cplusplus
umbrella "Object"
module * { export * }
}
module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
module LLVM_Transforms {
requires cplusplus
umbrella "Transforms"
module * { export * }
// FIXME: Excluded because it does bad things with the legacy pass manager.
exclude header "Transforms/IPO/PassManagerBuilder.h"
}
// A module covering ADT/ and Support/. These are intertwined and
// codependent, and notionally form a single module.
module LLVM_Utils {
module ADT {
requires cplusplus
umbrella "ADT"
module * { export * }
}
module Support {
requires cplusplus
umbrella "Support"
module * { export * }
// Exclude this; it's only included on Solaris.
exclude header "Support/Solaris.h"
// Exclude this; it's only included on AIX and fundamentally non-modular.
exclude header "Support/AIXDataTypesFix.h"
// Exclude this; it's fundamentally non-modular.
exclude header "Support/PluginLoader.h"
// Exclude this; it's a weirdly-factored part of llvm-gcov and conflicts
// with the Analysis module (which also defines an llvm::GCOVOptions).
exclude header "Support/GCOV.h"
// FIXME: Mislayered?
exclude header "Support/TargetRegistry.h"
// These are intended for textual inclusion.
textual header "Support/ELFRelocs/AArch64.def"
textual header "Support/ELFRelocs/ARM.def"
textual header "Support/ELFRelocs/Hexagon.def"
textual header "Support/ELFRelocs/i386.def"
textual header "Support/ELFRelocs/Mips.def"
textual header "Support/ELFRelocs/PowerPC64.def"
textual header "Support/ELFRelocs/PowerPC.def"
textual header "Support/ELFRelocs/Sparc.def"
textual header "Support/ELFRelocs/SystemZ.def"
textual header "Support/ELFRelocs/x86_64.def"
}
}
module LLVM_CodeGen_MachineValueType {
requires cplusplus
header "CodeGen/MachineValueType.h"
export *
}
// This is used for a $src == $build compilation. Otherwise we use
// LLVM_Support_DataTypes_Build, defined in a module map that is
// copied into the build area.
module LLVM_Support_DataTypes_Src {
header "llvm/Support/DataTypes.h"
export *
}