| /netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/ |
| H A D | PredicateExpander.cpp | 131 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() 229 const Record *Rec) { in expandReturnStatement() argument 234 expandPredicate(SS, Rec); in expandReturnStatement() 241 const Record *Rec) { in expandOpcodeSwitchCase() argument 242 const RecVec &Opcodes = Rec->getValueAsListOfDefs("Opcodes"); in expandOpcodeSwitchCase() 251 expandStatement(OS, Rec->getValueAsDef("CaseStmt")); in expandOpcodeSwitchCase() 262 for (const Record *Rec : Cases) { in expandOpcodeSwitchStatement() local [all …]
|
| H A D | PseudoLoweringEmitter.cpp | 54 unsigned addDagOperandMapping(Record *Rec, DagInit *Dag, 73 addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Insn, in addDagOperandMapping() argument 93 if (DI->getDef() != Insn.Operands[BaseIdx + i].Rec) { in addDagOperandMapping() 94 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in addDagOperandMapping() 97 Insn.Operands[BaseIdx + i].Rec->getName() + "'"); in addDagOperandMapping() 120 addDagOperandMapping(Rec, SubDag, Insn, OperandMap, BaseIdx + i); in addDagOperandMapping() 130 void PseudoLoweringEmitter::evaluateExpansion(Record *Rec) { in evaluateExpansion() argument 131 LLVM_DEBUG(dbgs() << "Pseudo definition: " << Rec->getName() << "\n"); in evaluateExpansion() 135 DagInit *Dag = Rec->getValueAsDag("ResultInst"); in evaluateExpansion() 141 PrintError(Rec, "In pseudo instruction '" + Rec->getName() + in evaluateExpansion() [all …]
|
| H A D | CodeGenInstruction.cpp | 76 Record *Rec = Arg->getDef(); in CGIOperandList() local 83 if (Rec->isSubClassOf("RegisterOperand")) { in CGIOperandList() 84 PrintMethod = std::string(Rec->getValueAsString("PrintMethod")); in CGIOperandList() 85 OperandType = std::string(Rec->getValueAsString("OperandType")); in CGIOperandList() 86 OperandNamespace = std::string(Rec->getValueAsString("OperandNamespace")); in CGIOperandList() 87 EncoderMethod = std::string(Rec->getValueAsString("EncoderMethod")); in CGIOperandList() 88 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList() 89 PrintMethod = std::string(Rec->getValueAsString("PrintMethod")); in CGIOperandList() 90 OperandType = std::string(Rec->getValueAsString("OperandType")); in CGIOperandList() 91 OperandNamespace = std::string(Rec->getValueAsString("OperandNamespace")); in CGIOperandList() [all …]
|
| H A D | RISCVCompressInstEmitter.cpp | 116 void addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Inst, 122 void createDagOperandMapping(Record *Rec, StringMap<unsigned> &SourceOperands, 127 void createInstOperandMapping(Record *Rec, DagInit *SourceDag, 191 Record *Rec, DagInit *Dag, CodeGenInstruction &Inst, in addDagOperandMapping() argument 211 if (!validateRegister(DI->getDef(), Inst.Operands[i].Rec)) in addDagOperandMapping() 212 PrintFatalError(Rec->getLoc(), in addDagOperandMapping() 216 Inst.Operands[i].Rec->getName() + "'"); in addDagOperandMapping() 225 if (!validateTypes(DI->getDef(), Inst.Operands[i].Rec, IsSourceInst)) in addDagOperandMapping() 226 PrintFatalError(Rec->getLoc(), in addDagOperandMapping() 231 Inst.Operands[i].Rec->getName() + in addDagOperandMapping() [all …]
|
| H A D | X86FoldTablesEmitter.cpp | 189 return OpIn.Rec->getName() == "RST" || OpIn.Rec->getName() == "RSTi"; in hasRSTRegClass() 196 return OpIn.Rec->getName() == "ptr_rc_tailcall"; in hasPtrTailcallRegClass() 284 static inline bool isRegisterOperand(const Record *Rec) { in isRegisterOperand() argument 285 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand() 286 Rec->isSubClassOf("RegisterOperand") || in isRegisterOperand() 287 Rec->isSubClassOf("PointerLikeRegClass"); in isRegisterOperand() 290 static inline bool isMemoryOperand(const Record *Rec) { in isMemoryOperand() argument 291 return Rec->isSubClassOf("Operand") && in isMemoryOperand() 292 Rec->getValueAsString("OperandType") == "OPERAND_MEMORY"; in isMemoryOperand() 295 static inline bool isImmediateOperand(const Record *Rec) { in isImmediateOperand() argument [all …]
|
| H A D | X86EVEX2VEXTablesEmitter.cpp | 142 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 D | X86RecognizableInstr.cpp | 67 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() 82 OpSize = byteFromRec(Rec, "OpSizeBits"); in RecognizableInstr() 83 AdSize = byteFromRec(Rec, "AdSizeBits"); in RecognizableInstr() [all …]
|
| H A D | InfoByHwMode.cpp | 106 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 D | AsmMatcherEmitter.cpp | 752 ClassInfo *getOperandClass(Record *Rec, int SubOpIdx); 1149 Record *Rec = OI.Rec; in getOperandClass() local 1151 Rec = cast<DefInit>(OI.MIOperandInfo->getArg(SubOpIdx))->getDef(); in getOperandClass() 1152 return getOperandClass(Rec, SubOpIdx); in getOperandClass() 1156 AsmMatcherInfo::getOperandClass(Record *Rec, int SubOpIdx) { in getOperandClass() argument 1157 if (Rec->isSubClassOf("RegisterOperand")) { in getOperandClass() 1160 const RecordVal *R = Rec->getValue("ParserMatchClass"); in getOperandClass() 1162 PrintFatalError(Rec->getLoc(), in getOperandClass() 1163 "Record `" + Rec->getName() + in getOperandClass() 1173 Record *ClassRec = Rec->getValueAsDef("RegClass"); in getOperandClass() [all …]
|
| H A D | DirectiveEmitter.cpp | 50 BaseRecord Rec{R}; in GenerateEnumClass() local 51 OS << " " << Prefix << Rec.getFormattedName() << ",\n"; in GenerateEnumClass() 66 BaseRecord Rec{R}; in GenerateEnumClass() local 67 OS << "constexpr auto " << Prefix << Rec.getFormattedName() << " = " in GenerateEnumClass() 69 << "::" << Prefix << Rec.getFormattedName() << ";\n"; in GenerateEnumClass() 256 BaseRecord Rec{R}; in GenerateGetName() local 257 OS << " case " << Prefix << Rec.getFormattedName() << ":\n"; in GenerateGetName() 259 if (Rec.getAlternativeName().empty()) in GenerateGetName() 260 OS << Rec.getName(); in GenerateGetName() 262 OS << Rec.getAlternativeName(); in GenerateGetName() [all …]
|
| H A D | InstrInfoEmitter.cpp | 141 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() 562 (Namespace + "::OpTypes::" + Op.Rec->getName()).str()); in emitLogicalOperandTypeMappings() 644 for (const Record *Rec : TIIPredicates) { in emitMCIIHelperMethods() local 645 OS << "bool " << Rec->getValueAsString("FunctionName") in emitMCIIHelperMethods() [all …]
|
| H A D | TableGen.cpp | 220 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 D | PredicateExpander.h | 86 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 D | AsmWriterEmitter.cpp | 881 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() 907 StringRef PrintMethod = Rec->getValueAsString("PrintMethod"); in EmitPrintAliasInstruction() 909 Rec->getValueAsString("OperandType") == "OPERAND_PCREL"; in EmitPrintAliasInstruction() 921 if (Rec->isSubClassOf("RegisterOperand")) in EmitPrintAliasInstruction() 922 Rec = Rec->getValueAsDef("RegClass"); in EmitPrintAliasInstruction() 923 if (Rec->isSubClassOf("RegisterClass")) { in EmitPrintAliasInstruction() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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() 33 bool IsAnon = HasUniqueName && isAnonymous(Rec.getName()); in getHashForUdt() 36 return hashStringV1(Rec.getName()); in getHashForUdt() 38 return hashStringV1(Rec.getUniqueName()); in getHashForUdt() 43 static Expected<uint32_t> getHashForUdt(const CVType &Rec) { in getHashForUdt() argument 45 if (auto E = TypeDeserializer::deserializeAs(const_cast<CVType &>(Rec), in getHashForUdt() 48 return getHashForUdt(Deserialized, Rec.data()); in getHashForUdt() 52 static Expected<TagRecordHash> getTagRecordHashForUdt(const CVType &Rec) { in getTagRecordHashForUdt() argument 54 if (auto E = TypeDeserializer::deserializeAs(const_cast<CVType &>(Rec), in getTagRecordHashForUdt() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| H A D | DetailedRecordsBackend.cpp | 51 void printDefms(Record *Rec, raw_ostream &OS); 52 void printTemplateArgs(Record *Rec, raw_ostream &OS); 53 void printSuperclasses(Record *Rec, raw_ostream &OS); 54 void printFields(Record *Rec, raw_ostream &OS); 106 auto *const Rec = RecPair.second.get(); in printRecords() local 107 std::string Name = Rec->getNameInitAsString(); in printRecords() 109 SrcMgr.getFormattedLocationNoOffset(Rec->getLoc().front())); in printRecords() 110 printDefms(Rec, OS); in printRecords() 111 printSuperclasses(Rec, OS); in printRecords() 112 printFields(Rec, OS); in printRecords() [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 | 40 Record *Rec; member 43 SubClassReference() : Rec(nullptr) {} in SubClassReference() 45 bool isInvalid() const { return Rec == nullptr; } in isInvalid() 122 Init *Prefix = BinOpInit::getStrConcat(CurMultiClass->Rec.getNameInit(), in QualifyName() 133 static Init *QualifiedNameOfImplicitName(Record &Rec, in QualifiedNameOfImplicitName() argument 135 return QualifyName(Rec, MC, StringInit::get("NAME"), MC ? "::" : ":"); in QualifiedNameOfImplicitName() 139 return QualifiedNameOfImplicitName(MC->Rec, MC); in QualifiedNameOfImplicitName() 144 CurRec = &CurMultiClass->Rec; in AddValue() 166 if (!CurRec) CurRec = &CurMultiClass->Rec; in SetValue() 231 Record *SC = SubClass.Rec; in AddSubClass() [all …]
|
| H A D | TGParser.h | 42 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);
|
| /netbsd-src/external/apache2/llvm/dist/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 …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/utils/TableGen/ |
| H A D | ClangOpcodesEmitter.cpp | 66 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()
|
| H A D | ClangOpenCLBuiltinEmitter.cpp | 555 const Record *Rec = SignatureList[Index].first; in CanReuseSignature() local 557 if (Rec->getValueAsBit("IsPure") == Rec2->getValueAsBit("IsPure") && in CanReuseSignature() 558 Rec->getValueAsBit("IsConst") == Rec2->getValueAsBit("IsConst") && in CanReuseSignature() 559 Rec->getValueAsBit("IsConv") == Rec2->getValueAsBit("IsConv") && in CanReuseSignature() 560 Rec->getValueAsDef("MinVersion")->getValueAsInt("ID") == in CanReuseSignature() 562 Rec->getValueAsDef("MaxVersion")->getValueAsInt("ID") == in CanReuseSignature() 564 Rec->getValueAsDef("Extension")->getName() == in CanReuseSignature()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/ |
| H A D | TypeReferenceTracker.cpp | 130 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/TableGen/ |
| H A D | Error.h | 28 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,
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 43 if (const ObjCMessageExpr *Rec = dyn_cast<ObjCMessageExpr>( in checkForLiteralCreation() local 45 if (Rec->getMethodFamily() == OMF_alloc) in checkForLiteralCreation() 159 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax() local 160 if (!Rec) in canRewriteToSubscriptSyntax() 162 IFace = maybeAdjustInterfaceForSubscriptingCheck(IFace, Rec, Ctx); 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() 232 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToArraySubscriptSet() local [all …]
|