| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCTargetDesc.cpp | 64 const char *PPC::stripRegisterPrefix(const char *RegName) { in stripRegisterPrefix() argument 65 switch (RegName[0]) { in stripRegisterPrefix() 67 if (RegName[1] == 'c' && RegName[2] == 'c') in stripRegisterPrefix() 68 return RegName + 3; in stripRegisterPrefix() 71 if (RegName[1] == 'p') in stripRegisterPrefix() 72 return RegName + 2; in stripRegisterPrefix() 76 if (RegName[1] == 's') { in stripRegisterPrefix() 77 if (RegName[2] == 'p') in stripRegisterPrefix() 78 return RegName + 3; in stripRegisterPrefix() 79 return RegName + 2; in stripRegisterPrefix() [all …]
|
| H A D | PPCInstPrinter.cpp | 52 const char *RegName = getRegisterName(Reg); in printRegName() local 53 OS << RegName; in printRegName() 602 bool PPCInstPrinter::showRegistersWithPercentPrefix(const char *RegName) const { in showRegistersWithPercentPrefix() 607 switch (RegName[0]) { in showRegistersWithPercentPrefix() 655 const char *RegName; in printOperand() local 656 RegName = getVerboseConditionRegName(Reg, MRI.getEncodingValue(Reg)); in printOperand() 657 if (RegName == nullptr) in printOperand() 658 RegName = getRegisterName(Reg); in printOperand() 659 if (showRegistersWithPercentPrefix(RegName)) in printOperand() 662 RegName = PPC::stripRegisterPrefix(RegName); in printOperand() [all …]
|
| H A D | PPCInstPrinter.h | 24 bool showRegistersWithPercentPrefix(const char *RegName) const;
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFExpressionPrinter.cpp | 178 auto RegName = GetNameForDWARFReg(DwarfRegNum, false); in printCompactDWARFExpr() local 179 if (RegName.empty()) in printCompactDWARFExpr() 182 S << RegName; in printCompactDWARFExpr() 188 auto RegName = GetNameForDWARFReg(DwarfRegNum, false); in printCompactDWARFExpr() local 189 if (RegName.empty()) in printCompactDWARFExpr() 192 S << RegName; in printCompactDWARFExpr() 230 auto RegName = GetNameForDWARFReg(DwarfRegNum, false); in printCompactDWARFExpr() local 231 if (RegName.empty()) in printCompactDWARFExpr() 234 S << RegName; in printCompactDWARFExpr() 239 auto RegName = GetNameForDWARFReg(DwarfRegNum, false); in printCompactDWARFExpr() local [all …]
|
| H A D | DWARFCFIPrinter.cpp | 31 auto RegName = DumpOpts.GetNameForDWARFReg(RegNum, DumpOpts.IsEH); in printRegister() local 32 if (!RegName.empty()) { in printRegister() 33 OS << RegName; in printRegister()
|
| H A D | DWARFUnwindTablePrinter.cpp | 26 auto RegName = DumpOpts.GetNameForDWARFReg(RegNum, DumpOpts.IsEH); in printRegister() local 27 if (!RegName.empty()) { in printRegister() 28 OS << RegName; in printRegister()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| H A D | SystemZHLASMInstPrinter.cpp | 23 const char *RegName = getRegisterName(Reg); in printFormattedRegName() local 25 assert(isalpha(RegName[0]) && isdigit(RegName[1])); in printFormattedRegName() 26 markup(O, Markup::Register) << (RegName + 1); in printFormattedRegName()
|
| H A D | SystemZGNUInstPrinter.cpp | 23 const char *RegName = getRegisterName(Reg); in printFormattedRegName() local 24 markup(O, Markup::Register) << '%' << RegName; in printFormattedRegName()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | LVLGen.cpp | 59 #define RegName(no) \ in runOnMachineBasicBlock() macro 79 LLVM_DEBUG(dbgs() << "Vector length is " << RegName(Reg) << ". "); in runOnMachineBasicBlock() 81 << (HasRegForVL ? RegName(RegForVL) : "unknown") in runOnMachineBasicBlock() 88 << RegName(Reg) << ".\n"); in runOnMachineBasicBlock() 104 LLVM_DEBUG(dbgs() << RegName(RegForVL) << " is needed to be updated: "); in runOnMachineBasicBlock()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ArrayBoundChecker.cpp | 357 if (std::string RegName = Region->getDescriptiveName(); !RegName.empty()) in getRegionName() local 358 return RegName; in getRegionName() 393 std::string RegName = getRegionName(Space, Region), OffsetStr = ""; in getPrecedesMsgs() local 399 formatv("Out of bound access to memory preceding {0}", RegName), in getPrecedesMsgs() 400 formatv("Access of {0} at negative byte offset{1}", RegName, OffsetStr)}; in getPrecedesMsgs() 426 std::string RegName = getRegionName(Space, Region); in getExceedsMsgs() local 444 Out << RegName << " at "; in getExceedsMsgs() 469 RegName), in getExceedsMsgs() 476 std::string RegName = getRegionName(Space, Region); in getTaintMsgs() local 478 RegName, OffsetName), in getTaintMsgs() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DWARFCFIChecker/ |
| H A D | DWARFCFIAnalysis.cpp | 199 const char *RegName = MCRI->getName(*MaybeLLVMReg); in checkRegDiff() local 219 RegName, MCRI->getName(*MaybeLLVMUsedReg))); in checkRegDiff() 230 RegName)); in checkRegDiff() 239 RegName)); in checkRegDiff() 250 RegName)); in checkRegDiff() 257 RegName)); in checkRegDiff()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | RISCV.cpp | 625 StringRef RegName, unsigned RegSize, bool &HasSizeMismatch) const { in validateGlobalRegisterVariable() argument 626 if (RegName == "ra" || RegName == "sp" || RegName == "gp" || in validateGlobalRegisterVariable() 627 RegName == "tp" || RegName.starts_with("x") || RegName.starts_with("a") || in validateGlobalRegisterVariable() 628 RegName.starts_with("s") || RegName.starts_with("t")) { in validateGlobalRegisterVariable()
|
| H A D | X86.h | 228 bool isSPRegName(StringRef RegName) const override { in isSPRegName() argument 229 return RegName == "esp" || RegName == "rsp"; in isSPRegName() 253 bool validateGlobalRegisterVariable(StringRef RegName, unsigned RegSize, in validateGlobalRegisterVariable() argument 257 if (RegName == "esp" || RegName == "ebp") { in validateGlobalRegisterVariable() 818 bool validateGlobalRegisterVariable(StringRef RegName, unsigned RegSize, in validateGlobalRegisterVariable() argument 822 if (RegName == "rsp" || RegName == "rbp") { in validateGlobalRegisterVariable() 829 return X86TargetInfo::validateGlobalRegisterVariable(RegName, RegSize, in validateGlobalRegisterVariable()
|
| H A D | SystemZ.h | 130 bool isSPRegName(StringRef RegName) const override { in isSPRegName() argument 131 return RegName == "r15"; in isSPRegName()
|
| H A D | PPC.h | 361 bool isSPRegName(StringRef RegName) const override { in isSPRegName() argument 362 return RegName == "r1" || RegName == "x1"; in isSPRegName()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/ |
| H A D | XtensaAsmParser.cpp | 596 StringRef RegName; in parseRegister() local 625 RegName = getLexer().getTok().getString(); in parseRegister() 626 RegNo = MatchRegisterAltName(RegName); in parseRegister() 630 RegName = getLexer().getTok().getIdentifier(); in parseRegister() 631 RegNo = MatchRegisterName(RegName); in parseRegister() 633 RegNo = MatchRegisterAltName(RegName); in parseRegister() 745 StringRef RegName = Name.drop_front(4); in ParseInstructionWithSR() local 746 unsigned RegNo = MatchRegisterName(RegName); in ParseInstructionWithSR() 749 RegNo = MatchRegisterAltName(RegName); in ParseInstructionWithSR()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | CallingConvEmitter.cpp | 379 for (const auto &[RegName, Registers] : AssignedRegsMap) { in emitArgRegisterLists() 380 if (RegName.empty()) in emitArgRegisterLists() 383 O << "const MCRegister " << RegName << "_ArgRegs[] = { "; in emitArgRegisterLists() 397 for (const auto &[RegName, Registers] : AssignedSwiftRegsMap) in emitArgRegisterLists() 398 O << "const MCRegister " << RegName << "_Swift_ArgRegs[] = { " in emitArgRegisterLists()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/MIRParser/ |
| H A D | MIParser.h | 107 bool getRegisterByName(StringRef RegName, Register &Reg); 191 VRegInfo &getVRegInfoNamed(StringRef RegName);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/ |
| H A D | CSKYAsmParser.cpp | 434 auto RegName = [](MCRegister Reg) { in print() local 449 OS << "<register " << RegName(getReg()) << ">"; in print() 453 OS << RegName(getRegSeq().first) << "-" << RegName(getRegSeq().second) in print() 458 OS << RegName(getRegList().List1From) << "-" in print() 459 << RegName(getRegList().List1To) << ","; in print() 460 OS << RegName(getRegList().List2From) << "-" in print() 461 << RegName(getRegList().List2To) << ","; in print() 462 OS << RegName(getRegList().List3From) << "-" in print() 463 << RegName(getRegList().List3To) << ","; in print() 464 OS << RegName(getRegList().List4From) << "-" in print() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetMachine.cpp | 1806 auto parseRegister = [&](const yaml::StringValue &RegName, Register &RegVal) { in parseMachineFunctionInfo() argument 1808 if (parseNamedRegisterReference(PFS, TempReg, RegName.Value, Error)) { in parseMachineFunctionInfo() 1809 SourceRange = RegName.SourceRange; in parseMachineFunctionInfo() 1817 auto parseOptionalRegister = [&](const yaml::StringValue &RegName, in parseMachineFunctionInfo() 1819 return !RegName.Value.empty() && parseRegister(RegName, RegVal); in parseMachineFunctionInfo() 1832 auto diagnoseRegisterClass = [&](const yaml::StringValue &RegName) { in parseMachineFunctionInfo() argument 1837 RegName.Value.size(), SourceMgr::DK_Error, in parseMachineFunctionInfo() 1838 "incorrect register class for field", RegName.Value, in parseMachineFunctionInfo() 1840 SourceRange = RegName.SourceRange; in parseMachineFunctionInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 1129 bool MatchRegisterByName(MCRegister &RegNo, StringRef RegName, SMLoc StartLoc, 1414 bool X86AsmParser::MatchRegisterByName(MCRegister &RegNo, StringRef RegName, in MatchRegisterByName() argument 1418 RegName.consume_front("%"); in MatchRegisterByName() 1420 RegNo = MatchRegisterName(RegName); in MatchRegisterByName() 1424 RegNo = MatchRegisterName(RegName.lower()); in MatchRegisterByName() 1441 "register %" + RegName + " is only available in 64-bit mode", in MatchRegisterByName() 1451 if (!RegNo && RegName.starts_with("db")) { in MatchRegisterByName() 1452 if (RegName.size() == 3) { in MatchRegisterByName() 1453 switch (RegName[2]) { in MatchRegisterByName() 1485 } else if (RegName.size() == 4 && RegName[2] == '1') { in MatchRegisterByName() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_linux.cpp | 2420 const char *RegName = RegNumToRegName(RegNum); in DumpSingleReg() local 2423 Printf("%s%s = 0x%016llx ", internal_strlen(RegName) == 2 ? " " : "", in DumpSingleReg() 2424 RegName, in DumpSingleReg() 2432 Printf("%s = 0x%08x ", RegName, in DumpSingleReg() 2440 Printf("%s%s = 0x%08zx ", internal_strlen(RegName) == 2 ? " " : "", RegName, in DumpSingleReg() 2443 Printf("%s%s = 0x%016zx ", internal_strlen(RegName) == 2 ? " " : "", RegName, in DumpSingleReg() 2446 (void)RegName; in DumpSingleReg() 2449 (void)RegName; in DumpSingleReg()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZAsmPrinter.cpp | 1016 const char *RegName; in printFormattedRegName() local 1018 RegName = SystemZHLASMInstPrinter::getRegisterName(RegNo); in printFormattedRegName() 1020 assert(isalpha(RegName[0]) && isdigit(RegName[1])); in printFormattedRegName() 1021 OS << (RegName + 1); in printFormattedRegName() 1023 RegName = SystemZGNUInstPrinter::getRegisterName(RegNo); in printFormattedRegName() 1024 OS << '%' << RegName; in printFormattedRegName()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiISelLowering.h | 53 Register getRegisterByName(const char *RegName, LLT VT,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 764 std::ostringstream RegName; in validateTargetOperandClass() local 765 RegName << "r" << RegNum; in validateTargetOperandClass() 766 if (MCRegister Reg = MatchRegisterName(RegName.str())) { in validateTargetOperandClass()
|