llvm.org GIT mirror llvm / f010c46
Sort the #include lines for tools/... Again, tools are trickier to pick the main module header for than library source files. I've started to follow the pattern of using LLVMContext.h when it is included as a stub for program source files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169252 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
49 changed file(s) with 215 addition(s) and 229 deletion(s). Raw diff Collapse all Expand all
1717 #include "llvm/Linker.h"
1818 #include "llvm/Module.h"
1919 #include "llvm/Pass.h"
20 #include "llvm/Support/IRReader.h"
2120 #include "llvm/Support/CommandLine.h"
2221 #include "llvm/Support/FileUtilities.h"
22 #include "llvm/Support/Host.h"
23 #include "llvm/Support/IRReader.h"
2324 #include "llvm/Support/SourceMgr.h"
2425 #include "llvm/Support/raw_ostream.h"
25 #include "llvm/Support/Host.h"
2626 #include
2727 using namespace llvm;
2828
1717
1818 #include "llvm/ADT/ValueMap.h"
1919 #include "llvm/Transforms/Utils/ValueMapper.h"
20 #include
2021 #include
21 #include
2222
2323 namespace llvm {
2424
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "BugDriver.h"
14 #include "ListReducer.h"
1415 #include "ToolRunner.h"
15 #include "ListReducer.h"
16 #include "llvm/ADT/SmallPtrSet.h"
17 #include "llvm/Analysis/Verifier.h"
1618 #include "llvm/Constants.h"
1719 #include "llvm/DerivedTypes.h"
1820 #include "llvm/Instructions.h"
1921 #include "llvm/Module.h"
2022 #include "llvm/Pass.h"
2123 #include "llvm/PassManager.h"
22 #include "llvm/ValueSymbolTable.h"
23 #include "llvm/ADT/SmallPtrSet.h"
24 #include "llvm/Analysis/Verifier.h"
2524 #include "llvm/Support/CFG.h"
25 #include "llvm/Support/CommandLine.h"
26 #include "llvm/Support/FileUtilities.h"
2627 #include "llvm/Transforms/Scalar.h"
2728 #include "llvm/Transforms/Utils/Cloning.h"
28 #include "llvm/Support/FileUtilities.h"
29 #include "llvm/Support/CommandLine.h"
29 #include "llvm/ValueSymbolTable.h"
3030 #include
3131 using namespace llvm;
3232
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "BugDriver.h"
15 #include "llvm/Analysis/Verifier.h"
16 #include "llvm/Assembly/Writer.h"
1517 #include "llvm/Constants.h"
1618 #include "llvm/DataLayout.h"
1719 #include "llvm/DerivedTypes.h"
1820 #include "llvm/LLVMContext.h"
1921 #include "llvm/Module.h"
22 #include "llvm/Pass.h"
2023 #include "llvm/PassManager.h"
21 #include "llvm/Pass.h"
22 #include "llvm/Analysis/Verifier.h"
23 #include "llvm/Assembly/Writer.h"
24 #include "llvm/Support/CommandLine.h"
25 #include "llvm/Support/Debug.h"
26 #include "llvm/Support/FileUtilities.h"
27 #include "llvm/Support/Path.h"
28 #include "llvm/Support/Signals.h"
29 #include "llvm/Support/ToolOutputFile.h"
2430 #include "llvm/Transforms/IPO.h"
2531 #include "llvm/Transforms/Scalar.h"
2632 #include "llvm/Transforms/Utils/Cloning.h"
2733 #include "llvm/Transforms/Utils/CodeExtractor.h"
28 #include "llvm/Support/CommandLine.h"
29 #include "llvm/Support/Debug.h"
30 #include "llvm/Support/FileUtilities.h"
31 #include "llvm/Support/ToolOutputFile.h"
32 #include "llvm/Support/Path.h"
33 #include "llvm/Support/Signals.h"
3434 #include
3535 using namespace llvm;
3636
1414 #ifndef BUGPOINT_LIST_REDUCER_H
1515 #define BUGPOINT_LIST_REDUCER_H
1616
17 #include "llvm/Support/ErrorHandling.h"
1718 #include "llvm/Support/raw_ostream.h"
18 #include "llvm/Support/ErrorHandling.h"
19 #include
20 #include
1921 #include
20 #include
21 #include
2222
2323 namespace llvm {
2424
1414 #include "BugDriver.h"
1515 #include "ListReducer.h"
1616 #include "ToolRunner.h"
17 #include "llvm/Analysis/Verifier.h"
18 #include "llvm/Config/config.h" // for HAVE_LINK_R
1719 #include "llvm/Constants.h"
1820 #include "llvm/DerivedTypes.h"
1921 #include "llvm/Instructions.h"
2022 #include "llvm/Linker.h"
2123 #include "llvm/Module.h"
2224 #include "llvm/Pass.h"
23 #include "llvm/Analysis/Verifier.h"
24 #include "llvm/Transforms/Utils/Cloning.h"
2525 #include "llvm/Support/CommandLine.h"
2626 #include "llvm/Support/FileUtilities.h"
27 #include "llvm/Config/config.h" // for HAVE_LINK_R
27 #include "llvm/Transforms/Utils/Cloning.h"
2828 using namespace llvm;
2929
3030 namespace llvm {
1515 //===----------------------------------------------------------------------===//
1616
1717 #include "BugDriver.h"
18 #include "llvm/Analysis/Verifier.h"
19 #include "llvm/Bitcode/ReaderWriter.h"
1820 #include "llvm/DataLayout.h"
1921 #include "llvm/Module.h"
2022 #include "llvm/PassManager.h"
21 #include "llvm/Analysis/Verifier.h"
22 #include "llvm/Bitcode/ReaderWriter.h"
23 #include "llvm/Support/CommandLine.h"
24 #include "llvm/Support/Debug.h"
2325 #include "llvm/Support/FileUtilities.h"
24 #include "llvm/Support/CommandLine.h"
25 #include "llvm/Support/SystemUtils.h"
26 #include "llvm/Support/Debug.h"
27 #include "llvm/Support/ToolOutputFile.h"
2826 #include "llvm/Support/Path.h"
2927 #include "llvm/Support/Program.h"
28 #include "llvm/Support/SystemUtils.h"
29 #include "llvm/Support/ToolOutputFile.h"
3030
3131 #define DONT_GET_PLUGIN_LOADER_OPTION
3232 #include "llvm/Support/PluginLoader.h"
1212
1313 #define DEBUG_TYPE "toolrunner"
1414 #include "ToolRunner.h"
15 #include "llvm/Support/Program.h"
15 #include "llvm/Config/config.h" // for HAVE_LINK_R
1616 #include "llvm/Support/CommandLine.h"
1717 #include "llvm/Support/Debug.h"
1818 #include "llvm/Support/FileUtilities.h"
19 #include "llvm/Support/Program.h"
1920 #include "llvm/Support/raw_ostream.h"
20 #include "llvm/Config/config.h" // for HAVE_LINK_R
2121 #include
2222 #include
2323 using namespace llvm;
1919 #include "llvm/ADT/Triple.h"
2020 #include "llvm/Support/CommandLine.h"
2121 #include "llvm/Support/ErrorHandling.h"
22 #include "llvm/Support/Path.h"
2223 #include "llvm/Support/SystemUtils.h"
23 #include "llvm/Support/Path.h"
2424 #include
2525 #include
2626
1414
1515 #include "BugDriver.h"
1616 #include "ToolRunner.h"
17 #include "llvm/LLVMContext.h"
1718 #include "llvm/LinkAllPasses.h"
18 #include "llvm/LLVMContext.h"
19 #include "llvm/LinkAllVMCore.h"
1920 #include "llvm/PassManager.h"
20 #include "llvm/Support/PassNameParser.h"
2121 #include "llvm/Support/CommandLine.h"
2222 #include "llvm/Support/ManagedStatic.h"
23 #include "llvm/Support/PassNameParser.h"
2324 #include "llvm/Support/PluginLoader.h"
2425 #include "llvm/Support/PrettyStackTrace.h"
2526 #include "llvm/Support/Process.h"
2627 #include "llvm/Support/Signals.h"
2728 #include "llvm/Support/Valgrind.h"
28 #include "llvm/LinkAllVMCore.h"
2929 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
3030
3131 //Enable this macro to debug bugpoint itself.
1313
1414 #include "llvm/Config/config.h" // plugin-api.h requires HAVE_STDINT_H
1515 #include "plugin-api.h"
16
1716 #include "llvm-c/lto.h"
18
1917 #include "llvm/ADT/OwningPtr.h"
20 #include "llvm/Support/system_error.h"
18 #include "llvm/Support/Errno.h"
2119 #include "llvm/Support/MemoryBuffer.h"
22 #include "llvm/Support/ToolOutputFile.h"
23 #include "llvm/Support/Errno.h"
2420 #include "llvm/Support/Path.h"
2521 #include "llvm/Support/Program.h"
26
22 #include "llvm/Support/ToolOutputFile.h"
23 #include "llvm/Support/system_error.h"
2724 #include
2825 #include
2926 #include
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/LLVMContext.h"
16 #include "llvm/DataLayout.h"
17 #include "llvm/Module.h"
18 #include "llvm/PassManager.h"
19 #include "llvm/Pass.h"
2016 #include "llvm/ADT/Triple.h"
2117 #include "llvm/Assembly/PrintModulePass.h"
22 #include "llvm/Support/IRReader.h"
2318 #include "llvm/CodeGen/CommandFlags.h"
2419 #include "llvm/CodeGen/LinkAllAsmWriterComponents.h"
2520 #include "llvm/CodeGen/LinkAllCodegenComponents.h"
21 #include "llvm/DataLayout.h"
2622 #include "llvm/MC/SubtargetFeature.h"
23 #include "llvm/Module.h"
24 #include "llvm/Pass.h"
25 #include "llvm/PassManager.h"
2726 #include "llvm/Support/CommandLine.h"
2827 #include "llvm/Support/Debug.h"
2928 #include "llvm/Support/FormattedStream.h"
29 #include "llvm/Support/Host.h"
30 #include "llvm/Support/IRReader.h"
3031 #include "llvm/Support/ManagedStatic.h"
3132 #include "llvm/Support/PluginLoader.h"
3233 #include "llvm/Support/PrettyStackTrace.h"
33 #include "llvm/Support/ToolOutputFile.h"
34 #include "llvm/Support/Host.h"
3534 #include "llvm/Support/Signals.h"
3635 #include "llvm/Support/TargetRegistry.h"
3736 #include "llvm/Support/TargetSelect.h"
37 #include "llvm/Support/ToolOutputFile.h"
3838 #include "llvm/Target/TargetLibraryInfo.h"
3939 #include "llvm/Target/TargetMachine.h"
4040 #include
1414 #ifndef REMOTEPROCESS_H
1515 #define REMOTEPROCESS_H
1616
17 #include "llvm/ADT/SmallVector.h"
1718 #include "llvm/ADT/StringRef.h"
18 #include "llvm/ADT/SmallVector.h"
1919 #include "llvm/Support/DataTypes.h"
2020 #include "llvm/Support/Memory.h"
2121 #include
1313 //===----------------------------------------------------------------------===//
1414
1515 #define DEBUG_TYPE "lli"
16 #include "llvm/LLVMContext.h"
1617 #include "RecordingMemoryManager.h"
1718 #include "RemoteTarget.h"
18 #include "llvm/LLVMContext.h"
19 #include "llvm/Module.h"
20 #include "llvm/Type.h"
2119 #include "llvm/ADT/Triple.h"
2220 #include "llvm/Bitcode/ReaderWriter.h"
2321 #include "llvm/CodeGen/LinkAllCodegenComponents.h"
2826 #include "llvm/ExecutionEngine/JITMemoryManager.h"
2927 #include "llvm/ExecutionEngine/MCJIT.h"
3028 #include "llvm/ExecutionEngine/SectionMemoryManager.h"
29 #include "llvm/Module.h"
3130 #include "llvm/Support/CommandLine.h"
31 #include "llvm/Support/Debug.h"
32 #include "llvm/Support/DynamicLibrary.h"
33 #include "llvm/Support/Format.h"
3234 #include "llvm/Support/IRReader.h"
3335 #include "llvm/Support/ManagedStatic.h"
36 #include "llvm/Support/MathExtras.h"
37 #include "llvm/Support/Memory.h"
3438 #include "llvm/Support/MemoryBuffer.h"
3539 #include "llvm/Support/PluginLoader.h"
3640 #include "llvm/Support/PrettyStackTrace.h"
37 #include "llvm/Support/raw_ostream.h"
38 #include "llvm/Support/Format.h"
3941 #include "llvm/Support/Process.h"
4042 #include "llvm/Support/Signals.h"
4143 #include "llvm/Support/TargetSelect.h"
42 #include "llvm/Support/Debug.h"
43 #include "llvm/Support/DynamicLibrary.h"
44 #include "llvm/Support/Memory.h"
45 #include "llvm/Support/MathExtras.h"
44 #include "llvm/Support/raw_ostream.h"
45 #include "llvm/Type.h"
4646 #include
4747
4848 #ifdef __CYGWIN__
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/LLVMContext.h"
15 #include "llvm/Bitcode/Archive.h"
1516 #include "llvm/Module.h"
16 #include "llvm/Bitcode/Archive.h"
1717 #include "llvm/Support/CommandLine.h"
1818 #include "llvm/Support/FileSystem.h"
19 #include "llvm/Support/Format.h"
1920 #include "llvm/Support/ManagedStatic.h"
2021 #include "llvm/Support/PrettyStackTrace.h"
21 #include "llvm/Support/Format.h"
22 #include "llvm/Support/Signals.h"
2223 #include "llvm/Support/raw_ostream.h"
23 #include "llvm/Support/Signals.h"
2424 #include
2525 #include
26 #include
2627 #include
27 #include
2828 using namespace llvm;
2929
3030 // Option for compatibility with AIX, not used but must allow it to be present.
1515 //===----------------------------------------------------------------------===//
1616
1717 #include "llvm/LLVMContext.h"
18 #include "llvm/Analysis/Verifier.h"
19 #include "llvm/Assembly/Parser.h"
20 #include "llvm/Bitcode/ReaderWriter.h"
1821 #include "llvm/Module.h"
19 #include "llvm/Assembly/Parser.h"
20 #include "llvm/Analysis/Verifier.h"
21 #include "llvm/Bitcode/ReaderWriter.h"
2222 #include "llvm/Support/CommandLine.h"
2323 #include "llvm/Support/ManagedStatic.h"
2424 #include "llvm/Support/PrettyStackTrace.h"
25 #include "llvm/Support/Signals.h"
2526 #include "llvm/Support/SourceMgr.h"
2627 #include "llvm/Support/SystemUtils.h"
2728 #include "llvm/Support/ToolOutputFile.h"
28 #include "llvm/Support/Signals.h"
2929 #include
3030 using namespace llvm;
3131
3636 #include "llvm/Support/ManagedStatic.h"
3737 #include "llvm/Support/MemoryBuffer.h"
3838 #include "llvm/Support/PrettyStackTrace.h"
39 #include "llvm/Support/Signals.h"
3940 #include "llvm/Support/raw_ostream.h"
40 #include "llvm/Support/Signals.h"
4141 #include "llvm/Support/system_error.h"
42
42 #include
4343 #include
44 #include
4544 using namespace llvm;
4645
4746 static cl::opt
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "DiffConsumer.h"
14
14 #include "llvm/Instructions.h"
1515 #include "llvm/Module.h"
16 #include "llvm/Instructions.h"
1716 #include "llvm/Support/ErrorHandling.h"
1817
1918 using namespace llvm;
1414 #define _LLVM_DIFFCONSUMER_H_
1515
1616 #include "DiffLog.h"
17
17 #include "llvm/ADT/DenseMap.h"
1818 #include "llvm/ADT/SmallVector.h"
19 #include "llvm/ADT/DenseMap.h"
2019 #include "llvm/ADT/StringRef.h"
20 #include "llvm/Support/Casting.h"
2121 #include "llvm/Support/raw_ostream.h"
22 #include "llvm/Support/Casting.h"
2322
2423 namespace llvm {
2524 class Module;
1212
1313 #include "DiffLog.h"
1414 #include "DiffConsumer.h"
15
16 #include "llvm/Instructions.h"
1715 #include "llvm/ADT/SmallVector.h"
1816 #include "llvm/ADT/StringRef.h"
17 #include "llvm/Instructions.h"
1918
2019 using namespace llvm;
2120
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "DifferenceEngine.h"
15
16 #include "llvm/Constants.h"
17 #include "llvm/Function.h"
18 #include "llvm/Instructions.h"
19 #include "llvm/Module.h"
2015 #include "llvm/ADT/DenseMap.h"
2116 #include "llvm/ADT/DenseSet.h"
2217 #include "llvm/ADT/SmallVector.h"
2318 #include "llvm/ADT/StringRef.h"
2419 #include "llvm/ADT/StringSet.h"
20 #include "llvm/Constants.h"
21 #include "llvm/Function.h"
22 #include "llvm/Instructions.h"
23 #include "llvm/Module.h"
24 #include "llvm/Support/CFG.h"
2525 #include "llvm/Support/CallSite.h"
26 #include "llvm/Support/CFG.h"
2726 #include "llvm/Support/ErrorHandling.h"
2827 #include "llvm/Support/raw_ostream.h"
2928 #include "llvm/Support/type_traits.h"
30
3129 #include
3230
3331 using namespace llvm;
1414 #ifndef _LLVM_DIFFERENCE_ENGINE_H_
1515 #define _LLVM_DIFFERENCE_ENGINE_H_
1616
17 #include "DiffConsumer.h"
18 #include "DiffLog.h"
1719 #include "llvm/ADT/SmallVector.h"
1820 #include "llvm/ADT/StringRef.h"
19 #include "DiffLog.h"
20 #include "DiffConsumer.h"
21
2221 #include
2322
2423 namespace llvm {
1212
1313 #include "DiffLog.h"
1414 #include "DifferenceEngine.h"
15
16 #include "llvm/LLVMContext.h"
17 #include "llvm/Module.h"
18 #include "llvm/Type.h"
1915 #include "llvm/ADT/DenseMap.h"
2016 #include "llvm/ADT/SmallVector.h"
2117 #include "llvm/ADT/StringRef.h"
18 #include "llvm/LLVMContext.h"
19 #include "llvm/Module.h"
2220 #include "llvm/Support/CommandLine.h"
2321 #include "llvm/Support/IRReader.h"
2422 #include "llvm/Support/MemoryBuffer.h"
23 #include "llvm/Support/SourceMgr.h"
2524 #include "llvm/Support/raw_ostream.h"
26 #include "llvm/Support/SourceMgr.h"
27
25 #include "llvm/Type.h"
2826 #include
2927 #include
3028
1616 //===----------------------------------------------------------------------===//
1717
1818 #include "llvm/LLVMContext.h"
19 #include "llvm/Assembly/AssemblyAnnotationWriter.h"
20 #include "llvm/Bitcode/ReaderWriter.h"
1921 #include "llvm/DebugInfo.h"
22 #include "llvm/IntrinsicInst.h"
2023 #include "llvm/Module.h"
21 #include "llvm/Type.h"
22 #include "llvm/IntrinsicInst.h"
23 #include "llvm/Bitcode/ReaderWriter.h"
24 #include "llvm/Assembly/AssemblyAnnotationWriter.h"
2524 #include "llvm/Support/CommandLine.h"
2625 #include "llvm/Support/DataStream.h"
2726 #include "llvm/Support/FormattedStream.h"
2827 #include "llvm/Support/ManagedStatic.h"
2928 #include "llvm/Support/MemoryBuffer.h"
3029 #include "llvm/Support/PrettyStackTrace.h"
30 #include "llvm/Support/Signals.h"
3131 #include "llvm/Support/ToolOutputFile.h"
32 #include "llvm/Support/Signals.h"
3332 #include "llvm/Support/system_error.h"
33 #include "llvm/Type.h"
3434 using namespace llvm;
3535
3636 static cl::opt
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/ADT/OwningPtr.h"
14 #include "llvm/ADT/STLExtras.h"
1415 #include "llvm/ADT/Triple.h"
15 #include "llvm/ADT/STLExtras.h"
16 #include "llvm/DebugInfo/DIContext.h"
1617 #include "llvm/Object/ObjectFile.h"
1718 #include "llvm/Object/RelocVisitor.h"
18 #include "llvm/DebugInfo/DIContext.h"
1919 #include "llvm/Support/CommandLine.h"
2020 #include "llvm/Support/Debug.h"
2121 #include "llvm/Support/Format.h"
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/LLVMContext.h"
15 #include "llvm/ADT/SetVector.h"
16 #include "llvm/ADT/SmallPtrSet.h"
17 #include "llvm/Assembly/PrintModulePass.h"
18 #include "llvm/Bitcode/ReaderWriter.h"
19 #include "llvm/DataLayout.h"
1520 #include "llvm/Module.h"
1621 #include "llvm/PassManager.h"
17 #include "llvm/Assembly/PrintModulePass.h"
18 #include "llvm/Bitcode/ReaderWriter.h"
19 #include "llvm/Transforms/IPO.h"
20 #include "llvm/DataLayout.h"
2122 #include "llvm/Support/CommandLine.h"
2223 #include "llvm/Support/IRReader.h"
2324 #include "llvm/Support/ManagedStatic.h"
2425 #include "llvm/Support/PrettyStackTrace.h"
26 #include "llvm/Support/Regex.h"
27 #include "llvm/Support/Signals.h"
28 #include "llvm/Support/SystemUtils.h"
2529 #include "llvm/Support/ToolOutputFile.h"
26 #include "llvm/Support/SystemUtils.h"
27 #include "llvm/Support/Signals.h"
28 #include "llvm/Support/Regex.h"
29 #include "llvm/ADT/SmallPtrSet.h"
30 #include "llvm/ADT/SetVector.h"
30 #include "llvm/Transforms/IPO.h"
3131 #include
3232 using namespace llvm;
3333
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #include "llvm/LLVMContext.h"
16 #include "../../lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h"
1517 #include "llvm/ADT/OwningPtr.h"
1618 #include "llvm/ADT/Triple.h"
17 #include "../../lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h"
1819 #include "llvm/ExecutionEngine/JITEventListener.h"
1920 #include "llvm/ExecutionEngine/JITMemoryManager.h"
2021 #include "llvm/ExecutionEngine/MCJIT.h"
2122 #include "llvm/ExecutionEngine/ObjectImage.h"
22 #include "llvm/LLVMContext.h"
2323 #include "llvm/Module.h"
2424 #include "llvm/Support/CommandLine.h"
2525 #include "llvm/Support/Host.h"
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/Linker.h"
15 #include "llvm/Analysis/Verifier.h"
16 #include "llvm/Bitcode/ReaderWriter.h"
1517 #include "llvm/LLVMContext.h"
1618 #include "llvm/Module.h"
17 #include "llvm/Analysis/Verifier.h"
18 #include "llvm/Bitcode/ReaderWriter.h"
1919 #include "llvm/Support/CommandLine.h"
20 #include "llvm/Support/IRReader.h"
2021 #include "llvm/Support/ManagedStatic.h"
22 #include "llvm/Support/Path.h"
2123 #include "llvm/Support/PrettyStackTrace.h"
24 #include "llvm/Support/Signals.h"
25 #include "llvm/Support/SystemUtils.h"
2226 #include "llvm/Support/ToolOutputFile.h"
23 #include "llvm/Support/SystemUtils.h"
24 #include "llvm/Support/IRReader.h"
25 #include "llvm/Support/Signals.h"
26 #include "llvm/Support/Path.h"
2727 #include
2828 using namespace llvm;
2929
1616 #include "../../lib/MC/MCDisassembler/EDInst.h"
1717 #include "../../lib/MC/MCDisassembler/EDOperand.h"
1818 #include "../../lib/MC/MCDisassembler/EDToken.h"
19 #include "llvm/ADT/OwningPtr.h"
20 #include "llvm/ADT/Triple.h"
1921 #include "llvm/MC/MCDisassembler.h"
2022 #include "llvm/MC/MCInst.h"
2123 #include "llvm/MC/MCStreamer.h"
2224 #include "llvm/MC/MCSubtargetInfo.h"
23 #include "llvm/ADT/OwningPtr.h"
24 #include "llvm/ADT/Triple.h"
2525 #include "llvm/Support/MemoryBuffer.h"
2626 #include "llvm/Support/MemoryObject.h"
2727 #include "llvm/Support/SourceMgr.h"
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "llvm/MC/MCParser/AsmLexer.h"
15 #include "llvm/MC/MCParser/MCAsmLexer.h"
14 #include "Disassembler.h"
15 #include "llvm/ADT/OwningPtr.h"
1616 #include "llvm/MC/MCAsmBackend.h"
1717 #include "llvm/MC/MCAsmInfo.h"
18 #include "llvm/MC/MCCodeEmitter.h"
1819 #include "llvm/MC/MCContext.h"
19 #include "llvm/MC/MCCodeEmitter.h"
2020 #include "llvm/MC/MCInstPrinter.h"
2121 #include "llvm/MC/MCInstrInfo.h"
2222 #include "llvm/MC/MCObjectFileInfo.h"
23 #include "llvm/MC/MCParser/AsmLexer.h"
24 #include "llvm/MC/MCParser/MCAsmLexer.h"
2325 #include "llvm/MC/MCRegisterInfo.h"
2426 #include "llvm/MC/MCSectionMachO.h"
2527 #include "llvm/MC/MCStreamer.h"
2628 #include "llvm/MC/MCSubtargetInfo.h"
2729 #include "llvm/MC/MCTargetAsmParser.h"
2830 #include "llvm/MC/SubtargetFeature.h"
29 #include "llvm/ADT/OwningPtr.h"
3031 #include "llvm/Support/CommandLine.h"
3132 #include "llvm/Support/FileUtilities.h"
3233 #include "llvm/Support/FormattedStream.h"
34 #include "llvm/Support/Host.h"
3335 #include "llvm/Support/ManagedStatic.h"
3436 #include "llvm/Support/MemoryBuffer.h"
3537 #include "llvm/Support/PrettyStackTrace.h"
38 #include "llvm/Support/Signals.h"
3639 #include "llvm/Support/SourceMgr.h"
37 #include "llvm/Support/ToolOutputFile.h"
38 #include "llvm/Support/Host.h"
39 #include "llvm/Support/Signals.h"
4040 #include "llvm/Support/TargetRegistry.h"
4141 #include "llvm/Support/TargetSelect.h"
42 #include "llvm/Support/ToolOutputFile.h"
4243 #include "llvm/Support/system_error.h"
43 #include "Disassembler.h"
4444 using namespace llvm;
4545
4646 static cl::opt
1616 //===----------------------------------------------------------------------===//
1717
1818 #include "llvm/LLVMContext.h"
19 #include "llvm/Bitcode/Archive.h"
20 #include "llvm/Bitcode/ReaderWriter.h"
1921 #include "llvm/Module.h"
20 #include "llvm/Bitcode/ReaderWriter.h"
21 #include "llvm/Bitcode/Archive.h"
2222 #include "llvm/Object/Archive.h"
2323 #include "llvm/Object/ObjectFile.h"
2424 #include "llvm/Support/CommandLine.h"
2525 #include "llvm/Support/FileSystem.h"
26 #include "llvm/Support/Format.h"
2627 #include "llvm/Support/ManagedStatic.h"
2728 #include "llvm/Support/MemoryBuffer.h"
2829 #include "llvm/Support/PrettyStackTrace.h"
2930 #include "llvm/Support/Program.h"
31 #include "llvm/Support/Signals.h"
3032 #include "llvm/Support/raw_ostream.h"
31 #include "llvm/Support/Signals.h"
32 #include "llvm/Support/Format.h"
3333 #include "llvm/Support/system_error.h"
3434 #include
3535 #include
1212
1313 #include "llvm-objdump.h"
1414 #include "MCFunction.h"
15 #include "llvm/Support/MachO.h"
16 #include "llvm/Object/MachO.h"
1715 #include "llvm/ADT/OwningPtr.h"
16 #include "llvm/ADT/STLExtras.h"
1817 #include "llvm/ADT/Triple.h"
19 #include "llvm/ADT/STLExtras.h"
2018 #include "llvm/DebugInfo/DIContext.h"
2119 #include "llvm/MC/MCAsmInfo.h"
2220 #include "llvm/MC/MCDisassembler.h"
2725 #include "llvm/MC/MCInstrInfo.h"
2826 #include "llvm/MC/MCRegisterInfo.h"
2927 #include "llvm/MC/MCSubtargetInfo.h"
28 #include "llvm/Object/MachO.h"
3029 #include "llvm/Support/CommandLine.h"
3130 #include "llvm/Support/Debug.h"
3231 #include "llvm/Support/Format.h"
3332 #include "llvm/Support/GraphWriter.h"
33 #include "llvm/Support/MachO.h"
3434 #include "llvm/Support/MemoryBuffer.h"
3535 #include "llvm/Support/TargetRegistry.h"
3636 #include "llvm/Support/TargetSelect.h"
1414
1515 #include "llvm-objdump.h"
1616 #include "MCFunction.h"
17 #include "llvm/Object/Archive.h"
18 #include "llvm/Object/COFF.h"
19 #include "llvm/Object/ObjectFile.h"
2017 #include "llvm/ADT/OwningPtr.h"
18 #include "llvm/ADT/STLExtras.h"
2119 #include "llvm/ADT/StringExtras.h"
2220 #include "llvm/ADT/Triple.h"
23 #include "llvm/ADT/STLExtras.h"
2421 #include "llvm/MC/MCAsmInfo.h"
2522 #include "llvm/MC/MCDisassembler.h"
2623 #include "llvm/MC/MCInst.h"
2825 #include "llvm/MC/MCInstrInfo.h"
2926 #include "llvm/MC/MCRegisterInfo.h"
3027 #include "llvm/MC/MCSubtargetInfo.h"
28 #include "llvm/Object/Archive.h"
29 #include "llvm/Object/COFF.h"
30 #include "llvm/Object/ObjectFile.h"
3131 #include "llvm/Support/Casting.h"
3232 #include "llvm/Support/CommandLine.h"
3333 #include "llvm/Support/Debug.h"
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #include "llvm/LLVMContext.h"
16 #include "llvm/Analysis/Passes.h"
17 #include "llvm/Analysis/ProfileInfo.h"
18 #include "llvm/Analysis/ProfileInfoLoader.h"
19 #include "llvm/Assembly/AssemblyAnnotationWriter.h"
20 #include "llvm/Bitcode/ReaderWriter.h"
1521 #include "llvm/InstrTypes.h"
16 #include "llvm/LLVMContext.h"
1722 #include "llvm/Module.h"
1823 #include "llvm/PassManager.h"
19 #include "llvm/Assembly/AssemblyAnnotationWriter.h"
20 #include "llvm/Analysis/ProfileInfo.h"
21 #include "llvm/Analysis/ProfileInfoLoader.h"
22 #include "llvm/Analysis/Passes.h"
23 #include "llvm/Bitcode/ReaderWriter.h"
2424 #include "llvm/Support/CommandLine.h"
25 #include "llvm/Support/Format.h"
2526 #include "llvm/Support/FormattedStream.h"
2627 #include "llvm/Support/ManagedStatic.h"
2728 #include "llvm/Support/MemoryBuffer.h"
2829 #include "llvm/Support/PrettyStackTrace.h"
30 #include "llvm/Support/Signals.h"
2931 #include "llvm/Support/raw_ostream.h"
30 #include "llvm/Support/Format.h"
31 #include "llvm/Support/Signals.h"
3232 #include "llvm/Support/system_error.h"
3333 #include
3434 #include
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/LLVMContext.h"
14 #include "llvm/Bitcode/Archive.h"
1415 #include "llvm/Module.h"
15 #include "llvm/Bitcode/Archive.h"
1616 #include "llvm/Support/CommandLine.h"
1717 #include "llvm/Support/FileSystem.h"
18 #include "llvm/Support/Format.h"
1819 #include "llvm/Support/ManagedStatic.h"
1920 #include "llvm/Support/PrettyStackTrace.h"
20 #include "llvm/Support/Format.h"
21 #include "llvm/Support/Signals.h"
2122 #include "llvm/Support/raw_ostream.h"
22 #include "llvm/Support/Signals.h"
2323 #include
2424 using namespace llvm;
2525
1515 //
1616 //===----------------------------------------------------------------------===//
1717
18 #include "llvm/ADT/Triple.h"
19 #include "llvm/Analysis/Verifier.h"
20 #include "llvm/Object/ELF.h"
1821 #include "llvm/Object/ObjectFile.h"
19 #include "llvm/Object/ELF.h"
20 #include "llvm/Analysis/Verifier.h"
21 #include "llvm/ADT/Triple.h"
22 #include "llvm/Support/CommandLine.h"
23 #include "llvm/Support/Debug.h"
2224 #include "llvm/Support/Format.h"
23 #include "llvm/Support/CommandLine.h"
25 #include "llvm/Support/FormattedStream.h"
2426 #include "llvm/Support/PrettyStackTrace.h"
25 #include "llvm/Support/Debug.h"
2627 #include "llvm/Support/Signals.h"
27 #include "llvm/Support/FormattedStream.h"
2828
2929 using namespace llvm;
3030 using namespace llvm::object;
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/ADT/OwningPtr.h"
1314 #include "llvm/ADT/StringMap.h"
14 #include "llvm/ADT/OwningPtr.h"
15 #include "llvm/ExecutionEngine/ObjectBuffer.h"
16 #include "llvm/ExecutionEngine/ObjectImage.h"
1517 #include "llvm/ExecutionEngine/RuntimeDyld.h"
16 #include "llvm/ExecutionEngine/ObjectImage.h"
17 #include "llvm/ExecutionEngine/ObjectBuffer.h"
1818 #include "llvm/Object/MachOObject.h"
1919 #include "llvm/Support/CommandLine.h"
2020 #include "llvm/Support/ManagedStatic.h"
2222 #include "llvm/Support/ManagedStatic.h"
2323 #include "llvm/Support/MemoryBuffer.h"
2424 #include "llvm/Support/PrettyStackTrace.h"
25 #include "llvm/Support/Signals.h"
2526 #include "llvm/Support/raw_ostream.h"
26 #include "llvm/Support/Signals.h"
2727 #include "llvm/Support/system_error.h"
2828 #include
2929 #include
1111 //
1212 //===----------------------------------------------------------------------===//
1313 #include "llvm/LLVMContext.h"
14 #include "llvm/Analysis/Verifier.h"
15 #include "llvm/Assembly/PrintModulePass.h"
16 #include "llvm/CallGraphSCCPass.h"
17 #include "llvm/Constants.h"
18 #include "llvm/Instruction.h"
1419 #include "llvm/Module.h"
1520 #include "llvm/PassManager.h"
16 #include "llvm/Constants.h"
17 #include "llvm/Instruction.h"
18 #include "llvm/CallGraphSCCPass.h"
19 #include "llvm/Assembly/PrintModulePass.h"
20 #include "llvm/Analysis/Verifier.h"
21 #include "llvm/Support/PassNameParser.h"
2221 #include "llvm/Support/Debug.h"
2322 #include "llvm/Support/ManagedStatic.h"
23 #include "llvm/Support/PassNameParser.h"
2424 #include "llvm/Support/PluginLoader.h"
2525 #include "llvm/Support/PrettyStackTrace.h"
2626 #include "llvm/Support/ToolOutputFile.h"
27 #include
2728 #include
29 #include
2830 #include
29 #include
3031 #include
31 #include
3232 using namespace llvm;
3333
3434 static cl::opt SeedCL("seed",
2828 #include "llvm/Support/PrettyStackTrace.h"
2929 #include "llvm/Support/Signals.h"
3030 #include "llvm/Support/raw_ostream.h"
31
3231 #include
3332 #include
3433 #include
1313
1414 #include "LTOCodeGenerator.h"
1515 #include "LTOModule.h"
16 #include "llvm/Constants.h"
17 #include "llvm/DataLayout.h"
18 #include "llvm/DerivedTypes.h"
19 #include "llvm/Linker.h"
20 #include "llvm/LLVMContext.h"
21 #include "llvm/Module.h"
22 #include "llvm/PassManager.h"
16 #include "llvm/ADT/StringExtras.h"
2317 #include "llvm/Analysis/Passes.h"
2418 #include "llvm/Analysis/Verifier.h"
2519 #include "llvm/Bitcode/ReaderWriter.h"
2620 #include "llvm/Config/config.h"
21 #include "llvm/Constants.h"
22 #include "llvm/DataLayout.h"
23 #include "llvm/DerivedTypes.h"
24 #include "llvm/LLVMContext.h"
25 #include "llvm/Linker.h"
2726 #include "llvm/MC/MCAsmInfo.h"
2827 #include "llvm/MC/MCContext.h"
2928 #include "llvm/MC/SubtargetFeature.h"
29 #include "llvm/Module.h"
30 #include "llvm/PassManager.h"
31 #include "llvm/Support/CommandLine.h"
32 #include "llvm/Support/FormattedStream.h"
33 #include "llvm/Support/Host.h"
34 #include "llvm/Support/MemoryBuffer.h"
35 #include "llvm/Support/Signals.h"
36 #include "llvm/Support/TargetRegistry.h"
37 #include "llvm/Support/TargetSelect.h"
38 #include "llvm/Support/ToolOutputFile.h"
39 #include "llvm/Support/system_error.h"
3040 #include "llvm/Target/Mangler.h"
41 #include "llvm/Target/TargetMachine.h"
3142 #include "llvm/Target/TargetOptions.h"
32 #include "llvm/Target/TargetMachine.h"
3343 #include "llvm/Target/TargetRegisterInfo.h"
3444 #include "llvm/Transforms/IPO.h"
3545 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
36 #include "llvm/Support/CommandLine.h"
37 #include "llvm/Support/FormattedStream.h"
38 #include "llvm/Support/MemoryBuffer.h"
39 #include "llvm/Support/ToolOutputFile.h"
40 #include "llvm/Support/Host.h"
41 #include "llvm/Support/Signals.h"
42 #include "llvm/Support/TargetRegistry.h"
43 #include "llvm/Support/TargetSelect.h"
44 #include "llvm/Support/system_error.h"
45 #include "llvm/ADT/StringExtras.h"
4646 using namespace llvm;
4747
4848 static cl::opt
1313 #ifndef LTO_CODE_GENERATOR_H
1414 #define LTO_CODE_GENERATOR_H
1515
16 #include "llvm-c/lto.h"
17 #include "llvm/ADT/SmallPtrSet.h"
18 #include "llvm/ADT/StringMap.h"
1619 #include "llvm/Linker.h"
17 #include "llvm/ADT/StringMap.h"
18 #include "llvm/ADT/SmallPtrSet.h"
19 #include "llvm-c/lto.h"
2020 #include
2121
2222 namespace llvm {
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "LTOModule.h"
15 #include "llvm/ADT/OwningPtr.h"
16 #include "llvm/ADT/Triple.h"
17 #include "llvm/Bitcode/ReaderWriter.h"
1518 #include "llvm/Constants.h"
1619 #include "llvm/LLVMContext.h"
17 #include "llvm/Module.h"
18 #include "llvm/Bitcode/ReaderWriter.h"
1920 #include "llvm/MC/MCExpr.h"
2021 #include "llvm/MC/MCInst.h"
22 #include "llvm/MC/MCParser/MCAsmParser.h"
2123 #include "llvm/MC/MCStreamer.h"
2224 #include "llvm/MC/MCSubtargetInfo.h"
2325 #include "llvm/MC/MCSymbol.h"
2426 #include "llvm/MC/MCTargetAsmParser.h"
2527 #include "llvm/MC/SubtargetFeature.h"
26 #include "llvm/MC/MCParser/MCAsmParser.h"
27 #include "llvm/Target/TargetRegisterInfo.h"
28 #include "llvm/Module.h"
2829 #include "llvm/Support/CommandLine.h"
2930 #include "llvm/Support/Host.h"
3031 #include "llvm/Support/MemoryBuffer.h"
3334 #include "llvm/Support/TargetRegistry.h"
3435 #include "llvm/Support/TargetSelect.h"
3536 #include "llvm/Support/system_error.h"
36 #include "llvm/ADT/OwningPtr.h"
37 #include "llvm/ADT/Triple.h"
37 #include "llvm/Target/TargetRegisterInfo.h"
3838 using namespace llvm;
3939
4040 static cl::opt
1313 #ifndef LTO_MODULE_H
1414 #define LTO_MODULE_H
1515
16 #include "llvm-c/lto.h"
17 #include "llvm/ADT/OwningPtr.h"
18 #include "llvm/ADT/StringMap.h"
19 #include "llvm/MC/MCContext.h"
1620 #include "llvm/Module.h"
17 #include "llvm/MC/MCContext.h"
1821 #include "llvm/Target/Mangler.h"
1922 #include "llvm/Target/TargetMachine.h"
20 #include "llvm/ADT/OwningPtr.h"
21 #include "llvm/ADT/StringMap.h"
22 #include "llvm-c/lto.h"
23 #include
2324 #include
24 #include
2525
2626 // Forward references to llvm classes.
2727 namespace llvm {
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm-c/lto.h"
15 #include "LTOCodeGenerator.h"
16 #include "LTOModule.h"
1517 #include "llvm-c/Core.h"
16
17 #include "LTOModule.h"
18 #include "LTOCodeGenerator.h"
1918
2019
2120 // Holds most recent error string.
1616 //
1717 //===----------------------------------------------------------------------===//
1818
19 #include "llvm/Analysis/CallGraph.h"
1920 #include "llvm/Module.h"
2021 #include "llvm/Pass.h"
2122 #include "llvm/Support/CallSite.h"
22 #include "llvm/Analysis/CallGraph.h"
2323 #include "llvm/Support/raw_ostream.h"
2424 using namespace llvm;
2525
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #include "llvm/Support/GraphWriter.h"
17 #include "llvm/Pass.h"
18 #include "llvm/Value.h"
1916 #include "llvm/Analysis/CallGraph.h"
2017 #include "llvm/Analysis/Dominators.h"
18 #include "llvm/Pass.h"
19 #include "llvm/Support/GraphWriter.h"
2120 #include "llvm/Support/ToolOutputFile.h"
21 #include "llvm/Value.h"
2222 using namespace llvm;
2323
2424 template
2424 //
2525 //===----------------------------------------------------------------------===//
2626
27 #include "llvm/ADT/SCCIterator.h"
28 #include "llvm/Analysis/CallGraph.h"
29 #include "llvm/Module.h"
2730 #include "llvm/Pass.h"
28 #include "llvm/Module.h"
29 #include "llvm/Analysis/CallGraph.h"
3031 #include "llvm/Support/CFG.h"
3132 #include "llvm/Support/raw_ostream.h"
32 #include "llvm/ADT/SCCIterator.h"
3333 using namespace llvm;
3434
3535 namespace {
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/LLVMContext.h"
15 #include "llvm/ADT/StringSet.h"
16 #include "llvm/ADT/Triple.h"
17 #include "llvm/Analysis/CallGraph.h"
18 #include "llvm/Analysis/LoopPass.h"
19 #include "llvm/Analysis/RegionPass.h"
20 #include "llvm/Analysis/Verifier.h"
21 #include "llvm/Assembly/PrintModulePass.h"
22 #include "llvm/Bitcode/ReaderWriter.h"
23 #include "llvm/CallGraphSCCPass.h"
24 #include "llvm/CodeGen/CommandFlags.h"
1525 #include "llvm/DataLayout.h"
1626 #include "llvm/DebugInfo.h"
27 #include "llvm/LinkAllPasses.h"
28 #include "llvm/LinkAllVMCore.h"
29 #include "llvm/MC/SubtargetFeature.h"
1730 #include "llvm/Module.h"
1831 #include "llvm/PassManager.h"
19 #include "llvm/CallGraphSCCPass.h"
20 #include "llvm/CodeGen/CommandFlags.h"
21 #include "llvm/Bitcode/ReaderWriter.h"
22 #include "llvm/Assembly/PrintModulePass.h"
23 #include "llvm/Analysis/Verifier.h"
24 #include "llvm/Analysis/LoopPass.h"
25 #include "llvm/Analysis/RegionPass.h"
26 #include "llvm/Analysis/CallGraph.h"
27 #include "llvm/Target/TargetLibraryInfo.h"
28 #include "llvm/Target/TargetMachine.h"
29 #include "llvm/ADT/StringSet.h"
30 #include "llvm/ADT/Triple.h"
31 #include "llvm/Support/PassNameParser.h"
32 #include "llvm/Support/Signals.h"
3332 #include "llvm/Support/Debug.h"
3433 #include "llvm/Support/IRReader.h"
3534 #include "llvm/Support/ManagedStatic.h"
35 #include "llvm/Support/PassNameParser.h"
3636 #include "llvm/Support/PluginLoader.h"
3737 #include "llvm/Support/PrettyStackTrace.h"
38 #include "llvm/Support/Signals.h"
3839 #include "llvm/Support/SystemUtils.h"
3940 #include "llvm/Support/TargetRegistry.h"
41 #include "llvm/Support/TargetSelect.h"
4042 #include "llvm/Support/ToolOutputFile.h"
41 #include "llvm/Support/TargetSelect.h"
42 #include "llvm/MC/SubtargetFeature.h"
43 #include "llvm/LinkAllPasses.h"
44 #include "llvm/LinkAllVMCore.h"
43 #include "llvm/Target/TargetLibraryInfo.h"
44 #include "llvm/Target/TargetMachine.h"
4545 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
46 #include
4647 #include
47 #include
4848 using namespace llvm;
4949
5050 // The OptimizationList is automatically populated with registered Passes by the