llvm.org GIT mirror llvm / df93f4b
Purge unused includes throughout libSupport. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232976 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 4 years ago
64 changed file(s) with 50 addition(s) and 89 deletion(s). Raw diff Collapse all Expand all
280280 /// Used to insert APFloat objects, or objects that contain APFloat objects,
281281 /// into FoldingSets.
282282 void Profile(FoldingSetNodeID &NID) const;
283
284 /// \brief Used by the Bitcode serializer to emit APInts to Bitcode.
285 void Emit(Serializer &S) const;
286
287 /// \brief Used by the Bitcode deserializer to deserialize APInts.
288 static APFloat ReadVal(Deserializer &D);
289283
290284 /// \name Arithmetic
291285 /// @{
2424 #include
2525
2626 namespace llvm {
27 class Deserializer;
2827 class FoldingSetNodeID;
29 class Serializer;
3028 class StringRef;
3129 class hash_code;
3230 class raw_ostream;
2222 #include "llvm/Support/DataTypes.h"
2323
2424 namespace llvm {
25 class APFloat;
26 class APInt;
27
2825 /// This folding set used for two purposes:
2926 /// 1. Given information about a node we want to create, look up the unique
3027 /// instance of the node in the set. If the node already exists, return
2020 #ifndef LLVM_ADT_INTRUSIVEREFCNTPTR_H
2121 #define LLVM_ADT_INTRUSIVEREFCNTPTR_H
2222
23 #include "llvm/Support/Casting.h"
24 #include "llvm/Support/Compiler.h"
2523 #include
26 #include <memory>
24 #include <cassert>
25 #include
2726
2827 namespace llvm {
2928
267266 // LLVM-style downcasting support for IntrusiveRefCntPtr objects
268267 //===----------------------------------------------------------------------===//
269268
269 template struct simplify_type;
270
270271 template struct simplify_type > {
271272 typedef T* SimpleType;
272273 static SimpleType getSimplifiedValue(IntrusiveRefCntPtr& Val) {
2323
2424 namespace llvm {
2525
26 class Deserializer;
27
2826 /// This class is used to read from an LLVM bitcode stream, maintaining
2927 /// information that is global to decoding the entire file. While a file is
3028 /// being read, multiple cursors can be independently advanced or skipped around
163161 /// Unlike iterators, BitstreamCursors are heavy-weight objects that should not
164162 /// be passed by value.
165163 class BitstreamCursor {
166 friend class Deserializer;
167164 BitstreamReader *BitStream;
168165 size_t NextChar;
169166
1313 #ifndef LLVM_SUPPORT_COMPRESSION_H
1414 #define LLVM_SUPPORT_COMPRESSION_H
1515
16 #include "llvm/ADT/SmallVector.h"
1716 #include "llvm/Support/DataTypes.h"
18 #include
1917
2018 namespace llvm {
21
19 template class SmallVectorImpl;
2220 class StringRef;
2321
2422 namespace zlib {
1313 #include
1414
1515 namespace llvm {
16 class StringRef;
17
1816 class CrashRecoveryContextCleanup;
1917
2018 /// \brief Crash recovery helper object.
99 #ifndef LLVM_SUPPORT_DATAEXTRACTOR_H
1010 #define LLVM_SUPPORT_DATAEXTRACTOR_H
1111
12 #include "llvm/ADT/DenseMap.h"
1312 #include "llvm/ADT/StringRef.h"
1413 #include "llvm/Support/DataTypes.h"
1514
2727 #ifndef LLVM_SUPPORT_DEBUG_H
2828 #define LLVM_SUPPORT_DEBUG_H
2929
30 #include "llvm/Support/raw_ostream.h"
31
3230 namespace llvm {
31 class raw_ostream;
3332
3433 #ifndef NDEBUG
3534 /// DebugFlag - This boolean is set to true if the '-debug' command line option
2323 #define LLVM_SUPPORT_GRAPHWRITER_H
2424
2525 #include "llvm/ADT/GraphTraits.h"
26 #include "llvm/ADT/Twine.h"
2627 #include "llvm/Support/DOTGraphTraits.h"
27 #include "llvm/Support/Path.h"
2828 #include "llvm/Support/raw_ostream.h"
29 #include
3029 #include
3130
3231 namespace llvm {
1616 #include "llvm-c/Support.h"
1717 #include "llvm/ADT/Twine.h"
1818 #include "llvm/Support/CBindingWrapping.h"
19 #include "llvm/Support/Compiler.h"
2019 #include "llvm/Support/DataTypes.h"
2120 #include "llvm/Support/ErrorOr.h"
2221 #include
23 #include
2422
2523 namespace llvm {
2624 class MemoryBufferRef;
1515
1616 #include "llvm/ADT/ArrayRef.h"
1717 #include "llvm/Support/ErrorOr.h"
18 #include "llvm/Support/Path.h"
1918 #include
2019
2120 namespace llvm {
21 class StringRef;
22
2223 namespace sys {
2324
2425 /// This is the OS-specific separator for PATH like environment variables:
1616 #ifndef LLVM_SUPPORT_REGEX_H
1717 #define LLVM_SUPPORT_REGEX_H
1818
19 #include "llvm/Support/Compiler.h"
2019 #include
2120
2221 struct llvm_regex;
1414 #ifndef LLVM_SUPPORT_SIGNALS_H
1515 #define LLVM_SUPPORT_SIGNALS_H
1616
17 #include "llvm/Support/Path.h"
18 #include <cstdio>
17 #include <string>
1918
2019 namespace llvm {
21 class raw_ostream;
20 class StringRef;
21 class raw_ostream;
2222
2323 namespace sys {
2424
1313 #include "llvm/Support/DataStream.h"
1414 #include "llvm/Support/ErrorHandling.h"
1515 #include "llvm/Support/MemoryObject.h"
16 #include
1716 #include
1817 #include
1918
2929 #define LLVM_SUPPORT_STRINGPOOL_H
3030
3131 #include "llvm/ADT/StringMap.h"
32 #include "llvm/Support/Compiler.h"
3332 #include
34 #include
3533
3634 namespace llvm {
3735
1414 #ifndef LLVM_SUPPORT_SYSTEMUTILS_H
1515 #define LLVM_SUPPORT_SYSTEMUTILS_H
1616
17 #include
18
1917 namespace llvm {
2018 class raw_ostream;
2119
2727
2828 namespace llvm {
2929 class AsmPrinter;
30 class Module;
31 class MCAssembler;
3230 class MCAsmBackend;
3331 class MCAsmInfo;
3432 class MCAsmParser;
1010 #define LLVM_SUPPORT_TIMER_H
1111
1212 #include "llvm/ADT/StringRef.h"
13 #include "llvm/Support/Compiler.h"
1413 #include "llvm/Support/DataTypes.h"
1514 #include
1615 #include
3737 #ifndef LLVM_SUPPORT_YAMLPARSER_H
3838 #define LLVM_SUPPORT_YAMLPARSER_H
3939
40 #include "llvm/ADT/SmallString.h"
4140 #include "llvm/ADT/StringRef.h"
4241 #include "llvm/Support/Allocator.h"
43 #include "llvm/Support/MemoryBuffer.h"
4442 #include "llvm/Support/SMLoc.h"
4543 #include
4644 #include
4745 #include
4846
4947 namespace llvm {
48 class MemoryBufferRef;
5049 class SourceMgr;
50 class Twine;
5151 class raw_ostream;
52 class Twine;
5352
5453 namespace yaml {
5554
1515
1616 #include "llvm/ADT/SmallVector.h"
1717 #include "llvm/ADT/StringRef.h"
18 #include "llvm/Support/Compiler.h"
1918 #include "llvm/Support/DataTypes.h"
2019 #include
2120
2020 #include "llvm/IR/LLVMContext.h"
2121 #include "llvm/IR/Metadata.h"
2222 #include "llvm/Support/Debug.h"
23 #include "llvm/Support/raw_ostream.h"
2324
2425 using namespace llvm;
2526
1717 #include "llvm/IR/LLVMContext.h"
1818 #include "llvm/Support/Debug.h"
1919 #include "llvm/Support/Timer.h"
20 #include "llvm/Support/raw_ostream.h"
2021 using namespace llvm;
2122
2223 #define DEBUG_TYPE "loop-pass-manager"
1313 #include "llvm/CodeGen/MachineFunction.h"
1414 #include "llvm/IR/DebugInfo.h"
1515 #include "llvm/Support/Debug.h"
16 #include "llvm/Support/raw_ostream.h"
1617 #include "llvm/Target/TargetRegisterInfo.h"
1718 #include
1819 #include
88
99 #include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
1010 #include "llvm/ADT/ArrayRef.h"
11 #include "llvm/ADT/DenseMap.h"
1112 #include "llvm/ADT/SmallString.h"
1213 #include "llvm/Support/Casting.h"
1314 #include "llvm/Support/DataTypes.h"
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Support/Allocator.h"
14 #include "llvm/Support/Compiler.h"
15 #include "llvm/Support/DataTypes.h"
16 #include "llvm/Support/Memory.h"
17 #include "llvm/Support/Recycler.h"
1814 #include "llvm/Support/raw_ostream.h"
19 #include
2015
2116 namespace llvm {
2217
3232 #include "llvm/Support/MemoryBuffer.h"
3333 #include "llvm/Support/Path.h"
3434 #include "llvm/Support/raw_ostream.h"
35 #include
3635 #include
3736 #include
38 #include
3937 using namespace llvm;
4038 using namespace cl;
4139
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Support/Compression.h"
14 #include "llvm/ADT/SmallVector.h"
1415 #include "llvm/ADT/StringRef.h"
1516 #include "llvm/Config/config.h"
1617 #include "llvm/Support/Compiler.h"
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/Support/CrashRecoveryContext.h"
10 #include "llvm/ADT/SmallString.h"
1110 #include "llvm/Config/config.h"
1211 #include "llvm/Support/ErrorHandling.h"
1312 #include "llvm/Support/ManagedStatic.h"
1413 #include "llvm/Support/Mutex.h"
1514 #include "llvm/Support/ThreadLocal.h"
16 #include
1715 #include
1816 using namespace llvm;
1917
1717 #include "llvm/ADT/Statistic.h"
1818 #include "llvm/Support/FileSystem.h"
1919 #include "llvm/Support/Program.h"
20 #include
21 #include
2220 #include
2321 #include
2422 #if !defined(_MSC_VER) && !defined(__MINGW32__)
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/Support/FileOutputBuffer.h"
14 #include "llvm/ADT/STLExtras.h"
15 #include "llvm/ADT/SmallString.h"
1316 #include "llvm/Support/Errc.h"
14 #include "llvm/ADT/STLExtras.h"
15 #include "llvm/ADT/SmallVector.h"
16 #include "llvm/Support/FileOutputBuffer.h"
17 #include "llvm/Support/raw_ostream.h"
1817 #include
1918
2019 #if !defined(_MSC_VER) && !defined(__MINGW32__)
1414 #include "llvm/Config/config.h"
1515 #include "llvm/Support/CommandLine.h"
1616 #include "llvm/Support/FileSystem.h"
17 #include "llvm/Support/Path.h"
1817 #include "llvm/Support/Program.h"
1918 using namespace llvm;
2019
66 //
77 //===----------------------------------------------------------------------===//
88 #include "llvm/Support/LockFileManager.h"
9 #include "llvm/ADT/STLExtras.h"
109 #include "llvm/ADT/StringExtras.h"
1110 #include "llvm/Support/Errc.h"
1211 #include "llvm/Support/FileSystem.h"
1312 #include "llvm/Support/MemoryBuffer.h"
14 #include "llvm/Support/Path.h"
1513 #include "llvm/Support/raw_ostream.h"
1614 #include
1715 #include
2222 #include "llvm/Support/Program.h"
2323 #include
2424 #include
25 #include
2625 #include
2726 #include
2827 #include
1818 #include "llvm/Support/Path.h"
1919 #include "llvm/Support/Process.h"
2020 #include
21 #include
2221 #include
23 #include
2422
2523 #if !defined(_MSC_VER) && !defined(__MINGW32__)
2624 #include
1212
1313 #include "llvm/ADT/StringExtras.h"
1414 #include "llvm/Config/config.h"
15 #include "llvm/Support/ErrorHandling.h"
1615 #include "llvm/Support/FileSystem.h"
16 #include "llvm/Support/Path.h"
1717 #include "llvm/Support/Process.h"
1818 #include "llvm/Support/Program.h"
1919
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Support/Program.h"
14 #include "llvm/ADT/StringRef.h"
1415 #include "llvm/Config/config.h"
1516 #include
1617 using namespace llvm;
1313 #include "llvm/Support/Regex.h"
1414 #include "regex_impl.h"
1515 #include "llvm/ADT/SmallVector.h"
16 #include "llvm/Support/ErrorHandling.h"
17 #include "llvm/Support/raw_ostream.h"
16 #include "llvm/ADT/StringRef.h"
1817 #include
1918 using namespace llvm;
2019
1313 #include "llvm/Support/ScaledNumber.h"
1414 #include "llvm/ADT/APFloat.h"
1515 #include "llvm/Support/Debug.h"
16 #include "llvm/Support/raw_ostream.h"
1617
1718 using namespace llvm;
1819 using namespace llvm::ScaledNumbers;
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/Support/SourceMgr.h"
16 #include "llvm/ADT/SmallString.h"
1716 #include "llvm/ADT/Twine.h"
1817 #include "llvm/Support/Locale.h"
1918 #include "llvm/Support/MemoryBuffer.h"
2019 #include "llvm/Support/Path.h"
2120 #include "llvm/Support/raw_ostream.h"
22 #include
2321 using namespace llvm;
2422
2523 static const size_t TabStop = 8;
1414 //===----------------------------------------------------------------------===//
1515
1616 #include "llvm/Support/SpecialCaseList.h"
17 #include "llvm/ADT/STLExtras.h"
1817 #include "llvm/ADT/SmallVector.h"
1918 #include "llvm/ADT/StringExtras.h"
2019 #include "llvm/ADT/StringSet.h"
2120 #include "llvm/Support/MemoryBuffer.h"
2221 #include "llvm/Support/Regex.h"
23 #include "llvm/Support/raw_ostream.h"
2422 #include
2523 #include
2624 #include
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/Support/StreamingMemoryObject.h"
10 #include "llvm/Support/Compiler.h"
1110 #include
1211 #include
1312 #include
14
15
1613 using namespace llvm;
1714
1815 namespace {
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/ADT/STLExtras.h"
1514 #include "llvm/ADT/StringExtras.h"
1615 using namespace llvm;
1716
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/Support/SystemUtils.h"
15 #include "llvm/Support/Process.h"
16 #include "llvm/Support/Program.h"
1715 #include "llvm/Support/raw_ostream.h"
1816 using namespace llvm;
1917
99 #include "llvm/Support/TargetRegistry.h"
1010 #include "llvm/ADT/STLExtras.h"
1111 #include "llvm/ADT/StringRef.h"
12 #include "llvm/Support/Host.h"
1312 #include "llvm/Support/raw_ostream.h"
1413 #include
1514 #include
1313 #include "llvm/Support/Timer.h"
1414 #include "llvm/ADT/StringMap.h"
1515 #include "llvm/Support/CommandLine.h"
16 #include "llvm/Support/Debug.h"
1716 #include "llvm/Support/FileSystem.h"
1817 #include "llvm/Support/Format.h"
1918 #include "llvm/Support/ManagedStatic.h"
2019 #include "llvm/Support/Mutex.h"
21 #include "llvm/Support/MutexGuard.h"
2220 #include "llvm/Support/Process.h"
2321 #include "llvm/Support/raw_ostream.h"
2422 using namespace llvm;
1717
1818 #include "Unix.h"
1919 #include "llvm/ADT/StringExtras.h"
20 #include "llvm/Config/config.h"
2021 #include "llvm/Support/Compiler.h"
2122 #include "llvm/Support/FileSystem.h"
23 #include "llvm/Support/Path.h"
2224 #include "llvm/Support/raw_ostream.h"
23 #include
2425 #if HAVE_SYS_STAT_H
2526 #include
2627 #endif
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Support/YAMLParser.h"
14 #include "llvm/ADT/SmallString.h"
1415 #include "llvm/ADT/SmallVector.h"
1516 #include "llvm/ADT/StringExtras.h"
1617 #include "llvm/ADT/Twine.h"
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "llvm/Support/Errc.h"
9 #include "llvm/Support/YAMLTraits.h"
10 #include "llvm/ADT/SmallString.h"
1011 #include "llvm/ADT/Twine.h"
1112 #include "llvm/Support/Casting.h"
13 #include "llvm/Support/Errc.h"
1214 #include "llvm/Support/ErrorHandling.h"
1315 #include "llvm/Support/Format.h"
1416 #include "llvm/Support/YAMLParser.h"
15 #include "llvm/Support/YAMLTraits.h"
1617 #include "llvm/Support/raw_ostream.h"
1718 #include
1819 #include
2323 #include "llvm/CodeGen/MachineRegisterInfo.h"
2424 #include "llvm/Support/CommandLine.h"
2525 #include "llvm/Support/Debug.h"
26 #include "llvm/Support/raw_ostream.h"
2627 #include "llvm/Target/TargetInstrInfo.h"
2728
2829 using namespace llvm;
2020 #include "llvm/IR/Function.h" // To access Function attributes
2121 #include "llvm/Support/CommandLine.h"
2222 #include "llvm/Support/Debug.h"
23 #include "llvm/Support/raw_ostream.h"
2324 #include "llvm/Target/TargetMachine.h"
2425 using namespace llvm;
2526
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "MipsTargetMachine.h"
1314 #include "llvm/IR/Module.h"
1415 #include "llvm/IR/Value.h"
1516 #include "llvm/Support/Debug.h"
16 #include "MipsTargetMachine.h"
17 #include "llvm/Support/raw_ostream.h"
1718 #include
1819 #include
1920
1010 #include "Mips.h"
1111 #include "MipsTargetMachine.h"
1212 #include "llvm/Support/Debug.h"
13 #include "llvm/Support/raw_ostream.h"
1314
1415 using namespace llvm;
1516
1717 #include "llvm/IR/IRBuilder.h"
1818 #include "llvm/IR/InstVisitor.h"
1919 #include "llvm/Support/Debug.h"
20 #include "llvm/Support/raw_ostream.h"
2021
2122 #define DEBUG_TYPE "amdgpu-promote-alloca"
2223
1717 #include "llvm/CodeGen/MachineInstrBuilder.h"
1818 #include "llvm/CodeGen/MachineRegisterInfo.h"
1919 #include "llvm/IR/Constants.h"
20 #include "llvm/IR/Function.h"
2021 #include "llvm/IR/LLVMContext.h"
21 #include "llvm/IR/Function.h"
2222 #include "llvm/Support/Debug.h"
23 #include "llvm/Support/raw_ostream.h"
2324 #include "llvm/Target/TargetMachine.h"
2425
2526 #define DEBUG_TYPE "si-shrink-instructions"
5959 #define DEBUG_TYPE "symbol-rewriter"
6060 #include "llvm/CodeGen/Passes.h"
6161 #include "llvm/Pass.h"
62 #include "llvm/ADT/SmallString.h"
6263 #include "llvm/IR/LegacyPassManager.h"
6364 #include "llvm/Support/CommandLine.h"
6465 #include "llvm/Support/Debug.h"
1515 #include "llvm/ExecutionEngine/ExecutionEngine.h"
1616 #include "llvm/Support/Debug.h"
1717 #include "llvm/Support/Format.h"
18 #include "llvm/Support/raw_ostream.h"
1819
1920 using namespace llvm;
2021
4141 #include "llvm/Support/MathExtras.h"
4242 #include "llvm/Support/Memory.h"
4343 #include "llvm/Support/MemoryBuffer.h"
44 #include "llvm/Support/Path.h"
4445 #include "llvm/Support/PluginLoader.h"
4546 #include "llvm/Support/PrettyStackTrace.h"
4647 #include "llvm/Support/Process.h"
2323 #include "llvm/Support/LineIterator.h"
2424 #include "llvm/Support/ManagedStatic.h"
2525 #include "llvm/Support/MemoryBuffer.h"
26 #include "llvm/Support/Path.h"
2627 #include "llvm/Support/PrettyStackTrace.h"
2728 #include "llvm/Support/Signals.h"
2829 #include "llvm/Support/TargetSelect.h"
2323 #include "llvm/Support/Signals.h"
2424 #include "llvm/Support/TargetRegistry.h"
2525 #include "llvm/Support/TargetSelect.h"
26 #include "llvm/Support/raw_ostream.h"
2627 #include
2728 #include
2829 #include
2121 #include "llvm/Support/Format.h"
2222 #include "llvm/Support/ManagedStatic.h"
2323 #include "llvm/Support/MemoryBuffer.h"
24 #include "llvm/Support/Path.h"
2425 #include "llvm/Support/PrettyStackTrace.h"
2526 #include "llvm/Support/Signals.h"
2627 #include "llvm/Support/raw_ostream.h"
2020 #include "llvm/Support/Debug.h"
2121 #include "llvm/Support/FileSystem.h"
2222 #include "llvm/Support/ManagedStatic.h"
23 #include "llvm/Support/Path.h"
2324 #include "llvm/Support/PrettyStackTrace.h"
2425 #include "llvm/Support/Signals.h"
2526 #include "llvm/Support/raw_ostream.h"
4646 #include "llvm/Support/Signals.h"
4747 #include "llvm/Support/SourceMgr.h"
4848 #include "llvm/Support/SystemUtils.h"
49 #include "llvm/Support/raw_ostream.h"
4950 #include
5051 #include
5152
99 #include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
1010 #include "llvm/ADT/SmallString.h"
1111 #include "llvm/Support/Dwarf.h"
12 #include "llvm/Support/Host.h"
1213 #include "llvm/Support/LEB128.h"
13 #include "llvm/Support/Host.h"
1414 #include "gtest/gtest.h"
15 #include
1516 using namespace llvm;
1617 using namespace dwarf;
1718