2014-05-21 04:46:14 +02:00
|
|
|
module LLVM_Analysis {
|
|
|
|
requires cplusplus
|
|
|
|
umbrella "Analysis"
|
|
|
|
module * { export * }
|
2015-03-07 00:39:54 +01:00
|
|
|
|
|
|
|
// This is intended for (repeated) textual inclusion.
|
|
|
|
textual header "Analysis/TargetLibraryInfo.def"
|
2014-05-21 04:46:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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 * }
|
|
|
|
|
|
|
|
// 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"
|
2017-07-04 18:29:38 +02:00
|
|
|
exclude header "CodeGen/GlobalISel/InstructionSelectorImpl.h"
|
2015-06-16 02:43:52 +02:00
|
|
|
|
|
|
|
// These are intended for (repeated) textual inclusion.
|
|
|
|
textual header "CodeGen/DIEValue.def"
|
2017-07-20 01:15:29 +02:00
|
|
|
textual header "CodeGen/RuntimeLibcalls.def"
|
2014-05-21 04:46:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module Target {
|
|
|
|
umbrella "Target"
|
|
|
|
module * { export * }
|
2016-02-09 02:35:45 +01:00
|
|
|
|
|
|
|
// This is intended for (repeated) textual inclusion.
|
|
|
|
textual header "Target/TargetOpcodes.def"
|
2014-05-21 04:46:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
|
2017-06-07 19:16:25 +02:00
|
|
|
|
|
|
|
module LLVM_BinaryFormat {
|
|
|
|
requires cplusplus
|
|
|
|
umbrella "BinaryFormat" module * { export * }
|
|
|
|
textual header "BinaryFormat/Dwarf.def"
|
|
|
|
textual header "BinaryFormat/MachO.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/AArch64.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/AMDGPU.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/ARM.def"
|
2017-09-13 03:49:49 +02:00
|
|
|
textual header "BinaryFormat/ELFRelocs/ARC.def"
|
2017-06-07 19:16:25 +02:00
|
|
|
textual header "BinaryFormat/ELFRelocs/AVR.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/BPF.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/Hexagon.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/i386.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/Lanai.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/Mips.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/PowerPC64.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/PowerPC.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/RISCV.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/Sparc.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/SystemZ.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/x86_64.def"
|
|
|
|
textual header "BinaryFormat/ELFRelocs/WebAssembly.def"
|
|
|
|
textual header "BinaryFormat/WasmRelocs/WebAssembly.def"
|
|
|
|
}
|
|
|
|
|
2014-05-21 04:46:14 +02:00
|
|
|
module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
|
2015-04-24 01:22:26 +02:00
|
|
|
|
|
|
|
module LLVM_DebugInfo {
|
|
|
|
requires cplusplus
|
|
|
|
module DIContext { header "DebugInfo/DIContext.h" export * }
|
|
|
|
}
|
2015-02-14 01:47:20 +01:00
|
|
|
|
|
|
|
module LLVM_DebugInfo_DWARF {
|
|
|
|
requires cplusplus
|
|
|
|
|
|
|
|
umbrella "DebugInfo/DWARF"
|
|
|
|
module * { export * }
|
|
|
|
}
|
|
|
|
|
|
|
|
module LLVM_DebugInfo_PDB {
|
|
|
|
requires cplusplus
|
|
|
|
|
|
|
|
umbrella "DebugInfo/PDB"
|
|
|
|
module * { export * }
|
2015-02-14 06:54:56 +01:00
|
|
|
|
|
|
|
// Separate out this subdirectory; it's an optional component that depends on
|
|
|
|
// a separate library which might not be available.
|
|
|
|
//
|
|
|
|
// FIXME: There should be a better way to specify this.
|
2015-02-18 01:21:45 +01:00
|
|
|
exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIASession.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
|
|
|
|
exclude header "DebugInfo/PDB/DIA/DIASupport.h"
|
2015-02-14 01:47:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module LLVM_DebugInfo_PDB_DIA {
|
|
|
|
requires cplusplus
|
|
|
|
|
|
|
|
umbrella "DebugInfo/PDB/DIA"
|
|
|
|
module * { export * }
|
|
|
|
}
|
|
|
|
|
2016-07-30 14:05:17 +02:00
|
|
|
module LLVM_DebugInfo_MSF {
|
2016-07-25 20:18:59 +02:00
|
|
|
requires cplusplus
|
2016-07-30 14:05:17 +02:00
|
|
|
|
|
|
|
umbrella "DebugInfo/MSF"
|
2016-07-25 20:18:59 +02:00
|
|
|
module * { export * }
|
|
|
|
}
|
|
|
|
|
2016-07-01 17:54:46 +02:00
|
|
|
module LLVM_DebugInfo_CodeView {
|
|
|
|
requires cplusplus
|
|
|
|
|
|
|
|
umbrella "DebugInfo/CodeView"
|
|
|
|
module * { export * }
|
|
|
|
|
|
|
|
// These are intended for (repeated) textual inclusion.
|
2017-10-03 20:27:22 +02:00
|
|
|
textual header "DebugInfo/CodeView/CodeViewRegisters.def"
|
2017-05-31 03:08:43 +02:00
|
|
|
textual header "DebugInfo/CodeView/CodeViewTypes.def"
|
|
|
|
textual header "DebugInfo/CodeView/CodeViewSymbols.def"
|
2016-07-01 17:54:46 +02:00
|
|
|
}
|
|
|
|
|
2014-05-21 04:46:14 +02:00
|
|
|
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/MCJIT.h"
|
|
|
|
exclude header "ExecutionEngine/Interpreter.h"
|
2015-01-24 02:55:52 +01:00
|
|
|
exclude header "ExecutionEngine/OrcMCJITReplacement.h"
|
2016-11-15 03:14:57 +01:00
|
|
|
|
|
|
|
// FIXME: These exclude directives were added as a workaround for
|
|
|
|
// <rdar://problem/29247092> and should be removed once it is fixed.
|
|
|
|
exclude header "ExecutionEngine/Orc/RawByteChannel.h"
|
|
|
|
exclude header "ExecutionEngine/Orc/RPCUtils.h"
|
|
|
|
exclude header "ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
|
|
|
|
exclude header "ExecutionEngine/Orc/OrcRemoteTargetClient.h"
|
|
|
|
exclude header "ExecutionEngine/Orc/OrcRemoteTargetServer.h"
|
2017-09-05 06:31:14 +02:00
|
|
|
exclude header "ExecutionEngine/Orc/RemoteObjectLayer.h"
|
2014-05-21 04:46:14 +02:00
|
|
|
}
|
|
|
|
|
2016-06-16 10:00:29 +02:00
|
|
|
module LLVM_Pass {
|
|
|
|
module Pass {
|
|
|
|
// PassSupport.h and PassAnalysisSupport.h are made available only through
|
|
|
|
// Pass.h.
|
|
|
|
header "Pass.h"
|
|
|
|
header "PassSupport.h"
|
|
|
|
header "PassAnalysisSupport.h"
|
|
|
|
export *
|
|
|
|
}
|
2014-05-21 04:46:14 +02:00
|
|
|
|
|
|
|
module PassRegistry { header "PassRegistry.h" export * }
|
|
|
|
module InitializePasses { header "InitializePasses.h" export * }
|
2016-06-16 10:00:29 +02:00
|
|
|
}
|
|
|
|
|
2016-06-28 14:27:09 +02:00
|
|
|
module LLVM_intrinsic_gen {
|
|
|
|
requires cplusplus
|
|
|
|
|
|
|
|
// Delay building the modules containing dependencies to Attributes.h and
|
|
|
|
// Intrinsics.h because they need to be generated by tablegen first.
|
|
|
|
|
|
|
|
// Attributes.h
|
|
|
|
module IR_Argument { header "IR/Argument.h" export * }
|
|
|
|
module IR_Attributes { header "IR/Attributes.h" export * }
|
|
|
|
module IR_CallSite { header "IR/CallSite.h" export * }
|
|
|
|
module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
|
2017-05-11 16:51:43 +02:00
|
|
|
module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
|
2016-06-28 14:27:09 +02:00
|
|
|
module IR_NoFolder { header "IR/NoFolder.h" export * }
|
|
|
|
module IR_Module { header "IR/Module.h" export * }
|
|
|
|
module IR_ModuleSummaryIndex { header "IR/ModuleSummaryIndex.h" export * }
|
2017-01-05 05:40:09 +01:00
|
|
|
module IR_ModuleSummaryIndexYAML { header "IR/ModuleSummaryIndexYAML.h" export * }
|
2016-06-28 14:27:09 +02:00
|
|
|
module IR_Function { header "IR/Function.h" export * }
|
|
|
|
module IR_InstrTypes { header "IR/InstrTypes.h" export * }
|
|
|
|
module IR_Instructions { header "IR/Instructions.h" export * }
|
|
|
|
|
|
|
|
|
|
|
|
// Intrinsics.h
|
|
|
|
module IR_CFG { header "IR/CFG.h" export * }
|
|
|
|
module IR_ConstantRange { header "IR/ConstantRange.h" export * }
|
|
|
|
module IR_Dominators { header "IR/Dominators.h" export * }
|
|
|
|
module IR_IRBuilder { header "IR/IRBuilder.h" export * }
|
|
|
|
module IR_PassManager { header "IR/PassManager.h" export * }
|
|
|
|
module IR_PredIteratorCache { header "IR/PredIteratorCache.h" export * }
|
|
|
|
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_IntrinsicInst { header "IR/IntrinsicInst.h" export * }
|
|
|
|
module IR_PatternMatch { header "IR/PatternMatch.h" export * }
|
|
|
|
module IR_Statepoint { header "IR/Statepoint.h" export * }
|
|
|
|
|
|
|
|
export *
|
|
|
|
}
|
|
|
|
|
2016-06-16 10:00:29 +02:00
|
|
|
module LLVM_IR {
|
|
|
|
requires cplusplus
|
2014-05-21 04:46:14 +02:00
|
|
|
|
|
|
|
umbrella "IR"
|
|
|
|
module * { export * }
|
|
|
|
|
2014-12-12 03:25:18 +01:00
|
|
|
// These are intended for (repeated) textual inclusion.
|
2015-02-25 02:44:09 +01:00
|
|
|
textual header "IR/DebugInfoFlags.def"
|
2014-11-26 04:44:47 +01:00
|
|
|
textual header "IR/Instruction.def"
|
2014-12-12 03:25:18 +01:00
|
|
|
textual header "IR/Metadata.def"
|
2015-06-26 22:16:44 +02:00
|
|
|
textual header "IR/Value.def"
|
2014-05-21 04:46:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2014-07-26 03:10:32 +02:00
|
|
|
module LLVM_Object {
|
|
|
|
requires cplusplus
|
|
|
|
umbrella "Object"
|
|
|
|
module * { export * }
|
|
|
|
}
|
|
|
|
|
2014-05-21 04:46:14 +02:00
|
|
|
module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
|
2016-07-13 22:19:09 +02:00
|
|
|
|
|
|
|
module LLVM_ProfileData {
|
|
|
|
requires cplusplus
|
|
|
|
|
|
|
|
umbrella "ProfileData"
|
|
|
|
module * { export * }
|
2016-07-13 23:27:51 +02:00
|
|
|
|
|
|
|
textual header "ProfileData/InstrProfData.inc"
|
2016-07-13 22:19:09 +02:00
|
|
|
}
|
|
|
|
|
2014-05-21 04:46:14 +02:00
|
|
|
module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
|
|
|
|
|
|
|
|
module LLVM_Transforms {
|
|
|
|
requires cplusplus
|
|
|
|
umbrella "Transforms"
|
|
|
|
module * { export * }
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 * }
|
|
|
|
|
2017-06-22 23:28:48 +02:00
|
|
|
// Exclude these; they are fundamentally non-modular.
|
2014-05-21 04:46:14 +02:00
|
|
|
exclude header "Support/PluginLoader.h"
|
2017-06-22 23:28:48 +02:00
|
|
|
exclude header "Support/Solaris/sys/regset.h"
|
2014-05-21 04:46:14 +02:00
|
|
|
|
2014-11-26 04:44:47 +01:00
|
|
|
// These are intended for textual inclusion.
|
2015-09-11 01:30:27 +02:00
|
|
|
textual header "Support/ARMTargetParser.def"
|
2016-05-26 22:13:50 +02:00
|
|
|
textual header "Support/AArch64TargetParser.def"
|
2014-05-21 04:46:14 +02:00
|
|
|
}
|
2015-09-11 05:14:00 +02:00
|
|
|
|
|
|
|
// This part of the module is usable from both C and C++ code.
|
|
|
|
module ConvertUTF {
|
|
|
|
header "Support/ConvertUTF.h"
|
|
|
|
export *
|
|
|
|
}
|
2014-05-21 04:46:14 +02:00
|
|
|
|
Recommit: [globalisel] Change LLT constructor string into an LLT-based object that knows how to generate it.
Summary:
This will allow future patches to inspect the details of the LLT. The implementation is now split between
the Support and CodeGen libraries to allow TableGen to use this class without introducing layering concerns.
Thanks to Ahmed Bougacha for finding a reasonable way to avoid the layering issue and providing the version of this patch without that problem.
The problem with the previous commit appears to have been that TableGen was including CodeGen/LowLevelType.h instead of Support/LowLevelTypeImpl.h.
Reviewers: t.p.northover, qcolombet, rovka, aditya_nandakumar, ab, javed.absar
Subscribers: arsenm, nhaehnle, mgorny, dberris, llvm-commits, kristof.beyls
Differential Revision: https://reviews.llvm.org/D30046
llvm-svn: 297241
2017-03-08 00:20:35 +01:00
|
|
|
module LLVM_CodeGen_MachineValueType {
|
|
|
|
requires cplusplus
|
|
|
|
header "CodeGen/MachineValueType.h"
|
|
|
|
export *
|
|
|
|
}
|
2014-05-21 04:46:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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 *
|
|
|
|
}
|
2017-07-26 03:21:55 +02:00
|
|
|
|
|
|
|
module LLVM_WindowsManifest {
|
|
|
|
requires cplusplus
|
|
|
|
umbrella "WindowsManifest"
|
|
|
|
module * { export * }
|
|
|
|
}
|