| /freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | PredicateExpander.cpp | 156 for (const Record *Rec : Opcodes) { in expandCheckOpcode() local 162 expandCheckOpcode(OS, Rec); in expandCheckOpcode() 194 for (const Record *Rec : Sequence) { in expandPredicateSequence() local 199 expandPredicate(OS, Rec); in expandPredicateSequence() 264 expandPredicate(SS, Rec); in expandReturnStatement() 291 for (const Record *Rec : Cases) { in expandOpcodeSwitchStatement() local 292 expandOpcodeSwitchCase(SS, Rec); in expandOpcodeSwitchStatement() 329 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate() 335 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate() 406 if (Rec->isSubClassOf("CheckAll")) in expandPredicate() [all …]
|
| H A D | PseudoLoweringEmitter.cpp | 94 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 D | RISCVTargetDefEmitter.cpp | 28 static std::string getMArch(const Record &Rec) { in getMArch() argument 33 for (auto *Feature : Rec.getValueAsListOfDefs("Features")) { in getMArch() 56 for (const Record *Rec : RK.getAllDerivedDefinitions("RISCVProcessorModel")) { in EmitRISCVTargetDef() local 57 std::string MArch = Rec->getValueAsString("DefaultMarch").str(); in EmitRISCVTargetDef() 61 MArch = getMArch(*Rec); in EmitRISCVTargetDef() 64 any_of(Rec->getValueAsListOfDefs("Features"), [&](auto &Feature) { in EmitRISCVTargetDef() 68 OS << "PROC(" << Rec->getName() << ", " in EmitRISCVTargetDef() 69 << "{\"" << Rec->getValueAsString("Name") << "\"}, " in EmitRISCVTargetDef() 79 for (const Record *Rec : in EmitRISCVTargetDef() local 81 OS << "TUNE_PROC(" << Rec->getName() << ", " in EmitRISCVTargetDef() [all …]
|
| H A D | CodeGenInstruction.cpp | 78 Record *Rec = Arg->getDef(); in CGIOperandList() local 85 if (Rec->isSubClassOf("RegisterOperand")) { in CGIOperandList() 90 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList() 110 if (Rec->isSubClassOf("PredicateOp")) in CGIOperandList() 303 Record *Rec) { in ParseConstraint() argument 314 Rec->getName() + "': '" + CStr + "'"); in ParseConstraint() 321 Rec->getLoc(), "Operand '" + Name + "' of '" + Rec->getName() + in ParseConstraint() 333 "' in '" + Rec->getName() + "'"); in ParseConstraint() 341 Rec->getName() + "': '" + CStr + "'"); in ParseConstraint() 376 Rec->getLoc(), "Operand '" + SrcOpName + "' of '" + Rec->getName() + in ParseConstraint() [all …]
|
| H A D | CompressInstEmitter.cpp | 222 PrintFatalError(Rec->getLoc(), in addDagOperandMapping() 236 PrintFatalError(Rec->getLoc(), in addDagOperandMapping() 249 Rec->getLoc(), in addDagOperandMapping() 331 PrintFatalError(Rec->getLoc(), in createDagOperandMapping() 385 PrintFatalError(Rec->getLoc(), in createInstOperandMapping() 446 Rec->getLoc(), in evaluateCompressPat() 526 unsigned &Entry = PredicateMap[Rec]; in getPredicates() 530 if (!Rec->isValueUnset(Name)) { in getPredicates() 531 Predicates.push_back(Rec); in getPredicates() 536 PrintFatalError(Rec->getLoc(), "No " + Name + in getPredicates() [all …]
|
| H A D | X86CompressEVEXTablesEmitter.cpp | 131 Record *OldOpRec = OldInst->Operands[I].Rec; in operator ()() 132 Record *NewOpRec = NewInst->Operands[I].Rec; in operator ()() 160 const Record *Rec = Inst->TheDef; in run() local 161 StringRef Name = Rec->getName(); in run() 163 if (!Rec->isSubClassOf("X86Inst") || in run() 164 Rec->getValueAsBit("isAsmParserOnly") || Name.ends_with("_REV")) in run() 169 if (byteFromBitsInit(Rec->getValueAsBitsInit("OpMapBits")) == in run() 192 const Record *Rec = Inst->TheDef; in run() local 194 StringRef Name = Rec->getName(); in run() 197 Record *NewRec = Records.getDef(ManualMap.at(Rec->getName())); in run() [all …]
|
| H A D | X86RecognizableInstr.cpp | 43 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand() 48 return Rec->isSubClassOf("Operand") && in isMemoryOperand() 53 return Rec->isSubClassOf("Operand") && in isImmediateOperand() 111 const Record *Rec = insn.TheDef; in RecognizableInstrBase() local 114 OpMap = byteFromRec(Rec, "OpMapBits"); in RecognizableInstrBase() 115 Opcode = byteFromRec(Rec, "Opcode"); in RecognizableInstrBase() 116 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstrBase() 117 Encoding = byteFromRec(Rec, "OpEncBits"); in RecognizableInstrBase() 118 OpSize = byteFromRec(Rec, "OpSizeBits"); in RecognizableInstrBase() 119 AdSize = byteFromRec(Rec, "AdSizeBits"); in RecognizableInstrBase() [all …]
|
| H A D | TableGen.cpp | 48 for (Record *Rec : Records.getAllDerivedDefinitions(Class)) in PrintEnums() 49 OS << Rec->getName() << ", "; in PrintEnums() 56 for (Record *Rec : Records.getAllDerivedDefinitions("Set")) { in PrintSets() 57 OS << Rec->getName() << " = ["; in PrintSets() 58 const std::vector<Record *> *Elts = Sets.expand(Rec); in PrintSets()
|
| H A D | X86FoldTablesEmitter.cpp | 240 return OpIn.Rec->getName() == "RST" || OpIn.Rec->getName() == "RSTi"; in hasRSTRegClass() 247 return OpIn.Rec->getName() == "ptr_rc_tailcall"; in hasPtrTailcallRegClass() 412 Record *MemOpRec = MemInst->Operands[I].Rec; in operator ()() 482 Record *RegOpRec = RegInst->Operands[FoldedIdx].Rec; in addEntryWithFlags() 483 Record *MemOpRec = MemInst->Operands[FoldedIdx].Rec; in addEntryWithFlags() 583 Record *RegOpRec = RegInst->Operands[I].Rec; in updateTables() 584 Record *MemOpRec = MemInst->Operands[I].Rec; in updateTables() 626 Record *RegOpRec = RegInst->Operands[RegOutSize - 1].Rec; in updateTables() 648 const Record *Rec = Inst->TheDef; in run() local 649 if (!Rec->isSubClassOf("X86Inst") || Rec->getValueAsBit("isAsmParserOnly")) in run() [all …]
|
| H A D | InfoByHwMode.cpp | 107 ValueTypeByHwMode llvm::getValueTypeByHwMode(Record *Rec, in getValueTypeByHwMode() argument 110 if (!Rec->isSubClassOf("ValueType")) in getValueTypeByHwMode() 111 Rec->dump(); in getValueTypeByHwMode() 113 assert(Rec->isSubClassOf("ValueType") && in getValueTypeByHwMode() 115 if (Rec->isSubClassOf("HwModeSelect")) in getValueTypeByHwMode() 116 return ValueTypeByHwMode(Rec, CGH); in getValueTypeByHwMode() 117 return ValueTypeByHwMode(Rec, llvm::getValueType(Rec)); in getValueTypeByHwMode()
|
| H A D | AsmMatcherEmitter.cpp | 1163 Record *Rec = OI.Rec; in getOperandClass() local 1176 PrintFatalError(Rec->getLoc(), in getOperandClass() 1189 PrintFatalError(Rec->getLoc(), "RegisterOperand `" + Rec->getName() + in getOperandClass() 1202 if (!Rec->isSubClassOf("Operand")) in getOperandClass() 1203 PrintFatalError(Rec->getLoc(), "Operand `" + Rec->getName() + in getOperandClass() 1241 RegisterSets.insert(RegisterSet(&Rec, &Rec + 1)); in buildRegisterClasses() 1361 for (Record *Rec : AsmOperands) { in buildOperandClasses() 1367 for (Record *Rec : AsmOperands) { in buildOperandClasses() 1659 for (Record *Rec : AllTokenAliases) { in buildInfo() 1663 PrintFatalError(Rec->getLoc(), in buildInfo() [all …]
|
| H A D | DirectiveEmitter.cpp | 49 BaseRecord Rec{R}; in GenerateEnumClass() local 50 OS << " " << Prefix << Rec.getFormattedName() << ",\n"; in GenerateEnumClass() 65 BaseRecord Rec{R}; in GenerateEnumClass() local 68 << "::" << Prefix << Rec.getFormattedName() << ";\n"; in GenerateEnumClass() 258 BaseRecord Rec{R}; in GenerateGetName() local 261 if (Rec.getAlternativeName().empty()) in GenerateGetName() 262 OS << Rec.getName(); in GenerateGetName() 264 OS << Rec.getAlternativeName(); in GenerateGetName() 295 BaseRecord Rec{R}; in GenerateGetKind() local 297 OS << " .Case(\"" << Rec.getName() << "\"," << Prefix in GenerateGetKind() [all …]
|
| H A D | CodeGenInstAlias.cpp | 155 Record *Rec = getRecord(); in getMINumOperands() local 156 if (!Rec->isSubClassOf("Operand")) in getMINumOperands() 159 DagInit *MIOpInfo = Rec->getValueAsDag("MIOperandInfo"); in getMINumOperands() 211 if (ResultInst->Operands[i].Rec->getName() == in CodeGenInstAlias() 212 ResultInst->Operands[TiedOpNum].Rec->getName()) in CodeGenInstAlias() 219 Record *InstOpRec = ResultInst->Operands[i].Rec; in CodeGenInstAlias()
|
| H A D | PredicateExpander.h | 91 void expandPredicate(raw_ostream &OS, const Record *Rec); 92 void expandReturnStatement(raw_ostream &OS, const Record *Rec); 93 void expandOpcodeSwitchCase(raw_ostream &OS, const Record *Rec); 96 void expandStatement(raw_ostream &OS, const Record *Rec);
|
| H A D | InstrInfoEmitter.cpp | 148 OperandList.back().Rec = OpR; in GetOperandInfo() 153 Record *OpR = OperandList[j].Rec; in GetOperandInfo() 175 if (Op.Rec->isSubClassOf("PredicateOp")) in GetOperandInfo() 180 if (Op.Rec->isSubClassOf("OptionalDefOperand")) in GetOperandInfo() 185 if (Op.Rec->isSubClassOf("BranchTargetOperand")) in GetOperandInfo() 409 OperandRecords.push_back(Op.Rec); in emitOperandTypeMappings() 599 auto *OpR = Op.Rec; in emitLogicalOperandTypeMappings() 686 for (const Record *Rec : TIIPredicates) { in emitMCIIHelperMethods() local 708 for (const Record *Rec : TIIPredicates) { in emitMCIIHelperMethods() local 902 for (const Record *Rec : TIIPredicates) { in emitTIIHelperMethods() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | TpiHashing.cpp | 27 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 …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | DetailedRecordsBackend.cpp | 50 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 D | TGParser.h | 41 std::unique_ptr<Record> Rec; member 49 RecordsEntry(std::unique_ptr<Record> Rec) : Rec(std::move(Rec)) {} in RecordsEntry() 82 Record Rec; // Placeholder for template args and Name. member 88 : Rec(Name, Loc, Records, Record::RK_MultiClass) {} in MultiClass() 107 TGVarScope(std::unique_ptr<TGVarScope> Parent, Record *Rec) in TGVarScope() argument 108 : Kind(SK_Record), Parent(std::move(Parent)), CurRec(Rec) {} in TGVarScope() 207 TGVarScope *PushScope(Record *Rec) { in PushScope() argument 233 bool AddSubClass(Record *Rec, SubClassReference &SubClass); 246 bool addDefOne(std::unique_ptr<Record> Rec); 250 Record *Rec, ArrayRef<ArgumentInit *> ArgValues, SMLoc Loc, [all …]
|
| H A D | Error.cpp | 71 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 D | TGParser.cpp | 37 Record *Rec = nullptr; member 131 return QualifyName(Rec, StringInit::get(Rec.getRecords(), "NAME")); in QualifiedNameOfImplicitName() 147 if (!Rec) in getVar() 347 if (Entry.Rec) in AddSubClass() 522 auto Rec = std::make_unique<Record>(*E.Rec); in resolve() local 556 checkConcrete(*Rec); in addDefOne() 762 Result.Rec = &MC->Rec; in ParseSubClassReference() 3530 if (Entry.Rec) in ApplyLetStack() 4369 if (Rec) in dump() 4370 Rec->dump(); in dump() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransRetainReleaseDealloc.cpp | 183 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-14.2/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | ClangOpcodesEmitter.cpp | 65 std::function<void(size_t, const Twine &)> Rec; in Enumerate() local 66 Rec = [&TypePath, Types, &Rec, &F](size_t I, const Twine &ID) { in Enumerate() 75 Rec(I + 1, ID + Type->getName()); in Enumerate() 82 Rec(0, N); in Enumerate() 283 std::function<void(size_t, const Twine &)> Rec; in EmitGroup() local 285 Rec = [this, &Rec, &OS, Types, &Args, R, &TS, N, in EmitGroup() 317 Rec(I + 1, ID + Case->getName()); in EmitGroup() 330 Rec(0, N); in EmitGroup()
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | TypeReferenceTracker.cpp | 133 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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Error.h | 27 [[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);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 46 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 …]
|