Lines Matching refs:InstInfo
1918 CodeGenInstruction &InstInfo = CDP.getTargetInfo().getInstruction(Operator); in GetNumNodeResults() local
1920 unsigned NumDefsToAdd = InstInfo.Operands.NumDefs; in GetNumNodeResults()
1923 for (unsigned i = 0; i != InstInfo.Operands.NumDefs; ++i) { in GetNumNodeResults()
1924 Record *OperandNode = InstInfo.Operands[i].Rec; in GetNumNodeResults()
1932 if (InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()) !=MVT::Other) in GetNumNodeResults()
2572 CodeGenInstruction &InstInfo = in ApplyTypeConstraints() local
2579 unsigned NumResultsToAdd = std::min(InstInfo.Operands.NumDefs, in ApplyTypeConstraints()
2586 if (!InstInfo.ImplicitDefs.empty()) { in ApplyTypeConstraints()
2592 InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()); in ApplyTypeConstraints()
2635 unsigned NumFixedOperands = InstInfo.Operands.size(); in ApplyTypeConstraints()
2647 CDP.operandHasDefault(InstInfo.Operands[NonOverridableOperands-1].Rec)) in ApplyTypeConstraints()
2653 Record *OperandNode = InstInfo.Operands[i].Rec; in ApplyTypeConstraints()
2709 if (!InstInfo.Operands.isVariadic && ChildNo != getNumChildren()) { in ApplyTypeConstraints()
3656 static bool InferFromPattern(CodeGenInstruction &InstInfo, in InferFromPattern() argument
3662 if (InstInfo.hasUndefFlags()) in InferFromPattern()
3663 InstInfo.InferredFrom = PatDef; in InferFromPattern()
3666 if (InstInfo.hasSideEffects != PatInfo.hasSideEffects && in InferFromPattern()
3667 !InstInfo.hasSideEffects_Unset) { in InferFromPattern()
3671 if (!InstInfo.hasSideEffects) { in InferFromPattern()
3674 Twine(InstInfo.hasSideEffects)); in InferFromPattern()
3678 if (InstInfo.mayStore != PatInfo.mayStore && !InstInfo.mayStore_Unset) { in InferFromPattern()
3681 Twine(InstInfo.mayStore)); in InferFromPattern()
3684 if (InstInfo.mayLoad != PatInfo.mayLoad && !InstInfo.mayLoad_Unset) { in InferFromPattern()
3687 if (!InstInfo.mayLoad) { in InferFromPattern()
3690 Twine(InstInfo.mayLoad)); in InferFromPattern()
3695 InstInfo.hasSideEffects |= PatInfo.hasSideEffects; in InferFromPattern()
3696 InstInfo.mayStore |= PatInfo.mayStore; in InferFromPattern()
3697 InstInfo.mayLoad |= PatInfo.mayLoad; in InferFromPattern()
3703 InstInfo.isBitcast |= PatInfo.isBitcast; in InferFromPattern()
3704 InstInfo.hasChain |= PatInfo.hasChain; in InferFromPattern()
3705 InstInfo.hasChain_Inferred = true; in InferFromPattern()
3981 CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in ParseInstructions() local
3983 if (InstInfo.Operands.size() != 0) { in ParseInstructions()
3984 for (unsigned j = 0, e = InstInfo.Operands.NumDefs; j < e; ++j) in ParseInstructions()
3985 Results.push_back(InstInfo.Operands[j].Rec); in ParseInstructions()
3988 for (unsigned j = InstInfo.Operands.NumDefs, in ParseInstructions()
3989 e = InstInfo.Operands.size(); j < e; ++j) in ParseInstructions()
3990 Operands.push_back(InstInfo.Operands[j].Rec); in ParseInstructions()
4101 CodeGenInstruction &InstInfo = Target.getInstruction(PatInstrs.front()); in InferInstructionFlags() local
4104 if (InstInfo.InferredFrom) in InferInstructionFlags()
4109 Errors += InferFromPattern(InstInfo, PatInfo, PTM.getSrcRecord()); in InferInstructionFlags()
4118 CodeGenInstruction *InstInfo = in InferInstructionFlags() local
4120 if (InstInfo->InferredFrom) in InferInstructionFlags()
4124 if (InstInfo->hasSideEffects_Unset) in InferInstructionFlags()
4125 InstInfo->hasSideEffects = true; in InferInstructionFlags()
4132 CodeGenInstruction *InstInfo = in InferInstructionFlags() local
4134 if (InstInfo->InferredFrom) in InferInstructionFlags()
4136 if (InstInfo->hasSideEffects_Unset) in InferInstructionFlags()
4137 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4139 if (InstInfo->mayStore_Unset) in InferInstructionFlags()
4140 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4142 if (InstInfo->mayLoad_Unset) in InferInstructionFlags()
4143 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4163 const CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in VerifyInstructionFlags() local
4164 NumSideEffects += InstInfo.hasSideEffects; in VerifyInstructionFlags()
4165 NumStores += InstInfo.mayStore; in VerifyInstructionFlags()
4166 NumLoads += InstInfo.mayLoad; in VerifyInstructionFlags()
4203 const CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in VerifyInstructionFlags() local
4204 if (InstInfo.InferredFrom && in VerifyInstructionFlags()
4205 InstInfo.InferredFrom != InstInfo.TheDef && in VerifyInstructionFlags()
4206 InstInfo.InferredFrom != PTM.getSrcRecord()) in VerifyInstructionFlags()
4207 PrintError(InstInfo.InferredFrom->getLoc(), "inferred from pattern"); in VerifyInstructionFlags()