Home
last modified time | relevance | path

Searched refs:Rec (Results 1 – 25 of 76) sorted by relevance

1234

/openbsd/gnu/llvm/llvm/utils/TableGen/
H A DPredicateExpander.cpp131 for (const Record *Rec : Opcodes) { in expandCheckOpcode() local
137 expandCheckOpcode(OS, Rec); in expandCheckOpcode()
169 for (const Record *Rec : Sequence) { in expandPredicateSequence() local
174 expandPredicate(OS, Rec); in expandPredicateSequence()
234 expandPredicate(SS, Rec); in expandReturnStatement()
261 for (const Record *Rec : Cases) { in expandOpcodeSwitchStatement() local
262 expandOpcodeSwitchCase(SS, Rec); in expandOpcodeSwitchStatement()
299 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate()
305 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate()
363 if (Rec->isSubClassOf("CheckAll")) in expandPredicate()
[all …]
H A DPseudoLoweringEmitter.cpp94 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in addDagOperandMapping()
142 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
144 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
149 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
152 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
159 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
162 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
167 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
170 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
192 CodeGenInstruction SourceInsn(Rec); in evaluateExpansion()
[all …]
H A DRISCVTargetDefEmitter.cpp28 static std::string getMArch(const Record &Rec) { in getMArch() argument
33 for (auto *Feature : Rec.getValueAsListOfDefs("Features")) { in getMArch()
57 for (const Record *Rec : RK.getAllDerivedDefinitions("RISCVProcessorModel")) { in EmitRISCVTargetDef() local
58 std::string MArch = Rec->getValueAsString("DefaultMarch").str(); in EmitRISCVTargetDef()
62 MArch = getMArch(*Rec); in EmitRISCVTargetDef()
64 OS << "PROC(" << Rec->getName() << ", " in EmitRISCVTargetDef()
65 << "{\"" << Rec->getValueAsString("Name") << "\"}, " in EmitRISCVTargetDef()
75 for (const Record *Rec : in EmitRISCVTargetDef() local
77 OS << "TUNE_PROC(" << Rec->getName() << ", " in EmitRISCVTargetDef()
78 << "\"" << Rec->getValueAsString("Name") << "\")\n"; in EmitRISCVTargetDef()
H A DCompressInstEmitter.cpp221 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
235 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
248 Rec->getLoc(), in addDagOperandMapping()
330 PrintFatalError(Rec->getLoc(), in createDagOperandMapping()
384 PrintFatalError(Rec->getLoc(), in createInstOperandMapping()
443 Rec->getLoc(), in evaluateCompressPat()
523 unsigned &Entry = PredicateMap[Rec]; in getPredicates()
527 if (!Rec->isValueUnset(Name)) { in getPredicates()
528 Predicates.push_back(Rec); in getPredicates()
533 PrintFatalError(Rec->getLoc(), "No " + Name + in getPredicates()
[all …]
H A DCodeGenInstruction.cpp79 Record *Rec = Arg->getDef(); in CGIOperandList() local
91 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList()
111 if (Rec->isSubClassOf("PredicateOp")) in CGIOperandList()
304 Record *Rec) { in ParseConstraint() argument
322 Rec->getLoc(), "Operand '" + Name + "' of '" + Rec->getName() + in ParseConstraint()
334 "' in '" + Rec->getName() + "'"); in ParseConstraint()
342 Rec->getName() + "': '" + CStr + "'"); in ParseConstraint()
377 Rec->getLoc(), "Operand '" + SrcOpName + "' of '" + Rec->getName() + in ParseConstraint()
389 Rec->getLoc(), "Operand '" + DestOpName + "' of '" + Rec->getName() + in ParseConstraint()
732 Record *Rec = getRecord(); in getMINumOperands() local
[all …]
H A DX86RecognizableInstr.cpp42 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand()
47 return Rec->isSubClassOf("Operand") && in isMemoryOperand()
52 return Rec->isSubClassOf("Operand") && in isImmediateOperand()
110 const Record *Rec = insn.TheDef; in RecognizableInstrBase() local
113 OpMap = byteFromRec(Rec, "OpMapBits"); in RecognizableInstrBase()
114 Opcode = byteFromRec(Rec, "Opcode"); in RecognizableInstrBase()
115 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstrBase()
116 Encoding = byteFromRec(Rec, "OpEncBits"); in RecognizableInstrBase()
117 OpSize = byteFromRec(Rec, "OpSizeBits"); in RecognizableInstrBase()
118 AdSize = byteFromRec(Rec, "AdSizeBits"); in RecognizableInstrBase()
[all …]
H A DX86FoldTablesEmitter.cpp198 return OpIn.Rec->getName() == "RST" || OpIn.Rec->getName() == "RSTi"; in hasRSTRegClass()
205 return OpIn.Rec->getName() == "ptr_rc_tailcall"; in hasPtrTailcallRegClass()
334 Record *MemOpRec = MemInst->Operands[i].Rec; in operator ()()
416 Record *RegOpRec = RegInstr->Operands[FoldedInd].Rec; in addEntryWithFlags()
417 Record *MemOpRec = MemInstr->Operands[FoldedInd].Rec; in addEntryWithFlags()
472 Record *RegOpRec = RegInstr->Operands[i].Rec; in updateTables()
473 Record *MemOpRec = MemInstr->Operands[i].Rec; in updateTables()
525 const Record *Rec = Inst->TheDef; in run() local
526 if (!Rec->isSubClassOf("X86Inst") || Rec->getValueAsBit("isAsmParserOnly")) in run()
544 if (hasMemoryFormat(Rec)) in run()
[all …]
H A DInfoByHwMode.cpp105 ValueTypeByHwMode llvm::getValueTypeByHwMode(Record *Rec, in getValueTypeByHwMode() argument
108 if (!Rec->isSubClassOf("ValueType")) in getValueTypeByHwMode()
109 Rec->dump(); in getValueTypeByHwMode()
111 assert(Rec->isSubClassOf("ValueType") && in getValueTypeByHwMode()
113 if (Rec->isSubClassOf("HwModeSelect")) in getValueTypeByHwMode()
114 return ValueTypeByHwMode(Rec, CGH); in getValueTypeByHwMode()
115 return ValueTypeByHwMode(Rec, llvm::getValueType(Rec)); in getValueTypeByHwMode()
H A DAsmMatcherEmitter.cpp1160 Record *Rec = OI.Rec; in getOperandClass() local
1173 PrintFatalError(Rec->getLoc(), in getOperandClass()
1186 PrintFatalError(Rec->getLoc(), "RegisterOperand `" + Rec->getName() + in getOperandClass()
1199 if (!Rec->isSubClassOf("Operand")) in getOperandClass()
1200 PrintFatalError(Rec->getLoc(), "Operand `" + Rec->getName() + in getOperandClass()
1238 RegisterSets.insert(RegisterSet(&Rec, &Rec + 1)); in buildRegisterClasses()
1358 for (Record *Rec : AsmOperands) { in buildOperandClasses()
1364 for (Record *Rec : AsmOperands) { in buildOperandClasses()
1656 for (Record *Rec : AllTokenAliases) { in buildInfo()
1660 PrintFatalError(Rec->getLoc(), in buildInfo()
[all …]
H A DDirectiveEmitter.cpp50 BaseRecord Rec{R}; in GenerateEnumClass() local
51 OS << " " << Prefix << Rec.getFormattedName() << ",\n"; in GenerateEnumClass()
66 BaseRecord Rec{R}; in GenerateEnumClass() local
69 << "::" << Prefix << Rec.getFormattedName() << ";\n"; in GenerateEnumClass()
256 BaseRecord Rec{R}; in GenerateGetName() local
259 if (Rec.getAlternativeName().empty()) in GenerateGetName()
260 OS << Rec.getName(); in GenerateGetName()
262 OS << Rec.getAlternativeName(); in GenerateGetName()
292 BaseRecord Rec{R}; in GenerateGetKind() local
294 OS << " .Case(\"" << Rec.getName() << "\"," << Prefix in GenerateGetKind()
[all …]
H A DTableGen.cpp222 for (Record *Rec : Records.getAllDerivedDefinitions(Class)) in LLVMTableGenMain()
223 OS << Rec->getName() << ", "; in LLVMTableGenMain()
231 for (Record *Rec : Records.getAllDerivedDefinitions("Set")) { in LLVMTableGenMain()
232 OS << Rec->getName() << " = ["; in LLVMTableGenMain()
233 const std::vector<Record*> *Elts = Sets.expand(Rec); in LLVMTableGenMain()
H A DPredicateExpander.h86 void expandPredicate(raw_ostream &OS, const Record *Rec);
87 void expandReturnStatement(raw_ostream &OS, const Record *Rec);
88 void expandOpcodeSwitchCase(raw_ostream &OS, const Record *Rec);
91 void expandStatement(raw_ostream &OS, const Record *Rec);
H A DInstrInfoEmitter.cpp152 OperandList.back().Rec = OpR; in GetOperandInfo()
157 Record *OpR = OperandList[j].Rec; in GetOperandInfo()
179 if (Op.Rec->isSubClassOf("PredicateOp")) in GetOperandInfo()
184 if (Op.Rec->isSubClassOf("OptionalDefOperand")) in GetOperandInfo()
189 if (Op.Rec->isSubClassOf("BranchTargetOperand")) in GetOperandInfo()
407 OperandRecords.push_back(Op.Rec); in emitOperandTypeMappings()
597 auto *OpR = Op.Rec; in emitLogicalOperandTypeMappings()
684 for (const Record *Rec : TIIPredicates) { in emitMCIIHelperMethods() local
706 for (const Record *Rec : TIIPredicates) { in emitMCIIHelperMethods() local
867 for (const Record *Rec : TIIPredicates) { in emitTIIHelperMethods() local
[all …]
H A DX86RecognizableInstr.h222 const Record* Rec;
358 bool isRegisterOperand(const Record *Rec);
359 bool isMemoryOperand(const Record *Rec);
360 bool isImmediateOperand(const Record *Rec);
/openbsd/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/
H A DTpiHashing.cpp27 static uint32_t getHashForUdt(const TagRecord &Rec, in getHashForUdt() argument
29 ClassOptions Opts = Rec.getOptions(); in getHashForUdt()
36 return hashStringV1(Rec.getName()); in getHashForUdt()
38 return hashStringV1(Rec.getUniqueName()); in getHashForUdt()
48 return getHashForUdt(Deserialized, Rec.data()); in getHashForUdt()
106 switch (Rec.kind()) { in hashTypeRecord()
110 return getHashForUdt<ClassRecord>(Rec); in hashTypeRecord()
112 return getHashForUdt<UnionRecord>(Rec); in hashTypeRecord()
114 return getHashForUdt<EnumRecord>(Rec); in hashTypeRecord()
117 return getSourceLineHash<UdtSourceLineRecord>(Rec); in hashTypeRecord()
[all …]
H A DTpiStreamBuilder.cpp184 for (auto Rec : TypeRecBuffers) { in commit() local
185 assert(!Rec.empty() && "Attempting to write an empty type record shifts " in commit()
187 assert(((Rec.size() & 3) == 0) && in commit()
190 if (auto EC = Writer.writeBytes(Rec)) in commit()
/openbsd/gnu/llvm/llvm/lib/TableGen/
H A DDetailedRecordsBackend.cpp50 void printDefms(Record *Rec, raw_ostream &OS);
53 void printFields(Record *Rec, raw_ostream &OS);
105 auto *const Rec = RecPair.second.get(); in printRecords() local
106 std::string Name = Rec->getNameInitAsString(); in printRecords()
109 printDefms(Rec, OS); in printRecords()
110 printSuperclasses(Rec, OS); in printRecords()
111 printFields(Rec, OS); in printRecords()
125 const auto &LocList = Rec->getLoc(); in printDefms()
139 ArrayRef<Init *> Args = Rec->getTemplateArgs(); in printTemplateArgs()
168 if (Rec->hasDirectSuperClass(ClassRec)) in printSuperclasses()
[all …]
H A DError.cpp71 void PrintFatalNote(const Record *Rec, const Twine &Msg) { in PrintFatalNote() argument
72 PrintNote(Rec->getLoc(), Msg); in PrintFatalNote()
113 void PrintError(const Record *Rec, const Twine &Msg) { in PrintError() argument
114 PrintMessage(Rec->getLoc(), SourceMgr::DK_Error, Msg); in PrintError()
141 void PrintFatalError(const Record *Rec, const Twine &Msg) { in PrintFatalError() argument
142 PrintError(Rec->getLoc(), Msg); in PrintFatalError()
H A DTGParser.cpp38 Record *Rec; member
134 return QualifyName(Rec, MC, StringInit::get(Rec.getRecords(), "NAME"), in QualifiedNameOfImplicitName()
231 Record *SC = SubClass.Rec; in AddSubClass()
292 if (Entry.Rec) in AddSubClass()
445 auto Rec = std::make_unique<Record>(*E.Rec); in resolve() local
479 checkConcrete(*Rec); in addDefOne()
628 Result.Rec = &MC->Rec; in ParseSubClassReference()
3083 if (Entry.Rec) in ApplyLetStack()
3909 if (Rec) in dump()
3910 Rec->dump(); in dump()
[all …]
H A DTGParser.h42 std::unique_ptr<Record> Rec; member
49 RecordsEntry(std::unique_ptr<Record> Rec) : Rec(std::move(Rec)) {} in RecordsEntry()
121 Record Rec; // Placeholder for template args and Name. member
127 Rec(Name, Loc, Records) {} in MultiClass()
210 bool AddSubClass(Record *Rec, SubClassReference &SubClass);
223 bool addDefOne(std::unique_ptr<Record> Rec);
/openbsd/gnu/llvm/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp183 Expr *Rec = E->getInstanceReceiver(); in isReturnedAfterAutorelease() local
184 if (!Rec) in isReturnedAfterAutorelease()
187 Decl *RefD = getReferencedDecl(Rec); in isReturnedAfterAutorelease()
204 Expr *Rec = E->getInstanceReceiver(); in isPlusOneAssignBeforeOrAfterAutorelease() local
205 if (!Rec) in isPlusOneAssignBeforeOrAfterAutorelease()
208 Decl *RefD = getReferencedDecl(Rec); in isPlusOneAssignBeforeOrAfterAutorelease()
326 Expr *&Rec, SourceRange &RecRange) { in checkForGCDOrXPC()
378 Rec = Init->IgnoreParenImpCasts(); in checkForGCDOrXPC()
379 if (FullExpr *FE = dyn_cast<FullExpr>(Rec)) in checkForGCDOrXPC()
380 Rec = FE->getSubExpr()->IgnoreParenImpCasts(); in checkForGCDOrXPC()
[all …]
/openbsd/gnu/llvm/clang/utils/TableGen/
H A DClangOpcodesEmitter.cpp66 std::function<void(size_t, const Twine &)> Rec; in Enumerate() local
67 Rec = [&TypePath, Types, &Rec, &F](size_t I, const Twine &ID) { in Enumerate()
76 Rec(I + 1, ID + Type->getName()); in Enumerate()
83 Rec(0, N); in Enumerate()
274 std::function<void(size_t, const Twine &)> Rec; in EmitGroup() local
276 Rec = [this, &Rec, &OS, Types, &Args, R, &TS, N](size_t I, const Twine &ID) { in EmitGroup()
307 Rec(I + 1, ID + Case->getName()); in EmitGroup()
319 Rec(0, N); in EmitGroup()
/openbsd/gnu/llvm/llvm/tools/llvm-pdbutil/
H A DTypeReferenceTracker.cpp133 std::optional<CVType> Rec = (Ids && RefKind == TiRefKind::IndexRef) in markReferencedTypes() local
136 if (!Rec) in markReferencedTypes()
141 discoverTypeIndices(*Rec, DepList); in markReferencedTypes()
142 addReferencedTypes(Rec->content(), DepList); in markReferencedTypes()
149 switch (Rec->kind()) { in markReferencedTypes()
/openbsd/gnu/llvm/llvm/include/llvm/TableGen/
H A DError.h27 [[noreturn]] void PrintFatalNote(const Record *Rec, const Twine &Msg);
37 void PrintError(const Record *Rec, const Twine &Msg);
42 [[noreturn]] void PrintFatalError(const Record *Rec, const Twine &Msg);
/openbsd/gnu/llvm/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp46 if (Rec->getMethodFamily() == OMF_alloc) in checkForLiteralCreation()
160 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax() local
161 if (!Rec) in canRewriteToSubscriptSyntax()
185 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToSubscriptGetCommon() local
186 if (!Rec) in rewriteToSubscriptGetCommon()
190 SourceRange RecRange = Rec->getSourceRange(); in rewriteToSubscriptGetCommon()
199 maybePutParensOnReceiver(Rec, commit); in rewriteToSubscriptGetCommon()
234 if (!Rec) in rewriteToArraySubscriptSet()
253 maybePutParensOnReceiver(Rec, commit); in rewriteToArraySubscriptSet()
268 if (!Rec) in rewriteToDictionarySubscriptSet()
[all …]

1234