Lines Matching refs:CodeGenOpts

53   const CodeGenOptions &CodeGenOpts;  member in __anona74313260111::EmitAssemblyHelper
122 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts), in EmitAssemblyHelper()
131 if (CodeGenOpts.DisableFree) in ~EmitAssemblyHelper()
248 const CodeGenOptions &CodeGenOpts) { in createTLII() argument
250 if (!CodeGenOpts.SimplifyLibCalls) in createTLII()
253 switch (CodeGenOpts.getVecLib()) { in createTLII()
275 if (CodeGenOpts.DisableLLVMPasses) in CreatePasses()
278 unsigned OptLevel = CodeGenOpts.OptimizationLevel; in CreatePasses()
279 CodeGenOptions::InliningMethod Inlining = CodeGenOpts.getInlining(); in CreatePasses()
283 if (CodeGenOpts.DisableLLVMOpts) { in CreatePasses()
285 Inlining = CodeGenOpts.NoInlining; in CreatePasses()
288 PassManagerBuilderWrapper PMBuilder(CodeGenOpts, LangOpts); in CreatePasses()
292 PMBuilder.LibraryInfo = createTLII(TargetTriple, CodeGenOpts); in CreatePasses()
299 createFunctionInliningPass(OptLevel, CodeGenOpts.OptimizeSize); in CreatePasses()
313 PMBuilder.SizeLevel = CodeGenOpts.OptimizeSize; in CreatePasses()
314 PMBuilder.BBVectorize = CodeGenOpts.VectorizeBB; in CreatePasses()
315 PMBuilder.SLPVectorize = CodeGenOpts.VectorizeSLP; in CreatePasses()
316 PMBuilder.LoopVectorize = CodeGenOpts.VectorizeLoop; in CreatePasses()
318 PMBuilder.DisableUnitAtATime = !CodeGenOpts.UnitAtATime; in CreatePasses()
319 PMBuilder.DisableUnrollLoops = !CodeGenOpts.UnrollLoops; in CreatePasses()
320 PMBuilder.MergeFunctions = CodeGenOpts.MergeFunctions; in CreatePasses()
321 PMBuilder.PrepareForLTO = CodeGenOpts.PrepareForLTO; in CreatePasses()
322 PMBuilder.RerollLoops = CodeGenOpts.RerollLoops; in CreatePasses()
328 if (!CodeGenOpts.ThinLTOIndexFile.empty()) { in CreatePasses()
355 if (CodeGenOpts.SanitizeCoverageType || in CreatePasses()
356 CodeGenOpts.SanitizeCoverageIndirectCalls || in CreatePasses()
357 CodeGenOpts.SanitizeCoverageTraceCmp) { in CreatePasses()
401 if (CodeGenOpts.VerifyModule) in CreatePasses()
406 if (!CodeGenOpts.RewriteMapFiles.empty()) in CreatePasses()
407 addSymbolRewriterPass(CodeGenOpts, MPM); in CreatePasses()
409 if (!CodeGenOpts.DisableGCov && in CreatePasses()
410 (CodeGenOpts.EmitGcovArcs || CodeGenOpts.EmitGcovNotes)) { in CreatePasses()
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()
420 !CodeGenOpts.CoverageNoFunctionNamesInData; in CreatePasses()
421 Options.ExitBlockBeforeBody = CodeGenOpts.CoverageExitBlockBeforeBody; in CreatePasses()
423 if (CodeGenOpts.getDebugInfo() == CodeGenOptions::NoDebugInfo) in CreatePasses()
427 if (CodeGenOpts.ProfileInstrGenerate) { in CreatePasses()
429 Options.NoRedZone = CodeGenOpts.DisableRedZone; in CreatePasses()
430 Options.InstrProfileOutput = CodeGenOpts.InstrProfileOutput; in CreatePasses()
434 if (!CodeGenOpts.SampleProfileFile.empty()) in CreatePasses()
435 MPM->add(createSampleProfileLoaderPass(CodeGenOpts.SampleProfileFile)); in CreatePasses()
452 llvm::StringSwitch<unsigned>(CodeGenOpts.CodeModel) in CreateTargetMachine()
464 if (!CodeGenOpts.DebugPass.empty()) { in CreateTargetMachine()
466 BackendArgs.push_back(CodeGenOpts.DebugPass.c_str()); in CreateTargetMachine()
468 if (!CodeGenOpts.LimitFloatPrecision.empty()) { in CreateTargetMachine()
470 BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str()); in CreateTargetMachine()
472 for (const std::string &BackendOption : CodeGenOpts.BackendOptions) in CreateTargetMachine()
483 if (CodeGenOpts.RelocationModel == "static") { in CreateTargetMachine()
485 } else if (CodeGenOpts.RelocationModel == "pic") { in CreateTargetMachine()
488 assert(CodeGenOpts.RelocationModel == "dynamic-no-pic" && in CreateTargetMachine()
494 switch (CodeGenOpts.OptimizationLevel) { in CreateTargetMachine()
506 llvm::StringSwitch<llvm::ThreadModel::Model>(CodeGenOpts.ThreadModel) in CreateTargetMachine()
511 assert((CodeGenOpts.FloatABI == "soft" || CodeGenOpts.FloatABI == "softfp" || in CreateTargetMachine()
512 CodeGenOpts.FloatABI == "hard" || CodeGenOpts.FloatABI.empty()) && in CreateTargetMachine()
515 llvm::StringSwitch<llvm::FloatABI::ABIType>(CodeGenOpts.FloatABI) in CreateTargetMachine()
522 switch (CodeGenOpts.getFPContractMode()) { 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()
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()
556 switch (CodeGenOpts.getDebuggerTuning()) { 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()
575 CodeGenOpts.IncrementalLinkerCompatible; in CreateTargetMachine()
576 Options.MCOptions.MCFatalWarnings = CodeGenOpts.FatalWarnings; in CreateTargetMachine()
577 Options.MCOptions.AsmVerbose = CodeGenOpts.AsmVerbose; in CreateTargetMachine()
596 createTLII(TargetTriple, CodeGenOpts)); in AddEmitPasses()
612 if (CodeGenOpts.OptimizationLevel > 0) in AddEmitPasses()
616 /*DisableVerify=*/!CodeGenOpts.VerifyModule)) { in AddEmitPasses()
646 *OS, CodeGenOpts.EmitLLVMUseLists, CodeGenOpts.EmitFunctionSummary)); in EmitAssembly()
651 createPrintModulePass(*OS, "", CodeGenOpts.EmitLLVMUseLists)); in EmitAssembly()