/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/ |
D | X86EVEX2VEXTablesEmitter.cpp | 64 OS << " { X86::" << Pair.first->TheDef->getName() in printTable() 65 << ", X86::" << Pair.second->TheDef->getName() << " },\n"; in printTable() 110 Record *RecE = EVEXInst->TheDef; in operator ()() 111 Record *RecV = VEXInst->TheDef; in operator ()() 196 if (!Inst->TheDef->isSubClassOf("X86Inst")) in run() 201 if (Inst->TheDef->getValueAsDef("OpEnc")->getName() == "EncVEX") { in run() 202 uint64_t Opcode = getValueFromBitsInit(Inst->TheDef-> in run() 207 else if (Inst->TheDef->getValueAsDef("OpEnc")->getName() == "EncEVEX" && in run() 208 !Inst->TheDef->getValueAsBit("hasEVEX_K") && in run() 209 !Inst->TheDef->getValueAsBit("hasEVEX_B") && in run() [all …]
|
D | SubtargetFeatureInfo.h | 31 Record *TheDef; member 36 SubtargetFeatureInfo(Record *D, uint64_t Idx) : TheDef(D), Index(Idx) {} in SubtargetFeatureInfo() 40 return "Feature_" + TheDef->getName().str(); in getEnumName() 46 return "Feature_" + TheDef->getName().str() + "Bit"; in getEnumBitName() 50 return TheDef->getValueAsBit("RecomputePerFunction"); in mustRecomputePerFunction()
|
D | X86FoldTablesEmitter.cpp | 79 return Inst->TheDef->getName().find(InstStr) != StringRef::npos; in isExplicitAlign() 85 return Inst->TheDef->getName().find(InstStr) != StringRef::npos; in isExplicitUnalign() 111 OS << "{ X86::" << E.RegInst->TheDef->getName() in operator <<() 112 << ", X86::" << E.MemInst->TheDef->getName() << ", "; in operator <<() 299 StringRef AltRegInstStr = I->TheDef->getValueAsString("FoldGenRegForm"); in getAltRegInst() 317 Record *MemRec = MemInst->TheDef; in operator ()() 318 Record *RegRec = RegInst->TheDef; in operator ()() 447 Record *RegRec = RegInstr->TheDef; in addEntryWithFlags() 448 Record *MemRec = MemInstr->TheDef; in addEntryWithFlags() 503 Record *RegRec = RegInstr->TheDef; in updateTables() [all …]
|
D | RegisterBankEmitter.cpp | 35 const Record &TheDef; member in __anon6b49e9f90111::RegisterBank 44 RegisterBank(const Record &TheDef) in RegisterBank() argument 45 : TheDef(TheDef), RCs(), RCWithLargestRegsSize(nullptr) {} in RegisterBank() 48 StringRef getName() const { return TheDef.getValueAsString("Name"); } in getName() 50 std::string getEnumeratorName() const { return (TheDef.getName() + "ID").str(); } in getEnumeratorName() 54 return (TheDef.getName() + "CoverageData").str(); in getCoverageArrayName() 58 StringRef getInstanceVarName() const { return TheDef.getName(); } in getInstanceVarName() 60 const Record &getDef() const { return TheDef; } in getDef()
|
D | AsmWriterInst.cpp | 98 CGI.TheDef->getName() + "'!"); in AsmWriterInst() 136 + CGI.TheDef->getName() + "'"); in AsmWriterInst() 143 + CGI.TheDef->getName() + "'"); in AsmWriterInst() 151 PrintFatalError("Bad operand modifier name in '"+ CGI.TheDef->getName() + "'"); in AsmWriterInst() 156 + CGI.TheDef->getName() + "'"); in AsmWriterInst() 160 PrintFatalError("Stray '$' in '" + CGI.TheDef->getName() + in AsmWriterInst()
|
D | CodeGenSchedule.cpp | 122 StringRef InstName = Inst->TheDef->getName(); in apply() 125 Elts.insert(Inst->TheDef); in apply() 135 return LHS->TheDef->getName() < RHS; in apply() 138 return LHS < RHS->TheDef->getName() && in apply() 139 !RHS->TheDef->getName().startswith(LHS); in apply() 150 StringRef InstName = Inst->TheDef->getName(); in apply() 152 Elts.insert(Inst->TheDef); in apply() 335 Record *SchedDef = Inst->TheDef; in collectSchedRW() 411 findRWs(CGRW.TheDef->getValueAsListOfDefs("Writes"), CGRW.Sequence, in collectSchedRW() 462 RWVec, [Def](const CodeGenSchedRW &RW) { return RW.TheDef == Def; }); in getSchedRWIdx() [all …]
|
D | InstrInfoEmitter.cpp | 227 if (!Inst->TheDef->getValueAsBit("UseNamedOperandTable")) in initOperandMapData() 240 Inst->TheDef->getName().str()); in initOperandMapData() 446 Record *Inst = II->TheDef; in run() 474 InstrNames.add(Inst->TheDef->getName()); in run() 492 OS << InstrNames.get(Inst->TheDef->getName()) << "U, "; in run() 564 << Inst.TheDef->getValueAsInt("Size") << ",\t" in emitRecord() 609 BitsInit *TSF = Inst.TheDef->getValueAsBitsInit("TSFlags"); in emitRecord() 617 PrintFatalError("Invalid TSFlags bit in " + Inst.TheDef->getName()); in emitRecord() 624 std::vector<Record*> UseList = Inst.TheDef->getValueAsListOfDefs("Uses"); in emitRecord() 630 std::vector<Record*> DefList = Inst.TheDef->getValueAsListOfDefs("Defs"); in emitRecord() [all …]
|
D | AsmMatcherEmitter.cpp | 502 Record *const TheDef; member 544 : AsmVariantID(0), AsmString(CGI.AsmString), TheDef(CGI.TheDef), DefRec(&CGI), in MatchableInfo() 549 : AsmVariantID(0), AsmString(Alias->AsmString), TheDef(Alias->TheDef), in MatchableInfo() 552 TheDef->getValueAsBit("UseInstAsmMatchConverter")) { in MatchableInfo() 560 TheDef(RHS.TheDef), DefRec(RHS.DefRec), ResOperands(RHS.ResOperands), in MatchableInfo() 803 errs() << TheDef->getName() << " -- " << "flattened:\"" << AsmString <<"\"\n"; in dump() 841 parseTwoOperandConstraint(Constraint, TheDef->getLoc()); in formTwoOperandAlias() 847 PrintFatalError(TheDef->getLoc(), in formTwoOperandAlias() 851 PrintFatalError(TheDef->getLoc(), in formTwoOperandAlias() 897 Op.SingletonReg = Reg->TheDef; in extractSingletonRegisterForAsmOperand() [all …]
|
D | AsmWriterEmitter.cpp | 126 << FirstInst.CGI->TheDef->getName() << ":\n"; in EmitInstructions() 129 << AWI.CGI->TheDef->getName() << ":\n"; in EmitInstructions() 141 FirstInst.CGI->TheDef->getName().str(), in EmitInstructions() 146 AWI.CGI->TheDef->getName().str(), in EmitInstructions() 184 InstrsForCase[idx] += Inst.CGI->TheDef->getName(); in FindUniqueOperandCommands() 188 InstrsForCase.push_back(Inst.CGI->TheDef->getName()); in FindUniqueOperandCommands() 404 << NumberedInstructions[i]->TheDef->getName() << "\n"; in EmitPrintInstruction() 511 AsmName = Reg.TheDef->getValueAsString("AsmName"); in emitRegisterNameString() 517 Reg.TheDef->getValueAsListOfDefs("RegAltNameIndices"); in emitRegisterNameString() 527 Reg.TheDef->getValueAsListOfStrings("AltNames"); in emitRegisterNameString() [all …]
|
D | RISCVCompressInstEmitter.cpp | 256 PrintFatalError("Input operands for Inst '" + Inst.TheDef->getName() + in verifyDagOpCount() 260 PrintFatalError("Inst '" + Inst.TheDef->getName() + in verifyDagOpCount() 271 PrintFatalError("Inst '" + Inst.TheDef->getName() + in verifyDagOpCount() 546 return (LHS.Source.TheDef->getName().str() < in emitCompressInstEmitter() 547 RHS.Source.TheDef->getName().str()); in emitCompressInstEmitter() 549 return (LHS.Dest.TheDef->getName().str() < in emitCompressInstEmitter() 550 RHS.Dest.TheDef->getName().str()); in emitCompressInstEmitter() 612 CurOp = Source.TheDef->getName().str(); in emitCompressInstEmitter() 626 std::vector<Record *> RF = Dest.TheDef->getValueAsListOfDefs("Predicates"); in emitCompressInstEmitter() 682 "::" + Dest.TheDef->getName().str() + ");\n"; in emitCompressInstEmitter()
|
D | CodeGenInstruction.cpp | 28 CGIOperandList::CGIOperandList(Record *R) : TheDef(R) { in CGIOperandList() 143 PrintFatalError("'" + TheDef->getName() + in getOperandNamed() 163 PrintFatalError(TheDef->getName() + ": Illegal operand name: '" + Op + "'"); in ParseOperandName() 173 PrintFatalError(TheDef->getName() + ": illegal empty suboperand name in '" +Op +"'"); in ParseOperandName() 183 PrintFatalError(TheDef->getName() + ": Illegal to refer to" in ParseOperandName() 193 PrintFatalError(TheDef->getName() + ": unknown suboperand name in '" + Op + "'"); in ParseOperandName() 201 PrintFatalError(TheDef->getName() + ": unknown suboperand name in '" + Op + "'"); in ParseOperandName() 300 : TheDef(R), Operands(R), InferredFrom(nullptr) { in CodeGenInstruction() 441 if (DagInit *ConstraintList = TheDef->getValueAsDag("InOperandList")) { in isOperandAPointer() 599 : TheDef(R) { in CodeGenInstAlias()
|
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
D | AsmWriterInst.cpp | 127 CGI.TheDef->getName() + "'!"; in AsmWriterInst() 166 + CGI.TheDef->getName() + "'"; in AsmWriterInst() 173 + CGI.TheDef->getName() + "'"; in AsmWriterInst() 181 throw "Bad operand modifier name in '"+ CGI.TheDef->getName() + "'"; in AsmWriterInst() 186 + CGI.TheDef->getName() + "'"; in AsmWriterInst() 190 throw "Stray '$' in '" + CGI.TheDef->getName() + in AsmWriterInst()
|
D | InstrInfoEmitter.cpp | 186 Record *Inst = (*II)->TheDef; in run() 266 << getItinClassNumber(Inst.TheDef) << ",\t" in emitRecord() 267 << Inst.TheDef->getValueAsInt("Size") << ",\t\"" in emitRecord() 268 << Inst.TheDef->getName() << "\", 0"; in emitRecord() 300 BitsInit *TSF = Inst.TheDef->getValueAsBitsInit("TSFlags"); in emitRecord() 307 throw "Invalid TSFlags bit in " + Inst.TheDef->getName(); in emitRecord() 314 std::vector<Record*> UseList = Inst.TheDef->getValueAsListOfDefs("Uses"); in emitRecord() 320 std::vector<Record*> DefList = Inst.TheDef->getValueAsListOfDefs("Defs"); in emitRecord() 333 OS << " }, // Inst #" << Num << " = " << Inst.TheDef->getName() << "\n"; in emitRecord() 361 OS << " " << NumberedInstructions[i]->TheDef->getName() in emitEnums()
|
D | AsmMatcherEmitter.cpp | 371 Record *const TheDef; member 409 : TheDef(CGI.TheDef), DefRec(&CGI), AsmString(CGI.AsmString) { in MatchableInfo() 413 : TheDef(Alias->TheDef), DefRec(Alias), AsmString(Alias->AsmString) { in MatchableInfo() 520 Record *TheDef; member 525 SubtargetFeatureInfo(Record *D, unsigned Idx) : TheDef(D), Index(Idx) {} in SubtargetFeatureInfo() 529 return "Feature_" + TheDef->getName(); in getEnumName() 638 errs() << TheDef->getName() << " -- " << "flattened:\"" << AsmString <<"\"\n"; in dump() 655 std::vector<Record*> Predicates =TheDef->getValueAsListOfDefs("Predicates"); in Initialize() 742 throw TGError(TheDef->getLoc(), in TokenizeAsmString() 752 throw TGError(TheDef->getLoc(), "instruction with empty asm string"); in Validate() [all …]
|
D | CodeGenRegisters.cpp | 29 : TheDef(R), in CodeGenRegister() 36 return TheDef->getName(); in getName() 55 std::vector<Record*> SubList = TheDef->getValueAsListOfDefs("SubRegs"); in getSubRegs() 56 std::vector<Record*> Indices = TheDef->getValueAsListOfDefs("SubRegIndices"); in getSubRegs() 58 throw TGError(TheDef->getLoc(), "Register " + getName() + in getSubRegs() 65 throw TGError(TheDef->getLoc(), "SubRegIndex " + Indices[i]->getName() + in getSubRegs() 95 ListInit *Comps = TheDef->getValueAsListInit("CompositeIndices"); in getSubRegs() 99 throw TGError(TheDef->getLoc(), "Invalid dag '" + in getSubRegs() 104 throw TGError(TheDef->getLoc(), "Invalid SubClassIndex in " + in getSubRegs() 113 throw TGError(TheDef->getLoc(), "Invalid SubClassIndex in " + in getSubRegs() [all …]
|
D | RegisterInfoEmitter.cpp | 34 std::string Namespace = Registers[0]->TheDef->getValueAsString("Namespace"); in runEnums() 109 Record *Reg = Regs[i]->TheDef; in EmitRegMapping() 163 Record *Reg = Regs[i]->TheDef; in EmitRegMapping() 270 << getQualifiedName(Reg->TheDef) << ", "; in runMCDesc() 274 OS << getQualifiedName((*I)->TheDef) << ", "; in runMCDesc() 291 OS << getQualifiedName(SR[j]->TheDef) << ", "; in runMCDesc() 306 OS << getQualifiedName(SR[j]->TheDef) << ", "; in runMCDesc() 682 << int(AllocatableRegs.count(Reg.TheDef)) << " },\n"; in runTargetDesc() 726 OS << " case " << getQualifiedName(Regs[i]->TheDef) << ":\n"; in runTargetDesc() 732 << ": return " << getQualifiedName(ii->second->TheDef) << ";\n"; in runTargetDesc() [all …]
|
D | CodeGenInstruction.cpp | 28 CGIOperandList::CGIOperandList(Record *R) : TheDef(R) { in CGIOperandList() 137 throw "'" + TheDef->getName() + "' does not have an operand named '$" + in getOperandNamed() 157 throw TheDef->getName() + ": Illegal operand name: '" + Op + "'"; in ParseOperandName() 167 throw TheDef->getName() + ": illegal empty suboperand name in '" +Op +"'"; in ParseOperandName() 177 throw TheDef->getName() + ": Illegal to refer to" in ParseOperandName() 187 throw TheDef->getName() + ": unknown suboperand name in '" + Op + "'"; in ParseOperandName() 195 throw TheDef->getName() + ": unknown suboperand name in '" + Op + "'"; in ParseOperandName() 290 CodeGenInstruction::CodeGenInstruction(Record *R) : TheDef(R), Operands(R) { in CodeGenInstruction() 481 CodeGenInstAlias::CodeGenInstAlias(Record *R, CodeGenTarget &T) : TheDef(R) { in CodeGenInstAlias()
|
D | AsmWriterEmitter.cpp | 72 << FirstInst.CGI->TheDef->getName() << ":\n"; in EmitInstructions() 75 << SimilarInsts[i].CGI->TheDef->getName() << ":\n"; in EmitInstructions() 86 FirstInst.CGI->TheDef->getName(), in EmitInstructions() 92 AWI.CGI->TheDef->getName(), in EmitInstructions() 135 InstrsForCase[idx] += Inst->CGI->TheDef->getName(); in FindUniqueOperandCommands() 142 InstrsForCase.push_back(Inst->CGI->TheDef->getName()); in FindUniqueOperandCommands() 263 (*I)->TheDef->getName() != "PHI") in EmitPrintInstruction() 369 << NumberedInstructions[i]->TheDef->getName() << "\n"; in EmitPrintInstruction() 474 AsmName = Reg.TheDef->getValueAsString("AsmName"); in emitRegisterNameString() 480 Reg.TheDef->getValueAsListOfDefs("RegAltNameIndices"); in emitRegisterNameString() [all …]
|
/external/llvm/utils/TableGen/ |
D | AsmWriterInst.cpp | 98 CGI.TheDef->getName() + "'!"); in AsmWriterInst() 136 + CGI.TheDef->getName() + "'"); in AsmWriterInst() 143 + CGI.TheDef->getName() + "'"); in AsmWriterInst() 151 PrintFatalError("Bad operand modifier name in '"+ CGI.TheDef->getName() + "'"); in AsmWriterInst() 156 + CGI.TheDef->getName() + "'"); in AsmWriterInst() 160 PrintFatalError("Stray '$' in '" + CGI.TheDef->getName() + in AsmWriterInst()
|
D | AsmMatcherEmitter.cpp | 472 Record *const TheDef; member 514 : AsmVariantID(0), AsmString(CGI.AsmString), TheDef(CGI.TheDef), DefRec(&CGI), in MatchableInfo() 519 : AsmVariantID(0), AsmString(Alias->AsmString), TheDef(Alias->TheDef), in MatchableInfo() 522 TheDef->getValueAsBit("UseInstAsmMatchConverter")) { in MatchableInfo() 530 TheDef(RHS.TheDef), DefRec(RHS.DefRec), ResOperands(RHS.ResOperands), in MatchableInfo() 660 Record *TheDef; member 665 SubtargetFeatureInfo(Record *D, uint64_t Idx) : TheDef(D), Index(Idx) {} in SubtargetFeatureInfo() 669 return "Feature_" + TheDef->getName(); in getEnumName() 674 TheDef->dump(); in dump() 786 errs() << TheDef->getName() << " -- " << "flattened:\"" << AsmString <<"\"\n"; in dump() [all …]
|
D | InstrInfoEmitter.cpp | 208 if (!Inst->TheDef->getValueAsBit("UseNamedOperandTable")) in initOperandMapData() 220 OperandMap[OpList].push_back(Namespace + "::" + Inst->TheDef->getName()); in initOperandMapData() 360 Record *Inst = II->TheDef; in run() 388 InstrNames.add(Inst->TheDef->getName()); in run() 406 OS << InstrNames.get(Inst->TheDef->getName()) << "U, "; in run() 474 << Inst.TheDef->getValueAsInt("Size") << ",\t" in emitRecord() 512 BitsInit *TSF = Inst.TheDef->getValueAsBitsInit("TSFlags"); in emitRecord() 520 PrintFatalError("Invalid TSFlags bit in " + Inst.TheDef->getName()); in emitRecord() 527 std::vector<Record*> UseList = Inst.TheDef->getValueAsListOfDefs("Uses"); in emitRecord() 533 std::vector<Record*> DefList = Inst.TheDef->getValueAsListOfDefs("Defs"); in emitRecord() [all …]
|
D | CodeGenSchedule.cpp | 73 if (R.match(Inst->TheDef->getName())) in apply() 74 Elts.insert(Inst->TheDef); in apply() 214 Record *SchedDef = Inst->TheDef; in collectSchedRW() 293 findRWs(WI->TheDef->getValueAsListOfDefs("Writes"), WI->Sequence, in collectSchedRW() 346 if (I->TheDef == Def) in getSchedRWIdx() 354 Record *ReadDef = SchedReads[i].TheDef; in hasReadOfWrite() 409 SchedRW.TheDef ? SchedRW.TheDef->getValueAsInt("Repeat") : 1; in expandRWSequence() 435 PrintFatalError(AliasRW.TheDef->getLoc(), "Multiple aliases " in expandRWSeqForProc() 438 AliasDef = AliasRW.TheDef; in expandRWSeqForProc() 450 SchedWrite.TheDef ? SchedWrite.TheDef->getValueAsInt("Repeat") : 1; in expandRWSeqForProc() [all …]
|
D | AsmWriterEmitter.cpp | 105 << FirstInst.CGI->TheDef->getName() << ":\n"; in EmitInstructions() 108 << AWI.CGI->TheDef->getName() << ":\n"; in EmitInstructions() 120 FirstInst.CGI->TheDef->getName(), in EmitInstructions() 125 AWI.CGI->TheDef->getName(), in EmitInstructions() 165 InstrsForCase[idx] += Inst.CGI->TheDef->getName(); in FindUniqueOperandCommands() 169 InstrsForCase.push_back(Inst.CGI->TheDef->getName()); in FindUniqueOperandCommands() 386 << NumberedInstructions[i]->TheDef->getName() << "\n"; in EmitPrintInstruction() 504 AsmName = Reg.TheDef->getValueAsString("AsmName"); in emitRegisterNameString() 510 Reg.TheDef->getValueAsListOfDefs("RegAltNameIndices"); in emitRegisterNameString() 520 Reg.TheDef->getValueAsListOfStrings("AltNames"); in emitRegisterNameString() [all …]
|
D | SubtargetEmitter.cpp | 653 if (SchedWrite.TheDef->isSubClassOf("SchedWriteRes")) in FindWriteResources() 654 return SchedWrite.TheDef; in FindWriteResources() 660 if (AliasRW.TheDef->getValueInit("SchedModel")->isComplete()) { in FindWriteResources() 661 Record *ModelDef = AliasRW.TheDef->getValueAsDef("SchedModel"); in FindWriteResources() 666 PrintFatalError(AliasRW.TheDef->getLoc(), "Multiple aliases " in FindWriteResources() 669 AliasDef = AliasRW.TheDef; in FindWriteResources() 680 || SchedWrite.TheDef == WR->getValueAsDef("WriteType")) { in FindWriteResources() 694 + SchedWrite.TheDef->getName()); in FindWriteResources() 704 if (SchedRead.TheDef->isSubClassOf("SchedReadAdvance")) in FindReadAdvance() 705 return SchedRead.TheDef; in FindReadAdvance() [all …]
|
D | CodeGenSchedule.h | 49 Record *TheDef; member 59 : Index(0), TheDef(nullptr), IsRead(false), IsAlias(false), in CodeGenSchedRW() 62 : Index(Idx), TheDef(Def), IsAlias(false), IsVariadic(false) { in CodeGenSchedRW() 77 : Index(Idx), Name(Name), TheDef(nullptr), IsRead(Read), IsAlias(false), in CodeGenSchedRW() 83 assert((!HasVariants || TheDef) && "Variant write needs record def"); in isValid() 88 return TheDef || !Sequence.empty(); in isValid()
|