llvm.org GIT mirror llvm / c6216b0
[llvm-mca] Remove unneeded namespace qualifier. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346417 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Davis 10 months ago
1 changed file(s) with 21 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
201201 if (OutputFilename == "")
202202 OutputFilename = "-";
203203 std::error_code EC;
204 auto Out =
205 llvm::make_unique(OutputFilename, EC, sys::fs::F_None);
204 auto Out = make_unique(OutputFilename, EC, sys::fs::F_None);
206205 if (!EC)
207206 return std::move(Out);
208207 return EC;
250249 InitLLVM X(argc, argv);
251250
252251 // Initialize targets and assembly parsers.
253 llvm::InitializeAllTargetInfos();
254 llvm::InitializeAllTargetMCs();
255 llvm::InitializeAllAsmParsers();
252 InitializeAllTargetInfos();
253 InitializeAllTargetMCs();
254 InitializeAllAsmParsers();
256255
257256 // Enable printing of available targets when flag --version is specified.
258257 cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
308307 TheTarget->createMCInstrAnalysis(MCII.get()));
309308
310309 if (!MCPU.compare("native"))
311 MCPU = llvm::sys::getHostCPUName();
310 MCPU = sys::getHostCPUName();
312311
313312 std::unique_ptr STI(
314313 TheTarget->createMCSubtargetInfo(TripleName, MCPU, /* FeaturesStr */ ""));
367366 return 1;
368367 }
369368
370 std::unique_ptr<llvm::ToolOutputFile> TOF = std::move(*OF);
369 std::unique_ptr<ToolOutputFile> TOF = std::move(*OF);
371370
372371 const MCSchedModel &SM = STI->getSchedModel();
373372
406405 ArrayRef Insts = Region->getInstructions();
407406 std::vector> LoweredSequence;
408407 for (const MCInst &MCI : Insts) {
409 llvm::Expected> Inst =
408 Expected> Inst =
410409 IB.createInstruction(MCI);
411410 if (!Inst) {
412411 if (auto NewE = handleErrors(
433432
434433 if (PrintInstructionTables) {
435434 // Create a pipeline, stages, and a printer.
436 auto P = llvm::make_unique();
437 P->appendStage(llvm::make_unique(S));
438 P->appendStage(llvm::make_unique(SM));
435 auto P = make_unique();
436 P->appendStage(make_unique(S));
437 P->appendStage(make_unique(SM));
439438 mca::PipelinePrinter Printer(*P);
440439
441440 // Create the views for this pipeline, execute, and emit a report.
442441 if (PrintInstructionInfoView) {
443 Printer.addView(llvm::make_unique(
444 *STI, *MCII, Insts, *IP));
442 Printer.addView(
443 make_unique(*STI, *MCII, Insts, *IP));
445444 }
446 Printer.addView(
447 llvm::make_unique(*STI, *IP, Insts));
445 Printer.addView(make_unique(*STI, *IP, Insts));
448446
449447 if (!runPipeline(*P))
450448 return 1;
458456 mca::PipelinePrinter Printer(*P);
459457
460458 if (PrintSummaryView)
461 Printer.addView(llvm::make_unique(SM, Insts, Width));
459 Printer.addView(make_unique(SM, Insts, Width));
462460
463461 if (PrintInstructionInfoView)
464462 Printer.addView(
465 llvm::make_unique(*STI, *MCII, Insts, *IP));
463 make_unique(*STI, *MCII, Insts, *IP));
466464
467465 if (PrintDispatchStats)
468 Printer.addView(llvm::make_unique());
466 Printer.addView(make_unique());
469467
470468 if (PrintSchedulerStats)
471 Printer.addView(llvm::make_unique(*STI));
469 Printer.addView(make_unique(*STI));
472470
473471 if (PrintRetireStats)
474 Printer.addView(llvm::make_unique());
472 Printer.addView(make_unique());
475473
476474 if (PrintRegisterFileStats)
477 Printer.addView(llvm::make_unique(*STI));
475 Printer.addView(make_unique(*STI));
478476
479477 if (PrintResourcePressureView)
480 Printer.addView(
481 llvm::make_unique(*STI, *IP, Insts));
478 Printer.addView(make_unique(*STI, *IP, Insts));
482479
483480 if (PrintTimelineView) {
484481 unsigned TimelineIterations =
485482 TimelineMaxIterations ? TimelineMaxIterations : 10;
486 Printer.addView(llvm::make_unique(
483 Printer.addView(make_unique(
487484 *STI, *IP, Insts, std::min(TimelineIterations, S.getNumIterations()),
488485 TimelineMaxCycles));
489486 }