Lines Matching refs:TP

342   if (In.empty() || Out == In || TP.hasError())  in MergeInTypeInfo()
351 TP.error("Type contradiction"); in MergeInTypeInfo()
358 if (TP.hasError()) in forceArbitrary()
377 if (TP.hasError()) in EnforceInteger()
387 if (TP.hasError()) in EnforceFloatingPoint()
397 if (TP.hasError()) in EnforceScalar()
407 if (TP.hasError()) in EnforceVector()
417 if (TP.hasError() || !Out.empty()) in EnforceAny()
456 if (TP.hasError()) in EnforceSmallerThan()
490 TP.error("Incompatible types"); in EnforceSmallerThan()
561 if (TP.hasError()) in EnforceVectorEltTypeIs()
611 if (TP.hasError()) in EnforceVectorSubVectorTypeIs()
677 if (TP.hasError()) in EnforceSameNumElts()
715 if (TP.hasError()) in EnforceSameSize()
807 const TypeSetByHwMode &LTS = TP.getDAGPatterns().getLegalTypes(); in getLegalTypes()
823 Infer.TP.dump(); in ~ValidateOnExit()
1445 TreePattern &TP) const { in ApplyTypeConstraint()
1446 if (TP.hasError()) in ApplyTypeConstraint()
1451 TypeInfer &TI = TP.getInfer(); in ApplyTypeConstraint()
1456 return NodeToApply->UpdateNodeType(ResNo, VVT, TP); in ApplyTypeConstraint()
1459 return NodeToApply->UpdateNodeType(ResNo, MVT::iPTR, TP); in ApplyTypeConstraint()
1473 return NodeToApply->UpdateNodeType(ResNo, OtherNode->getExtType(OResNo),TP)| in ApplyTypeConstraint()
1474 OtherNode->UpdateNodeType(OResNo,NodeToApply->getExtType(ResNo),TP); in ApplyTypeConstraint()
1483 TP.error(N->getOperator()->getName() + " expects a VT operand!"); in ApplyTypeConstraint()
1487 const CodeGenTarget &T = TP.getDAGPatterns().getTargetInfo(); in ApplyTypeConstraint()
1555 TreePattern &TP) { in UpdateNodeTypeFromInst() argument
1564 const CodeGenTarget &T = TP.getDAGPatterns().getTargetInfo(); in UpdateNodeTypeFromInst()
1565 return UpdateNodeType(ResNo, getValueTypeByHwMode(R, T.getHwModes()), TP); in UpdateNodeTypeFromInst()
1570 return UpdateNodeType(ResNo, MVT::iPTR, TP); in UpdateNodeTypeFromInst()
1581 CodeGenTarget &Tgt = TP.getDAGPatterns().getTargetInfo(); in UpdateNodeTypeFromInst()
1582 return UpdateNodeType(ResNo, Tgt.getRegisterClass(RC).getValueTypes(), TP); in UpdateNodeTypeFromInst()
1585 bool TreePatternNode::ContainsUnresolvedType(TreePattern &TP) const { in ContainsUnresolvedType()
1587 if (!TP.getInfer().isConcrete(Types[i], true)) in ContainsUnresolvedType()
1590 if (getChild(i)->ContainsUnresolvedType(TP)) in ContainsUnresolvedType()
1890 TreePatternNodePtr T, TreePattern &TP, in InlinePatternFragments() argument
1893 if (TP.hasError()) in InlinePatternFragments()
1914 Child->InlinePatternFragments(Child, TP, ChildAlternatives[i]); in InlinePatternFragments()
1969 TreePattern *Frag = TP.getDAGPatterns().getPatternFragment(Op); in InlinePatternFragments()
1973 TP.error("'" + Op->getName() + "' fragment requires " + in InlinePatternFragments()
1981 Scope = TP.getDAGPatterns().allocateScope(); in InlinePatternFragments()
2009 FragTree->UpdateNodeType(i, getExtType(i), TP); in InlinePatternFragments()
2017 FragTree->InlinePatternFragments(FragTree, TP, OutAlternatives); in InlinePatternFragments()
2036 TreePattern &TP) { in getImplicitType() argument
2037 CodeGenDAGPatterns &CDP = TP.getDAGPatterns(); in getImplicitType()
2045 const CodeGenTarget &T = TP.getDAGPatterns().getTargetInfo(); in getImplicitType()
2061 const CodeGenTarget &T = TP.getDAGPatterns().getTargetInfo(); in getImplicitType()
2075 const CodeGenTarget &T = TP.getDAGPatterns().getTargetInfo(); in getImplicitType()
2118 TP.getInfer().expandOverloads(VTS); in getImplicitType()
2134 TP.error("Unknown node flavor used in pattern: " + R->getName()); in getImplicitType()
2248 static void emitTooManyOperandsError(TreePattern &TP, in emitTooManyOperandsError() argument
2252 TP.error("Instruction '" + InstName + "' was provided " + Twine(Actual) + in emitTooManyOperandsError()
2256 static void emitTooFewOperandsError(TreePattern &TP, in emitTooFewOperandsError() argument
2259 TP.error("Instruction '" + InstName + in emitTooFewOperandsError()
2266 bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) { in ApplyTypeConstraints() argument
2267 if (TP.hasError()) in ApplyTypeConstraints()
2270 CodeGenDAGPatterns &CDP = TP.getDAGPatterns(); in ApplyTypeConstraints()
2278 !hasName(), TP), TP); in ApplyTypeConstraints()
2286 bool MadeChange = TP.getInfer().EnforceInteger(Types[0]); in ApplyTypeConstraints()
2288 if (!TP.getInfer().isConcrete(Types[0], false)) in ApplyTypeConstraints()
2291 ValueTypeByHwMode VVT = TP.getInfer().getConcrete(Types[0], false); in ApplyTypeConstraints()
2307 TP.error("Integer value '" + Twine(II->getValue()) + in ApplyTypeConstraints()
2325 MadeChange |= UpdateNodeType(i, Int->IS.RetVTs[i], TP); in ApplyTypeConstraints()
2328 TP.error("Intrinsic '" + Int->Name + "' expects " + Twine(NumParamVTs) + in ApplyTypeConstraints()
2334 MadeChange |= getChild(0)->UpdateNodeType(0, MVT::iPTR, TP); in ApplyTypeConstraints()
2337 MadeChange |= getChild(i+1)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
2341 MadeChange |= getChild(i+1)->UpdateNodeType(0, OpVT, TP); in ApplyTypeConstraints()
2352 TP.error(getOperator()->getName() + " node requires exactly " + in ApplyTypeConstraints()
2359 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
2360 MadeChange |= NI.ApplyTypeConstraints(this, TP); in ApplyTypeConstraints()
2376 MadeChange |= UpdateNodeTypeFromInst(ResNo, Inst.getResult(ResNo), TP); in ApplyTypeConstraints()
2389 MadeChange |= UpdateNodeType(ResNo, VT, TP); in ApplyTypeConstraints()
2396 MadeChange |= UpdateNodeType(0, getChild(0)->getExtType(0), TP); in ApplyTypeConstraints()
2397 MadeChange |= getChild(0)->UpdateNodeType(0, getExtType(0), TP); in ApplyTypeConstraints()
2404 TP.error("REG_SEQUENCE requires at least 3 operands!"); in ApplyTypeConstraints()
2409 TP.error("REG_SEQUENCE requires an odd number of operands!"); in ApplyTypeConstraints()
2414 TP.error("REG_SEQUENCE requires a RegisterClass for first operand!"); in ApplyTypeConstraints()
2421 TP.error("REG_SEQUENCE requires a SubRegIndex for operand " + in ApplyTypeConstraints()
2441 emitTooFewOperandsError(TP, getOperator()->getName(), getNumChildren()); in ApplyTypeConstraints()
2460 Child->UpdateNodeTypeFromInst(ChildResNo, SubRec, TP); in ApplyTypeConstraints()
2465 emitTooFewOperandsError(TP, getOperator()->getName(), in ApplyTypeConstraints()
2473 Child->UpdateNodeTypeFromInst(ChildResNo, SubRec, TP); in ApplyTypeConstraints()
2482 MadeChange |= Child->UpdateNodeTypeFromInst(ChildResNo, OperandNode, TP); in ApplyTypeConstraints()
2486 emitTooManyOperandsError(TP, getOperator()->getName(), in ApplyTypeConstraints()
2492 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
2500 MadeChange |= getChild(i)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
2509 TP.error("Node transform '" + getOperator()->getName() + in ApplyTypeConstraints()
2514 bool MadeChange = getChild(0)->ApplyTypeConstraints(TP, NotRegisters); in ApplyTypeConstraints()
3972 static bool ForceArbitraryInstResultType(TreePatternNode *N, TreePattern &TP) { in ForceArbitraryInstResultType() argument
3978 if (ForceArbitraryInstResultType(N->getChild(i), TP)) in ForceArbitraryInstResultType()
3986 TypeInfer &TI = TP.getInfer(); in ForceArbitraryInstResultType()