From 08b64d60fe0a5166972bbf72b38b93b2174bf62a Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Thu, 8 Nov 2018 17:32:45 +0000 Subject: [llvm-mca] Remove unneeded namespace qualifier. NFC. llvm-svn: 346417 --- llvm/tools/llvm-mca/llvm-mca.cpp | 45 +++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 24 deletions(-) (limited to 'llvm/tools/llvm-mca') diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index 3a066f713bc..d8bbcb9e660 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -202,8 +202,7 @@ ErrorOr> getOutputStream() { if (OutputFilename == "") OutputFilename = "-"; std::error_code EC; - auto Out = - llvm::make_unique(OutputFilename, EC, sys::fs::F_None); + auto Out = make_unique(OutputFilename, EC, sys::fs::F_None); if (!EC) return std::move(Out); return EC; @@ -251,9 +250,9 @@ int main(int argc, char **argv) { InitLLVM X(argc, argv); // Initialize targets and assembly parsers. - llvm::InitializeAllTargetInfos(); - llvm::InitializeAllTargetMCs(); - llvm::InitializeAllAsmParsers(); + InitializeAllTargetInfos(); + InitializeAllTargetMCs(); + InitializeAllAsmParsers(); // Enable printing of available targets when flag --version is specified. cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion); @@ -309,7 +308,7 @@ int main(int argc, char **argv) { TheTarget->createMCInstrAnalysis(MCII.get())); if (!MCPU.compare("native")) - MCPU = llvm::sys::getHostCPUName(); + MCPU = sys::getHostCPUName(); std::unique_ptr STI( TheTarget->createMCSubtargetInfo(TripleName, MCPU, /* FeaturesStr */ "")); @@ -368,7 +367,7 @@ int main(int argc, char **argv) { return 1; } - std::unique_ptr TOF = std::move(*OF); + std::unique_ptr TOF = std::move(*OF); const MCSchedModel &SM = STI->getSchedModel(); @@ -407,7 +406,7 @@ int main(int argc, char **argv) { ArrayRef Insts = Region->getInstructions(); std::vector> LoweredSequence; for (const MCInst &MCI : Insts) { - llvm::Expected> Inst = + Expected> Inst = IB.createInstruction(MCI); if (!Inst) { if (auto NewE = handleErrors( @@ -434,18 +433,17 @@ int main(int argc, char **argv) { if (PrintInstructionTables) { // Create a pipeline, stages, and a printer. - auto P = llvm::make_unique(); - P->appendStage(llvm::make_unique(S)); - P->appendStage(llvm::make_unique(SM)); + auto P = make_unique(); + P->appendStage(make_unique(S)); + P->appendStage(make_unique(SM)); mca::PipelinePrinter Printer(*P); // Create the views for this pipeline, execute, and emit a report. if (PrintInstructionInfoView) { - Printer.addView(llvm::make_unique( - *STI, *MCII, Insts, *IP)); + Printer.addView( + make_unique(*STI, *MCII, Insts, *IP)); } - Printer.addView( - llvm::make_unique(*STI, *IP, Insts)); + Printer.addView(make_unique(*STI, *IP, Insts)); if (!runPipeline(*P)) return 1; @@ -459,32 +457,31 @@ int main(int argc, char **argv) { mca::PipelinePrinter Printer(*P); if (PrintSummaryView) - Printer.addView(llvm::make_unique(SM, Insts, Width)); + Printer.addView(make_unique(SM, Insts, Width)); if (PrintInstructionInfoView) Printer.addView( - llvm::make_unique(*STI, *MCII, Insts, *IP)); + make_unique(*STI, *MCII, Insts, *IP)); if (PrintDispatchStats) - Printer.addView(llvm::make_unique()); + Printer.addView(make_unique()); if (PrintSchedulerStats) - Printer.addView(llvm::make_unique(*STI)); + Printer.addView(make_unique(*STI)); if (PrintRetireStats) - Printer.addView(llvm::make_unique()); + Printer.addView(make_unique()); if (PrintRegisterFileStats) - Printer.addView(llvm::make_unique(*STI)); + Printer.addView(make_unique(*STI)); if (PrintResourcePressureView) - Printer.addView( - llvm::make_unique(*STI, *IP, Insts)); + Printer.addView(make_unique(*STI, *IP, Insts)); if (PrintTimelineView) { unsigned TimelineIterations = TimelineMaxIterations ? TimelineMaxIterations : 10; - Printer.addView(llvm::make_unique( + Printer.addView(make_unique( *STI, *IP, Insts, std::min(TimelineIterations, S.getNumIterations()), TimelineMaxCycles)); } -- cgit v1.2.3