Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Op

560                           [&](const AsmOperand &Op) {
561 return Op.SrcOpName == N && Op.SubOpIdx == SubOpIdx;
570 [&](const AsmOperand &Op) {
571 return Op.SrcOpName == N;
750 MatchableInfo::AsmOperand &Op);
789 const AsmOperand &Op = AsmOperands[i];
790 errs() << " op[" << i << "] = " << Op.Class->ClassName << " - ";
791 errs() << '\"' << Op.Token << "\"\n";
837 for (ResOperand &Op : ResOperands) {
838 if (Op.Kind == ResOperand::RenderAsmOperand &&
839 Op.AsmOperandNum == (unsigned)SrcAsmOperand) {
840 Op.AsmOperandNum = DstAsmOperand;
848 for (ResOperand &Op : ResOperands) {
849 switch(Op.Kind) {
854 if (Op.AsmOperandNum > (unsigned)SrcAsmOperand)
855 --Op.AsmOperandNum;
858 if (Op.TiedOperandNum > (unsigned)SrcAsmOperand)
859 --Op.TiedOperandNum;
868 extractSingletonRegisterForAsmOperand(MatchableInfo::AsmOperand &Op,
871 StringRef Tok = Op.Token;
875 if (!Op.IsIsolatedToken)
881 Op.SingletonReg = Reg->TheDef;
890 Op.SingletonReg = Reg->TheDef;
932 for (MatchableInfo::AsmOperand &Op : AsmOperands) {
933 extractSingletonRegisterForAsmOperand(Op, Info, Variant.RegisterPrefix);
934 if (Record *Reg = Op.SingletonReg)
1063 for (const AsmOperand &Op : AsmOperands) {
1064 StringRef Tok = Op.Token;
1421 const MatchableInfo::AsmOperand &Op = MI->AsmOperands[i];
1422 if (Op.Class->ParserMethod.empty())
1424 unsigned &OperandMask = OpClassMask[Op.Class];
1540 MatchableInfo::AsmOperand &Op = II->AsmOperands[i];
1541 StringRef Token = Op.Token;
1544 if (Record *RegRecord = Op.SingletonReg) {
1545 Op.Class = RegisterClasses[RegRecord];
1546 assert(Op.Class && Op.Class->Registers.size() == 1 &&
1553 Op.Class = getTokenClass(Token);
1558 Op.Class = getTokenClass(Token);
1572 buildAliasOperandReference(II.get(), OperandName, Op);
1635 MatchableInfo::AsmOperand *Op = &II->AsmOperands[AsmOpIdx];
1646 if (Op->SubOpIdx == -1 && Operands[Idx].MINumOperands > 1) {
1652 StringRef Token = Op->Token; // save this in case Op gets moved
1658 // Replace Op with first suboperand.
1659 Op = &II->AsmOperands[AsmOpIdx]; // update the pointer in case it moved
1660 Op->SubOpIdx = 0;
1665 Op->Class = getOperandClass(Operands[Idx], Op->SubOpIdx);
1683 Op->SubOpIdx = Idx.second;
1686 Op->SrcOpName = OperandName;
1694 MatchableInfo::AsmOperand &Op) {
1703 Op.SubOpIdx = CGA.ResultInstOperandIndex[i].second;
1707 Op.Class = getOperandClass(CGA.ResultOperands[i].getRecord(),
1708 Op.SubOpIdx);
1709 Op.SrcOpName = OperandName;
1959 const MatchableInfo::AsmOperand &Op =
1966 Class = Op.Class->isRegisterClass() ? "Reg" : Op.Class->ClassName;
1973 std::string Name = "CVT_" + (Op.Class->isRegisterClass() ? "Reg" :
1974 Op.Class->RenderMethod);
1975 if (Op.Class->IsOptional) {
1978 Name += "_" + Op.Class->DefaultMethod;
1996 if (Op.Class->IsOptional) {
2001 << " " << Op.Class->DefaultMethod << "()"
2002 << "->" << Op.Class->RenderMethod << "(Inst, "
2007 << "&>(*Operands[OpIdx])." << Op.Class->RenderMethod
2012 << "&>(*Operands[OpIdx])." << Op.Class->RenderMethod
2021 if (Op.Class->isRegisterClass())
3064 const MatchableInfo::AsmOperand &Op = MI->AsmOperands[i];
3067 OS << Op.Class->Name;