llvm.org GIT mirror llvm / 09aba6b
[llvm-mca] Partially revert r346417. Restored the llvm:: namespace qualifier on make_unique. This removes the ambiguity with make_unique. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346424 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Davis 10 months ago
1 changed file(s) with 19 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
201201 if (OutputFilename == "")
202202 OutputFilename = "-";
203203 std::error_code EC;
204 auto Out = make_unique(OutputFilename, EC, sys::fs::F_None);
204 auto Out =
205 llvm::make_unique(OutputFilename, EC, sys::fs::F_None);
205206 if (!EC)
206207 return std::move(Out);
207208 return EC;
307308 TheTarget->createMCInstrAnalysis(MCII.get()));
308309
309310 if (!MCPU.compare("native"))
310 MCPU = sys::getHostCPUName();
311 MCPU = llvm::sys::getHostCPUName();
311312
312313 std::unique_ptr STI(
313314 TheTarget->createMCSubtargetInfo(TripleName, MCPU, /* FeaturesStr */ ""));
432433
433434 if (PrintInstructionTables) {
434435 // Create a pipeline, stages, and a printer.
435 auto P = make_unique();
436 P->appendStage(make_unique(S));
437 P->appendStage(make_unique(SM));
436 auto P = llvm::make_unique();
437 P->appendStage(llvm::make_unique(S));
438 P->appendStage(llvm::make_unique(SM));
438439 mca::PipelinePrinter Printer(*P);
439440
440441 // Create the views for this pipeline, execute, and emit a report.
441442 if (PrintInstructionInfoView) {
442 Printer.addView(
443 make_unique(*STI, *MCII, Insts, *IP));
443 Printer.addView(llvm::make_unique(
444 *STI, *MCII, Insts, *IP));
444445 }
445 Printer.addView(make_unique(*STI, *IP, Insts));
446 Printer.addView(
447 llvm::make_unique(*STI, *IP, Insts));
446448
447449 if (!runPipeline(*P))
448450 return 1;
456458 mca::PipelinePrinter Printer(*P);
457459
458460 if (PrintSummaryView)
459 Printer.addView(make_unique(SM, Insts, Width));
461 Printer.addView(llvm::make_unique(SM, Insts, Width));
460462
461463 if (PrintInstructionInfoView)
462464 Printer.addView(
463 make_unique(*STI, *MCII, Insts, *IP));
465 llvm::make_unique(*STI, *MCII, Insts, *IP));
464466
465467 if (PrintDispatchStats)
466 Printer.addView(make_unique());
468 Printer.addView(llvm::make_unique());
467469
468470 if (PrintSchedulerStats)
469 Printer.addView(make_unique(*STI));
471 Printer.addView(llvm::make_unique(*STI));
470472
471473 if (PrintRetireStats)
472 Printer.addView(make_unique());
474 Printer.addView(llvm::make_unique());
473475
474476 if (PrintRegisterFileStats)
475 Printer.addView(make_unique(*STI));
477 Printer.addView(llvm::make_unique(*STI));
476478
477479 if (PrintResourcePressureView)
478 Printer.addView(make_unique(*STI, *IP, Insts));
480 Printer.addView(
481 llvm::make_unique(*STI, *IP, Insts));
479482
480483 if (PrintTimelineView) {
481484 unsigned TimelineIterations =
482485 TimelineMaxIterations ? TimelineMaxIterations : 10;
483 Printer.addView(make_unique(
486 Printer.addView(llvm::make_unique(
484487 *STI, *IP, Insts, std::min(TimelineIterations, S.getNumIterations()),
485488 TimelineMaxCycles));
486489 }