From: Matt Davis Date: Wed, 31 Oct 2018 17:47:25 +0000 (+0000) Subject: [llvm-mca] Remove the verb 'assemble' from a few options in help. NFC. X-Git-Tag: android-x86-9.0-r1~11184 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ec248eb35c4c3e8c32aff2768d0c64ec0a62032e;p=android-x86%2Fexternal-llvm.git [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 --- diff --git a/tools/llvm-mca/llvm-mca.cpp b/tools/llvm-mca/llvm-mca.cpp index 8f4e0717bd2..b3a4c495d7e 100644 --- a/tools/llvm-mca/llvm-mca.cpp +++ b/tools/llvm-mca/llvm-mca.cpp @@ -69,15 +69,13 @@ static cl::opt OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); static cl::opt - ArchName("march", - cl::desc("Target arch to assemble for, " - "see -version for available targets"), + ArchName("march", cl::desc("Target architecture. " + "See -version for available targets"), cl::cat(ToolOptions)); static cl::opt TripleName("mtriple", - cl::desc("Target triple to assemble for, " - "see -version for available targets"), + cl::desc("Target triple. See -version for available targets"), cl::cat(ToolOptions)); static cl::opt @@ -503,17 +501,20 @@ int main(int argc, char **argv) { ArrayRef Insts = Region->getInstructions(); std::vector> LoweredSequence; for (const MCInst &MCI : Insts) { - llvm::Expected> Inst = IB.createInstruction(MCI); + llvm::Expected> Inst = + IB.createInstruction(MCI); if (!Inst) { - if (auto NewE = handleErrors(Inst.takeError(), - [&IP, &STI](const mca::InstructionError &IE) { - std::string InstructionStr; - raw_string_ostream SS(InstructionStr); - WithColor::error() << IE.Message << '\n'; - IP->printInst(&IE.Inst, SS, "", *STI); - SS.flush(); - WithColor::note() << "instruction: " << InstructionStr << '\n'; - })) { + if (auto NewE = handleErrors( + Inst.takeError(), + [&IP, &STI](const mca::InstructionError &IE) { + std::string InstructionStr; + raw_string_ostream SS(InstructionStr); + WithColor::error() << IE.Message << '\n'; + IP->printInst(&IE.Inst, SS, "", *STI); + SS.flush(); + WithColor::note() << "instruction: " << InstructionStr + << '\n'; + })) { // Default case. WithColor::error() << toString(std::move(NewE)); } @@ -523,8 +524,7 @@ int main(int argc, char **argv) { LoweredSequence.emplace_back(std::move(Inst.get())); } - mca::SourceMgr S(LoweredSequence, - PrintInstructionTables ? 1 : Iterations); + mca::SourceMgr S(LoweredSequence, PrintInstructionTables ? 1 : Iterations); if (PrintInstructionTables) { // Create a pipeline, stages, and a printer.