llvm.org GIT mirror llvm / ec248eb
[llvm-mca] Remove the verb 'assemble' from a few options in help. NFC. * MCA does not assemble anything. * Ran clang-format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345750 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Davis 10 months ago
1 changed file(s) with 17 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
6868 cl::value_desc("filename"));
6969
7070 static cl::opt
71 ArchName("march",
72 cl::desc("Target arch to assemble for, "
73 "see -version for available targets"),
71 ArchName("march", cl::desc("Target architecture. "
72 "See -version for available targets"),
7473 cl::cat(ToolOptions));
7574
7675 static cl::opt
7776 TripleName("mtriple",
78 cl::desc("Target triple to assemble for, "
79 "see -version for available targets"),
77 cl::desc("Target triple. See -version for available targets"),
8078 cl::cat(ToolOptions));
8179
8280 static cl::opt
502500 ArrayRef Insts = Region->getInstructions();
503501 std::vector> LoweredSequence;
504502 for (const MCInst &MCI : Insts) {
505 llvm::Expected> Inst = IB.createInstruction(MCI);
503 llvm::Expected> Inst =
504 IB.createInstruction(MCI);
506505 if (!Inst) {
507 if (auto NewE = handleErrors(Inst.takeError(),
508 [&IP, &STI](const mca::InstructionError &IE) {
509 std::string InstructionStr;
510 raw_string_ostream SS(InstructionStr);
511 WithColor::error() << IE.Message << '\n';
512 IP->printInst(&IE.Inst, SS, "", *STI);
513 SS.flush();
514 WithColor::note() << "instruction: " << InstructionStr << '\n';
515 })) {
506 if (auto NewE = handleErrors(
507 Inst.takeError(),
508 [&IP, &STI](const mca::InstructionError &IE) {
509 std::string InstructionStr;
510 raw_string_ostream SS(InstructionStr);
511 WithColor::error() << IE.Message << '\n';
512 IP->printInst(&IE.Inst, SS, "", *STI);
513 SS.flush();
514 WithColor::note() << "instruction: " << InstructionStr
515 << '\n';
516 })) {
516517 // Default case.
517518 WithColor::error() << toString(std::move(NewE));
518519 }
522523 LoweredSequence.emplace_back(std::move(Inst.get()));
523524 }
524525
525 mca::SourceMgr S(LoweredSequence,
526 PrintInstructionTables ? 1 : Iterations);
526 mca::SourceMgr S(LoweredSequence, PrintInstructionTables ? 1 : Iterations);
527527
528528 if (PrintInstructionTables) {
529529 // Create a pipeline, stages, and a printer.