Skip to content

[NFC] Fix TableGen include guards to match paths #102746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Basic/CodeGenIntrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -183,4 +183,4 @@ class CodeGenIntrinsicTable {
};
} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_BASIC_CODEGENINTRINSICS_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Basic/SDNodeProperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -36,4 +36,4 @@ unsigned parseSDPatternOperatorProperties(Record *R);

} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_BASIC_SDNODEPROPERTIES_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Basic/SequenceToOffsetTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -172,4 +172,4 @@ class SequenceToOffsetTable {

} // end namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_BASIC_SEQUENCETOOFFSETTABLE_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/AsmWriterInst.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -104,4 +104,4 @@ class AsmWriterInst {
};
} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_ASMWRITERINST_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1266,4 +1266,4 @@ inline bool SDNodeInfo::ApplyTypeConstraints(TreePatternNode &N,

} // end namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENDAGPATTERNS_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/CodeGenHwModes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -72,4 +72,4 @@ struct CodeGenHwModes {
};
} // namespace llvm

#endif // LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENHWMODES_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/CodeGenInstAlias.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -102,4 +102,4 @@ class CodeGenInstAlias {

} // namespace llvm

#endif // LLVM_UTILS_TABLEGEN_CODEGENINSTALIAS_H
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTALIAS_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/CodeGenInstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -344,4 +344,4 @@ class CodeGenInstruction {
};
} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENINSTRUCTION_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/CodeGenRegisters.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -860,4 +860,4 @@ class CodeGenRegBank {

} // end namespace llvm

#endif // LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENREGISTERS_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/CodeGenSchedule.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -651,4 +651,4 @@ class CodeGenSchedModels {

} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENSCHEDULE_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/CodeGenTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -252,4 +252,4 @@ class ComplexPattern {

} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_CODEGENTARGET_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/DAGISelMatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1130,4 +1130,4 @@ class CompleteMatchMatcher : public Matcher {

} // end namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_DAGISELMATCHER_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/GlobalISel/CXXPredicates.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/GlobalISel/CodeExpander.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
8 changes: 5 additions & 3 deletions llvm/utils/TableGen/Common/GlobalISel/CodeExpansions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -44,4 +45,5 @@ class CodeExpansions {
}
};
} // end namespace llvm
#endif // ifndef LLVM_UTILS_TABLEGEN_CODEEXPANSIONS_H

#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_CODEEXPANSIONS_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/GlobalISel/CombinerUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -71,4 +71,4 @@ StringRef insertStrRef(StringRef S);

} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_COMBINERUTILS_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -2504,4 +2504,4 @@ class MakeTempRegisterAction : public MatchAction {
} // namespace gi
} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLE_H
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -223,4 +223,4 @@ class GlobalISelMatchTableExecutorEmitter {
};
} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_GLOBALISELMATCHTABLEEXECUTOREMITTER_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/GlobalISel/PatternParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -115,4 +115,4 @@ class PatternParser {
} // namespace gi
} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_GLOBALISEL_PATTERNPARSER_H
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/GlobalISel/Patterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/InfoByHwMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -243,4 +243,4 @@ struct EncodingInfoByHwMode : public InfoByHwMode<Record *> {

} // namespace llvm

#endif // LLVM_UTILS_TABLEGEN_INFOBYHWMODE_H
#endif // LLVM_UTILS_TABLEGEN_COMMON_INFOBYHWMODE_H
7 changes: 4 additions & 3 deletions llvm/utils/TableGen/Common/OptEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions llvm/utils/TableGen/Common/PredicateExpander.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -128,4 +128,4 @@ class STIPredicateExpander : public PredicateExpander {

} // namespace llvm

#endif
#endif // LLVM_UTILS_TABLEGEN_COMMON_PREDICATEEXPANDER_H
Loading
Loading