Skip to content

Commit d49299e

Browse files
committed
[TableGen] clang-format for ShouldIgnore
1 parent c206eb6 commit d49299e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4408,10 +4408,10 @@ void CodeGenDAGPatterns::ExpandHwModeBasedTypes() {
44084408
return;
44094409
}
44104410

4411-
PatternsToMatch.emplace_back(P.getSrcRecord(), P.getPredicates(),
4412-
std::move(NewSrc), std::move(NewDst),
4413-
P.getDstRegs(), P.getAddedComplexity(),
4414-
Record::getNewUID(Records), P.getISelShouldIgnore(), Check);
4411+
PatternsToMatch.emplace_back(
4412+
P.getSrcRecord(), P.getPredicates(), std::move(NewSrc),
4413+
std::move(NewDst), P.getDstRegs(), P.getAddedComplexity(),
4414+
Record::getNewUID(Records), P.getISelShouldIgnore(), Check);
44154415
};
44164416

44174417
for (PatternToMatch &P : Copy) {

llvm/utils/TableGen/Common/CodeGenDAGPatterns.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,11 +1064,12 @@ class PatternToMatch {
10641064
public:
10651065
PatternToMatch(Record *srcrecord, ListInit *preds, TreePatternNodePtr src,
10661066
TreePatternNodePtr dst, std::vector<Record *> dstregs,
1067-
int complexity, unsigned uid, bool ignore, const Twine &hwmodefeatures = "")
1067+
int complexity, unsigned uid, bool ignore,
1068+
const Twine &hwmodefeatures = "")
10681069
: SrcRecord(srcrecord), Predicates(preds), SrcPattern(src),
10691070
DstPattern(dst), Dstregs(std::move(dstregs)),
1070-
HwModeFeatures(hwmodefeatures.str()), AddedComplexity(complexity), ISelShouldIgnore(ignore),
1071-
ID(uid) {}
1071+
HwModeFeatures(hwmodefeatures.str()), AddedComplexity(complexity),
1072+
ISelShouldIgnore(ignore), ID(uid) {}
10721073

10731074
Record *getSrcRecord() const { return SrcRecord; }
10741075
ListInit *getPredicates() const { return Predicates; }

llvm/utils/TableGen/DAGISelEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ void DAGISelEmitter::run(raw_ostream &OS) {
171171
const TreePatternNode &Dst = PTM.getDstPattern();
172172
if (!Dst.isLeaf()) {
173173
const Record *Op = Dst.getOperator();
174-
const bool shouldIgnore =
174+
const bool ShouldIgnore =
175175
Op->isSubClassOf("Instruction") &&
176176
CGP.getTargetInfo().getInstruction(Op).DAGISelShouldIgnore;
177-
if (shouldIgnore)
177+
if (ShouldIgnore)
178178
continue;
179179
}
180180

llvm/utils/TableGen/GlobalISelEmitter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,8 @@ std::optional<CodeGenSubRegIndex *> GlobalISelEmitter::inferSubRegIndexForNode(
19011901
return CGRegs.getSubRegIdx(SubRegInit->getDef());
19021902
}
19031903

1904-
std::optional<Expected<RuleMatcher>> GlobalISelEmitter::runOnPattern(const PatternToMatch &P) {
1904+
std::optional<Expected<RuleMatcher>>
1905+
GlobalISelEmitter::runOnPattern(const PatternToMatch &P) {
19051906
if (P.getISelShouldIgnore()) {
19061907
return {};
19071908
}
@@ -2416,7 +2417,8 @@ void GlobalISelEmitter::run(raw_ostream &OS) {
24162417
++NumPatternTotal;
24172418

24182419
auto MatcherOrErr = runOnPattern(Pat);
2419-
if (!MatcherOrErr) continue; // skip without warning
2420+
if (!MatcherOrErr)
2421+
continue; // skip without warning
24202422

24212423
// The pattern analysis can fail, indicating an unsupported pattern.
24222424
// Report that if we've been asked to do so.

0 commit comments

Comments
 (0)