Lines Matching refs:CodeGenOpts

113   const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts();  in createTargetCodeGenInfo()  local
179 else if (CodeGenOpts.FloatABI == "hard" || in createTargetCodeGenInfo()
180 (CodeGenOpts.FloatABI != "soft" && Triple.isHardFloatABI())) in createTargetCodeGenInfo()
191 CodeGenOpts.FloatABI == "soft" || Target.hasFeature("spe"); in createTargetCodeGenInfo()
195 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
206 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
216 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
242 bool SoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo()
258 CodeGenOpts.NumRegisterParameters); in createTargetCodeGenInfo()
262 CodeGenOpts.NumRegisterParameters, CodeGenOpts.FloatABI == "soft"); in createTargetCodeGenInfo()
341 PreprocessorOpts(PPO), CodeGenOpts(CGO), TheModule(M), Diags(diags), in CodeGenModule()
404 (!CodeGenOpts.RelaxedAliasing && CodeGenOpts.OptimizationLevel > 0)) in CodeGenModule()
405 TBAA.reset(new CodeGenTBAA(Context, getTypes(), TheModule, CodeGenOpts, in CodeGenModule()
410 if (CodeGenOpts.getDebugInfo() != llvm::codegenoptions::NoDebugInfo || in CodeGenModule()
411 CodeGenOpts.CoverageNotesFile.size() || in CodeGenModule()
412 CodeGenOpts.CoverageDataFile.size()) in CodeGenModule()
420 if (CodeGenOpts.hasProfileClangUse()) { in CodeGenModule()
422 CodeGenOpts.ProfileInstrumentUsePath, *FS, in CodeGenModule()
423 CodeGenOpts.ProfileRemappingFile); in CodeGenModule()
433 if (CodeGenOpts.CoverageMapping) in CodeGenModule()
437 if (CodeGenOpts.UniqueInternalLinkageNames && in CodeGenModule()
452 CodeGenOpts.NumRegisterParameters); in CodeGenModule()
642 const CodeGenOptions &CodeGenOpts, in checkAliasForTocData() argument
648 if ((llvm::binary_search(CodeGenOpts.TocDataVarsUserSpecified, GVId))) { in checkAliasForTocData()
905 if (CodeGenOpts.SanitizeCfiCrossDso) { in Release()
974 if (CodeGenOpts.Autolink && in Release()
997 if (CodeGenOpts.DwarfVersion) { in Release()
999 CodeGenOpts.DwarfVersion); in Release()
1002 if (CodeGenOpts.Dwarf64) in Release()
1009 if (CodeGenOpts.EmitCodeView) { in Release()
1013 if (CodeGenOpts.CodeViewGHash) { in Release()
1016 if (CodeGenOpts.ControlFlowGuard) { in Release()
1019 } else if (CodeGenOpts.ControlFlowGuardNoChecks) { in Release()
1023 if (CodeGenOpts.EHContGuard) { in Release()
1031 if (CodeGenOpts.OptimizationLevel > 0 && CodeGenOpts.StrictVTablePointers) { in Release()
1118 if (CodeGenOpts.SanitizeCfiCrossDso) { in Release()
1123 if (CodeGenOpts.WholeProgramVTables) { in Release()
1128 CodeGenOpts.VirtualFunctionElimination); in Release()
1134 CodeGenOpts.SanitizeCfiCanonicalJumpTables); in Release()
1137 if (CodeGenOpts.SanitizeCfiICallNormalizeIntegers) { in Release()
1146 if (CodeGenOpts.PatchableFunctionEntryOffset) in Release()
1148 CodeGenOpts.PatchableFunctionEntryOffset); in Release()
1151 if (CodeGenOpts.CFProtectionReturn && in Release()
1158 if (CodeGenOpts.CFProtectionBranch && in Release()
1165 if (CodeGenOpts.FunctionReturnThunks) in Release()
1168 if (CodeGenOpts.IndirectBranchCSPrefix) in Release()
1239 if (CodeGenOpts.StackClashProtector) in Release()
1244 if (CodeGenOpts.StackProbeSize && CodeGenOpts.StackProbeSize != 4096) in Release()
1246 CodeGenOpts.StackProbeSize); in Release()
1248 if (!CodeGenOpts.MemoryProfileOutput.empty()) { in Release()
1252 llvm::MDString::get(Ctx, CodeGenOpts.MemoryProfileOutput)); in Release()
1260 CodeGenOpts.FP32DenormalMode.Output != in Release()
1327 if (CodeGenOpts.NoPLT) in Release()
1330 CodeGenOpts.DirectAccessExternalData != in Release()
1333 CodeGenOpts.DirectAccessExternalData); in Release()
1335 if (CodeGenOpts.UnwindTables) in Release()
1336 getModule().setUwtable(llvm::UWTableKind(CodeGenOpts.UnwindTables)); in Release()
1338 switch (CodeGenOpts.getFramePointer()) { in Release()
1400 EmbedObject(&getModule(), CodeGenOpts, getDiags()); in Release()
1449 const CodeGenOptions &CodeGenOpts) { in EmitBackendOptionsMetadata() argument
1452 CodeGenOpts.SmallDataLimit); in EmitBackendOptionsMetadata()
1771 GV->setPartition(CodeGenOpts.SymbolPartition); in setGVPropertiesAux()
1784 switch (CodeGenOpts.getDefaultTLSModel()) { in GetDefaultLLVMTLSModel()
2075 if (CodeGenOpts.RegisterGlobalDtorsWithAtExit && in AddGlobalDtor()
2421 if ((!D || !D->hasAttr<NoUwtableAttr>()) && CodeGenOpts.UnwindTables) in SetLLVMFunctionAttributesForDefinition()
2422 B.addUWTableAttr(llvm::UWTableKind(CodeGenOpts.UnwindTables)); in SetLLVMFunctionAttributesForDefinition()
2424 if (CodeGenOpts.StackClashProtector) in SetLLVMFunctionAttributesForDefinition()
2427 if (CodeGenOpts.StackProbeSize && CodeGenOpts.StackProbeSize != 4096) in SetLLVMFunctionAttributesForDefinition()
2429 std::to_string(CodeGenOpts.StackProbeSize)); in SetLLVMFunctionAttributesForDefinition()
2451 CodeGenOpts.getInlining() == CodeGenOptions::OnlyAlwaysInlining) in SetLLVMFunctionAttributesForDefinition()
2473 !CodeGenOpts.DisableO0ImplyOptNone && CodeGenOpts.OptimizationLevel == 0; in SetLLVMFunctionAttributesForDefinition()
2507 } else if (CodeGenOpts.getInlining() == CodeGenOptions::OnlyAlwaysInlining) { in SetLLVMFunctionAttributesForDefinition()
2530 } else if (CodeGenOpts.getInlining() == in SetLLVMFunctionAttributesForDefinition()
2574 if (CodeGenOpts.SanitizeCfiCrossDso && in SetLLVMFunctionAttributesForDefinition()
2575 CodeGenOpts.SanitizeCfiCanonicalJumpTables) { in SetLLVMFunctionAttributesForDefinition()
2610 ((CodeGenOpts.KeepPersistentStorageVariables && in SetCommonAttributes()
2613 (CodeGenOpts.KeepStaticConsts && VD->getStorageDuration() == SD_Static && in SetCommonAttributes()
2779 if (CodeGenOpts.SanitizeCfiCrossDso) in CreateFunctionTypeMetadataForIcall()
2910 if (!CodeGenOpts.SanitizeCfiCrossDso || in SetFunctionAttributes()
2911 !CodeGenOpts.SanitizeCfiCanonicalJumpTables) in SetFunctionAttributes()
2920 if (CodeGenOpts.InlineMaxStackSize != UINT_MAX) in SetFunctionAttributes()
2921 F->addFnAttr("inline-max-stacksize", llvm::utostr(CodeGenOpts.InlineMaxStackSize)); in SetFunctionAttributes()
3508 ((CodeGenOpts.KeepPersistentStorageVariables && in MustBeEmitted()
3511 (CodeGenOpts.KeepStaticConsts && VD->getStorageDuration() == SD_Static && in MustBeEmitted()
4028 if (CodeGenOpts.OptimizationLevel == 0 && !F->hasAttr<AlwaysInlineAttr>()) in shouldEmitFunction()
4087 return CodeGenOpts.OptimizationLevel > 0; in shouldOpportunisticallyEmitVTables()
5809 CodeGenOpts.NoCommon)) in getLLVMLinkageForDeclarator()
6389 return !CodeGenOpts.EmitCodeView || CodeGenOpts.DebugColumnInfo; in getExpressionLocationsEnabled()
7176 if (!CodeGenOpts.CoverageMapping) in AddDeferredUnusedCoverageMapping()
7203 if (!CodeGenOpts.CoverageMapping) in ClearUnusedCoverageMapping()
7593 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIVCall)) || in NeedAllVtablesTypeId()
7595 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFINVCall)) || in NeedAllVtablesTypeId()
7597 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIDerivedCast)) || in NeedAllVtablesTypeId()
7599 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIUnrelatedCast))); in NeedAllVtablesTypeId()
7609 if (CodeGenOpts.SanitizeCfiCrossDso) in AddVTableTypeMetadata()