/external/llvm-project/llvm/unittests/MC/ |
D | MCInstPrinter.cpp | 33 std::string TripleName = "x86_64-pc-linux"; in MCInstPrinterTest() local 37 TargetRegistry::lookupTarget(TripleName, ErrorStr); in MCInstPrinterTest() 43 MRI.reset(TheTarget->createMCRegInfo(TripleName)); in MCInstPrinterTest() 45 MAI.reset(TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in MCInstPrinterTest() 48 Triple(TripleName), MAI->getAssemblerDialect(), *MAI, *MII, *MRI)); in MCInstPrinterTest()
|
/external/llvm-project/llvm/tools/llvm-mc-assemble-fuzzer/ |
D | llvm-mc-assemble-fuzzer.cpp | 41 TripleName("triple", cl::desc("Target triple to assemble for, " variable 120 << ": error: this target '" << TripleName in AssembleInput() 136 Triple TheTriple(Triple::normalize(TripleName)); in AssembleOneInput() 159 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in AssembleOneInput() 167 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in AssembleOneInput() 182 MCInstPrinter *IP = TheTarget->createMCInstPrinter(Triple(TripleName), OutputAsmVariant, in AssembleOneInput() 195 TheTarget->createMCSubtargetInfo(TripleName, MCPU, FeaturesStr)); in AssembleOneInput() 310 if (TripleName.empty()) in LLVMFuzzerInitialize() 311 TripleName = sys::getDefaultTargetTriple(); in LLVMFuzzerInitialize()
|
/external/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 120 TripleName("triple", cl::desc("Target triple to assemble for, " variable 198 if (TripleName.empty()) in GetTarget() 199 TripleName = sys::getDefaultTargetTriple(); in GetTarget() 200 Triple TheTriple(Triple::normalize(TripleName)); in GetTarget() 212 TripleName = TheTriple.getTriple(); in GetTarget() 391 TripleName = Triple::normalize(TripleName); in main() 402 Triple TheTriple(TripleName); in main() 421 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in main() 424 std::unique_ptr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(*MRI, TripleName)); in main() 491 TheTarget->createMCSubtargetInfo(TripleName, MCPU, FeaturesStr)); in main() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCDisassembler/ |
D | Disassembler.h | 44 std::string TripleName; 85 LLVMDisasmContext(std::string TripleName, void *DisInfo, int TagType, in LLVMDisasmContext() argument 96 : TripleName(std::move(TripleName)), DisInfo(DisInfo), TagType(TagType), in LLVMDisasmContext() 101 const std::string &getTripleName() const { return TripleName; } in getTripleName()
|
/external/llvm-project/llvm/lib/MC/MCDisassembler/ |
D | Disassembler.h | 44 std::string TripleName; 85 LLVMDisasmContext(std::string TripleName, void *DisInfo, int TagType, in LLVMDisasmContext() argument 96 : TripleName(std::move(TripleName)), DisInfo(DisInfo), TagType(TagType), in LLVMDisasmContext() 101 const std::string &getTripleName() const { return TripleName; } in getTripleName()
|
/external/llvm-project/llvm/unittests/DebugInfo/DWARF/ |
D | DwarfGenerator.cpp | 422 std::string TripleName; in init() local 426 TargetRegistry::lookupTarget(TripleName, TheTriple, ErrorStr); in init() 430 TripleName = TheTriple.getTriple(); in init() 433 MRI.reset(TheTarget->createMCRegInfo(TripleName)); in init() 436 TripleName, in init() 440 MAI.reset(TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in init() 442 return make_error<StringError>("no asm info for target " + TripleName, in init() 445 MSTI.reset(TheTarget->createMCSubtargetInfo(TripleName, "", "")); in init() 447 return make_error<StringError>("no subtarget info for target " + TripleName, in init() 452 return make_error<StringError>("no asm backend for target " + TripleName, in init() [all …]
|
D | DWARFExpressionCompactPrinterTest.cpp | 34 std::string TripleName = "armv8a-linux-gnueabi"; in DWARFExpressionCompactPrinterTest() local 38 TargetRegistry::lookupTarget(TripleName, ErrorStr); in DWARFExpressionCompactPrinterTest() 43 MRI.reset(TheTarget->createMCRegInfo(TripleName)); in DWARFExpressionCompactPrinterTest()
|
/external/llvm-project/llvm/tools/llvm-profgen/ |
D | ProfiledBinary.cpp | 234 std::string TripleName = TheTriple.getTriple(); in setUpDisassembler() local 237 MRI.reset(TheTarget->createMCRegInfo(TripleName)); in setUpDisassembler() 239 exitWithError("no register info for target " + TripleName, FileName); in setUpDisassembler() 242 AsmInfo.reset(TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in setUpDisassembler() 244 exitWithError("no assembly info for target " + TripleName, FileName); in setUpDisassembler() 248 TheTarget->createMCSubtargetInfo(TripleName, "", Features.getString())); in setUpDisassembler() 250 exitWithError("no subtarget info for target " + TripleName, FileName); in setUpDisassembler() 254 exitWithError("no instruction info for target " + TripleName, FileName); in setUpDisassembler() 258 MOFI.InitMCObjectFileInfo(Triple(TripleName), false, Ctx); in setUpDisassembler() 261 exitWithError("no disassembler for target " + TripleName, FileName); in setUpDisassembler() [all …]
|
/external/llvm-project/llvm/unittests/CodeGen/ |
D | TestAsmPrinter.cpp | 49 llvm::Error TestAsmPrinter::init(const Target *TheTarget, StringRef TripleName, in init() argument 52 TM.reset(TheTarget->createTargetMachine(TripleName, "", "", TargetOptions(), in init() 55 return make_error<StringError>("no target machine for target " + TripleName, in init() 67 return make_error<StringError>("no asm printer for target " + TripleName, in init()
|
D | PassManagerTest.cpp | 191 std::string TripleName = Triple::normalize(sys::getDefaultTargetTriple()); in PassManagerTest() local 194 TargetRegistry::lookupTarget(TripleName, Error); in PassManagerTest() 199 TM.reset(TheTarget->createTargetMachine(TripleName, "", "", in PassManagerTest()
|
/external/llvm-project/llvm/tools/llvm-mc-disassemble-fuzzer/ |
D | llvm-mc-disassemble-fuzzer.cpp | 23 TripleName("triple", cl::desc("Target triple to assemble for, " variable 56 TripleName.c_str(), MCPU.c_str(), FeaturesStr.c_str(), nullptr, 0, in DisassembleOneInput() 139 if (TripleName.empty()) in LLVMFuzzerInitialize() 140 TripleName = sys::getDefaultTargetTriple(); in LLVMFuzzerInitialize()
|
/external/llvm-project/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 121 TripleName("triple", cl::desc("Target triple to assemble for, " variable 200 if (TripleName.empty()) in GetTarget() 201 TripleName = sys::getDefaultTargetTriple(); in GetTarget() 202 Triple TheTriple(Triple::normalize(TripleName)); in GetTarget() 214 TripleName = TheTriple.getTriple(); in GetTarget() 338 Triple TheTriple(TripleName); in main() 358 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in main() 362 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in main() 475 TheTarget->createMCSubtargetInfo(TripleName, MCPU, FeaturesStr)); in main() 480 IP = TheTarget->createMCInstPrinter(Triple(TripleName), OutputAsmVariant, in main() [all …]
|
/external/llvm-project/llvm/lib/DWARFLinker/ |
D | DWARFStreamer.cpp | 32 std::string TripleName; in init() local 37 TargetRegistry::lookupTarget(TripleName, TheTriple, ErrorStr); in init() 40 TripleName = TheTriple.getTriple(); in init() 43 MRI.reset(TheTarget->createMCRegInfo(TripleName)); in init() 45 return error(Twine("no register info for target ") + TripleName, Context), in init() 49 MAI.reset(TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in init() 51 return error("no asm info for target " + TripleName, Context), false; in init() 57 MSTI.reset(TheTarget->createMCSubtargetInfo(TripleName, "", "")); in init() 59 return error("no subtarget info for target " + TripleName, Context), false; in init() 63 return error("no asm backend for target " + TripleName, Context), false; in init() [all …]
|
/external/llvm-project/llvm/tools/llvm-mca/ |
D | llvm-mca.cpp | 85 TripleName("mtriple", variable 221 if (TripleName.empty()) in getTarget() 222 TripleName = Triple::normalize(sys::getDefaultTargetTriple()); in getTarget() 223 Triple TheTriple(TripleName); in getTarget() 316 Triple TheTriple(TripleName); in main() 332 TheTarget->createMCSubtargetInfo(TripleName, MCPU, MATTR)); in main() 356 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in main() 361 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in main() 417 Triple(TripleName), AssemblerDialect, *MAI, *MCII, *MRI)); in main()
|
/external/llvm/lib/MC/MCDisassembler/ |
D | Disassembler.h | 45 std::string TripleName; 93 : TripleName(std::move(tripleName)), DisInfo(disInfo), TagType(tagType), in LLVMDisasmContext() 104 const std::string &getTripleName() const { return TripleName; } in getTripleName()
|
/external/llvm/tools/llvm-dwp/ |
D | llvm-dwp.cpp | 631 std::string TripleName = TheTriple.getTriple(); in main() local 634 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in main() 636 return error(Twine("no register info for target ") + TripleName, Context); in main() 638 std::unique_ptr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(*MRI, TripleName)); in main() 640 return error("no asm info for target " + TripleName, Context); in main() 646 auto MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, ""); in main() 648 return error("no asm backend for target " + TripleName, Context); in main() 652 return error("no instr info info for target " + TripleName, Context); in main() 655 TheTarget->createMCSubtargetInfo(TripleName, "", "")); in main() 657 return error("no subtarget info for target " + TripleName, Context); in main() [all …]
|
/external/llvm/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 83 TripleName("triple", cl::desc("Target triple for disassembler")); variable 633 if (TripleName == "") in linkAndVerify() 637 Triple TheTriple(Triple::normalize(TripleName)); in linkAndVerify() 642 ErrorAndExit("Error accessing target '" + TripleName + "': " + ErrorStr); in linkAndVerify() 644 TripleName = TheTriple.getTriple(); in linkAndVerify() 647 TheTarget->createMCSubtargetInfo(TripleName, MCPU, "")); in linkAndVerify() 651 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in linkAndVerify() 655 std::unique_ptr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(*MRI, TripleName)); in linkAndVerify() 669 TheTarget->createMCInstPrinter(Triple(TripleName), 0, *MAI, *MII, *MRI)); in linkAndVerify()
|
/external/llvm-project/llvm/tools/llvm-ml/ |
D | llvm-ml.cpp | 89 StringRef TripleName = in GetTriple() local 94 return Triple(Triple::normalize(TripleName)); in GetTriple() 242 const std::string &TripleName = TheTriple.getTriple(); in main() local 268 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in main() 272 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in main() 315 TripleName, /*CPU=*/"", /*Features=*/"")); in main()
|
/external/llvm-project/llvm/tools/llvm-dwp/ |
D | llvm-dwp.cpp | 719 std::string TripleName = TheTriple.getTriple(); in main() local 722 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in main() 724 return error(Twine("no register info for target ") + TripleName, Context); in main() 728 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in main() 730 return error("no asm info for target " + TripleName, Context); in main() 737 TheTarget->createMCSubtargetInfo(TripleName, "", "")); in main() 739 return error("no subtarget info for target " + TripleName, Context); in main() 744 return error("no asm backend for target " + TripleName, Context); in main() 748 return error("no instr info info for target " + TripleName, Context); in main() 752 return error("no code emitter for target " + TripleName, Context); in main() [all …]
|
/external/llvm/tools/llvm-mc-fuzzer/ |
D | llvm-mc-fuzzer.cpp | 38 TripleName("triple", cl::desc("Target triple to assemble for, " variable 71 TripleName.c_str(), MCPU.c_str(), FeaturesStr.c_str(), nullptr, 0, in DisassembleOneInput()
|
/external/llvm/tools/llvm-objdump/ |
D | llvm-objdump.cpp | 118 llvm::TripleName("triple", cl::desc("Target triple to disassemble for, " member in llvm 329 if (TripleName.empty()) { in getTarget() 344 TheTriple.setTriple(Triple::normalize(TripleName)); in getTarget() 354 TripleName = TheTriple.getTriple(); in getTarget() 952 TheTarget->createMCRegInfo(TripleName)); in DisassembleObject() 954 report_fatal_error("error: no register info for target " + TripleName); in DisassembleObject() 958 TheTarget->createMCAsmInfo(*MRI, TripleName)); in DisassembleObject() 960 report_fatal_error("error: no assembly info for target " + TripleName); in DisassembleObject() 962 TheTarget->createMCSubtargetInfo(TripleName, MCPU, Features.getString())); in DisassembleObject() 964 report_fatal_error("error: no subtarget info for target " + TripleName); in DisassembleObject() [all …]
|
/external/llvm-project/llvm/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 87 TripleName("triple", cl::desc("Target triple for disassembler")); variable 731 if (TripleName == "") in linkAndVerify() 735 Triple TheTriple(Triple::normalize(TripleName)); in linkAndVerify() 740 ErrorAndExit("Error accessing target '" + TripleName + "': " + ErrorStr); in linkAndVerify() 742 TripleName = TheTriple.getTriple(); in linkAndVerify() 745 TheTarget->createMCSubtargetInfo(TripleName, MCPU, "")); in linkAndVerify() 749 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in linkAndVerify() 755 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in linkAndVerify() 771 TheTarget->createMCInstPrinter(Triple(TripleName), 0, *MAI, *MII, *MRI)); in linkAndVerify()
|
/external/llvm-project/llvm/tools/sancov/ |
D | sancov.cpp | 710 auto TripleName = TheTriple.getTriple(); in getObjectCoveragePoints() local 713 const Target *TheTarget = TargetRegistry::lookupTarget(TripleName, Error); in getObjectCoveragePoints() 717 TheTarget->createMCSubtargetInfo(TripleName, "", "")); in getObjectCoveragePoints() 718 failIfEmpty(STI, "no subtarget info for target " + TripleName); in getObjectCoveragePoints() 721 TheTarget->createMCRegInfo(TripleName)); in getObjectCoveragePoints() 722 failIfEmpty(MRI, "no register info for target " + TripleName); in getObjectCoveragePoints() 726 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in getObjectCoveragePoints() 727 failIfEmpty(AsmInfo, "no asm info for target " + TripleName); in getObjectCoveragePoints() 733 failIfEmpty(DisAsm, "no disassembler info for target " + TripleName); in getObjectCoveragePoints() 736 failIfEmpty(MII, "no instruction info for target " + TripleName); in getObjectCoveragePoints() [all …]
|
/external/llvm/tools/sancov/ |
D | sancov.cc | 353 auto TripleName = TheTriple.getTriple(); in getObjectCoveragePoints() local 356 const Target *TheTarget = TargetRegistry::lookupTarget(TripleName, Error); in getObjectCoveragePoints() 360 TheTarget->createMCSubtargetInfo(TripleName, "", "")); in getObjectCoveragePoints() 361 FailIfEmpty(STI, "no subtarget info for target " + TripleName); in getObjectCoveragePoints() 364 TheTarget->createMCRegInfo(TripleName)); in getObjectCoveragePoints() 365 FailIfEmpty(MRI, "no register info for target " + TripleName); in getObjectCoveragePoints() 368 TheTarget->createMCAsmInfo(*MRI, TripleName)); in getObjectCoveragePoints() 369 FailIfEmpty(AsmInfo, "no asm info for target " + TripleName); in getObjectCoveragePoints() 375 FailIfEmpty(DisAsm, "no disassembler info for target " + TripleName); in getObjectCoveragePoints() 378 FailIfEmpty(MII, "no instruction info for target " + TripleName); in getObjectCoveragePoints() [all …]
|
/external/llvm-project/llvm/tools/llvm-jitlink/ |
D | llvm-jitlink.cpp | 1172 auto TripleName = S.TPC->getTargetTriple().str(); in runChecks() local 1174 const Target *TheTarget = TargetRegistry::lookupTarget(TripleName, ErrorStr); in runChecks() 1176 ExitOnErr(make_error<StringError>("Error accessing target '" + TripleName + in runChecks() 1181 TheTarget->createMCSubtargetInfo(TripleName, "", "")); in runChecks() 1184 make_error<StringError>("Unable to create subtarget for " + TripleName, in runChecks() 1187 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in runChecks() 1191 TripleName, in runChecks() 1196 TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in runChecks() 1199 TripleName, in runChecks() 1208 TripleName, in runChecks() [all …]
|