llvm.org GIT mirror llvm / 4ffd89f
Sort the #include lines for utils/... I've tried to find main moudle headers where possible, but the TableGen stuff may warrant someone else looking at it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169251 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
39 changed file(s) with 80 addition(s) and 92 deletion(s). Raw diff Collapse all Expand all
1616 //===----------------------------------------------------------------------===//
1717
1818 #include "llvm/ADT/OwningPtr.h"
19 #include "llvm/ADT/SmallString.h"
20 #include "llvm/ADT/StringExtras.h"
21 #include "llvm/ADT/StringMap.h"
1922 #include "llvm/Support/CommandLine.h"
2023 #include "llvm/Support/MemoryBuffer.h"
2124 #include "llvm/Support/PrettyStackTrace.h"
2225 #include "llvm/Support/Regex.h"
26 #include "llvm/Support/Signals.h"
2327 #include "llvm/Support/SourceMgr.h"
2428 #include "llvm/Support/raw_ostream.h"
25 #include "llvm/Support/Signals.h"
2629 #include "llvm/Support/system_error.h"
27 #include "llvm/ADT/SmallString.h"
28 #include "llvm/ADT/StringExtras.h"
29 #include "llvm/ADT/StringMap.h"
3030 #include
3131 #include
3232 #include
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #include "llvm/ADT/OwningPtr.h"
1516 #include "llvm/Support/CommandLine.h"
1617 #include "llvm/Support/MemoryBuffer.h"
17 #include "llvm/ADT/OwningPtr.h"
1818 #include "llvm/Support/PrettyStackTrace.h"
19 #include "llvm/Support/Signals.h"
1920 #include "llvm/Support/ToolOutputFile.h"
20 #include "llvm/Support/Signals.h"
2121 #include "llvm/Support/system_error.h"
2222 using namespace llvm;
2323
3838 #include "llvm/Support/CommandLine.h"
3939 #include "llvm/Support/ManagedStatic.h"
4040 #include "llvm/Support/PrettyStackTrace.h"
41 #include "llvm/Support/Signals.h"
4142 #include "llvm/Support/raw_ostream.h"
43 #include "llvm/Support/system_error.h"
4244 #include "llvm/Support/type_traits.h"
43 #include "llvm/Support/Signals.h"
44 #include "llvm/Support/system_error.h"
4545 #include
4646 #include
4747 #include
4848 #include
49 #include
4950 #include
51
52 // This includes must be last.
53 #include
54 #include
5055 #include
51 #include
52 #include
53 #include
56
5457 using namespace llvm;
5558
5659 #undef max
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #include
17 #include
18 #include
1916 #include
2017 #include
18 #include
19 #include
20 #include
2121 struct Operator;
2222
2323 // Masks are 4-nibble hex numbers. Values 0-7 in any nibble means that it takes
9999 #include "StringToOffsetTable.h"
100100 #include "llvm/ADT/OwningPtr.h"
101101 #include "llvm/ADT/PointerUnion.h"
102 #include "llvm/ADT/STLExtras.h"
102103 #include "llvm/ADT/SmallPtrSet.h"
103104 #include "llvm/ADT/SmallVector.h"
104 #include "llvm/ADT/STLExtras.h"
105105 #include "llvm/ADT/StringExtras.h"
106106 #include "llvm/Support/CommandLine.h"
107107 #include "llvm/Support/Debug.h"
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "CodeGenTarget.h"
16 #include "llvm/TableGen/Record.h"
1716 #include "llvm/ADT/StringExtras.h"
1817 #include "llvm/Support/CommandLine.h"
1918 #include "llvm/Support/Debug.h"
19 #include "llvm/TableGen/Record.h"
2020 #include "llvm/TableGen/TableGenBackend.h"
2121 #include
2222 #include
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "CodeGenDAGPatterns.h"
15 #include "llvm/TableGen/Error.h"
16 #include "llvm/TableGen/Record.h"
15 #include "llvm/ADT/STLExtras.h"
1716 #include "llvm/ADT/StringExtras.h"
18 #include "llvm/ADT/STLExtras.h"
1917 #include "llvm/ADT/Twine.h"
2018 #include "llvm/Support/Debug.h"
2119 #include "llvm/Support/ErrorHandling.h"
20 #include "llvm/TableGen/Error.h"
21 #include "llvm/TableGen/Record.h"
2222 #include
2323 #include
2424 #include
1414 #ifndef CODEGEN_DAGPATTERNS_H
1515 #define CODEGEN_DAGPATTERNS_H
1616
17 #include "CodeGenIntrinsics.h"
1718 #include "CodeGenTarget.h"
18 #include "CodeGenIntrinsics.h"
1919 #include "llvm/ADT/SmallVector.h"
2020 #include "llvm/ADT/StringMap.h"
2121 #include "llvm/Support/ErrorHandling.h"
22 #include
23 #include
2224 #include
23 #include
2425 #include
25 #include
2626
2727 namespace llvm {
2828 class Record;
1212
1313 #include "CodeGenInstruction.h"
1414 #include "CodeGenTarget.h"
15 #include "llvm/ADT/STLExtras.h"
16 #include "llvm/ADT/StringExtras.h"
17 #include "llvm/ADT/StringMap.h"
1518 #include "llvm/TableGen/Error.h"
1619 #include "llvm/TableGen/Record.h"
17 #include "llvm/ADT/StringExtras.h"
18 #include "llvm/ADT/StringMap.h"
19 #include "llvm/ADT/STLExtras.h"
2020 #include
2121 using namespace llvm;
2222
1313 #ifndef CODEGEN_INSTRUCTION_H
1414 #define CODEGEN_INSTRUCTION_H
1515
16 #include "llvm/ADT/StringRef.h"
1617 #include "llvm/CodeGen/ValueTypes.h"
17 #include "llvm/ADT/StringRef.h"
1818 #include "llvm/Support/SourceMgr.h"
1919 #include
20 #include
2021 #include
21 #include
2222
2323 namespace llvm {
2424 class Record;
1313 #ifndef CODEGEN_INTRINSIC_H
1414 #define CODEGEN_INTRINSIC_H
1515
16 #include "llvm/CodeGen/ValueTypes.h"
1617 #include
1718 #include
18 #include "llvm/CodeGen/ValueTypes.h"
1919
2020 namespace llvm {
2121 class Record;
1313
1414 #include "CodeGenRegisters.h"
1515 #include "CodeGenTarget.h"
16 #include "llvm/TableGen/Error.h"
1716 #include "llvm/ADT/IntEqClasses.h"
17 #include "llvm/ADT/STLExtras.h"
1818 #include "llvm/ADT/SmallVector.h"
19 #include "llvm/ADT/STLExtras.h"
2019 #include "llvm/ADT/StringExtras.h"
2120 #include "llvm/ADT/Twine.h"
21 #include "llvm/TableGen/Error.h"
2222
2323 using namespace llvm;
2424
1515 #define CODEGEN_REGISTERS_H
1616
1717 #include "SetTheory.h"
18 #include "llvm/TableGen/Record.h"
19 #include "llvm/CodeGen/ValueTypes.h"
2018 #include "llvm/ADT/ArrayRef.h"
2119 #include "llvm/ADT/BitVector.h"
2220 #include "llvm/ADT/DenseMap.h"
2321 #include "llvm/ADT/SetVector.h"
22 #include "llvm/CodeGen/ValueTypes.h"
2423 #include "llvm/Support/ErrorHandling.h"
24 #include "llvm/TableGen/Record.h"
2525 #include
2626 #include
27 #include
2728 #include
28 #include
2929 #include
3030
3131 namespace llvm {
1515
1616 #include "CodeGenSchedule.h"
1717 #include "CodeGenTarget.h"
18 #include "llvm/TableGen/Error.h"
18 #include "llvm/ADT/STLExtras.h"
1919 #include "llvm/Support/Debug.h"
2020 #include "llvm/Support/Regex.h"
21 #include "llvm/ADT/STLExtras.h"
21 #include "llvm/TableGen/Error.h"
2222
2323 using namespace llvm;
2424
1515 #define CODEGEN_SCHEDULE_H
1616
1717 #include "SetTheory.h"
18 #include "llvm/TableGen/Record.h"
19 #include "llvm/Support/ErrorHandling.h"
2018 #include "llvm/ADT/DenseMap.h"
2119 #include "llvm/ADT/StringMap.h"
20 #include "llvm/Support/ErrorHandling.h"
21 #include "llvm/TableGen/Record.h"
2222
2323 namespace llvm {
2424
1616 #include "CodeGenTarget.h"
1717 #include "CodeGenIntrinsics.h"
1818 #include "CodeGenSchedule.h"
19 #include "llvm/ADT/STLExtras.h"
20 #include "llvm/ADT/StringExtras.h"
21 #include "llvm/Support/CommandLine.h"
1922 #include "llvm/TableGen/Error.h"
2023 #include "llvm/TableGen/Record.h"
21 #include "llvm/ADT/StringExtras.h"
22 #include "llvm/ADT/STLExtras.h"
23 #include "llvm/Support/CommandLine.h"
2424 #include
2525 using namespace llvm;
2626
1616 #ifndef CODEGEN_TARGET_H
1717 #define CODEGEN_TARGET_H
1818
19 #include "CodeGenInstruction.h"
1920 #include "CodeGenRegisters.h"
20 #include "CodeGenInstruction.h"
21 #include "llvm/Support/raw_ostream.h"
2122 #include "llvm/TableGen/Record.h"
22 #include "llvm/Support/raw_ostream.h"
2323 #include
2424
2525 namespace llvm {
99 #include "DAGISelMatcher.h"
1010 #include "CodeGenDAGPatterns.h"
1111 #include "CodeGenTarget.h"
12 #include "llvm/ADT/StringExtras.h"
13 #include "llvm/Support/raw_ostream.h"
1214 #include "llvm/TableGen/Record.h"
13 #include "llvm/Support/raw_ostream.h"
14 #include "llvm/ADT/StringExtras.h"
1515 using namespace llvm;
1616
1717 void Matcher::anchor() { }
99 #ifndef TBLGEN_DAGISELMATCHER_H
1010 #define TBLGEN_DAGISELMATCHER_H
1111
12 #include "llvm/ADT/OwningPtr.h"
13 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/ADT/StringRef.h"
1215 #include "llvm/CodeGen/ValueTypes.h"
13 #include "llvm/ADT/OwningPtr.h"
14 #include "llvm/ADT/StringRef.h"
15 #include "llvm/ADT/SmallVector.h"
1616 #include "llvm/Support/Casting.h"
1717
1818 namespace llvm {
1212
1313 #include "DAGISelMatcher.h"
1414 #include "CodeGenDAGPatterns.h"
15 #include "llvm/TableGen/Record.h"
1615 #include "llvm/ADT/DenseMap.h"
1716 #include "llvm/ADT/SmallString.h"
1817 #include "llvm/ADT/StringMap.h"
1918 #include "llvm/Support/CommandLine.h"
2019 #include "llvm/Support/FormattedStream.h"
20 #include "llvm/TableGen/Record.h"
2121 using namespace llvm;
2222
2323 enum {
99 #include "DAGISelMatcher.h"
1010 #include "CodeGenDAGPatterns.h"
1111 #include "CodeGenRegisters.h"
12 #include "llvm/TableGen/Error.h"
13 #include "llvm/TableGen/Record.h"
1412 #include "llvm/ADT/DenseMap.h"
1513 #include "llvm/ADT/SmallVector.h"
1614 #include "llvm/ADT/StringMap.h"
15 #include "llvm/TableGen/Error.h"
16 #include "llvm/TableGen/Record.h"
1717 #include
1818 using namespace llvm;
1919
1414 #define DEBUG_TYPE "decoder-emitter"
1515
1616 #include "CodeGenTarget.h"
17 #include "llvm/TableGen/Error.h"
18 #include "llvm/TableGen/Record.h"
1917 #include "llvm/ADT/APInt.h"
2018 #include "llvm/ADT/SmallString.h"
2119 #include "llvm/ADT/StringExtras.h"
2725 #include "llvm/Support/FormattedStream.h"
2826 #include "llvm/Support/LEB128.h"
2927 #include "llvm/Support/raw_ostream.h"
28 #include "llvm/TableGen/Error.h"
29 #include "llvm/TableGen/Record.h"
3030 #include "llvm/TableGen/TableGenBackend.h"
31
32 #include
3331 #include
3432 #include
33 #include
3534
3635 using namespace llvm;
3736
1515 #include "CodeGenDAGPatterns.h"
1616 #include "CodeGenSchedule.h"
1717 #include "CodeGenTarget.h"
18 #include "SequenceToOffsetTable.h"
1819 #include "TableGenBackends.h"
19 #include "SequenceToOffsetTable.h"
2020 #include "llvm/ADT/StringExtras.h"
2121 #include "llvm/TableGen/Error.h"
2222 #include "llvm/TableGen/Record.h"
1616 #define TBLGEN_SEQUENCE_TO_OFFSET_TABLE_H
1717
1818 #include "llvm/Support/raw_ostream.h"
19 #include
2019 #include
21 #include
2220 #include
2321 #include
22 #include
23 #include
2424
2525 namespace llvm {
2626
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "SetTheory.h"
15 #include "llvm/Support/Format.h"
1516 #include "llvm/TableGen/Error.h"
1617 #include "llvm/TableGen/Record.h"
17 #include "llvm/Support/Format.h"
1818
1919 using namespace llvm;
2020
4646 #ifndef SETTHEORY_H
4747 #define SETTHEORY_H
4848
49 #include "llvm/ADT/SetVector.h"
4950 #include "llvm/ADT/StringMap.h"
50 #include "llvm/ADT/SetVector.h"
5151 #include "llvm/Support/SourceMgr.h"
5252 #include
5353 #include
1010 #define TBLGEN_STRING_TO_OFFSET_TABLE_H
1111
1212 #include "llvm/ADT/SmallString.h"
13 #include "llvm/ADT/StringExtras.h"
1314 #include "llvm/ADT/StringMap.h"
14 #include "llvm/ADT/StringExtras.h"
1515 #include "llvm/Support/raw_ostream.h"
1616 #include
1717
1414
1515 #include "CodeGenTarget.h"
1616 #include "CodeGenSchedule.h"
17 #include "llvm/ADT/STLExtras.h"
1718 #include "llvm/ADT/StringExtras.h"
18 #include "llvm/ADT/STLExtras.h"
1919 #include "llvm/MC/MCInstrItineraries.h"
20 #include "llvm/Support/Debug.h"
21 #include "llvm/Support/Format.h"
2022 #include "llvm/TableGen/Error.h"
2123 #include "llvm/TableGen/Record.h"
2224 #include "llvm/TableGen/TableGenBackend.h"
23 #include "llvm/Support/Debug.h"
24 #include "llvm/Support/Format.h"
2525 #include
2626 #include
2727 #include
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "TableGenBackends.h" // Declares all backends.
14
1514 #include "SetTheory.h"
1615 #include "llvm/Support/CommandLine.h"
1716 #include "llvm/Support/PrettyStackTrace.h"
99 #ifndef X86DISASSEMBLERSHARED_H
1010 #define X86DISASSEMBLERSHARED_H
1111
12 #include
1213 #include
13 #include
1414
1515 #define INSTRUCTION_SPECIFIER_FIELDS \
1616 struct OperandSpecifier operands[X86_MAX_OPERANDS]; \
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #include "X86DisassemblerTables.h"
1617 #include "X86DisassemblerShared.h"
17 #include "X86DisassemblerTables.h"
18
19 #include "llvm/TableGen/TableGenBackend.h"
2018 #include "llvm/ADT/STLExtras.h"
2119 #include "llvm/Support/ErrorHandling.h"
2220 #include "llvm/Support/Format.h"
21 #include "llvm/TableGen/TableGenBackend.h"
2322 #include
2423
2524 using namespace llvm;
1818
1919 #include "X86DisassemblerShared.h"
2020 #include "X86ModRMFilters.h"
21
2221 #include "llvm/Support/raw_ostream.h"
23
2422 #include
2523
2624 namespace llvm {
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #include "X86RecognizableInstr.h"
1617 #include "X86DisassemblerShared.h"
17 #include "X86RecognizableInstr.h"
1818 #include "X86ModRMFilters.h"
19
2019 #include "llvm/Support/ErrorHandling.h"
21
2220 #include
2321
2422 using namespace llvm;
1616 #ifndef X86RECOGNIZABLEINSTR_H
1717 #define X86RECOGNIZABLEINSTR_H
1818
19 #include "CodeGenTarget.h"
1920 #include "X86DisassemblerTables.h"
20
21 #include "CodeGenTarget.h"
22
21 #include "llvm/ADT/SmallVector.h"
22 #include "llvm/Support/DataTypes.h"
2323 #include "llvm/TableGen/Record.h"
24 #include "llvm/Support/DataTypes.h"
25 #include "llvm/ADT/SmallVector.h"
2624
2725 namespace llvm {
2826
77 //===----------------------------------------------------------------------===//
88
99 #include "obj2yaml.h"
10
1110 #include "llvm/Object/COFF.h"
1211
1312
77 //===----------------------------------------------------------------------===//
88
99 #include "obj2yaml.h"
10
1110 #include "llvm/ADT/OwningPtr.h"
12
11 #include "llvm/Object/Archive.h"
12 #include "llvm/Object/COFF.h"
1313 #include "llvm/Support/CommandLine.h"
1414 #include "llvm/Support/ManagedStatic.h"
1515 #include "llvm/Support/PrettyStackTrace.h"
1616 #include "llvm/Support/Signals.h"
17
18 #include "llvm/Object/Archive.h"
19 #include "llvm/Object/COFF.h"
2017
2118 const char endl = '\n';
2219
1313 #define LLVM_UTILS_OBJ2YAML_H
1414
1515 #include "llvm/ADT/ArrayRef.h"
16
16 #include "llvm/Support/MemoryBuffer.h"
17 #include "llvm/Support/raw_ostream.h"
1718 #include "llvm/Support/system_error.h"
18 #include "llvm/Support/raw_ostream.h"
19 #include "llvm/Support/MemoryBuffer.h"
2019
2120 namespace yaml { // routines for writing YAML
2221 // Write a hex stream:
1616 #include "llvm/Support/Casting.h"
1717 #include "llvm/Support/CommandLine.h"
1818 #include "llvm/Support/MemoryBuffer.h"
19 #include "llvm/Support/raw_ostream.h"
2019 #include "llvm/Support/SourceMgr.h"
21 #include "llvm/Support/system_error.h"
2220 #include "llvm/Support/Timer.h"
2321 #include "llvm/Support/YAMLParser.h"
22 #include "llvm/Support/raw_ostream.h"
23 #include "llvm/Support/system_error.h"
2424
2525 using namespace llvm;
2626
2424 #include "llvm/Support/ManagedStatic.h"
2525 #include "llvm/Support/MemoryBuffer.h"
2626 #include "llvm/Support/PrettyStackTrace.h"
27 #include "llvm/Support/raw_ostream.h"
2827 #include "llvm/Support/Signals.h"
2928 #include "llvm/Support/SourceMgr.h"
29 #include "llvm/Support/YAMLParser.h"
30 #include "llvm/Support/raw_ostream.h"
3031 #include "llvm/Support/system_error.h"
31 #include "llvm/Support/YAMLParser.h"
32
3332 #include
3433
3534 using namespace llvm;