[llvm] [NFC] Fix TableGen include guards to match paths (PR #102746)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 10 07:56:43 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-globalisel

Author: Rahul Joshi (jurahul)

<details>
<summary>Changes</summary>

- Fix include guards for headers under utils/TableGen to match their paths.

---

Patch is 20.11 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/102746.diff


25 Files Affected:

- (modified) llvm/utils/TableGen/Basic/CodeGenIntrinsics.h (+3-3) 
- (modified) llvm/utils/TableGen/Basic/SDNodeProperties.h (+3-3) 
- (modified) llvm/utils/TableGen/Basic/SequenceToOffsetTable.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/AsmWriterInst.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/CodeGenDAGPatterns.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/CodeGenHwModes.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/CodeGenInstAlias.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/CodeGenInstruction.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/CodeGenRegisters.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/CodeGenSchedule.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/CodeGenTarget.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/DAGISelMatcher.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/CodeExpander.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/CodeExpansions.h (+5-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/PatternParser.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/GlobalISel/Patterns.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/InfoByHwMode.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/OptEmitter.h (+4-3) 
- (modified) llvm/utils/TableGen/Common/PredicateExpander.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/SubtargetFeatureInfo.h (+3-3) 
- (modified) llvm/utils/TableGen/Common/VarLenCodeEmitterGen.h (+4-3) 


``````````diff
diff --git a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h
index 403706407fdba1..417063a9490ef1 100644
--- a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h
+++ b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.h
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENINTRINSICS_H
-#define LLVM_UTILS_TABLEGEN_CODEGENINTRINSICS_H
+#ifndef LLVM_UTILS_TABLEGEN_BASIC_CODEGENINTRINSICS_H
+#define LLVM_UTILS_TABLEGEN_BASIC_CODEGENINTRINSICS_H
 
 #include "SDNodeProperties.h"
 #include "llvm/ADT/ArrayRef.h"
@@ -183,4 +183,4 @@ class CodeGenIntrinsicTable {
 };
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_BASIC_CODEGENINTRINSICS_H
diff --git a/llvm/utils/TableGen/Basic/SDNodeProperties.h b/llvm/utils/TableGen/Basic/SDNodeProperties.h
index 5715423285249f..10d0bb965fbb6c 100644
--- a/llvm/utils/TableGen/Basic/SDNodeProperties.h
+++ b/llvm/utils/TableGen/Basic/SDNodeProperties.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
-#define LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
+#ifndef LLVM_UTILS_TABLEGEN_BASIC_SDNODEPROPERTIES_H
+#define LLVM_UTILS_TABLEGEN_BASIC_SDNODEPROPERTIES_H
 
 namespace llvm {
 
@@ -36,4 +36,4 @@ unsigned parseSDPatternOperatorProperties(Record *R);
 
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_BASIC_SDNODEPROPERTIES_H
diff --git a/llvm/utils/TableGen/Basic/SequenceToOffsetTable.h b/llvm/utils/TableGen/Basic/SequenceToOffsetTable.h
index 5766b682b58a38..09100b39650d81 100644
--- a/llvm/utils/TableGen/Basic/SequenceToOffsetTable.h
+++ b/llvm/utils/TableGen/Basic/SequenceToOffsetTable.h
@@ -12,8 +12,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSETTABLE_H
-#define LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSETTABLE_H
+#ifndef LLVM_UTILS_TABLEGEN_BASIC_SEQUENCETOOFFSETTABLE_H
+#define LLVM_UTILS_TABLEGEN_BASIC_SEQUENCETOOFFSETTABLE_H
 
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/raw_ostream.h"
@@ -172,4 +172,4 @@ class SequenceToOffsetTable {
 
 } // end namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_BASIC_SEQUENCETOOFFSETTABLE_H
diff --git a/llvm/utils/TableGen/Common/AsmWriterInst.h b/llvm/utils/TableGen/Common/AsmWriterInst.h
index f0ebf799d91051..7c21eb6abad950 100644
--- a/llvm/utils/TableGen/Common/AsmWriterInst.h
+++ b/llvm/utils/TableGen/Common/AsmWriterInst.h
@@ -13,8 +13,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_ASMWRITERINST_H
-#define LLVM_UTILS_TABLEGEN_ASMWRITERINST_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_ASMWRITERINST_H
+#define LLVM_UTILS_TABLEGEN_COMMON_ASMWRITERINST_H
 
 #include <string>
 #include <vector>
@@ -104,4 +104,4 @@ class AsmWriterInst {
 };
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_ASMWRITERINST_H
diff --git a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
index d8df7427836c9a..ed6d2420d1ebc2 100644
--- a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
@@ -11,8 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENDAGPATTERNS_H
-#define LLVM_UTILS_TABLEGEN_CODEGENDAGPATTERNS_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENDAGPATTERNS_H
+#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENDAGPATTERNS_H
 
 #include "Basic/CodeGenIntrinsics.h"
 #include "Basic/SDNodeProperties.h"
@@ -1266,4 +1266,4 @@ inline bool SDNodeInfo::ApplyTypeConstraints(TreePatternNode &N,
 
 } // end namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENDAGPATTERNS_H
diff --git a/llvm/utils/TableGen/Common/CodeGenHwModes.h b/llvm/utils/TableGen/Common/CodeGenHwModes.h
index 23723b7bd4af55..305ee7c42ce1be 100644
--- a/llvm/utils/TableGen/Common/CodeGenHwModes.h
+++ b/llvm/utils/TableGen/Common/CodeGenHwModes.h
@@ -8,8 +8,8 @@
 // Classes to parse and store HW mode information for instruction selection.
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
-#define LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENHWMODES_H
+#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENHWMODES_H
 
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/StringRef.h"
@@ -72,4 +72,4 @@ struct CodeGenHwModes {
 };
 } // namespace llvm
 
-#endif // LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
+#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENHWMODES_H
diff --git a/llvm/utils/TableGen/Common/CodeGenInstAlias.h b/llvm/utils/TableGen/Common/CodeGenInstAlias.h
index 2a05273e727018..ec77ff881f913d 100644
--- a/llvm/utils/TableGen/Common/CodeGenInstAlias.h
+++ b/llvm/utils/TableGen/Common/CodeGenInstAlias.h
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENINSTALIAS_H
-#define LLVM_UTILS_TABLEGEN_CODEGENINSTALIAS_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTALIAS_H
+#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTALIAS_H
 
 #include "llvm/ADT/StringRef.h"
 #include <cassert>
@@ -102,4 +102,4 @@ class CodeGenInstAlias {
 
 } // namespace llvm
 
-#endif // LLVM_UTILS_TABLEGEN_CODEGENINSTALIAS_H
+#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTALIAS_H
diff --git a/llvm/utils/TableGen/Common/CodeGenInstruction.h b/llvm/utils/TableGen/Common/CodeGenInstruction.h
index b658259b4892ee..ac447d5951f7e5 100644
--- a/llvm/utils/TableGen/Common/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/Common/CodeGenInstruction.h
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENINSTRUCTION_H
-#define LLVM_UTILS_TABLEGEN_CODEGENINSTRUCTION_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTRUCTION_H
+#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTRUCTION_H
 
 #include "llvm/ADT/BitVector.h"
 #include "llvm/ADT/StringMap.h"
@@ -344,4 +344,4 @@ class CodeGenInstruction {
 };
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTRUCTION_H
diff --git a/llvm/utils/TableGen/Common/CodeGenRegisters.h b/llvm/utils/TableGen/Common/CodeGenRegisters.h
index b9b7d9c9ea1f53..c0be8cdbf36c8a 100644
--- a/llvm/utils/TableGen/Common/CodeGenRegisters.h
+++ b/llvm/utils/TableGen/Common/CodeGenRegisters.h
@@ -11,8 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H
-#define LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENREGISTERS_H
+#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENREGISTERS_H
 
 #include "CodeGenHwModes.h"
 #include "InfoByHwMode.h"
@@ -860,4 +860,4 @@ class CodeGenRegBank {
 
 } // end namespace llvm
 
-#endif // LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H
+#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENREGISTERS_H
diff --git a/llvm/utils/TableGen/Common/CodeGenSchedule.h b/llvm/utils/TableGen/Common/CodeGenSchedule.h
index 10ec7f41f56fff..22c9b076aeb9f6 100644
--- a/llvm/utils/TableGen/Common/CodeGenSchedule.h
+++ b/llvm/utils/TableGen/Common/CodeGenSchedule.h
@@ -11,8 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENSCHEDULE_H
-#define LLVM_UTILS_TABLEGEN_CODEGENSCHEDULE_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENSCHEDULE_H
+#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENSCHEDULE_H
 
 #include "llvm/ADT/APInt.h"
 #include "llvm/ADT/ArrayRef.h"
@@ -651,4 +651,4 @@ class CodeGenSchedModels {
 
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENSCHEDULE_H
diff --git a/llvm/utils/TableGen/Common/CodeGenTarget.h b/llvm/utils/TableGen/Common/CodeGenTarget.h
index df4c22ebb379ee..d49bbe8464baf7 100644
--- a/llvm/utils/TableGen/Common/CodeGenTarget.h
+++ b/llvm/utils/TableGen/Common/CodeGenTarget.h
@@ -13,8 +13,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEGENTARGET_H
-#define LLVM_UTILS_TABLEGEN_CODEGENTARGET_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_CODEGENTARGET_H
+#define LLVM_UTILS_TABLEGEN_COMMON_CODEGENTARGET_H
 
 #include "Basic/SDNodeProperties.h"
 #include "CodeGenHwModes.h"
@@ -252,4 +252,4 @@ class ComplexPattern {
 
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENTARGET_H
diff --git a/llvm/utils/TableGen/Common/DAGISelMatcher.h b/llvm/utils/TableGen/Common/DAGISelMatcher.h
index 999206e995d166..f4ababcd4be68a 100644
--- a/llvm/utils/TableGen/Common/DAGISelMatcher.h
+++ b/llvm/utils/TableGen/Common/DAGISelMatcher.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_DAGISELMATCHER_H
-#define LLVM_UTILS_TABLEGEN_DAGISELMATCHER_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_DAGISELMATCHER_H
+#define LLVM_UTILS_TABLEGEN_COMMON_DAGISELMATCHER_H
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallVector.h"
@@ -1130,4 +1130,4 @@ class CompleteMatchMatcher : public Matcher {
 
 } // end namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_DAGISELMATCHER_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.h b/llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.h
index 01a4cb46a22a9a..0cfdf702c78b13 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.h
@@ -12,8 +12,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_MIRPATTERNS_CXXPREDICATES_H
-#define LLVM_UTILS_MIRPATTERNS_CXXPREDICATES_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CXXPREDICATES_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CXXPREDICATES_H
 
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/Hashing.h"
@@ -83,4 +83,4 @@ class CXXPredicateCode {
 } // namespace gi
 } // end namespace llvm
 
-#endif // ifndef LLVM_UTILS_MIRPATTERNS_CXXPREDICATES_H
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CXXPREDICATES_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/CodeExpander.h b/llvm/utils/TableGen/Common/GlobalISel/CodeExpander.h
index 345da613f84352..bfcdc2a0813bcb 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/CodeExpander.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/CodeExpander.h
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEEXPANDER_H
-#define LLVM_UTILS_TABLEGEN_CODEEXPANDER_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CODEEXPANDER_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CODEEXPANDER_H
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/StringRef.h"
@@ -52,4 +52,4 @@ inline raw_ostream &operator<<(raw_ostream &OS, const CodeExpander &Expander) {
 }
 } // end namespace llvm
 
-#endif // ifndef LLVM_UTILS_TABLEGEN_CODEEXPANDER_H
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CODEEXPANDER_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/CodeExpansions.h b/llvm/utils/TableGen/Common/GlobalISel/CodeExpansions.h
index b82c3257b32135..5fa8d8e6571061 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/CodeExpansions.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/CodeExpansions.h
@@ -12,8 +12,9 @@
 
 #include "llvm/ADT/StringMap.h"
 
-#ifndef LLVM_UTILS_TABLEGEN_CODEEXPANSIONS_H
-#define LLVM_UTILS_TABLEGEN_CODEEXPANSIONS_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CODEEXPANSIONS_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CODEEXPANSIONS_H
+
 namespace llvm {
 class CodeExpansions {
 public:
@@ -44,4 +45,5 @@ class CodeExpansions {
   }
 };
 } // end namespace llvm
-#endif // ifndef LLVM_UTILS_TABLEGEN_CODEEXPANSIONS_H
+
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CODEEXPANSIONS_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h b/llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h
index 82a64c63edbde3..4e519f9bf1846e 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_COMBINERUTILS_H
-#define LLVM_UTILS_TABLEGEN_COMBINERUTILS_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_COMBINERUTILS_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_COMBINERUTILS_H
 
 #include "llvm/ADT/StringRef.h"
 #include "llvm/TableGen/Record.h"
@@ -71,4 +71,4 @@ StringRef insertStrRef(StringRef S);
 
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_COMBINERUTILS_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
index 42e188f7061757..5b517b117ca823 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
@@ -13,8 +13,8 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_GLOBALISELMATCHTABLE_H
-#define LLVM_UTILS_TABLEGEN_GLOBALISELMATCHTABLE_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLE_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLE_H
 
 #include "Common/CodeGenDAGPatterns.h"
 #include "llvm/ADT/ArrayRef.h"
@@ -2504,4 +2504,4 @@ class MakeTempRegisterAction : public MatchAction {
 } // namespace gi
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLE_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.h b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.h
index 13dcfc0e55e1ea..6634c525480d34 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.h
@@ -12,8 +12,8 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_GLOBALISELMATCHTABLEEXECUTOREMITTER_H
-#define LLVM_UTILS_TABLEGEN_GLOBALISELMATCHTABLEEXECUTOREMITTER_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLEEXECUTOREMITTER_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLEEXECUTOREMITTER_H
 
 #include "Common/SubtargetFeatureInfo.h"
 #include "llvm/ADT/ArrayRef.h"
@@ -223,4 +223,4 @@ class GlobalISelMatchTableExecutorEmitter {
 };
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLEEXECUTOREMITTER_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/PatternParser.h b/llvm/utils/TableGen/Common/GlobalISel/PatternParser.h
index cd6f524075cdb9..2f95d3c1c023fe 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/PatternParser.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/PatternParser.h
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_GLOBALISEL_PATTERNPARSER_H
-#define LLVM_UTILS_GLOBALISEL_PATTERNPARSER_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_PATTERNPARSER_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_PATTERNPARSER_H
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/STLFunctionalExtras.h"
@@ -115,4 +115,4 @@ class PatternParser {
 } // namespace gi
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_PATTERNPARSER_H
diff --git a/llvm/utils/TableGen/Common/GlobalISel/Patterns.h b/llvm/utils/TableGen/Common/GlobalISel/Patterns.h
index 2d25ce37ed76c4..b0d47c381553cc 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/Patterns.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/Patterns.h
@@ -14,8 +14,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_GLOBALISEL_PATTERNS_H
-#define LLVM_UTILS_GLOBALISEL_PATTERNS_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_PATTERNS_H
+#define LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_PATTERNS_H
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SetVector.h"
@@ -731,4 +731,4 @@ class BuiltinPattern : public InstructionPattern {
 } // namespace gi
 } // end namespace llvm
 
-#endif // ifndef LLVM_UTILS_GLOBALISEL_PATTERNS_H
+#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_PATTERNS_H
diff --git a/llvm/utils/TableGen/Common/InfoByHwMode.h b/llvm/utils/TableGen/Common/InfoByHwMode.h
index dd0b9830d757e8..f614cd5af815b8 100644
--- a/llvm/utils/TableGen/Common/InfoByHwMode.h
+++ b/llvm/utils/TableGen/Common/InfoByHwMode.h
@@ -11,8 +11,8 @@
 // data).
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_INFOBYHWMODE_H
-#define LLVM_UTILS_TABLEGEN_INFOBYHWMODE_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_INFOBYHWMODE_H
+#define LLVM_UTILS_TABLEGEN_COMMON_INFOBYHWMODE_H
 
 #include "CodeGenHwModes.h"
 #include "llvm/ADT/SmallVector.h"
@@ -243,4 +243,4 @@ struct EncodingInfoByHwMode : public InfoByHwMode<Record *> {
 
 } // namespace llvm
 
-#endif // LLVM_UTILS_TABLEGEN_INFOBYHWMODE_H
+#endif // LLVM_UTILS_TABLEGEN_COMMON_INFOBYHWMODE_H
diff --git a/llvm/utils/TableGen/Common/OptEmitter.h b/llvm/utils/TableGen/Common/OptEmitter.h
index c8f9246ef1e626..eaef966bbac666 100644
--- a/llvm/utils/TableGen/Common/OptEmitter.h
+++ b/llvm/utils/TableGen/Common/OptEmitter.h
@@ -6,11 +6,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_OPTEMITTER_H
-#define LLVM_UTILS_TABLEGEN_OPTEMITTER_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_OPTEMITTER_H
+#define LLVM_UTILS_TABLEGEN_COMMON_OPTEMITTER_H
 
 namespace llvm {
 class Record;
 int CompareOptionRecords(Record *const *Av, Record *const *Bv);
 } // namespace llvm
-#endif
+
+#endif // LLVM_UTILS_TABLEGEN_COMMON_OPTEMITTER_H
diff --git a/llvm/utils/TableGen/Common/PredicateExpander.h b/llvm/utils/TableGen/Common/PredicateExpander.h
index a0dc6302397883..333d1c561f9701 100644
--- a/llvm/utils/TableGen/Common/PredicateExpander.h
+++ b/llvm/utils/TableGen/Common/PredicateExpander.h
@@ -13,8 +13,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_PREDICATEEXPANDER_H
-#define LLVM_UTILS_TABLEGEN_PREDICATEEXPANDER_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_PREDICATEEXPANDER_H
+#define LLVM_UTILS_TABLEGEN_COMMON_PREDICATEEXPANDER_H
 
 #include "llvm/ADT/StringRef.h"
 #include <vector>
@@ -128,4 +128,4 @@ class STIPredicateExpander : public PredicateExpander {
 
 } // namespace llvm
 
-#endif
+#endif // LLVM_UTILS_TABLEGEN_COMMON_PREDICATEEXPANDER_H
diff --git a/llvm/utils/TableGen/Common/SubtargetFeatureInfo.h b/llvm/utils/TableGen/Common/SubtargetFeatureInfo.h
index b1016ff24e88a3..2635e4b733e1a3 100644
--- a/llvm/utils/TableGen/Common/SubtargetFeatureInfo.h
+++ b/llvm/utils/TableGen/Common/SubtargetFeatureInfo.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTIL_TABLEGEN_SUBTARGETFEATUREINFO_H
-#define LLVM_UTIL_TABLEGEN_SUBTARGETFEATUREINFO_H
+#ifndef LLVM_UTIL_TABLEGEN_COMMON_SUBTARGETFEATUREINFO_H
+#define LLVM_UTIL_TABLEGEN_COMMON_SUBTARGETFEATUREINFO_H
 
 #include "llvm/ADT/StringRef.h"
 #include "llvm/TableGen/Record.h"
@@ -102,4 +102,4 @@ struct SubtargetFeatureInfo {
 };
 } // end namespace llvm
 
-#endif // LLVM_UTIL_TABLEGEN_SUBTARGETFEATUREINFO_H
+#endif // LLVM_UTIL_TABLEGEN_COMMON_SUBTARGETFEATUREINFO_H
diff --git a/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.h b/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.h
index 2b55fd1720aad2..48b317be88d018 100644
--- a/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.h
+++ b/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.h
@@ -11,8 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_UTILS_TABLEGEN_VARLENCODEEMITTERGEN_H
-#define LLVM_UTILS_TABLEGEN_VARLENCODEEMITTERGEN_H
+#ifndef LLVM_UTILS_TABLEGEN_COMMON_VARLENCODEEMITTERGEN_H
+#define LLVM_UTILS_TABLEGEN_COMMON_VARLENCODEEMITTERGEN_H
 
 #include "llvm/TableGen/Record.h"
 
@@ -56,4 +56,5 @@ class VarLenInst {
 void emitVarLenCodeEmitter(RecordKeeper &R, ra...
[truncated]

``````````

</details>


https://github.com/llvm/llvm-project/pull/102746


More information about the llvm-commits mailing list