Lines Matching defs:CodeGenOpts

46   const CodeGenOptions &CodeGenOpts;
113 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts),
210 unsigned OptLevel = CodeGenOpts.OptimizationLevel;
211 CodeGenOptions::InliningMethod Inlining = CodeGenOpts.getInlining();
215 if (CodeGenOpts.DisableLLVMOpts) {
217 Inlining = CodeGenOpts.NoInlining;
220 PassManagerBuilderWrapper PMBuilder(CodeGenOpts, LangOpts);
222 PMBuilder.SizeLevel = CodeGenOpts.OptimizeSize;
223 PMBuilder.BBVectorize = CodeGenOpts.VectorizeBB;
224 PMBuilder.SLPVectorize = CodeGenOpts.VectorizeSLP;
225 PMBuilder.LoopVectorize = CodeGenOpts.VectorizeLoop;
227 PMBuilder.DisableUnitAtATime = !CodeGenOpts.UnitAtATime;
228 PMBuilder.DisableUnrollLoops = !CodeGenOpts.UnrollLoops;
271 if (!CodeGenOpts.SimplifyLibCalls)
279 if (CodeGenOpts.OptimizeSize == 1) // -Os
281 else if (CodeGenOpts.OptimizeSize == 2) // -Oz
300 if (CodeGenOpts.VerifyModule)
307 if (!CodeGenOpts.DisableGCov &&
308 (CodeGenOpts.EmitGcovArcs || CodeGenOpts.EmitGcovNotes)) {
312 Options.EmitNotes = CodeGenOpts.EmitGcovNotes;
313 Options.EmitData = CodeGenOpts.EmitGcovArcs;
314 memcpy(Options.Version, CodeGenOpts.CoverageVersion, 4);
315 Options.UseCfgChecksum = CodeGenOpts.CoverageExtraChecksum;
316 Options.NoRedZone = CodeGenOpts.DisableRedZone;
318 !CodeGenOpts.CoverageNoFunctionNamesInData;
320 if (CodeGenOpts.getDebugInfo() == CodeGenOptions::NoDebugInfo)
342 TargetMachine::setAsmVerbosityDefault(CodeGenOpts.AsmVerbose);
344 TargetMachine::setFunctionSections(CodeGenOpts.FunctionSections);
345 TargetMachine::setDataSections (CodeGenOpts.DataSections);
349 if (CodeGenOpts.CodeModel == "small") {
351 } else if (CodeGenOpts.CodeModel == "kernel") {
353 } else if (CodeGenOpts.CodeModel == "medium") {
355 } else if (CodeGenOpts.CodeModel == "large") {
358 assert(CodeGenOpts.CodeModel.empty() && "Invalid code model!");
364 if (!CodeGenOpts.DebugPass.empty()) {
366 BackendArgs.push_back(CodeGenOpts.DebugPass.c_str());
368 if (!CodeGenOpts.LimitFloatPrecision.empty()) {
370 BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str());
374 for (unsigned i = 0, e = CodeGenOpts.BackendOptions.size(); i != e; ++i)
375 BackendArgs.push_back(CodeGenOpts.BackendOptions[i].c_str());
376 if (CodeGenOpts.NoGlobalMerge)
393 if (CodeGenOpts.RelocationModel == "static") {
395 } else if (CodeGenOpts.RelocationModel == "pic") {
398 assert(CodeGenOpts.RelocationModel == "dynamic-no-pic" &&
404 switch (CodeGenOpts.OptimizationLevel) {
413 if (!CodeGenOpts.DisableFPElim) {
415 } else if (CodeGenOpts.OmitLeafFramePointer) {
421 if (CodeGenOpts.UseInitArray)
425 if (CodeGenOpts.FloatABI == "soft" || CodeGenOpts.FloatABI == "softfp")
427 else if (CodeGenOpts.FloatABI == "hard")
430 assert(CodeGenOpts.FloatABI.empty() && "Invalid float abi!");
435 switch (CodeGenOpts.getFPContractMode()) {
447 Options.LessPreciseFPMADOption = CodeGenOpts.LessPreciseFPMAD;
448 Options.NoInfsFPMath = CodeGenOpts.NoInfsFPMath;
449 Options.NoNaNsFPMath = CodeGenOpts.NoNaNsFPMath;
450 Options.NoZerosInBSS = CodeGenOpts.NoZeroInitializedInBSS;
451 Options.UnsafeFPMath = CodeGenOpts.UnsafeFPMath;
452 Options.UseSoftFloat = CodeGenOpts.SoftFloat;
453 Options.StackAlignmentOverride = CodeGenOpts.StackAlignment;
454 Options.DisableTailCalls = CodeGenOpts.DisableTailCalls;
455 Options.TrapFuncName = CodeGenOpts.TrapFuncName;
457 Options.EnableSegmentedStacks = CodeGenOpts.EnableSegmentedStacks;
463 if (CodeGenOpts.RelaxAll)
465 if (CodeGenOpts.SaveTempLabels)
467 if (CodeGenOpts.NoDwarf2CFIAsm)
469 if (!CodeGenOpts.NoDwarfDirectoryAsm)
471 if (CodeGenOpts.NoExecStack)
487 if (!CodeGenOpts.SimplifyLibCalls)
508 CodeGenOpts.OptimizationLevel > 0)
512 /*DisableVerify=*/!CodeGenOpts.VerifyModule)) {
529 llvm::OwningPtr<TargetMachine> TMOwner(CodeGenOpts.DisableFree ? 0 : TM);