Lines Matching refs:CodeGenOpts

110   const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts();  in createTargetCodeGenInfo()  local
172 else if (CodeGenOpts.FloatABI == "hard" || in createTargetCodeGenInfo()
173 (CodeGenOpts.FloatABI != "soft" && in createTargetCodeGenInfo()
187 CodeGenOpts.FloatABI == "soft" || Target.hasFeature("spe"); in createTargetCodeGenInfo()
191 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
202 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
212 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
238 bool SoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
254 CodeGenOpts.NumRegisterParameters); in createTargetCodeGenInfo()
258 CodeGenOpts.NumRegisterParameters, CodeGenOpts.FloatABI == "soft"); in createTargetCodeGenInfo()
337 PreprocessorOpts(PPO), CodeGenOpts(CGO), TheModule(M), Diags(diags), in CodeGenModule()
398 (!CodeGenOpts.RelaxedAliasing && CodeGenOpts.OptimizationLevel > 0)) in CodeGenModule()
399 TBAA.reset(new CodeGenTBAA(Context, TheModule, CodeGenOpts, getLangOpts(), in CodeGenModule()
404 if (CodeGenOpts.getDebugInfo() != llvm::codegenoptions::NoDebugInfo || in CodeGenModule()
405 CodeGenOpts.CoverageNotesFile.size() || in CodeGenModule()
406 CodeGenOpts.CoverageDataFile.size()) in CodeGenModule()
414 if (CodeGenOpts.hasProfileClangUse()) { in CodeGenModule()
416 CodeGenOpts.ProfileInstrumentUsePath, *FS, in CodeGenModule()
417 CodeGenOpts.ProfileRemappingFile); in CodeGenModule()
427 if (CodeGenOpts.CoverageMapping) in CodeGenModule()
431 if (CodeGenOpts.UniqueInternalLinkageNames && in CodeGenModule()
866 if (CodeGenOpts.SanitizeCfiCrossDso) { in Release()
926 if (CodeGenOpts.Autolink && in Release()
952 CodeGenOpts.NumRegisterParameters); in Release()
954 if (CodeGenOpts.DwarfVersion) { in Release()
956 CodeGenOpts.DwarfVersion); in Release()
959 if (CodeGenOpts.Dwarf64) in Release()
966 if (CodeGenOpts.EmitCodeView) { in Release()
970 if (CodeGenOpts.CodeViewGHash) { in Release()
973 if (CodeGenOpts.ControlFlowGuard) { in Release()
976 } else if (CodeGenOpts.ControlFlowGuardNoChecks) { in Release()
980 if (CodeGenOpts.EHContGuard) { in Release()
988 if (CodeGenOpts.OptimizationLevel > 0 && CodeGenOpts.StrictVTablePointers) { in Release()
1078 if (CodeGenOpts.SanitizeCfiCrossDso) { in Release()
1083 if (CodeGenOpts.WholeProgramVTables) { in Release()
1088 CodeGenOpts.VirtualFunctionElimination); in Release()
1094 CodeGenOpts.SanitizeCfiCanonicalJumpTables); in Release()
1101 if (CodeGenOpts.PatchableFunctionEntryOffset) in Release()
1103 CodeGenOpts.PatchableFunctionEntryOffset); in Release()
1106 if (CodeGenOpts.CFProtectionReturn && in Release()
1113 if (CodeGenOpts.CFProtectionBranch && in Release()
1120 if (CodeGenOpts.FunctionReturnThunks) in Release()
1123 if (CodeGenOpts.IndirectBranchCSPrefix) in Release()
1166 if (CodeGenOpts.StackClashProtector) in Release()
1171 if (CodeGenOpts.StackProbeSize && CodeGenOpts.StackProbeSize != 4096) in Release()
1173 CodeGenOpts.StackProbeSize); in Release()
1175 if (!CodeGenOpts.MemoryProfileOutput.empty()) { in Release()
1179 llvm::MDString::get(Ctx, CodeGenOpts.MemoryProfileOutput)); in Release()
1187 CodeGenOpts.FP32DenormalMode.Output != in Release()
1254 if (CodeGenOpts.NoPLT) in Release()
1257 CodeGenOpts.DirectAccessExternalData != in Release()
1260 CodeGenOpts.DirectAccessExternalData); in Release()
1262 if (CodeGenOpts.UnwindTables) in Release()
1263 getModule().setUwtable(llvm::UWTableKind(CodeGenOpts.UnwindTables)); in Release()
1265 switch (CodeGenOpts.getFramePointer()) { in Release()
1324 EmbedObject(&getModule(), CodeGenOpts, getDiags()); in Release()
1350 const CodeGenOptions &CodeGenOpts) { in EmitBackendOptionsMetadata() argument
1353 CodeGenOpts.SmallDataLimit); in EmitBackendOptionsMetadata()
1672 GV->setPartition(CodeGenOpts.SymbolPartition); in setGVPropertiesAux()
1685 switch (CodeGenOpts.getDefaultTLSModel()) { in GetDefaultLLVMTLSModel()
2049 if (CodeGenOpts.RegisterGlobalDtorsWithAtExit && in AddGlobalDtor()
2387 if ((!D || !D->hasAttr<NoUwtableAttr>()) && CodeGenOpts.UnwindTables) in SetLLVMFunctionAttributesForDefinition()
2388 B.addUWTableAttr(llvm::UWTableKind(CodeGenOpts.UnwindTables)); in SetLLVMFunctionAttributesForDefinition()
2390 if (CodeGenOpts.StackClashProtector) in SetLLVMFunctionAttributesForDefinition()
2393 if (CodeGenOpts.StackProbeSize && CodeGenOpts.StackProbeSize != 4096) in SetLLVMFunctionAttributesForDefinition()
2395 std::to_string(CodeGenOpts.StackProbeSize)); in SetLLVMFunctionAttributesForDefinition()
2417 CodeGenOpts.getInlining() == CodeGenOptions::OnlyAlwaysInlining) in SetLLVMFunctionAttributesForDefinition()
2439 !CodeGenOpts.DisableO0ImplyOptNone && CodeGenOpts.OptimizationLevel == 0; in SetLLVMFunctionAttributesForDefinition()
2473 } else if (CodeGenOpts.getInlining() == CodeGenOptions::OnlyAlwaysInlining) { in SetLLVMFunctionAttributesForDefinition()
2496 } else if (CodeGenOpts.getInlining() == in SetLLVMFunctionAttributesForDefinition()
2540 if (CodeGenOpts.SanitizeCfiCrossDso && in SetLLVMFunctionAttributesForDefinition()
2541 CodeGenOpts.SanitizeCfiCanonicalJumpTables) { in SetLLVMFunctionAttributesForDefinition()
2576 ((CodeGenOpts.KeepPersistentStorageVariables && in SetCommonAttributes()
2579 (CodeGenOpts.KeepStaticConsts && VD->getStorageDuration() == SD_Static && in SetCommonAttributes()
2745 if (CodeGenOpts.SanitizeCfiCrossDso) in CreateFunctionTypeMetadataForIcall()
2876 if (!CodeGenOpts.SanitizeCfiCrossDso || in SetFunctionAttributes()
2877 !CodeGenOpts.SanitizeCfiCanonicalJumpTables) in SetFunctionAttributes()
2886 if (CodeGenOpts.InlineMaxStackSize != UINT_MAX) in SetFunctionAttributes()
2887 F->addFnAttr("inline-max-stacksize", llvm::utostr(CodeGenOpts.InlineMaxStackSize)); in SetFunctionAttributes()
3474 ((CodeGenOpts.KeepPersistentStorageVariables && in MustBeEmitted()
3477 (CodeGenOpts.KeepStaticConsts && VD->getStorageDuration() == SD_Static && in MustBeEmitted()
3986 if (CodeGenOpts.OptimizationLevel == 0 && !F->hasAttr<AlwaysInlineAttr>()) in shouldEmitFunction()
4034 return CodeGenOpts.OptimizationLevel > 0; in shouldOpportunisticallyEmitVTables()
5665 CodeGenOpts.NoCommon)) in getLLVMLinkageForDeclarator()
6244 return !CodeGenOpts.EmitCodeView || CodeGenOpts.DebugColumnInfo; in getExpressionLocationsEnabled()
7030 if (!CodeGenOpts.CoverageMapping) in AddDeferredUnusedCoverageMapping()
7054 if (!CodeGenOpts.CoverageMapping) in ClearUnusedCoverageMapping()
7444 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIVCall)) || in NeedAllVtablesTypeId()
7446 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFINVCall)) || in NeedAllVtablesTypeId()
7448 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIDerivedCast)) || in NeedAllVtablesTypeId()
7450 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIUnrelatedCast))); in NeedAllVtablesTypeId()
7460 if (CodeGenOpts.SanitizeCfiCrossDso) in AddVTableTypeMetadata()