Lines Matching refs:InstInfo

1897     CodeGenInstruction &InstInfo = CDP.getTargetInfo().getInstruction(Operator);  in GetNumNodeResults()  local
1899 unsigned NumDefsToAdd = InstInfo.Operands.NumDefs; in GetNumNodeResults()
1902 for (unsigned i = 0; i != InstInfo.Operands.NumDefs; ++i) { in GetNumNodeResults()
1903 Record *OperandNode = InstInfo.Operands[i].Rec; in GetNumNodeResults()
1911 if (InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()) !=MVT::Other) in GetNumNodeResults()
2564 CodeGenInstruction &InstInfo = in ApplyTypeConstraints() local
2571 unsigned NumResultsToAdd = std::min(InstInfo.Operands.NumDefs, in ApplyTypeConstraints()
2578 if (!InstInfo.ImplicitDefs.empty()) { in ApplyTypeConstraints()
2584 InstInfo.HasOneImplicitDefWithKnownVT(CDP.getTargetInfo()); in ApplyTypeConstraints()
2627 unsigned NumFixedOperands = InstInfo.Operands.size(); in ApplyTypeConstraints()
2639 CDP.operandHasDefault(InstInfo.Operands[NonOverridableOperands-1].Rec)) in ApplyTypeConstraints()
2645 Record *OperandNode = InstInfo.Operands[i].Rec; in ApplyTypeConstraints()
2701 if (!InstInfo.Operands.isVariadic && ChildNo != getNumChildren()) { in ApplyTypeConstraints()
3651 static bool InferFromPattern(CodeGenInstruction &InstInfo, in InferFromPattern() argument
3657 if (InstInfo.hasUndefFlags()) in InferFromPattern()
3658 InstInfo.InferredFrom = PatDef; in InferFromPattern()
3661 if (InstInfo.hasSideEffects != PatInfo.hasSideEffects && in InferFromPattern()
3662 !InstInfo.hasSideEffects_Unset) { in InferFromPattern()
3666 if (!InstInfo.hasSideEffects) { in InferFromPattern()
3669 Twine(InstInfo.hasSideEffects)); in InferFromPattern()
3673 if (InstInfo.mayStore != PatInfo.mayStore && !InstInfo.mayStore_Unset) { in InferFromPattern()
3676 Twine(InstInfo.mayStore)); in InferFromPattern()
3679 if (InstInfo.mayLoad != PatInfo.mayLoad && !InstInfo.mayLoad_Unset) { in InferFromPattern()
3682 if (!InstInfo.mayLoad) { in InferFromPattern()
3685 Twine(InstInfo.mayLoad)); in InferFromPattern()
3690 InstInfo.hasSideEffects |= PatInfo.hasSideEffects; in InferFromPattern()
3691 InstInfo.mayStore |= PatInfo.mayStore; in InferFromPattern()
3692 InstInfo.mayLoad |= PatInfo.mayLoad; in InferFromPattern()
3698 InstInfo.isBitcast |= PatInfo.isBitcast; in InferFromPattern()
3699 InstInfo.hasChain |= PatInfo.hasChain; in InferFromPattern()
3700 InstInfo.hasChain_Inferred = true; in InferFromPattern()
3975 CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in ParseInstructions() local
3977 if (InstInfo.Operands.size() != 0) { in ParseInstructions()
3978 for (unsigned j = 0, e = InstInfo.Operands.NumDefs; j < e; ++j) in ParseInstructions()
3979 Results.push_back(InstInfo.Operands[j].Rec); in ParseInstructions()
3982 for (unsigned j = InstInfo.Operands.NumDefs, in ParseInstructions()
3983 e = InstInfo.Operands.size(); j < e; ++j) in ParseInstructions()
3984 Operands.push_back(InstInfo.Operands[j].Rec); in ParseInstructions()
4094 CodeGenInstruction &InstInfo = Target.getInstruction(PatInstrs.front()); in InferInstructionFlags() local
4097 if (InstInfo.InferredFrom) in InferInstructionFlags()
4102 Errors += InferFromPattern(InstInfo, PatInfo, PTM.getSrcRecord()); in InferInstructionFlags()
4111 CodeGenInstruction *InstInfo = in InferInstructionFlags() local
4113 if (InstInfo->InferredFrom) in InferInstructionFlags()
4117 if (InstInfo->hasSideEffects_Unset) in InferInstructionFlags()
4118 InstInfo->hasSideEffects = true; in InferInstructionFlags()
4125 CodeGenInstruction *InstInfo = in InferInstructionFlags() local
4127 if (InstInfo->InferredFrom) in InferInstructionFlags()
4129 if (InstInfo->hasSideEffects_Unset) in InferInstructionFlags()
4130 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4132 if (InstInfo->mayStore_Unset) in InferInstructionFlags()
4133 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4135 if (InstInfo->mayLoad_Unset) in InferInstructionFlags()
4136 PrintError(InstInfo->TheDef->getLoc(), in InferInstructionFlags()
4156 const CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in VerifyInstructionFlags() local
4157 NumSideEffects += InstInfo.hasSideEffects; in VerifyInstructionFlags()
4158 NumStores += InstInfo.mayStore; in VerifyInstructionFlags()
4159 NumLoads += InstInfo.mayLoad; in VerifyInstructionFlags()
4196 const CodeGenInstruction &InstInfo = Target.getInstruction(Instr); in VerifyInstructionFlags() local
4197 if (InstInfo.InferredFrom && in VerifyInstructionFlags()
4198 InstInfo.InferredFrom != InstInfo.TheDef && in VerifyInstructionFlags()
4199 InstInfo.InferredFrom != PTM.getSrcRecord()) in VerifyInstructionFlags()
4200 PrintError(InstInfo.InferredFrom->getLoc(), "inferred from pattern"); in VerifyInstructionFlags()