diff --git a/tools/llvm-mca/llvm-mca.cpp b/tools/llvm-mca/llvm-mca.cpp index a105e7c99a2..f6e72f3bfd3 100644 --- a/tools/llvm-mca/llvm-mca.cpp +++ b/tools/llvm-mca/llvm-mca.cpp @@ -202,7 +202,8 @@ ErrorOr> getOutputStream() { if (OutputFilename == "") OutputFilename = "-"; std::error_code EC; - auto Out = make_unique(OutputFilename, EC, sys::fs::F_None); + auto Out = + llvm::make_unique(OutputFilename, EC, sys::fs::F_None); if (!EC) return std::move(Out); return EC; @@ -308,7 +309,7 @@ int main(int argc, char **argv) { TheTarget->createMCInstrAnalysis(MCII.get())); if (!MCPU.compare("native")) - MCPU = sys::getHostCPUName(); + MCPU = llvm::sys::getHostCPUName(); std::unique_ptr STI( TheTarget->createMCSubtargetInfo(TripleName, MCPU, /* FeaturesStr */ "")); @@ -433,17 +434,18 @@ int main(int argc, char **argv) { if (PrintInstructionTables) { // Create a pipeline, stages, and a printer. - auto P = make_unique(); - P->appendStage(make_unique(S)); - P->appendStage(make_unique(SM)); + auto P = llvm::make_unique(); + P->appendStage(llvm::make_unique(S)); + P->appendStage(llvm::make_unique(SM)); mca::PipelinePrinter Printer(*P); // Create the views for this pipeline, execute, and emit a report. if (PrintInstructionInfoView) { - Printer.addView( - make_unique(*STI, *MCII, Insts, *IP)); + Printer.addView(llvm::make_unique( + *STI, *MCII, Insts, *IP)); } - Printer.addView(make_unique(*STI, *IP, Insts)); + Printer.addView( + llvm::make_unique(*STI, *IP, Insts)); if (!runPipeline(*P)) return 1; @@ -457,31 +459,32 @@ int main(int argc, char **argv) { mca::PipelinePrinter Printer(*P); if (PrintSummaryView) - Printer.addView(make_unique(SM, Insts, Width)); + Printer.addView(llvm::make_unique(SM, Insts, Width)); if (PrintInstructionInfoView) Printer.addView( - make_unique(*STI, *MCII, Insts, *IP)); + llvm::make_unique(*STI, *MCII, Insts, *IP)); if (PrintDispatchStats) - Printer.addView(make_unique()); + Printer.addView(llvm::make_unique()); if (PrintSchedulerStats) - Printer.addView(make_unique(*STI)); + Printer.addView(llvm::make_unique(*STI)); if (PrintRetireStats) - Printer.addView(make_unique()); + Printer.addView(llvm::make_unique()); if (PrintRegisterFileStats) - Printer.addView(make_unique(*STI)); + Printer.addView(llvm::make_unique(*STI)); if (PrintResourcePressureView) - Printer.addView(make_unique(*STI, *IP, Insts)); + Printer.addView( + llvm::make_unique(*STI, *IP, Insts)); if (PrintTimelineView) { unsigned TimelineIterations = TimelineMaxIterations ? TimelineMaxIterations : 10; - Printer.addView(make_unique( + Printer.addView(llvm::make_unique( *STI, *IP, Insts, std::min(TimelineIterations, S.getNumIterations()), TimelineMaxCycles)); }