Skip to content

Commit 8a61bfc

Browse files
authored
[NFC] Fix TableGen include guards to match paths (llvm#102746)
- Fix include guards for headers under utils/TableGen to match their paths.
1 parent 9d6cec5 commit 8a61bfc

25 files changed

+79
-75
lines changed

llvm/utils/TableGen/Basic/CodeGenIntrinsics.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef LLVM_UTILS_TABLEGEN_CODEGENINTRINSICS_H
14-
#define LLVM_UTILS_TABLEGEN_CODEGENINTRINSICS_H
13+
#ifndef LLVM_UTILS_TABLEGEN_BASIC_CODEGENINTRINSICS_H
14+
#define LLVM_UTILS_TABLEGEN_BASIC_CODEGENINTRINSICS_H
1515

1616
#include "SDNodeProperties.h"
1717
#include "llvm/ADT/ArrayRef.h"
@@ -183,4 +183,4 @@ class CodeGenIntrinsicTable {
183183
};
184184
} // namespace llvm
185185

186-
#endif
186+
#endif // LLVM_UTILS_TABLEGEN_BASIC_CODEGENINTRINSICS_H

llvm/utils/TableGen/Basic/SDNodeProperties.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
10-
#define LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
9+
#ifndef LLVM_UTILS_TABLEGEN_BASIC_SDNODEPROPERTIES_H
10+
#define LLVM_UTILS_TABLEGEN_BASIC_SDNODEPROPERTIES_H
1111

1212
namespace llvm {
1313

@@ -36,4 +36,4 @@ unsigned parseSDPatternOperatorProperties(Record *R);
3636

3737
} // namespace llvm
3838

39-
#endif
39+
#endif // LLVM_UTILS_TABLEGEN_BASIC_SDNODEPROPERTIES_H

llvm/utils/TableGen/Basic/SequenceToOffsetTable.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#ifndef LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSETTABLE_H
16-
#define LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSETTABLE_H
15+
#ifndef LLVM_UTILS_TABLEGEN_BASIC_SEQUENCETOOFFSETTABLE_H
16+
#define LLVM_UTILS_TABLEGEN_BASIC_SEQUENCETOOFFSETTABLE_H
1717

1818
#include "llvm/Support/CommandLine.h"
1919
#include "llvm/Support/raw_ostream.h"
@@ -172,4 +172,4 @@ class SequenceToOffsetTable {
172172

173173
} // end namespace llvm
174174

175-
#endif
175+
#endif // LLVM_UTILS_TABLEGEN_BASIC_SEQUENCETOOFFSETTABLE_H

llvm/utils/TableGen/Common/AsmWriterInst.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
//
1414
//===----------------------------------------------------------------------===//
1515

16-
#ifndef LLVM_UTILS_TABLEGEN_ASMWRITERINST_H
17-
#define LLVM_UTILS_TABLEGEN_ASMWRITERINST_H
16+
#ifndef LLVM_UTILS_TABLEGEN_COMMON_ASMWRITERINST_H
17+
#define LLVM_UTILS_TABLEGEN_COMMON_ASMWRITERINST_H
1818

1919
#include <string>
2020
#include <vector>
@@ -104,4 +104,4 @@ class AsmWriterInst {
104104
};
105105
} // namespace llvm
106106

107-
#endif
107+
#endif // LLVM_UTILS_TABLEGEN_COMMON_ASMWRITERINST_H

llvm/utils/TableGen/Common/CodeGenDAGPatterns.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#ifndef LLVM_UTILS_TABLEGEN_CODEGENDAGPATTERNS_H
15-
#define LLVM_UTILS_TABLEGEN_CODEGENDAGPATTERNS_H
14+
#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENDAGPATTERNS_H
15+
#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENDAGPATTERNS_H
1616

1717
#include "Basic/CodeGenIntrinsics.h"
1818
#include "Basic/SDNodeProperties.h"
@@ -1266,4 +1266,4 @@ inline bool SDNodeInfo::ApplyTypeConstraints(TreePatternNode &N,
12661266

12671267
} // end namespace llvm
12681268

1269-
#endif
1269+
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENDAGPATTERNS_H

llvm/utils/TableGen/Common/CodeGenHwModes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// Classes to parse and store HW mode information for instruction selection.
99
//===----------------------------------------------------------------------===//
1010

11-
#ifndef LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
12-
#define LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
11+
#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENHWMODES_H
12+
#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENHWMODES_H
1313

1414
#include "llvm/ADT/DenseMap.h"
1515
#include "llvm/ADT/StringRef.h"
@@ -72,4 +72,4 @@ struct CodeGenHwModes {
7272
};
7373
} // namespace llvm
7474

75-
#endif // LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
75+
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENHWMODES_H

llvm/utils/TableGen/Common/CodeGenInstAlias.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef LLVM_UTILS_TABLEGEN_CODEGENINSTALIAS_H
14-
#define LLVM_UTILS_TABLEGEN_CODEGENINSTALIAS_H
13+
#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTALIAS_H
14+
#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTALIAS_H
1515

1616
#include "llvm/ADT/StringRef.h"
1717
#include <cassert>
@@ -102,4 +102,4 @@ class CodeGenInstAlias {
102102

103103
} // namespace llvm
104104

105-
#endif // LLVM_UTILS_TABLEGEN_CODEGENINSTALIAS_H
105+
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTALIAS_H

llvm/utils/TableGen/Common/CodeGenInstruction.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef LLVM_UTILS_TABLEGEN_CODEGENINSTRUCTION_H
14-
#define LLVM_UTILS_TABLEGEN_CODEGENINSTRUCTION_H
13+
#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTRUCTION_H
14+
#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTRUCTION_H
1515

1616
#include "llvm/ADT/BitVector.h"
1717
#include "llvm/ADT/StringMap.h"
@@ -344,4 +344,4 @@ class CodeGenInstruction {
344344
};
345345
} // namespace llvm
346346

347-
#endif
347+
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTRUCTION_H

llvm/utils/TableGen/Common/CodeGenRegisters.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#ifndef LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H
15-
#define LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H
14+
#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENREGISTERS_H
15+
#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENREGISTERS_H
1616

1717
#include "CodeGenHwModes.h"
1818
#include "InfoByHwMode.h"
@@ -860,4 +860,4 @@ class CodeGenRegBank {
860860

861861
} // end namespace llvm
862862

863-
#endif // LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H
863+
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENREGISTERS_H

llvm/utils/TableGen/Common/CodeGenSchedule.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#ifndef LLVM_UTILS_TABLEGEN_CODEGENSCHEDULE_H
15-
#define LLVM_UTILS_TABLEGEN_CODEGENSCHEDULE_H
14+
#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENSCHEDULE_H
15+
#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENSCHEDULE_H
1616

1717
#include "llvm/ADT/APInt.h"
1818
#include "llvm/ADT/ArrayRef.h"
@@ -651,4 +651,4 @@ class CodeGenSchedModels {
651651

652652
} // namespace llvm
653653

654-
#endif
654+
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENSCHEDULE_H

0 commit comments

Comments
 (0)