• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:gcov +full:- +full:options

1 //===--- BackendUtil.cpp - LLVM Backend Utilities -------------------------===//
8 //===----------------------------------------------------------------------===//
68 return TM->getTargetIRAnalysis(); in getTargetIRAnalysis()
76 CodeGenPasses->add( in getCodeGenPasses()
85 PerModulePasses->add( in getPerModulePasses()
94 PerFunctionPasses->add( in getPerFunctionPasses()
223 // It can benefit from re-running some general purpose optimization passes. in addMemorySanitizerPass()
251 TLII->disableAllFunctions(); in createTLII()
255 TLII->addVectorizableFunctionsFromVecLib(TargetLibraryInfoImpl::Accelerate); in createTLII()
271 MPM->add(createRewriteSymbolsPass(DL)); in addSymbolRewriterPass()
291 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
305 // Do not insert lifetime intrinsics at -O0. in CreatePasses()
327 // pipeline and pass down the in-memory function index. in CreatePasses()
329 assert(FunctionIndex && "Expected non-empty function index"); in CreatePasses()
399 // Set up the per-function pass manager. in CreatePasses()
402 FPM->add(createVerifierPass()); in CreatePasses()
405 // Set up the per-module pass manager. in CreatePasses()
412 // LLVM's -default-gcov-version flag is set to something invalid. in CreatePasses()
413 GCOVOptions Options; in CreatePasses() local
414 Options.EmitNotes = CodeGenOpts.EmitGcovNotes; in CreatePasses()
415 Options.EmitData = CodeGenOpts.EmitGcovArcs; in CreatePasses()
416 memcpy(Options.Version, CodeGenOpts.CoverageVersion, 4); in CreatePasses()
417 Options.UseCfgChecksum = CodeGenOpts.CoverageExtraChecksum; in CreatePasses()
418 Options.NoRedZone = CodeGenOpts.DisableRedZone; in CreatePasses()
419 Options.FunctionNamesInData = in CreatePasses()
421 Options.ExitBlockBeforeBody = CodeGenOpts.CoverageExitBlockBeforeBody; in CreatePasses()
422 MPM->add(createGCOVProfilerPass(Options)); in CreatePasses()
424 MPM->add(createStripSymbolsPass(true)); in CreatePasses()
428 InstrProfOptions Options; in CreatePasses() local
429 Options.NoRedZone = CodeGenOpts.DisableRedZone; in CreatePasses()
430 Options.InstrProfileOutput = CodeGenOpts.InstrProfileOutput; in CreatePasses()
431 MPM->add(createInstrProfilingPass(Options)); in CreatePasses()
435 MPM->add(createSampleProfileLoaderPass(CodeGenOpts.SampleProfileFile)); in CreatePasses()
443 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
465 BackendArgs.push_back("-debug-pass"); in CreateTargetMachine()
469 BackendArgs.push_back("-limit-float-precision"); in CreateTargetMachine()
475 llvm::cl::ParseCommandLineOptions(BackendArgs.size() - 1, in CreateTargetMachine()
488 assert(CodeGenOpts.RelocationModel == "dynamic-no-pic" && in CreateTargetMachine()
500 llvm::TargetOptions Options; in CreateTargetMachine() local
503 Options.Reciprocals = TargetRecip(TargetOpts.Reciprocals); in CreateTargetMachine()
505 Options.ThreadModel = in CreateTargetMachine()
514 Options.FloatABIType = in CreateTargetMachine()
524 Options.AllowFPOpFusion = llvm::FPOpFusion::Strict; in CreateTargetMachine()
527 Options.AllowFPOpFusion = llvm::FPOpFusion::Standard; in CreateTargetMachine()
530 Options.AllowFPOpFusion = llvm::FPOpFusion::Fast; in CreateTargetMachine()
534 Options.UseInitArray = CodeGenOpts.UseInitArray; in CreateTargetMachine()
535 Options.DisableIntegratedAS = CodeGenOpts.DisableIntegratedAS; in CreateTargetMachine()
536 Options.CompressDebugSections = CodeGenOpts.CompressDebugSections; in CreateTargetMachine()
539 Options.EABIVersion = llvm::StringSwitch<llvm::EABI>(CodeGenOpts.EABIVersion) in CreateTargetMachine()
545 Options.LessPreciseFPMADOption = CodeGenOpts.LessPreciseFPMAD; in CreateTargetMachine()
546 Options.NoInfsFPMath = CodeGenOpts.NoInfsFPMath; in CreateTargetMachine()
547 Options.NoNaNsFPMath = CodeGenOpts.NoNaNsFPMath; in CreateTargetMachine()
548 Options.NoZerosInBSS = CodeGenOpts.NoZeroInitializedInBSS; in CreateTargetMachine()
549 Options.UnsafeFPMath = CodeGenOpts.UnsafeFPMath; in CreateTargetMachine()
550 Options.StackAlignmentOverride = CodeGenOpts.StackAlignment; in CreateTargetMachine()
551 Options.PositionIndependentExecutable = LangOpts.PIELevel != 0; in CreateTargetMachine()
552 Options.FunctionSections = CodeGenOpts.FunctionSections; in CreateTargetMachine()
553 Options.DataSections = CodeGenOpts.DataSections; in CreateTargetMachine()
554 Options.UniqueSectionNames = CodeGenOpts.UniqueSectionNames; in CreateTargetMachine()
555 Options.EmulatedTLS = CodeGenOpts.EmulatedTLS; in CreateTargetMachine()
558 Options.DebuggerTuning = llvm::DebuggerKind::GDB; in CreateTargetMachine()
561 Options.DebuggerTuning = llvm::DebuggerKind::LLDB; in CreateTargetMachine()
564 Options.DebuggerTuning = llvm::DebuggerKind::SCE; in CreateTargetMachine()
570 Options.MCOptions.MCRelaxAll = CodeGenOpts.RelaxAll; in CreateTargetMachine()
571 Options.MCOptions.MCSaveTempLabels = CodeGenOpts.SaveTempLabels; in CreateTargetMachine()
572 Options.MCOptions.MCUseDwarfDirectory = !CodeGenOpts.NoDwarfDirectoryAsm; in CreateTargetMachine()
573 Options.MCOptions.MCNoExecStack = CodeGenOpts.NoExecStack; in CreateTargetMachine()
574 Options.MCOptions.MCIncrementalLinkerCompatible = in CreateTargetMachine()
576 Options.MCOptions.MCFatalWarnings = CodeGenOpts.FatalWarnings; in CreateTargetMachine()
577 Options.MCOptions.AsmVerbose = CodeGenOpts.AsmVerbose; in CreateTargetMachine()
578 Options.MCOptions.ABIName = TargetOpts.ABI; in CreateTargetMachine()
580 TargetMachine *TM = TheTarget->createTargetMachine(Triple, TargetOpts.CPU, in CreateTargetMachine()
581 FeaturesStr, Options, in CreateTargetMachine()
594 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
597 PM->add(new TargetLibraryInfoWrapperPass(*TLII)); in AddEmitPasses()
609 // Add ObjC ARC final-cleanup optimizations. This is done as part of the in AddEmitPasses()
613 PM->add(createObjCARCContractPass()); in AddEmitPasses()
615 if (TM->addPassesToEmitFile(*PM, OS, CGFT, in AddEmitPasses()
637 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssembly()
645 getPerModulePasses()->add(createBitcodeWriterPass( in EmitAssembly()
650 getPerModulePasses()->add( in EmitAssembly()
659 // Before executing passes, print the final values of the LLVM options. in EmitAssembly()
666 PrettyStackTraceString CrashInfo("Per-function optimization"); in EmitAssembly()
668 PerFunctionPasses->doInitialization(); in EmitAssembly()
671 PerFunctionPasses->run(F); in EmitAssembly()
672 PerFunctionPasses->doFinalization(); in EmitAssembly()
676 PrettyStackTraceString CrashInfo("Per-module optimization passes"); in EmitAssembly()
677 PerModulePasses->run(*TheModule); in EmitAssembly()
682 CodeGenPasses->run(*TheModule); in EmitAssembly()
701 std::string DLDesc = M->getDataLayout().getStringRepresentation(); in EmitBackendOutput()