Skip to content

Commit 9e64a4c

Browse files
Matt DavisMatt Davis
authored andcommitted
[llvm-mca] Remove the verb 'assemble' from a few options in help. NFC.
* MCA does not assemble anything. * Ran clang-format. llvm-svn: 345750
1 parent 6feb62a commit 9e64a4c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

llvm/tools/llvm-mca/llvm-mca.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@ static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
6969
cl::value_desc("filename"));
7070

7171
static cl::opt<std::string>
72-
ArchName("march",
73-
cl::desc("Target arch to assemble for, "
74-
"see -version for available targets"),
72+
ArchName("march", cl::desc("Target architecture. "
73+
"See -version for available targets"),
7574
cl::cat(ToolOptions));
7675

7776
static cl::opt<std::string>
7877
TripleName("mtriple",
79-
cl::desc("Target triple to assemble for, "
80-
"see -version for available targets"),
78+
cl::desc("Target triple. See -version for available targets"),
8179
cl::cat(ToolOptions));
8280

8381
static cl::opt<std::string>
@@ -503,17 +501,20 @@ int main(int argc, char **argv) {
503501
ArrayRef<MCInst> Insts = Region->getInstructions();
504502
std::vector<std::unique_ptr<mca::Instruction>> LoweredSequence;
505503
for (const MCInst &MCI : Insts) {
506-
llvm::Expected<std::unique_ptr<mca::Instruction>> Inst = IB.createInstruction(MCI);
504+
llvm::Expected<std::unique_ptr<mca::Instruction>> Inst =
505+
IB.createInstruction(MCI);
507506
if (!Inst) {
508-
if (auto NewE = handleErrors(Inst.takeError(),
509-
[&IP, &STI](const mca::InstructionError<MCInst> &IE) {
510-
std::string InstructionStr;
511-
raw_string_ostream SS(InstructionStr);
512-
WithColor::error() << IE.Message << '\n';
513-
IP->printInst(&IE.Inst, SS, "", *STI);
514-
SS.flush();
515-
WithColor::note() << "instruction: " << InstructionStr << '\n';
516-
})) {
507+
if (auto NewE = handleErrors(
508+
Inst.takeError(),
509+
[&IP, &STI](const mca::InstructionError<MCInst> &IE) {
510+
std::string InstructionStr;
511+
raw_string_ostream SS(InstructionStr);
512+
WithColor::error() << IE.Message << '\n';
513+
IP->printInst(&IE.Inst, SS, "", *STI);
514+
SS.flush();
515+
WithColor::note() << "instruction: " << InstructionStr
516+
<< '\n';
517+
})) {
517518
// Default case.
518519
WithColor::error() << toString(std::move(NewE));
519520
}
@@ -523,8 +524,7 @@ int main(int argc, char **argv) {
523524
LoweredSequence.emplace_back(std::move(Inst.get()));
524525
}
525526

526-
mca::SourceMgr S(LoweredSequence,
527-
PrintInstructionTables ? 1 : Iterations);
527+
mca::SourceMgr S(LoweredSequence, PrintInstructionTables ? 1 : Iterations);
528528

529529
if (PrintInstructionTables) {
530530
// Create a pipeline, stages, and a printer.

0 commit comments

Comments
 (0)