File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -421,3 +421,15 @@ bool CheckImmAllZerosVMatcher::isContradictoryImpl(const Matcher *M) const {
421
421
// AllOnes is contradictory.
422
422
return isa<CheckImmAllOnesVMatcher>(M);
423
423
}
424
+
425
+ bool CheckCondCodeMatcher::isContradictoryImpl (const Matcher *M) const {
426
+ if (const auto *CCCM = dyn_cast<CheckCondCodeMatcher>(M))
427
+ return CCCM->getCondCodeName () != getCondCodeName ();
428
+ return false ;
429
+ }
430
+
431
+ bool CheckChild2CondCodeMatcher::isContradictoryImpl (const Matcher *M) const {
432
+ if (const auto *CCCCM = dyn_cast<CheckChild2CondCodeMatcher>(M))
433
+ return CCCCM->getCondCodeName () != getCondCodeName ();
434
+ return false ;
435
+ }
Original file line number Diff line number Diff line change @@ -635,6 +635,7 @@ class CheckCondCodeMatcher : public Matcher {
635
635
bool isEqualImpl (const Matcher *M) const override {
636
636
return cast<CheckCondCodeMatcher>(M)->CondCodeName == CondCodeName;
637
637
}
638
+ bool isContradictoryImpl (const Matcher *M) const override ;
638
639
};
639
640
640
641
// / CheckChild2CondCodeMatcher - This checks to see if child 2 node is a
@@ -656,6 +657,7 @@ class CheckChild2CondCodeMatcher : public Matcher {
656
657
bool isEqualImpl (const Matcher *M) const override {
657
658
return cast<CheckChild2CondCodeMatcher>(M)->CondCodeName == CondCodeName;
658
659
}
660
+ bool isContradictoryImpl (const Matcher *M) const override ;
659
661
};
660
662
661
663
// / CheckValueTypeMatcher - This checks to see if the current node is a
You can’t perform that action at this time.
0 commit comments