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()
591 if (SimplePatternsCheck[Operands][OpcodeName][VT] in collectPatterns()
596 SimplePatternsCheck[Operands][OpcodeName][VT][RetVT].insert( in collectPatterns()
601 SimplePatterns[Operands][OpcodeName][VT][RetVT].emplace(complexity, in collectPatterns()
607 if (Operands.hasAnyImmediateCodes()) { in collectPatterns()
608 SignaturesWithConstantForms[Operands.getWithoutImmCodes()] in collectPatterns()
609 .push_back(Operands); in collectPatterns()
629 const OperandsSignature &Operands, in emitInstructionCode() argument
666 Operands.PrintManglingSuffix(OS, Memo.PhysRegs, ImmediatePredicates, in emitInstructionCode()
670 if (!Operands.empty()) in emitInstructionCode()
672 Operands.PrintArguments(OS, Memo.PhysRegs); in emitInstructionCode()
695 const OperandsSignature &Operands = SimplePattern.first; in printFunctionDefinitions() local
717 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
719 Operands.PrintParameters(OS); in printFunctionDefinitions()
722 emitInstructionCode(OS, Operands, PM, std::string(getName(RetVT))); in printFunctionDefinitions()
728 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
730 if (!Operands.empty()) in printFunctionDefinitions()
732 Operands.PrintParameters(OS); in printFunctionDefinitions()
740 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
742 Operands.PrintArguments(OS); in printFunctionDefinitions()
751 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
753 if (!Operands.empty()) in printFunctionDefinitions()
755 Operands.PrintParameters(OS); in printFunctionDefinitions()
763 emitInstructionCode(OS, Operands, PM, "RetVT"); in printFunctionDefinitions()
770 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
772 if (!Operands.empty()) in printFunctionDefinitions()
774 Operands.PrintParameters(OS); in printFunctionDefinitions()
782 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
784 if (!Operands.empty()) in printFunctionDefinitions()
786 Operands.PrintArguments(OS); in printFunctionDefinitions()
801 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
803 if (!Operands.empty()) in printFunctionDefinitions()
805 Operands.PrintParameters(OS); in printFunctionDefinitions()
807 if (!Operands.hasAnyImmediateCodes()) in printFunctionDefinitions()
816 = SignaturesWithConstantForms.find(Operands); in printFunctionDefinitions()
848 Operands.PrintManglingSuffix(OS, ImmediatePredicates); in printFunctionDefinitions()
850 if (!Operands.empty()) in printFunctionDefinitions()
852 Operands.PrintArguments(OS); in printFunctionDefinitions()