diff options
author | Marcos Horro <marcos.horro@udc.es> | 2021-07-13 19:07:03 +0200 |
---|---|---|
committer | Marcos Horro <marcos.horro@udc.es> | 2021-07-13 19:13:59 +0200 |
commit | 14f77576c9c4f502267a92992abe3bdcbeb96b2c (patch) | |
tree | defd3d668a4fb33dc34e74e388a1fd9361bd2be6 /llvm/tools/llvm-mca/llvm-mca.cpp | |
parent | 7a20670d168af31ef77209f43ca0622800ce513a (diff) | |
download | llvm-14f77576c9c4f502267a92992abe3bdcbeb96b2c.zip llvm-14f77576c9c4f502267a92992abe3bdcbeb96b2c.tar.gz llvm-14f77576c9c4f502267a92992abe3bdcbeb96b2c.tar.bz2 |
[llvm-mca] [NFC] Formatting code
Applied clang-format to all files. Discarded BottleneckAnalysis.h
80-column width violation since it contains an example of report.
Caught some typos and minor style details.
Reviewed By: andreadb
Differential Revision: https://reviews.llvm.org/D105900
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index 0f1e74b..a155733 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -95,15 +95,13 @@ static cl::opt<std::string> cl::desc("Target a specific cpu type (-mcpu=help for details)"), cl::value_desc("cpu-name"), cl::cat(ToolOptions), cl::init("native")); -static cl::opt<std::string> - MATTR("mattr", - cl::desc("Additional target features."), - cl::cat(ToolOptions)); +static cl::opt<std::string> MATTR("mattr", + cl::desc("Additional target features."), + cl::cat(ToolOptions)); -static cl::opt<bool> - PrintJson("json", - cl::desc("Print the output in json format"), - cl::cat(ToolOptions), cl::init(false)); +static cl::opt<bool> PrintJson("json", + cl::desc("Print the output in json format"), + cl::cat(ToolOptions), cl::init(false)); static cl::opt<int> OutputAsmVariant("output-asm-variant", @@ -573,8 +571,8 @@ int main(int argc, char **argv) { mca::PipelinePrinter Printer(*P, *Region, RegionIdx, *STI); if (PrintJson) { - auto IV = std::make_unique<mca::InstructionView>(*STI, *IP, Insts); - Printer.addView(std::move(IV)); + Printer.addView( + std::make_unique<mca::InstructionView>(*STI, *IP, Insts)); } // Create the views for this pipeline, execute, and emit a report. |