reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

utils/TableGen/AsmMatcherEmitter.cpp
 1674   const CGIOperandList &Operands = CGI.Operands;
 1764   for (const CGIOperandList::OperandInfo &OpInfo : ResultInst->Operands) {
 1822   for (unsigned i = 0, e = ResultInst->Operands.size(); i != e; ++i) {
 1823     const CGIOperandList::OperandInfo *OpInfo = &ResultInst->Operands[i];
 1858       if (ResultInst->Operands[i].Rec->getName() !=
 1859           ResultInst->Operands[TiedOp].Rec->getName()) {
utils/TableGen/AsmWriterEmitter.cpp
  832       for (auto &ResultInstOpnd : CGA.ResultInst->Operands)
  844         auto &Operands = CGA.ResultInst->Operands;
utils/TableGen/AsmWriterInst.cpp
  178         unsigned OpNo = CGI.Operands.getOperandNamed(VarName);
  179         CGIOperandList::OperandInfo OpInfo = CGI.Operands[OpNo];
utils/TableGen/CodeEmitterGen.cpp
  106   if (CGI.Operands.hasOperandNamed(VarName, OpIdx)) {
  108     OpIdx = CGI.Operands[OpIdx].MIOperandNo;
  109     assert(!CGI.Operands.isFlatOperandNotEmitted(OpIdx) &&
  112     unsigned NumberOps = CGI.Operands.size();
  116            (CGI.Operands.isFlatOperandNotEmitted(NumberedOp) ||
  118                 CGI.Operands.getSubOperandNumber(NumberedOp).first)))) {
  121       if (NumberedOp >= CGI.Operands.back().MIOperandNo +
  122                         CGI.Operands.back().MINumOperands) {
  135   std::pair<unsigned, unsigned> SO = CGI.Operands.getSubOperandNumber(OpIdx);
  136   std::string &EncoderMethodName = CGI.Operands[SO.first].EncoderMethodName;
  302       if (!CGI.Operands.hasOperandNamed(RV.getName(), OpIdx))
utils/TableGen/CodeGenDAGPatterns.cpp
 1784     unsigned NumDefsToAdd = InstInfo.Operands.NumDefs;
 1787     for (unsigned i = 0; i != InstInfo.Operands.NumDefs; ++i) {
 1788       Record *OperandNode = InstInfo.Operands[i].Rec;
 2438     unsigned NumResultsToAdd = std::min(InstInfo.Operands.NumDefs,
 2564     if (!InstInfo.Operands.isVariadic && ChildNo != getNumChildren()) {
 3656     if (i == CGI.Operands.size()) {
 3667     const std::string &OpName = CGI.Operands[i].Name;
 3681     if (!checkOperandClass(CGI.Operands[i], R))
 3685     Results.push_back(CGI.Operands[i].Rec);
 3697   for (unsigned i = NumResults, e = CGI.Operands.size(); i != e; ++i) {
 3698     CGIOperandList::OperandInfo &Op = CGI.Operands[i];
 3803       if (InstInfo.Operands.size() != 0) {
 3804         for (unsigned j = 0, e = InstInfo.Operands.NumDefs; j < e; ++j)
 3805           Results.push_back(InstInfo.Operands[j].Rec);
 3808         for (unsigned j = InstInfo.Operands.NumDefs,
 3809                e = InstInfo.Operands.size(); j < e; ++j)
 3810           Operands.push_back(InstInfo.Operands[j].Rec);
utils/TableGen/CodeGenInstruction.cpp
  382       Operands.isPredicable || R->getValueAsBit("isPredicable"));
  422   ParseConstraints(R->getValueAsString("Constraints"), Operands, R);
  425   Operands.ProcessDisableEncoding(R->getValueAsString("DisableEncoding"));
  699   for (unsigned i = 0, e = ResultInst->Operands.size(); i != e; ++i) {
  704     if (ResultInst->Operands[i].MINumOperands == 1 &&
  705         ResultInst->Operands[i].getTiedRegister() != -1) {
  708       int TiedOpNum = ResultInst->Operands[i].getTiedRegister();
  709       if (ResultInst->Operands[i].Rec->getName() ==
  710           ResultInst->Operands[TiedOpNum].Rec->getName())
  717     Record *InstOpRec = ResultInst->Operands[i].Rec;
  718     unsigned NumSubOps = ResultInst->Operands[i].MINumOperands;
  734          DagInit *MIOI = ResultInst->Operands[i].MIOperandInfo;
  753       DagInit *MIOI = ResultInst->Operands[i].MIOperandInfo;
utils/TableGen/DAGISelMatcherGen.cpp
  786   unsigned NumFixedOperands = II.Operands.size();
  806          CGP.operandHasDefault(II.Operands[NonOverridableOperands-1].Rec))
  812     Record *OperandNode = II.Operands[InstOpNo].Rec;
  859   if (II.Operands.isVariadic) {
utils/TableGen/FastISelEmitter.cpp
  463     if (II.Operands.empty())
  492       Record *Op0Rec = II.Operands[0].Rec;
utils/TableGen/FixedLenDecoderEmitter.cpp
 1838   for (unsigned i = 0; i < CGI.Operands.size(); ++i) {
 1839     int tiedTo = CGI.Operands[i].getTiedRegister();
 1842         CGI.Operands.getSubOperandNumber(tiedTo);
 1862         if (!CGI.Operands.hasOperandNamed(Vals[i].getName(), OpIdx))
 1893       if (CGI.Operands.hasOperandNamed(Vals[i].getName(), OpIdx))
 1915       unsigned NumberOps = CGI.Operands.size();
 1917              (CGI.Operands.isFlatOperandNotEmitted(NumberedOp) ||
 1919                 CGI.Operands.getSubOperandNumber(NumberedOp).first))))
 1926         CGI.Operands.getSubOperandNumber(OpIdx);
 1927       const std::string &Name = CGI.Operands[SO.first].Name;
 1934       Record *TypeRecord = CGI.Operands[SO.first].Rec;
 1943           CGI.Operands[SO.first].MIOperandInfo &&
 1944           CGI.Operands[SO.first].MIOperandInfo->getNumArgs()) {
 1945         Init *Arg = CGI.Operands[SO.first].MIOperandInfo->
 1984       if (CGI.Operands[SO.first].MIOperandInfo &&
 1985           CGI.Operands[SO.first].MIOperandInfo->getNumArgs() > 1 &&
 2002         unsigned i = CGI.Operands.getOperandNamed(TiedNames[Op.second]);
 2003         int tiedTo = CGI.Operands[i].getTiedRegister();
 2005           i = CGI.Operands.getOperandNamed(Op.second);
 2006           tiedTo = CGI.Operands[i].getTiedRegister();
 2011             CGI.Operands.getSubOperandNumber(tiedTo);
utils/TableGen/GlobalISelEmitter.cpp
 1710   unsigned getNumOperands() const { return I->Operands.size(); }
 1713     return I->Operands[OpIdx].OperandType;
 4227   for (unsigned I = 0; I < DstI->Operands.NumDefs; ++I) {
 4228     const CGIOperandList::OperandInfo &DstIOperand = DstI->Operands[I];
 4306   unsigned DstINumUses = OrigDstI->Operands.size() - OrigDstI->Operands.NumDefs;
 4306   unsigned DstINumUses = OrigDstI->Operands.size() - OrigDstI->Operands.NumDefs;
 4316         DstI->Operands[DstI->Operands.NumDefs + I];
 4316         DstI->Operands[DstI->Operands.NumDefs + I];
 4442   if (Inst.Operands.NumDefs > 1)
 4460   const auto &DstIOperand = Inst.Operands[0];
 4588       const auto &DstIOperand = DstI.Operands[0];
 4618   if (DstI.Operands.NumDefs != Src->getExtTypes().size())
 4621                         to_string(DstI.Operands.NumDefs) + " def(s))");
 4629     const auto &DstIOperand = DstI.Operands[OpIdx];
utils/TableGen/InstrDocsEmitter.cpp
  154     for (unsigned i = 0; i < II->Operands.size(); ++i) {
  155       bool IsDef = i < II->Operands.NumDefs;
  156       auto Op = II->Operands[i];
utils/TableGen/InstrInfoEmitter.cpp
  113   for (auto &Op : Inst.Operands) {
  232     for (const auto &Info : Inst->Operands) {
  376       for (const auto &Op : Inst->Operands) {
  651   if (!Inst.Operands.empty())
  653     MinOperands = Inst.Operands.back().MIOperandNo +
  654                   Inst.Operands.back().MINumOperands;
  658      << Inst.Operands.NumDefs << ",\t"
  691   if (Inst.Operands.hasOptionalDef) OS << "|(1ULL<<MCID::HasOptionalDef)";
  694   if (Inst.Operands.isVariadic)OS << "|(1ULL<<MCID::Variadic)";
utils/TableGen/PseudoLoweringEmitter.cpp
   92       if (DI->getDef() != Insn.Operands[BaseIdx + i].Rec)
   96                       Insn.Operands[BaseIdx + i].Rec->getName() + "'");
  100       for (unsigned I = 0, E = Insn.Operands[i].MINumOperands; I != E; ++I)
  102       OpsAdded += Insn.Operands[i].MINumOperands;
  145   if (Insn.Operands.size() != Dag->getNumArgs())
  150   for (unsigned i = 0, e = Insn.Operands.size(); i != e; ++i)
  151     NumMIOperands += Insn.Operands[i].MINumOperands;
  169   for (unsigned i = 0, e = SourceInsn.Operands.size(); i != e; ++i)
  170     SourceOperands[SourceInsn.Operands[i].Name] = i;
  173   for (unsigned i = 0, e = Insn.Operands.size(); i != e; ++i) {
  176     if (OperandMap[Insn.Operands[i].MIOperandNo].Kind != OpData::Operand)
  186     for (unsigned I = 0, E = Insn.Operands[i].MINumOperands; I != E; ++I)
  187       OperandMap[Insn.Operands[i].MIOperandNo + I].Data.Operand =
  223       for (const auto &DestOperand : Dest.Operands) {
  229               << Source.Operands[Expansion.OperandMap[MIOpNo].Data
  254       if (Dest.Operands.isVariadic) {
  255         MIOpNo = Source.Operands.size() + 1;
utils/TableGen/RISCVCompressInstEmitter.cpp
  191   for (unsigned i = 0, e = Inst.Operands.size(); i != e; ++i) {
  192     int TiedOpIdx = Inst.Operands[i].getTiedRegister();
  203         if (!validateRegister(DI->getDef(), Inst.Operands[i].Rec))
  208                               Inst.Operands[i].Rec->getName() + "'");
  217       if (!validateTypes(DI->getDef(), Inst.Operands[i].Rec, IsSourceInst))
  223                             Inst.Operands[i].Rec->getName() +
  229       if (Inst.Operands[i].Rec->isSubClassOf("RegisterClass"))
  251   if (Dag->getNumArgs() == Inst.Operands.size())
  260   if (Dag->getNumArgs() > Inst.Operands.size())
  267   unsigned RealCount = Inst.Operands.size();
  268   for (unsigned i = 0; i < Inst.Operands.size(); i++)
  269     if (Inst.Operands[i].getTiedRegister() != -1)
  347   for (unsigned i = 0, e = DestInst.Operands.size(); i != e; ++i) {
  348     int TiedInstOpIdx = DestInst.Operands[i].getTiedRegister();
  438   SourceOperandMap.grow(SourceInst.Operands.size());
  444   DestOperandMap.grow(DestInst.Operands.size());
  640     for (OpNo = 0; OpNo < Source.Operands.size(); ++OpNo) {
  642         if (Source.Operands[OpNo].Rec->isSubClassOf("RegisterClass"))
  676     for (const auto &DestOperand : Dest.Operands) {
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp
  111         OS << CGI.Operands.OperandList.size() << ", ";
  114         for (auto &Op : CGI.Operands.OperandList) {
utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
  122     for (unsigned i = 0, e = EVEXInst->Operands.size(); i < e; i++) {
  123       Record *OpRec1 = EVEXInst->Operands[i].Rec;
  124       Record *OpRec2 = VEXInst->Operands[i].Rec;
utils/TableGen/X86FoldTablesEmitter.cpp
  179   return any_of(Inst->Operands, [](const CGIOperandList::OperandInfo &OpIn) {
  186   return any_of(Inst->Operands, [](const CGIOperandList::OperandInfo &OpIn) {
  389     for (unsigned i = 0, e = MemInst->Operands.size(); i < e; i++) {
  390       Record *MemOpRec = MemInst->Operands[i].Rec;
  391       Record *RegOpRec = RegInst->Operands[i + RegStartIdx].Rec;
  479   Record *RegOpRec = RegInstr->Operands[FoldedInd].Rec;
  480   Record *MemOpRec = MemInstr->Operands[FoldedInd].Rec;
  534     for (unsigned i = RegOutSize, e = RegInstr->Operands.size(); i < e; i++) {
  535       Record *RegOpRec = RegInstr->Operands[i].Rec;
  536       Record *MemOpRec = MemInstr->Operands[i].Rec;
  565     Record *RegOpRec = RegInstr->Operands[RegOutSize - 1].Rec;
  566     Record *MemOpRec = MemInstr->Operands[RegOutSize - 1].Rec;
utils/TableGen/X86RecognizableInstr.cpp
   99   Operands = &insn.Operands.OperandList;