Lines Matching refs:InstInfo
1814 CodeGenInstruction &InstInfo = CDP.getTargetInfo().getInstruction(Operator); in GetNumNodeResults() local
1816 unsigned NumDefsToAdd = InstInfo.Operands.NumDefs; in GetNumNodeResults()
1819 for (unsigned i = 0; i != InstInfo.Operands.NumDefs; ++i) { in GetNumNodeResults()
1820 Record *OperandNode = InstInfo.Operands[i].Rec; in GetNumNodeResults()
1828 if (InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()) !=MVT::Other) in GetNumNodeResults()
2463 CodeGenInstruction &InstInfo = in ApplyTypeConstraints() local
2470 unsigned NumResultsToAdd = std::min(InstInfo.Operands.NumDefs, in ApplyTypeConstraints()
2477 if (!InstInfo.ImplicitDefs.empty()) { in ApplyTypeConstraints()
2483 InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()); in ApplyTypeConstraints()
2526 unsigned NumFixedOperands = InstInfo.Operands.size(); in ApplyTypeConstraints()
2538 CDP.operandHasDefault(InstInfo.Operands[NonOverridableOperands-1].Rec)) in ApplyTypeConstraints()
2544 Record *OperandNode = InstInfo.Operands[i].Rec; in ApplyTypeConstraints()
2600 if (!InstInfo.Operands.isVariadic && ChildNo != getNumChildren()) { in ApplyTypeConstraints()
3523 static bool InferFromPattern(CodeGenInstruction &InstInfo, in InferFromPattern() argument
3529 if (InstInfo.hasUndefFlags()) in InferFromPattern()
3530 InstInfo.InferredFrom = PatDef; in InferFromPattern()
3533 if (InstInfo.hasSideEffects != PatInfo.hasSideEffects && in InferFromPattern()
3534 !InstInfo.hasSideEffects_Unset) { in InferFromPattern()
3538 if (!InstInfo.hasSideEffects) { in InferFromPattern()
3541 Twine(InstInfo.hasSideEffects)); in InferFromPattern()
3545 if (InstInfo.mayStore != PatInfo.mayStore && !InstInfo.mayStore_Unset) { in InferFromPattern()
3548 Twine(InstInfo.mayStore)); in InferFromPattern()
3551 if (InstInfo.mayLoad != PatInfo.mayLoad && !InstInfo.mayLoad_Unset) { in InferFromPattern()
3554 if (!InstInfo.mayLoad) { in InferFromPattern()
3557 Twine(InstInfo.mayLoad)); in InferFromPattern()
3562 InstInfo.hasSideEffects |= PatInfo.hasSideEffects; in InferFromPattern()
3563 InstInfo.mayStore |= PatInfo.mayStore; in InferFromPattern()
3564 InstInfo.mayLoad |= PatInfo.mayLoad; in InferFromPattern()
3570 InstInfo.isBitcast |= PatInfo.isBitcast; in InferFromPattern()
3571 InstInfo.hasChain |= PatInfo.hasChain; in InferFromPattern()
3572 InstInfo.hasChain_Inferred = true; in InferFromPattern()
3847 CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in ParseInstructions() local
3849 if (InstInfo.Operands.size() != 0) { in ParseInstructions()
3850 for (unsigned j = 0, e = InstInfo.Operands.NumDefs; j < e; ++j) in ParseInstructions()
3851 Results.push_back(InstInfo.Operands[j].Rec); in ParseInstructions()
3854 for (unsigned j = InstInfo.Operands.NumDefs, in ParseInstructions()
3855 e = InstInfo.Operands.size(); j < e; ++j) in ParseInstructions()
3856 Operands.push_back(InstInfo.Operands[j].Rec); in ParseInstructions()
3981 CodeGenInstruction &InstInfo = Target.getInstruction(PatInstrs.front()); in InferInstructionFlags() local
3984 if (InstInfo.InferredFrom) in InferInstructionFlags()
3989 Errors += InferFromPattern(InstInfo, PatInfo, PTM.getSrcRecord()); in InferInstructionFlags()
3998 CodeGenInstruction *InstInfo = in InferInstructionFlags() local
4000 if (InstInfo->InferredFrom) in InferInstructionFlags()
4004 if (InstInfo->hasSideEffects_Unset) in InferInstructionFlags()
4005 InstInfo->hasSideEffects = true; in InferInstructionFlags()
4012 CodeGenInstruction *InstInfo = in InferInstructionFlags() local
4014 if (InstInfo->InferredFrom) in InferInstructionFlags()
4016 if (InstInfo->hasSideEffects_Unset) in InferInstructionFlags()
4017 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4019 if (InstInfo->mayStore_Unset) in InferInstructionFlags()
4020 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4022 if (InstInfo->mayLoad_Unset) in InferInstructionFlags()
4023 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4044 const CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in VerifyInstructionFlags() local
4045 NumSideEffects += InstInfo.hasSideEffects; in VerifyInstructionFlags()
4046 NumStores += InstInfo.mayStore; in VerifyInstructionFlags()
4047 NumLoads += InstInfo.mayLoad; in VerifyInstructionFlags()
4084 const CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in VerifyInstructionFlags() local
4085 if (InstInfo.InferredFrom && in VerifyInstructionFlags()
4086 InstInfo.InferredFrom != InstInfo.TheDef && in VerifyInstructionFlags()
4087 InstInfo.InferredFrom != PTM.getSrcRecord()) in VerifyInstructionFlags()
4088 PrintError(InstInfo.InferredFrom->getLoc(), "inferred from pattern"); in VerifyInstructionFlags()