diff options
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. |