blob: cd3fad131eca72635eab6d539bd03b064faf09ea [file] [log] [blame]
Chris Lattnerda272d12010-02-15 08:04:42 +00001//===- DAGISelMatcher.cpp - Representation of DAG pattern matcher ---------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "DAGISelMatcher.h"
11#include "CodeGenDAGPatterns.h"
12#include "CodeGenTarget.h"
Chris Lattner845c0422010-02-18 22:03:03 +000013#include "Record.h"
Chris Lattnerda272d12010-02-15 08:04:42 +000014#include "llvm/Support/raw_ostream.h"
Chris Lattner58aa8342010-02-25 06:49:58 +000015#include "llvm/ADT/StringExtras.h"
Chris Lattnerda272d12010-02-15 08:04:42 +000016using namespace llvm;
17
Chris Lattnerb21ba712010-02-25 02:04:40 +000018void Matcher::dump() const {
Chris Lattnera5028a62010-02-25 06:53:39 +000019 print(errs(), 0);
Chris Lattnerda272d12010-02-15 08:04:42 +000020}
21
Chris Lattnera5028a62010-02-25 06:53:39 +000022void Matcher::print(raw_ostream &OS, unsigned indent) const {
23 printImpl(OS, indent);
Chris Lattnerbd8227f2010-02-18 02:53:41 +000024 if (Next)
25 return Next->print(OS, indent);
Chris Lattnerda272d12010-02-15 08:04:42 +000026}
27
Chris Lattner82781b92010-02-27 07:49:13 +000028void Matcher::printOne(raw_ostream &OS) const {
29 printImpl(OS, 0);
30}
31
Chris Lattner48aa5752010-03-07 06:29:26 +000032/// unlinkNode - Unlink the specified node from this chain. If Other == this,
33/// we unlink the next pointer and return it. Otherwise we unlink Other from
34/// the list and return this.
35Matcher *Matcher::unlinkNode(Matcher *Other) {
36 if (this == Other)
37 return takeNext();
38
39 // Scan until we find the predecessor of Other.
40 Matcher *Cur = this;
41 for (; Cur && Cur->getNext() != Other; Cur = Cur->getNext())
42 /*empty*/;
43
44 if (Cur == 0) return 0;
45 Cur->takeNext();
46 Cur->setNext(Other->takeNext());
47 return this;
48}
49
50/// canMoveBefore - Return true if this matcher is the same as Other, or if
51/// we can move this matcher past all of the nodes in-between Other and this
52/// node. Other must be equal to or before this.
53bool Matcher::canMoveBefore(const Matcher *Other) const {
54 for (;; Other = Other->getNext()) {
55 assert(Other && "Other didn't come before 'this'?");
56 if (this == Other) return true;
57
58 // We have to be able to move this node across the Other node.
59 if (!canMoveBeforeNode(Other))
60 return false;
61 }
62}
63
64/// canMoveBefore - Return true if it is safe to move the current matcher
65/// across the specified one.
66bool Matcher::canMoveBeforeNode(const Matcher *Other) const {
67 // We can move simple predicates before record nodes.
68 if (isSimplePredicateNode())
69 return Other->isSimplePredicateOrRecordNode();
70
71 // We can move record nodes across simple predicates.
72 if (isSimplePredicateOrRecordNode())
73 return isSimplePredicateNode();
74
75 // We can't move record nodes across each other etc.
76 return false;
77}
78
79
Chris Lattnerd6c84722010-02-25 19:00:39 +000080ScopeMatcher::~ScopeMatcher() {
81 for (unsigned i = 0, e = Children.size(); i != e; ++i)
82 delete Children[i];
83}
84
85
86// printImpl methods.
87
Chris Lattnera5028a62010-02-25 06:53:39 +000088void ScopeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner60df53e2010-02-25 01:56:48 +000089 OS.indent(indent) << "Scope\n";
Chris Lattnerc78f2a32010-02-28 20:49:53 +000090 for (unsigned i = 0, e = getNumChildren(); i != e; ++i) {
91 if (getChild(i) == 0)
92 OS.indent(indent+1) << "NULL POINTER\n";
93 else
94 getChild(i)->print(OS, indent+2);
95 }
Chris Lattnerda272d12010-02-15 08:04:42 +000096}
97
Chris Lattnera5028a62010-02-25 06:53:39 +000098void RecordMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +000099 OS.indent(indent) << "Record\n";
Chris Lattnerda272d12010-02-15 08:04:42 +0000100}
101
Chris Lattnera5028a62010-02-25 06:53:39 +0000102void RecordChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner19b5a752010-02-24 07:31:45 +0000103 OS.indent(indent) << "RecordChild: " << ChildNo << '\n';
Chris Lattner19b5a752010-02-24 07:31:45 +0000104}
105
Chris Lattnera5028a62010-02-25 06:53:39 +0000106void RecordMemRefMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000107 OS.indent(indent) << "RecordMemRef\n";
Chris Lattner8e946be2010-02-21 03:22:59 +0000108}
109
Chris Lattnera5028a62010-02-25 06:53:39 +0000110void CaptureFlagInputMatcher::printImpl(raw_ostream &OS, unsigned indent) const{
Chris Lattner8e946be2010-02-21 03:22:59 +0000111 OS.indent(indent) << "CaptureFlagInput\n";
Chris Lattner8e946be2010-02-21 03:22:59 +0000112}
113
Chris Lattnera5028a62010-02-25 06:53:39 +0000114void MoveChildMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000115 OS.indent(indent) << "MoveChild " << ChildNo << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000116}
117
Chris Lattnera5028a62010-02-25 06:53:39 +0000118void MoveParentMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000119 OS.indent(indent) << "MoveParent\n";
Chris Lattnerda272d12010-02-15 08:04:42 +0000120}
121
Chris Lattnera5028a62010-02-25 06:53:39 +0000122void CheckSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000123 OS.indent(indent) << "CheckSame " << MatchNumber << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000124}
125
Chris Lattnerb21ba712010-02-25 02:04:40 +0000126void CheckPatternPredicateMatcher::
Chris Lattnera5028a62010-02-25 06:53:39 +0000127printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000128 OS.indent(indent) << "CheckPatternPredicate " << Predicate << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000129}
130
Chris Lattnera5028a62010-02-25 06:53:39 +0000131void CheckPredicateMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000132 OS.indent(indent) << "CheckPredicate " << PredName << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000133}
134
Chris Lattnera5028a62010-02-25 06:53:39 +0000135void CheckOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnera230f962010-02-27 21:48:43 +0000136 OS.indent(indent) << "CheckOpcode " << Opcode.getEnumName() << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000137}
138
Chris Lattnereb669212010-03-01 06:59:22 +0000139void SwitchOpcodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
140 OS.indent(indent) << "SwitchOpcode: {\n";
141 for (unsigned i = 0, e = Cases.size(); i != e; ++i) {
142 OS.indent(indent) << "case " << Cases[i].first->getEnumName() << ":\n";
143 Cases[i].second->print(OS, indent+2);
144 }
145 OS.indent(indent) << "}\n";
146}
147
148
Chris Lattnera5028a62010-02-25 06:53:39 +0000149void CheckTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000150 OS.indent(indent) << "CheckType " << getEnumName(Type) << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000151}
152
Chris Lattnercfe2eab2010-03-03 06:28:15 +0000153void SwitchTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
154 OS.indent(indent) << "SwitchType: {\n";
155 for (unsigned i = 0, e = Cases.size(); i != e; ++i) {
156 OS.indent(indent) << "case " << getEnumName(Cases[i].first) << ":\n";
157 Cases[i].second->print(OS, indent+2);
158 }
159 OS.indent(indent) << "}\n";
160}
161
Chris Lattnera5028a62010-02-25 06:53:39 +0000162void CheckChildTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner23cfda72010-02-24 20:15:25 +0000163 OS.indent(indent) << "CheckChildType " << ChildNo << " "
164 << getEnumName(Type) << '\n';
Chris Lattner23cfda72010-02-24 20:15:25 +0000165}
166
167
Chris Lattnera5028a62010-02-25 06:53:39 +0000168void CheckIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000169 OS.indent(indent) << "CheckInteger " << Value << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000170}
171
Chris Lattnera5028a62010-02-25 06:53:39 +0000172void CheckCondCodeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000173 OS.indent(indent) << "CheckCondCode ISD::" << CondCodeName << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000174}
175
Chris Lattnera5028a62010-02-25 06:53:39 +0000176void CheckValueTypeMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000177 OS.indent(indent) << "CheckValueType MVT::" << TypeName << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000178}
179
Chris Lattnera5028a62010-02-25 06:53:39 +0000180void CheckComplexPatMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000181 OS.indent(indent) << "CheckComplexPat " << Pattern.getSelectFunc() << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000182}
183
Chris Lattnera5028a62010-02-25 06:53:39 +0000184void CheckAndImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000185 OS.indent(indent) << "CheckAndImm " << Value << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000186}
187
Chris Lattnera5028a62010-02-25 06:53:39 +0000188void CheckOrImmMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattnerda272d12010-02-15 08:04:42 +0000189 OS.indent(indent) << "CheckOrImm " << Value << '\n';
Chris Lattnerda272d12010-02-15 08:04:42 +0000190}
191
Chris Lattnera5028a62010-02-25 06:53:39 +0000192void CheckFoldableChainNodeMatcher::printImpl(raw_ostream &OS,
Chris Lattner21390d72010-02-16 19:15:55 +0000193 unsigned indent) const {
194 OS.indent(indent) << "CheckFoldableChainNode\n";
Chris Lattnere39650a2010-02-16 06:10:58 +0000195}
Chris Lattner9a747f12010-02-17 06:23:39 +0000196
Chris Lattnera5028a62010-02-25 06:53:39 +0000197void EmitIntegerMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000198 OS.indent(indent) << "EmitInteger " << Val << " VT=" << VT << '\n';
Chris Lattner8e946be2010-02-21 03:22:59 +0000199}
200
Chris Lattnerb21ba712010-02-25 02:04:40 +0000201void EmitStringIntegerMatcher::
Chris Lattnera5028a62010-02-25 06:53:39 +0000202printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000203 OS.indent(indent) << "EmitStringInteger " << Val << " VT=" << VT << '\n';
Chris Lattner845c0422010-02-18 22:03:03 +0000204}
205
Chris Lattnera5028a62010-02-25 06:53:39 +0000206void EmitRegisterMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000207 OS.indent(indent) << "EmitRegister ";
Chris Lattner845c0422010-02-18 22:03:03 +0000208 if (Reg)
209 OS << Reg->getName();
210 else
211 OS << "zero_reg";
212 OS << " VT=" << VT << '\n';
Chris Lattner845c0422010-02-18 22:03:03 +0000213}
214
Chris Lattnerb21ba712010-02-25 02:04:40 +0000215void EmitConvertToTargetMatcher::
Chris Lattnera5028a62010-02-25 06:53:39 +0000216printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000217 OS.indent(indent) << "EmitConvertToTarget " << Slot << '\n';
Chris Lattner8e946be2010-02-21 03:22:59 +0000218}
219
Chris Lattnerb21ba712010-02-25 02:04:40 +0000220void EmitMergeInputChainsMatcher::
Chris Lattnera5028a62010-02-25 06:53:39 +0000221printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000222 OS.indent(indent) << "EmitMergeInputChains <todo: args>\n";
Chris Lattner8e946be2010-02-21 03:22:59 +0000223}
224
Chris Lattnera5028a62010-02-25 06:53:39 +0000225void EmitCopyToRegMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000226 OS.indent(indent) << "EmitCopyToReg <todo: args>\n";
Chris Lattner8e946be2010-02-21 03:22:59 +0000227}
228
Chris Lattnera5028a62010-02-25 06:53:39 +0000229void EmitNodeXFormMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner8e946be2010-02-21 03:22:59 +0000230 OS.indent(indent) << "EmitNodeXForm " << NodeXForm->getName()
231 << " Slot=" << Slot << '\n';
Chris Lattner8e946be2010-02-21 03:22:59 +0000232}
233
234
Chris Lattnere86097a2010-02-28 02:31:26 +0000235void EmitNodeMatcherCommon::printImpl(raw_ostream &OS, unsigned indent) const {
236 OS.indent(indent);
Chris Lattner9a215002010-02-28 20:55:18 +0000237 OS << (isa<MorphNodeToMatcher>(this) ? "MorphNodeTo: " : "EmitNode: ")
Chris Lattnere86097a2010-02-28 02:31:26 +0000238 << OpcodeName << ": <todo flags> ";
Chris Lattner8e946be2010-02-21 03:22:59 +0000239
240 for (unsigned i = 0, e = VTs.size(); i != e; ++i)
241 OS << ' ' << getEnumName(VTs[i]);
242 OS << '(';
243 for (unsigned i = 0, e = Operands.size(); i != e; ++i)
244 OS << Operands[i] << ' ';
245 OS << ")\n";
Chris Lattner8e946be2010-02-21 03:22:59 +0000246}
247
Chris Lattnera5028a62010-02-25 06:53:39 +0000248void MarkFlagResultsMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner02f73582010-02-24 05:33:42 +0000249 OS.indent(indent) << "MarkFlagResults <todo: args>\n";
Chris Lattner02f73582010-02-24 05:33:42 +0000250}
251
Chris Lattnera5028a62010-02-25 06:53:39 +0000252void CompleteMatchMatcher::printImpl(raw_ostream &OS, unsigned indent) const {
Chris Lattner77f2e272010-02-21 06:03:07 +0000253 OS.indent(indent) << "CompleteMatch <todo args>\n";
Chris Lattner8e946be2010-02-21 03:22:59 +0000254 OS.indent(indent) << "Src = " << *Pattern.getSrcPattern() << "\n";
255 OS.indent(indent) << "Dst = " << *Pattern.getDstPattern() << "\n";
Chris Lattner8e946be2010-02-21 03:22:59 +0000256}
257
Chris Lattner58aa8342010-02-25 06:49:58 +0000258// getHashImpl Implementation.
259
260unsigned CheckPatternPredicateMatcher::getHashImpl() const {
261 return HashString(Predicate);
262}
263
264unsigned CheckPredicateMatcher::getHashImpl() const {
265 return HashString(PredName);
266}
267
268unsigned CheckOpcodeMatcher::getHashImpl() const {
Chris Lattnera230f962010-02-27 21:48:43 +0000269 return HashString(Opcode.getEnumName());
Chris Lattner58aa8342010-02-25 06:49:58 +0000270}
271
Chris Lattner58aa8342010-02-25 06:49:58 +0000272unsigned CheckCondCodeMatcher::getHashImpl() const {
273 return HashString(CondCodeName);
274}
275
276unsigned CheckValueTypeMatcher::getHashImpl() const {
277 return HashString(TypeName);
278}
279
280unsigned EmitStringIntegerMatcher::getHashImpl() const {
281 return HashString(Val) ^ VT;
282}
283
284template<typename It>
285static unsigned HashUnsigneds(It I, It E) {
286 unsigned Result = 0;
287 for (; I != E; ++I)
288 Result = (Result<<3) ^ *I;
289 return Result;
290}
291
292unsigned EmitMergeInputChainsMatcher::getHashImpl() const {
293 return HashUnsigneds(ChainNodes.begin(), ChainNodes.end());
294}
295
Chris Lattnereb669212010-03-01 06:59:22 +0000296bool CheckOpcodeMatcher::isEqualImpl(const Matcher *M) const {
297 // Note: pointer equality isn't enough here, we have to check the enum names
298 // to ensure that the nodes are for the same opcode.
299 return cast<CheckOpcodeMatcher>(M)->Opcode.getEnumName() ==
300 Opcode.getEnumName();
301}
302
303
Chris Lattnere86097a2010-02-28 02:31:26 +0000304bool EmitNodeMatcherCommon::isEqualImpl(const Matcher *m) const {
305 const EmitNodeMatcherCommon *M = cast<EmitNodeMatcherCommon>(m);
Chris Lattner58aa8342010-02-25 06:49:58 +0000306 return M->OpcodeName == OpcodeName && M->VTs == VTs &&
307 M->Operands == Operands && M->HasChain == HasChain &&
Chris Lattnerff7fb602010-02-28 21:53:42 +0000308 M->HasInFlag == HasInFlag && M->HasOutFlag == HasOutFlag &&
309 M->HasMemRefs == HasMemRefs &&
Chris Lattner58aa8342010-02-25 06:49:58 +0000310 M->NumFixedArityOperands == NumFixedArityOperands;
311}
312
Chris Lattnere86097a2010-02-28 02:31:26 +0000313unsigned EmitNodeMatcherCommon::getHashImpl() const {
Chris Lattner58aa8342010-02-25 06:49:58 +0000314 return (HashString(OpcodeName) << 4) | Operands.size();
315}
316
317
318unsigned MarkFlagResultsMatcher::getHashImpl() const {
319 return HashUnsigneds(FlagResultNodes.begin(), FlagResultNodes.end());
320}
321
322unsigned CompleteMatchMatcher::getHashImpl() const {
323 return HashUnsigneds(Results.begin(), Results.end()) ^
324 ((unsigned)(intptr_t)&Pattern << 8);
325}
Chris Lattner82781b92010-02-27 07:49:13 +0000326
327// isContradictoryImpl Implementations.
328
Chris Lattner82781b92010-02-27 07:49:13 +0000329static bool TypesAreContradictory(MVT::SimpleValueType T1,
330 MVT::SimpleValueType T2) {
331 // If the two types are the same, then they are the same, so they don't
332 // contradict.
333 if (T1 == T2) return false;
334
335 // If either type is about iPtr, then they don't conflict unless the other
336 // one is not a scalar integer type.
337 if (T1 == MVT::iPTR)
338 return !MVT(T2).isInteger() || MVT(T2).isVector();
339
340 if (T2 == MVT::iPTR)
341 return !MVT(T1).isInteger() || MVT(T1).isVector();
342
343 // Otherwise, they are two different non-iPTR types, they conflict.
344 return true;
345}
346
Chris Lattner22579812010-02-28 00:22:30 +0000347bool CheckOpcodeMatcher::isContradictoryImpl(const Matcher *M) const {
348 if (const CheckOpcodeMatcher *COM = dyn_cast<CheckOpcodeMatcher>(M)) {
349 // One node can't have two different opcodes!
Chris Lattnereb669212010-03-01 06:59:22 +0000350 // Note: pointer equality isn't enough here, we have to check the enum names
351 // to ensure that the nodes are for the same opcode.
352 return COM->getOpcode().getEnumName() != getOpcode().getEnumName();
Chris Lattner22579812010-02-28 00:22:30 +0000353 }
354
Chris Lattner22579812010-02-28 00:22:30 +0000355 // If the node has a known type, and if the type we're checking for is
356 // different, then we know they contradict. For example, a check for
357 // ISD::STORE will never be true at the same time a check for Type i32 is.
358 if (const CheckTypeMatcher *CT = dyn_cast<CheckTypeMatcher>(M)) {
359 // FIXME: What result is this referring to?
Chris Lattneraac5b5b2010-03-19 01:14:27 +0000360 MVT::SimpleValueType NodeType;
Chris Lattner22579812010-02-28 00:22:30 +0000361 if (getOpcode().getNumResults() == 0)
362 NodeType = MVT::isVoid;
363 else
364 NodeType = getOpcode().getKnownType();
Chris Lattneraac5b5b2010-03-19 01:14:27 +0000365 if (NodeType != MVT::Other)
366 return TypesAreContradictory(NodeType, CT->getType());
Chris Lattner22579812010-02-28 00:22:30 +0000367 }
368
369 return false;
370}
371
Chris Lattner82781b92010-02-27 07:49:13 +0000372bool CheckTypeMatcher::isContradictoryImpl(const Matcher *M) const {
373 if (const CheckTypeMatcher *CT = dyn_cast<CheckTypeMatcher>(M))
374 return TypesAreContradictory(getType(), CT->getType());
375 return false;
376}
377
378bool CheckChildTypeMatcher::isContradictoryImpl(const Matcher *M) const {
379 if (const CheckChildTypeMatcher *CC = dyn_cast<CheckChildTypeMatcher>(M)) {
380 // If the two checks are about different nodes, we don't know if they
381 // conflict!
382 if (CC->getChildNo() != getChildNo())
383 return false;
384
385 return TypesAreContradictory(getType(), CC->getType());
386 }
387 return false;
388}
389
Chris Lattner24789622010-02-27 08:11:15 +0000390bool CheckIntegerMatcher::isContradictoryImpl(const Matcher *M) const {
391 if (const CheckIntegerMatcher *CIM = dyn_cast<CheckIntegerMatcher>(M))
392 return CIM->getValue() != getValue();
393 return false;
394}
Chris Lattner48aa5752010-03-07 06:29:26 +0000395
396bool CheckValueTypeMatcher::isContradictoryImpl(const Matcher *M) const {
397 if (const CheckValueTypeMatcher *CVT = dyn_cast<CheckValueTypeMatcher>(M))
398 return CVT->getTypeName() != getTypeName();
399 return false;
400}
401