Lines Matching refs:Operands
142 SmallVector<OpKind, 3> Operands; member
145 return Operands < O.Operands; in operator <()
148 return Operands == O.Operands; in operator ==()
151 bool empty() const { return Operands.empty(); } in empty()
154 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in hasAnyImmediateCodes()
155 if (Operands[i].isImm() && Operands[i].getImmCode() != 0) in hasAnyImmediateCodes()
164 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in getWithoutImmCodes()
165 if (!Operands[i].isImm()) in getWithoutImmCodes()
166 Result.Operands.push_back(Operands[i]); in getWithoutImmCodes()
168 Result.Operands.push_back(OpKind::getImm(0)); in getWithoutImmCodes()
174 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in emitImmediatePredicate()
175 if (!Operands[i].isImm()) in emitImmediatePredicate()
178 unsigned Code = Operands[i].getImmCode(); in emitImmediatePredicate()
210 Operands.push_back(OpKind::getImm(0)); in initialize()
215 Operands.push_back(OpKind::getFP()); in initialize()
246 Operands.push_back(OpKind::getImm(PredNo)); in initialize()
257 Operands.push_back(OpKind::getFP()); in initialize()
301 Operands.push_back(OpKind::getReg()); in initialize()
308 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintParameters()
310 if (Operands[i].isReg()) { in PrintParameters()
312 } else if (Operands[i].isImm()) { in PrintParameters()
314 } else if (Operands[i].isFP()) { in PrintParameters()
324 assert(PR.size() == Operands.size()); in PrintArguments()
326 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintArguments()
332 if (Operands[i].isReg()) { in PrintArguments()
334 } else if (Operands[i].isImm()) { in PrintArguments()
336 } else if (Operands[i].isFP()) { in PrintArguments()
346 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintArguments()
348 if (Operands[i].isReg()) { in PrintArguments()
350 } else if (Operands[i].isImm()) { in PrintArguments()
352 } else if (Operands[i].isFP()) { in PrintArguments()
363 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintManglingSuffix()
371 Operands[i].printManglingSuffix(OS, ImmPredicates, StripImmCodes); in PrintManglingSuffix()
377 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in PrintManglingSuffix()
378 Operands[i].printManglingSuffix(OS, ImmPredicates, StripImmCodes); in PrintManglingSuffix()
415 void emitInstructionCode(raw_ostream &OS, const OperandsSignature &Operands,
468 if (II.Operands.empty()) in collectPatterns()
497 Record *Op0Rec = II.Operands[0].Rec; in collectPatterns()
543 OperandsSignature Operands; in collectPatterns() local
544 if (!Operands.initialize(InstPatNode, Target, VT, ImmediatePredicates, in collectPatterns()
582 Operands.PrintManglingSuffix(SuffixOS, ImmediatePredicates, true); in collectPatterns()
598 std::tuple(Operands, OpcodeName, VT, RetVT, PredicateCheck)); in collectPatterns()
606 SimplePatterns[Operands][OpcodeName][VT][RetVT].emplace(complexity, in collectPatterns()
612 if (Operands.hasAnyImmediateCodes()) { in collectPatterns()
613 SignaturesWithConstantForms[Operands.getWithoutImmCodes()].push_back( in collectPatterns()
614 Operands); in collectPatterns()
634 const OperandsSignature &Operands, in emitInstructionCode() argument
672 Operands.PrintManglingSuffix(OS, Memo.PhysRegs, ImmediatePredicates, in emitInstructionCode()
676 if (!Operands.empty()) in emitInstructionCode()
678 Operands.PrintArguments(OS, Memo.PhysRegs); in emitInstructionCode()
700 const OperandsSignature &Operands = SimplePattern.first; in printFunctionDefinitions() local
722 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
724 Operands.PrintParameters(OS); in printFunctionDefinitions()
727 emitInstructionCode(OS, Operands, PM, std::string(getName(RetVT))); in printFunctionDefinitions()
733 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
735 if (!Operands.empty()) in printFunctionDefinitions()
737 Operands.PrintParameters(OS); in printFunctionDefinitions()
745 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
747 Operands.PrintArguments(OS); in printFunctionDefinitions()
756 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
758 if (!Operands.empty()) in printFunctionDefinitions()
760 Operands.PrintParameters(OS); in printFunctionDefinitions()
768 emitInstructionCode(OS, Operands, PM, "RetVT"); in printFunctionDefinitions()
774 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
776 if (!Operands.empty()) in printFunctionDefinitions()
778 Operands.PrintParameters(OS); in printFunctionDefinitions()
786 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
788 if (!Operands.empty()) in printFunctionDefinitions()
790 Operands.PrintArguments(OS); in printFunctionDefinitions()
805 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
807 if (!Operands.empty()) in printFunctionDefinitions()
809 Operands.PrintParameters(OS); in printFunctionDefinitions()
811 if (!Operands.hasAnyImmediateCodes()) in printFunctionDefinitions()
820 SignaturesWithConstantForms.find(Operands); in printFunctionDefinitions()
851 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
853 if (!Operands.empty()) in printFunctionDefinitions()
855 Operands.PrintArguments(OS); in printFunctionDefinitions()