Lines Matching refs:Operands
128 SmallVector<OpKind, 3> Operands; member
131 return Operands < O.Operands; in operator <()
134 return Operands == O.Operands; in operator ==()
137 bool empty() const { return Operands.empty(); } in empty()
140 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in hasAnyImmediateCodes()
141 if (Operands[i].isImm() && Operands[i].getImmCode() != 0) in hasAnyImmediateCodes()
150 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in getWithoutImmCodes()
151 if (!Operands[i].isImm()) in getWithoutImmCodes()
152 Result.Operands.push_back(Operands[i]); in getWithoutImmCodes()
154 Result.Operands.push_back(OpKind::getImm(0)); in getWithoutImmCodes()
160 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in emitImmediatePredicate()
161 if (!Operands[i].isImm()) continue; in emitImmediatePredicate()
163 unsigned Code = Operands[i].getImmCode(); in emitImmediatePredicate()
195 Operands.push_back(OpKind::getImm(0)); in initialize()
200 Operands.push_back(OpKind::getFP()); in initialize()
231 Operands.push_back(OpKind::getImm(PredNo)); in initialize()
243 Operands.push_back(OpKind::getFP()); in initialize()
287 Operands.push_back(OpKind::getReg()); in initialize()
294 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintParameters()
296 if (Operands[i].isReg()) { in PrintParameters()
298 } else if (Operands[i].isImm()) { in PrintParameters()
300 } else if (Operands[i].isFP()) { in PrintParameters()
310 assert(PR.size() == Operands.size()); in PrintArguments()
312 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintArguments()
318 if (Operands[i].isReg()) { in PrintArguments()
320 } else if (Operands[i].isImm()) { in PrintArguments()
322 } else if (Operands[i].isFP()) { in PrintArguments()
332 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintArguments()
334 if (Operands[i].isReg()) { in PrintArguments()
336 } else if (Operands[i].isImm()) { in PrintArguments()
338 } else if (Operands[i].isFP()) { in PrintArguments()
350 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintManglingSuffix()
358 Operands[i].printManglingSuffix(OS, ImmPredicates, StripImmCodes); in PrintManglingSuffix()
364 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in PrintManglingSuffix()
365 Operands[i].printManglingSuffix(OS, ImmPredicates, StripImmCodes); in PrintManglingSuffix()
406 const OperandsSignature &Operands,
459 if (II.Operands.empty()) in collectPatterns()
488 Record *Op0Rec = II.Operands[0].Rec; in collectPatterns()
531 OperandsSignature Operands; in collectPatterns() local
532 if (!Operands.initialize(InstPatNode, Target, VT, ImmediatePredicates, in collectPatterns()
570 Operands.PrintManglingSuffix(SuffixOS, ImmediatePredicates, true); in collectPatterns()
590 if (SimplePatternsCheck[Operands][OpcodeName][VT] in collectPatterns()
595 SimplePatternsCheck[Operands][OpcodeName][VT][RetVT].insert( in collectPatterns()
600 SimplePatterns[Operands][OpcodeName][VT][RetVT].emplace(complexity, in collectPatterns()
606 if (Operands.hasAnyImmediateCodes()) { in collectPatterns()
607 SignaturesWithConstantForms[Operands.getWithoutImmCodes()] in collectPatterns()
608 .push_back(Operands); in collectPatterns()
628 const OperandsSignature &Operands, in emitInstructionCode() argument
665 Operands.PrintManglingSuffix(OS, Memo.PhysRegs, ImmediatePredicates, in emitInstructionCode()
669 if (!Operands.empty()) in emitInstructionCode()
671 Operands.PrintArguments(OS, Memo.PhysRegs); in emitInstructionCode()
694 const OperandsSignature &Operands = SimplePattern.first; in printFunctionDefinitions() local
716 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
718 Operands.PrintParameters(OS); in printFunctionDefinitions()
721 emitInstructionCode(OS, Operands, PM, std::string(getName(RetVT))); in printFunctionDefinitions()
727 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
729 if (!Operands.empty()) in printFunctionDefinitions()
731 Operands.PrintParameters(OS); in printFunctionDefinitions()
739 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
741 Operands.PrintArguments(OS); in printFunctionDefinitions()
750 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
752 if (!Operands.empty()) in printFunctionDefinitions()
754 Operands.PrintParameters(OS); in printFunctionDefinitions()
762 emitInstructionCode(OS, Operands, PM, "RetVT"); in printFunctionDefinitions()
769 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
771 if (!Operands.empty()) in printFunctionDefinitions()
773 Operands.PrintParameters(OS); in printFunctionDefinitions()
781 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
783 if (!Operands.empty()) in printFunctionDefinitions()
785 Operands.PrintArguments(OS); in printFunctionDefinitions()
800 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
802 if (!Operands.empty()) in printFunctionDefinitions()
804 Operands.PrintParameters(OS); in printFunctionDefinitions()
806 if (!Operands.hasAnyImmediateCodes()) in printFunctionDefinitions()
815 = SignaturesWithConstantForms.find(Operands); in printFunctionDefinitions()
847 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
849 if (!Operands.empty()) in printFunctionDefinitions()
851 Operands.PrintArguments(OS); in printFunctionDefinitions()