Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/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()
262 for (const Record *Rec : Cases) { in expandOpcodeSwitchStatement() local
263 expandOpcodeSwitchCase(SS, Rec); in expandOpcodeSwitchStatement()
301 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate()
307 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate()
365 if (Rec->isSubClassOf("CheckAll")) in expandPredicate()
[all …]
H A DPseudoLoweringEmitter.cpp94 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in addDagOperandMapping()
141 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
143 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
148 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
151 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
158 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
161 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
166 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion()
169 PrintFatalNote(Rec->getValue("ResultInst"), in evaluateExpansion()
191 CodeGenInstruction SourceInsn(Rec); in evaluateExpansion()
[all …]
H A DCodeGenInstruction.cpp76 Record *Rec = Arg->getDef(); in CGIOperandList() local
88 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList()
108 if (Rec->isSubClassOf("PredicateOp")) in CGIOperandList()
235 Record *Rec) { in ParseConstraint() argument
253 Rec->getLoc(), "Operand '" + Name + "' of '" + Rec->getName() + in ParseConstraint()
265 "' in '" + Rec->getName() + "'"); in ParseConstraint()
273 Rec->getName() + "': '" + CStr + "'"); in ParseConstraint()
308 Rec->getLoc(), "Operand '" + SrcOpName + "' of '" + Rec->getName() + in ParseConstraint()
320 Rec->getLoc(), "Operand '" + DestOpName + "' of '" + Rec->getName() + in ParseConstraint()
664 Record *Rec = getRecord(); in getMINumOperands() local
[all …]
H A DRISCVCompressInstEmitter.cpp212 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
226 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
239 Rec->getLoc(), in addDagOperandMapping()
321 PrintFatalError(Rec->getLoc(), in createDagOperandMapping()
375 PrintFatalError(Rec->getLoc(), in createInstOperandMapping()
414 DagInit *SourceDag = Rec->getValueAsDag("Input"); in evaluateCompressPat()
427 DagInit *DestDag = Rec->getValueAsDag("Output"); in evaluateCompressPat()
514 unsigned &Entry = PredicateMap[Rec]; in getPredicates()
518 if (!Rec->isValueUnset(Name)) { in getPredicates()
519 Predicates.push_back(Rec); in getPredicates()
[all …]
H A DX86FoldTablesEmitter.cpp189 return OpIn.Rec->getName() == "RST" || OpIn.Rec->getName() == "RSTi"; in hasRSTRegClass()
196 return OpIn.Rec->getName() == "ptr_rc_tailcall"; in hasPtrTailcallRegClass()
285 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand()
286 Rec->isSubClassOf("RegisterOperand") || in isRegisterOperand()
287 Rec->isSubClassOf("PointerLikeRegClass"); in isRegisterOperand()
291 return Rec->isSubClassOf("Operand") && in isMemoryOperand()
296 return Rec->isSubClassOf("Operand") && in isImmediateOperand()
393 Record *MemOpRec = MemInst->Operands[i].Rec; in operator ()()
591 const Record *Rec = Inst->TheDef; in run() local
608 if (hasMemoryFormat(Rec)) in run()
[all …]
H A DX86EVEX2VEXTablesEmitter.cpp142 Record *OpRec1 = EVEXInst->Operands[i].Rec; in operator ()()
143 Record *OpRec2 = VEXInst->Operands[i].Rec; in operator ()()
165 static inline bool isRegisterOperand(const Record *Rec) { in isRegisterOperand() argument
166 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand()
167 Rec->isSubClassOf("RegisterOperand"); in isRegisterOperand()
170 static inline bool isMemoryOperand(const Record *Rec) { in isMemoryOperand() argument
171 return Rec->isSubClassOf("Operand") && in isMemoryOperand()
172 Rec->getValueAsString("OperandType") == "OPERAND_MEMORY"; in isMemoryOperand()
175 static inline bool isImmediateOperand(const Record *Rec) { in isImmediateOperand() argument
176 return Rec->isSubClassOf("Operand") && in isImmediateOperand()
[all …]
H A DInfoByHwMode.cpp106 ValueTypeByHwMode llvm::getValueTypeByHwMode(Record *Rec, in getValueTypeByHwMode() argument
109 if (!Rec->isSubClassOf("ValueType")) in getValueTypeByHwMode()
110 Rec->dump(); in getValueTypeByHwMode()
112 assert(Rec->isSubClassOf("ValueType") && in getValueTypeByHwMode()
114 if (Rec->isSubClassOf("HwModeSelect")) in getValueTypeByHwMode()
115 return ValueTypeByHwMode(Rec, CGH); in getValueTypeByHwMode()
116 return ValueTypeByHwMode(Rec, llvm::getValueType(Rec)); in getValueTypeByHwMode()
H A DX86RecognizableInstr.cpp67 Rec = insn.TheDef; in RecognizableInstr()
68 Name = std::string(Rec->getName()); in RecognizableInstr()
71 if (!Rec->isSubClassOf("X86Inst")) { in RecognizableInstr()
76 OpPrefix = byteFromRec(Rec, "OpPrefixBits"); in RecognizableInstr()
77 OpMap = byteFromRec(Rec, "OpMapBits"); in RecognizableInstr()
78 Opcode = byteFromRec(Rec, "Opcode"); in RecognizableInstr()
79 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstr()
80 Encoding = byteFromRec(Rec, "OpEncBits"); in RecognizableInstr()
95 CD8_Scale = byteFromRec(Rec, "CD8_Scale"); in RecognizableInstr()
97 Name = std::string(Rec->getName()); in RecognizableInstr()
[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 DAsmMatcherEmitter.cpp1149 Record *Rec = OI.Rec; in getOperandClass() local
1162 PrintFatalError(Rec->getLoc(), in getOperandClass()
1175 PrintFatalError(Rec->getLoc(), "RegisterOperand `" + Rec->getName() + in getOperandClass()
1188 if (!Rec->isSubClassOf("Operand")) in getOperandClass()
1189 PrintFatalError(Rec->getLoc(), "Operand `" + Rec->getName() + in getOperandClass()
1227 RegisterSets.insert(RegisterSet(&Rec, &Rec + 1)); in buildRegisterClasses()
1347 for (Record *Rec : AsmOperands) { in buildOperandClasses()
1353 for (Record *Rec : AsmOperands) { in buildOperandClasses()
1639 for (Record *Rec : AllTokenAliases) { in buildInfo()
1643 PrintFatalError(Rec->getLoc(), in buildInfo()
[all …]
H A DTableGen.cpp220 for (Record *Rec : Records.getAllDerivedDefinitions(Class)) in LLVMTableGenMain()
221 OS << Rec->getName() << ", "; in LLVMTableGenMain()
229 for (Record *Rec : Records.getAllDerivedDefinitions("Set")) { in LLVMTableGenMain()
230 OS << Rec->getName() << " = ["; in LLVMTableGenMain()
231 const std::vector<Record*> *Elts = Sets.expand(Rec); in LLVMTableGenMain()
H A DInstrInfoEmitter.cpp141 OperandList.back().Rec = OpR; in GetOperandInfo()
146 Record *OpR = OperandList[j].Rec; in GetOperandInfo()
168 if (Op.Rec->isSubClassOf("PredicateOp")) in GetOperandInfo()
173 if (Op.Rec->isSubClassOf("OptionalDefOperand")) in GetOperandInfo()
178 if (Op.Rec->isSubClassOf("BranchTargetOperand")) in GetOperandInfo()
393 OperandRecords.push_back(Op.Rec); in emitOperandTypeMappings()
556 auto *OpR = Op.Rec; in emitLogicalOperandTypeMappings()
644 for (const Record *Rec : TIIPredicates) { in emitMCIIHelperMethods() local
663 for (const Record *Rec : TIIPredicates) { in emitMCIIHelperMethods() local
688 for (const Record *Rec : TIIPredicates) { in emitTIIHelperMethods() local
[all …]
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 DAsmWriterEmitter.cpp881 if (Operands[OpNum].Rec->getName() == in EmitPrintAliasInstruction()
882 Operands[TiedOpNum].Rec->getName()) { in EmitPrintAliasInstruction()
898 const Record *Rec = RO.getRecord(); in EmitPrintAliasInstruction() local
905 if (Rec->isSubClassOf("RegisterOperand") || in EmitPrintAliasInstruction()
906 Rec->isSubClassOf("Operand")) { in EmitPrintAliasInstruction()
921 if (Rec->isSubClassOf("RegisterOperand")) in EmitPrintAliasInstruction()
922 Rec = Rec->getValueAsDef("RegClass"); in EmitPrintAliasInstruction()
923 if (Rec->isSubClassOf("RegisterClass")) { in EmitPrintAliasInstruction()
942 unsigned Entry = MCOpPredicateMap[Rec]; in EmitPrintAliasInstruction()
945 MCOpPredicates.push_back(Rec); in EmitPrintAliasInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/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.cpp188 for (auto Rec : TypeRecBuffers) { in commit() local
189 assert(!Rec.empty() && "Attempting to write an empty type record shifts " in commit()
191 assert(((Rec.size() & 3) == 0) && in commit()
194 if (auto EC = Writer.writeBytes(Rec)) in commit()
/freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/
H A DDetailedRecordsBackend.cpp49 void printDefms(Record *Rec, raw_ostream &OS);
52 void printFields(Record *Rec, raw_ostream &OS);
104 auto *const Rec = RecPair.second.get(); in printRecords() local
105 std::string Name = Rec->getNameInitAsString(); in printRecords()
108 printDefms(Rec, OS); in printRecords()
109 printSuperclasses(Rec, OS); in printRecords()
110 printFields(Rec, OS); in printRecords()
124 const auto &LocList = Rec->getLoc(); in printDefms()
138 ArrayRef<Init *> Args = Rec->getTemplateArgs(); in printTemplateArgs()
167 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.cpp40 Record *Rec; member
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
447 Rec->appendLoc(*Loc); in resolve()
479 checkConcrete(*Rec); in addDefOne()
626 Result.Rec = &MC->Rec; in ParseSubClassReference()
2962 if (Entry.Rec) in ApplyLetStack()
3770 if (Rec) in dump()
3771 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()
201 bool AddSubClass(Record *Rec, SubClassReference &SubClass);
214 bool addDefOne(std::unique_ptr<Record> Rec);
/freebsd-13.1/contrib/llvm-project/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 …]
/freebsd-13.1/contrib/llvm-project/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()
266 std::function<void(size_t, const Twine &)> Rec; in EmitGroup() local
268 Rec = [this, &Rec, &OS, Types, &Args, R, &TS, N](size_t I, const Twine &ID) { in EmitGroup()
299 Rec(I + 1, ID + Case->getName()); in EmitGroup()
311 Rec(0, N); in EmitGroup()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DTypeReferenceTracker.cpp130 Optional<CVType> Rec = (Ids && RefKind == TiRefKind::IndexRef) in markReferencedTypes() local
133 if (!Rec) in markReferencedTypes()
138 discoverTypeIndices(*Rec, DepList); in markReferencedTypes()
139 addReferencedTypes(Rec->content(), DepList); in markReferencedTypes()
146 switch (Rec->kind()) { in markReferencedTypes()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DError.h28 LLVM_ATTRIBUTE_NORETURN void PrintFatalNote(const Record *Rec,
40 void PrintError(const Record *Rec, const Twine &Msg);
46 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(const Record *Rec,
/freebsd-13.1/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp45 if (Rec->getMethodFamily() == OMF_alloc) in checkForLiteralCreation()
159 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax() local
160 if (!Rec) in canRewriteToSubscriptSyntax()
184 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToSubscriptGetCommon() local
185 if (!Rec) in rewriteToSubscriptGetCommon()
189 SourceRange RecRange = Rec->getSourceRange(); in rewriteToSubscriptGetCommon()
198 maybePutParensOnReceiver(Rec, commit); in rewriteToSubscriptGetCommon()
233 if (!Rec) in rewriteToArraySubscriptSet()
252 maybePutParensOnReceiver(Rec, commit); in rewriteToArraySubscriptSet()
267 if (!Rec) in rewriteToDictionarySubscriptSet()
[all …]

123