Lines Matching refs:Operands

118   SmallVector<OpKind, 3> Operands;  member
121 return Operands < O.Operands; in operator <()
124 return Operands == O.Operands; in operator ==()
127 bool empty() const { return Operands.empty(); } in empty()
130 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in hasAnyImmediateCodes()
131 if (Operands[i].isImm() && Operands[i].getImmCode() != 0) in hasAnyImmediateCodes()
140 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in getWithoutImmCodes()
141 if (!Operands[i].isImm()) in getWithoutImmCodes()
142 Result.Operands.push_back(Operands[i]); in getWithoutImmCodes()
144 Result.Operands.push_back(OpKind::getImm(0)); in getWithoutImmCodes()
150 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in emitImmediatePredicate()
151 if (!Operands[i].isImm()) continue; in emitImmediatePredicate()
153 unsigned Code = Operands[i].getImmCode(); in emitImmediatePredicate()
184 Operands.push_back(OpKind::getImm(0)); in initialize()
189 Operands.push_back(OpKind::getFP()); in initialize()
224 Operands.push_back(OpKind::getImm(PredNo)); in initialize()
236 Operands.push_back(OpKind::getFP()); in initialize()
280 Operands.push_back(OpKind::getReg()); in initialize()
286 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintParameters()
287 if (Operands[i].isReg()) { in PrintParameters()
289 } else if (Operands[i].isImm()) { in PrintParameters()
291 } else if (Operands[i].isFP()) { in PrintParameters()
303 assert(PR.size() == Operands.size()); in PrintArguments()
305 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintArguments()
312 if (Operands[i].isReg()) { in PrintArguments()
315 } else if (Operands[i].isImm()) { in PrintArguments()
318 } else if (Operands[i].isFP()) { in PrintArguments()
328 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintArguments()
329 if (Operands[i].isReg()) { in PrintArguments()
331 } else if (Operands[i].isImm()) { in PrintArguments()
333 } else if (Operands[i].isFP()) { in PrintArguments()
347 for (unsigned i = 0, e = Operands.size(); i != e; ++i) { in PrintManglingSuffix()
355 Operands[i].printManglingSuffix(OS, ImmPredicates, StripImmCodes); in PrintManglingSuffix()
361 for (unsigned i = 0, e = Operands.size(); i != e; ++i) in PrintManglingSuffix()
362 Operands[i].printManglingSuffix(OS, ImmPredicates, StripImmCodes); in PrintManglingSuffix()
403 const OperandsSignature &Operands,
462 if (II.Operands.empty()) in collectPatterns()
484 Record *Op0Rec = II.Operands[0].Rec; in collectPatterns()
527 OperandsSignature Operands; in collectPatterns() local
528 if (!Operands.initialize(InstPatNode, Target, VT, ImmediatePredicates, in collectPatterns()
566 Operands.PrintManglingSuffix(SuffixOS, ImmediatePredicates, true); in collectPatterns()
588 if (SimplePatternsCheck[Operands][OpcodeName][VT] in collectPatterns()
593 SimplePatternsCheck[Operands][OpcodeName][VT][RetVT].insert( in collectPatterns()
598 SimplePatterns[Operands][OpcodeName][VT][RetVT].insert( in collectPatterns()
604 if (Operands.hasAnyImmediateCodes()) { in collectPatterns()
605 SignaturesWithConstantForms[Operands.getWithoutImmCodes()] in collectPatterns()
606 .push_back(Operands); in collectPatterns()
626 const OperandsSignature &Operands, in emitInstructionCode() argument
666 Operands.PrintManglingSuffix(OS, *Memo.PhysRegs, in emitInstructionCode()
670 if (!Operands.empty()) in emitInstructionCode()
672 Operands.PrintArguments(OS, *Memo.PhysRegs); in emitInstructionCode()
696 const OperandsSignature &Operands = OI->first; in printFunctionDefinitions() local
722 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
724 Operands.PrintParameters(OS); in printFunctionDefinitions()
727 emitInstructionCode(OS, Operands, PM, getName(RetVT)); in printFunctionDefinitions()
734 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
736 if (!Operands.empty()) in printFunctionDefinitions()
738 Operands.PrintParameters(OS); in printFunctionDefinitions()
746 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
748 Operands.PrintArguments(OS); in printFunctionDefinitions()
758 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
760 if (!Operands.empty()) in printFunctionDefinitions()
762 Operands.PrintParameters(OS); in printFunctionDefinitions()
770 emitInstructionCode(OS, Operands, PM, "RetVT"); in printFunctionDefinitions()
777 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
779 if (!Operands.empty()) in printFunctionDefinitions()
781 Operands.PrintParameters(OS); in printFunctionDefinitions()
790 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
792 if (!Operands.empty()) in printFunctionDefinitions()
794 Operands.PrintArguments(OS); in printFunctionDefinitions()
809 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
811 if (!Operands.empty()) in printFunctionDefinitions()
813 Operands.PrintParameters(OS); in printFunctionDefinitions()
815 if (!Operands.hasAnyImmediateCodes()) in printFunctionDefinitions()
824 = SignaturesWithConstantForms.find(Operands); in printFunctionDefinitions()
857 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
859 if (!Operands.empty()) in printFunctionDefinitions()
861 Operands.PrintArguments(OS); in printFunctionDefinitions()