• Home
  • Raw
  • Download

Lines Matching refs:CodeGenOpts

57   const CodeGenOptions &CodeGenOpts;  member in __anon1dda7daf0111::EmitAssemblyHelper
127 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts), in EmitAssemblyHelper()
136 if (CodeGenOpts.DisableFree) in ~EmitAssemblyHelper()
281 const CodeGenOptions &CodeGenOpts) { in createTLII() argument
283 if (!CodeGenOpts.SimplifyLibCalls) in createTLII()
288 for (auto &FuncName : CodeGenOpts.getNoBuiltinFuncs()) in createTLII()
293 switch (CodeGenOpts.getVecLib()) { in createTLII()
315 if (CodeGenOpts.DisableLLVMPasses) in CreatePasses()
318 unsigned OptLevel = CodeGenOpts.OptimizationLevel; in CreatePasses()
319 CodeGenOptions::InliningMethod Inlining = CodeGenOpts.getInlining(); in CreatePasses()
323 if (CodeGenOpts.DisableLLVMOpts) { in CreatePasses()
325 Inlining = CodeGenOpts.NoInlining; in CreatePasses()
328 PassManagerBuilderWrapper PMBuilder(CodeGenOpts, LangOpts); in CreatePasses()
332 PMBuilder.LibraryInfo = createTLII(TargetTriple, CodeGenOpts); in CreatePasses()
340 createFunctionInliningPass(OptLevel, CodeGenOpts.OptimizeSize); in CreatePasses()
354 PMBuilder.SizeLevel = CodeGenOpts.OptimizeSize; in CreatePasses()
355 PMBuilder.BBVectorize = CodeGenOpts.VectorizeBB; in CreatePasses()
356 PMBuilder.SLPVectorize = CodeGenOpts.VectorizeSLP; in CreatePasses()
357 PMBuilder.LoopVectorize = CodeGenOpts.VectorizeLoop; in CreatePasses()
359 PMBuilder.DisableUnrollLoops = !CodeGenOpts.UnrollLoops; in CreatePasses()
360 PMBuilder.MergeFunctions = CodeGenOpts.MergeFunctions; in CreatePasses()
361 PMBuilder.PrepareForThinLTO = CodeGenOpts.EmitSummaryIndex; in CreatePasses()
362 PMBuilder.PrepareForLTO = CodeGenOpts.PrepareForLTO; in CreatePasses()
363 PMBuilder.RerollLoops = CodeGenOpts.RerollLoops; in CreatePasses()
403 if (CodeGenOpts.SanitizeCoverageType || in CreatePasses()
404 CodeGenOpts.SanitizeCoverageIndirectCalls || in CreatePasses()
405 CodeGenOpts.SanitizeCoverageTraceCmp) { in CreatePasses()
456 if (CodeGenOpts.VerifyModule) in CreatePasses()
460 if (!CodeGenOpts.RewriteMapFiles.empty()) in CreatePasses()
461 addSymbolRewriterPass(CodeGenOpts, MPM); in CreatePasses()
463 if (!CodeGenOpts.DisableGCov && in CreatePasses()
464 (CodeGenOpts.EmitGcovArcs || CodeGenOpts.EmitGcovNotes)) { in CreatePasses()
468 Options.EmitNotes = CodeGenOpts.EmitGcovNotes; in CreatePasses()
469 Options.EmitData = CodeGenOpts.EmitGcovArcs; in CreatePasses()
470 memcpy(Options.Version, CodeGenOpts.CoverageVersion, 4); in CreatePasses()
471 Options.UseCfgChecksum = CodeGenOpts.CoverageExtraChecksum; in CreatePasses()
472 Options.NoRedZone = CodeGenOpts.DisableRedZone; in CreatePasses()
474 !CodeGenOpts.CoverageNoFunctionNamesInData; in CreatePasses()
475 Options.ExitBlockBeforeBody = CodeGenOpts.CoverageExitBlockBeforeBody; in CreatePasses()
477 if (CodeGenOpts.getDebugInfo() == codegenoptions::NoDebugInfo) in CreatePasses()
481 if (CodeGenOpts.hasProfileClangInstr()) { in CreatePasses()
483 Options.NoRedZone = CodeGenOpts.DisableRedZone; in CreatePasses()
484 Options.InstrProfileOutput = CodeGenOpts.InstrProfileOutput; in CreatePasses()
487 if (CodeGenOpts.hasProfileIRInstr()) { in CreatePasses()
488 if (!CodeGenOpts.InstrProfileOutput.empty()) in CreatePasses()
489 PMBuilder.PGOInstrGen = CodeGenOpts.InstrProfileOutput; in CreatePasses()
493 if (CodeGenOpts.hasProfileIRUse()) in CreatePasses()
494 PMBuilder.PGOInstrUse = CodeGenOpts.ProfileInstrumentUsePath; in CreatePasses()
496 if (!CodeGenOpts.SampleProfileFile.empty()) { in CreatePasses()
498 MPM->add(createSampleProfileLoaderPass(CodeGenOpts.SampleProfileFile)); in CreatePasses()
510 if (!CodeGenOpts.DebugPass.empty()) { in setCommandLineOpts()
512 BackendArgs.push_back(CodeGenOpts.DebugPass.c_str()); in setCommandLineOpts()
514 if (!CodeGenOpts.LimitFloatPrecision.empty()) { in setCommandLineOpts()
516 BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str()); in setCommandLineOpts()
518 for (const std::string &BackendOption : CodeGenOpts.BackendOptions) in setCommandLineOpts()
537 llvm::StringSwitch<unsigned>(CodeGenOpts.CodeModel) in CreateTargetMachine()
552 if (CodeGenOpts.RelocationModel == "static") { in CreateTargetMachine()
554 } else if (CodeGenOpts.RelocationModel == "pic") { in CreateTargetMachine()
557 assert(CodeGenOpts.RelocationModel == "dynamic-no-pic" && in CreateTargetMachine()
563 switch (CodeGenOpts.OptimizationLevel) { in CreateTargetMachine()
575 llvm::StringSwitch<llvm::ThreadModel::Model>(CodeGenOpts.ThreadModel) in CreateTargetMachine()
580 assert((CodeGenOpts.FloatABI == "soft" || CodeGenOpts.FloatABI == "softfp" || in CreateTargetMachine()
581 CodeGenOpts.FloatABI == "hard" || CodeGenOpts.FloatABI.empty()) && in CreateTargetMachine()
584 llvm::StringSwitch<llvm::FloatABI::ABIType>(CodeGenOpts.FloatABI) in CreateTargetMachine()
591 switch (CodeGenOpts.getFPContractMode()) { in CreateTargetMachine()
603 Options.UseInitArray = CodeGenOpts.UseInitArray; in CreateTargetMachine()
604 Options.DisableIntegratedAS = CodeGenOpts.DisableIntegratedAS; in CreateTargetMachine()
605 Options.CompressDebugSections = CodeGenOpts.CompressDebugSections; in CreateTargetMachine()
606 Options.RelaxELFRelocations = CodeGenOpts.RelaxELFRelocations; in CreateTargetMachine()
618 Options.LessPreciseFPMADOption = CodeGenOpts.LessPreciseFPMAD; in CreateTargetMachine()
619 Options.NoInfsFPMath = CodeGenOpts.NoInfsFPMath; in CreateTargetMachine()
620 Options.NoNaNsFPMath = CodeGenOpts.NoNaNsFPMath; in CreateTargetMachine()
621 Options.NoZerosInBSS = CodeGenOpts.NoZeroInitializedInBSS; in CreateTargetMachine()
622 Options.UnsafeFPMath = CodeGenOpts.UnsafeFPMath; in CreateTargetMachine()
623 Options.StackAlignmentOverride = CodeGenOpts.StackAlignment; in CreateTargetMachine()
624 Options.FunctionSections = CodeGenOpts.FunctionSections; in CreateTargetMachine()
625 Options.DataSections = CodeGenOpts.DataSections; in CreateTargetMachine()
626 Options.UniqueSectionNames = CodeGenOpts.UniqueSectionNames; in CreateTargetMachine()
627 Options.EmulatedTLS = CodeGenOpts.EmulatedTLS; in CreateTargetMachine()
628 Options.DebuggerTuning = CodeGenOpts.getDebuggerTuning(); in CreateTargetMachine()
630 Options.MCOptions.MCRelaxAll = CodeGenOpts.RelaxAll; in CreateTargetMachine()
631 Options.MCOptions.MCSaveTempLabels = CodeGenOpts.SaveTempLabels; in CreateTargetMachine()
632 Options.MCOptions.MCUseDwarfDirectory = !CodeGenOpts.NoDwarfDirectoryAsm; in CreateTargetMachine()
633 Options.MCOptions.MCNoExecStack = CodeGenOpts.NoExecStack; in CreateTargetMachine()
635 CodeGenOpts.IncrementalLinkerCompatible; in CreateTargetMachine()
636 Options.MCOptions.MCFatalWarnings = CodeGenOpts.FatalWarnings; in CreateTargetMachine()
637 Options.MCOptions.AsmVerbose = CodeGenOpts.AsmVerbose; in CreateTargetMachine()
656 createTLII(TargetTriple, CodeGenOpts)); in AddEmitPasses()
672 if (CodeGenOpts.OptimizationLevel > 0) in AddEmitPasses()
676 /*DisableVerify=*/!CodeGenOpts.VerifyModule)) { in AddEmitPasses()
705 if (!CodeGenOpts.ThinLTOIndexFile.empty()) { in EmitAssembly()
708 CodeGenOpts.ThinLTOIndexFile, [&](const DiagnosticInfo &DI) { in EmitAssembly()
713 errs() << "Error loading index file '" << CodeGenOpts.ThinLTOIndexFile in EmitAssembly()
729 *OS, CodeGenOpts.EmitLLVMUseLists, CodeGenOpts.EmitSummaryIndex, in EmitAssembly()
730 CodeGenOpts.EmitSummaryIndex)); in EmitAssembly()
735 createPrintModulePass(*OS, "", CodeGenOpts.EmitLLVMUseLists)); in EmitAssembly()