Lines Matching defs:CodeGenOpts
111 const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts();
177 else if (CodeGenOpts.FloatABI == "hard" ||
178 (CodeGenOpts.FloatABI != "soft" && Triple.isHardFloatABI()))
189 CodeGenOpts.FloatABI == "soft" || Target.hasFeature("spe");
193 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft";
204 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft";
214 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft";
240 bool SoftFloat = CodeGenOpts.FloatABI == "soft";
256 CodeGenOpts.NumRegisterParameters);
260 CodeGenOpts.NumRegisterParameters, CodeGenOpts.FloatABI == "soft");
342 PreprocessorOpts(PPO), CodeGenOpts(CGO), TheModule(M), Diags(diags),
405 (!CodeGenOpts.RelaxedAliasing && CodeGenOpts.OptimizationLevel > 0))
406 TBAA.reset(new CodeGenTBAA(Context, getTypes(), TheModule, CodeGenOpts,
411 if (CodeGenOpts.getDebugInfo() != llvm::codegenoptions::NoDebugInfo ||
412 CodeGenOpts.CoverageNotesFile.size() ||
413 CodeGenOpts.CoverageDataFile.size())
421 if (CodeGenOpts.hasProfileClangUse()) {
423 CodeGenOpts.ProfileInstrumentUsePath, *FS,
424 CodeGenOpts.ProfileRemappingFile);
434 if (CodeGenOpts.CoverageMapping)
438 if (CodeGenOpts.UniqueInternalLinkageNames &&
453 CodeGenOpts.NumRegisterParameters);
644 const CodeGenOptions &CodeGenOpts,
650 if ((llvm::binary_search(CodeGenOpts.TocDataVarsUserSpecified, GVId))) {
908 if (CodeGenOpts.SanitizeCfiCrossDso) {
977 if (CodeGenOpts.Autolink &&
1000 if (CodeGenOpts.DwarfVersion) {
1002 CodeGenOpts.DwarfVersion);
1005 if (CodeGenOpts.Dwarf64)
1012 if (CodeGenOpts.EmitCodeView) {
1016 if (CodeGenOpts.CodeViewGHash) {
1019 if (CodeGenOpts.ControlFlowGuard) {
1022 } else if (CodeGenOpts.ControlFlowGuardNoChecks) {
1026 if (CodeGenOpts.EHContGuard) {
1034 if (CodeGenOpts.OptimizationLevel > 0 && CodeGenOpts.StrictVTablePointers) {
1121 if (CodeGenOpts.SanitizeCfiCrossDso) {
1126 if (CodeGenOpts.WholeProgramVTables) {
1131 CodeGenOpts.VirtualFunctionElimination);
1137 CodeGenOpts.SanitizeCfiCanonicalJumpTables);
1140 if (CodeGenOpts.SanitizeCfiICallNormalizeIntegers) {
1149 if (CodeGenOpts.PatchableFunctionEntryOffset)
1151 CodeGenOpts.PatchableFunctionEntryOffset);
1154 if (CodeGenOpts.CFProtectionReturn &&
1161 if (CodeGenOpts.CFProtectionBranch &&
1167 auto Scheme = CodeGenOpts.getCFBranchLabelScheme();
1178 if (CodeGenOpts.FunctionReturnThunks)
1181 if (CodeGenOpts.IndirectBranchCSPrefix)
1268 if (CodeGenOpts.StackClashProtector)
1273 if (CodeGenOpts.StackProbeSize && CodeGenOpts.StackProbeSize != 4096)
1275 CodeGenOpts.StackProbeSize);
1277 if (!CodeGenOpts.MemoryProfileOutput.empty()) {
1281 llvm::MDString::get(Ctx, CodeGenOpts.MemoryProfileOutput));
1289 CodeGenOpts.FP32DenormalMode.Output !=
1356 if (CodeGenOpts.NoPLT)
1359 CodeGenOpts.DirectAccessExternalData !=
1362 CodeGenOpts.DirectAccessExternalData);
1364 if (CodeGenOpts.UnwindTables)
1365 getModule().setUwtable(llvm::UWTableKind(CodeGenOpts.UnwindTables));
1367 switch (CodeGenOpts.getFramePointer()) {
1429 EmbedObject(&getModule(), CodeGenOpts, getDiags());
1478 const CodeGenOptions &CodeGenOpts) {
1481 CodeGenOpts.SmallDataLimit);
1805 GV->setPartition(CodeGenOpts.SymbolPartition);
1818 switch (CodeGenOpts.getDefaultTLSModel()) {
2118 if (CodeGenOpts.RegisterGlobalDtorsWithAtExit &&
2480 if ((!D || !D->hasAttr<NoUwtableAttr>()) && CodeGenOpts.UnwindTables)
2481 B.addUWTableAttr(llvm::UWTableKind(CodeGenOpts.UnwindTables));
2483 if (CodeGenOpts.StackClashProtector)
2486 if (CodeGenOpts.StackProbeSize && CodeGenOpts.StackProbeSize != 4096)
2488 std::to_string(CodeGenOpts.StackProbeSize));
2513 CodeGenOpts.getInlining() == CodeGenOptions::OnlyAlwaysInlining)
2535 !CodeGenOpts.DisableO0ImplyOptNone && CodeGenOpts.OptimizationLevel == 0;
2574 } else if (CodeGenOpts.getInlining() == CodeGenOptions::OnlyAlwaysInlining) {
2597 } else if (CodeGenOpts.getInlining() ==
2641 if (CodeGenOpts.SanitizeCfiCrossDso &&
2642 CodeGenOpts.SanitizeCfiCanonicalJumpTables) {
2677 ((CodeGenOpts.KeepPersistentStorageVariables &&
2680 (CodeGenOpts.KeepStaticConsts && VD->getStorageDuration() == SD_Static &&
2870 if (CodeGenOpts.SanitizeCfiCrossDso)
3001 if (!CodeGenOpts.SanitizeCfiCrossDso ||
3002 !CodeGenOpts.SanitizeCfiCanonicalJumpTables)
3011 if (CodeGenOpts.InlineMaxStackSize != UINT_MAX)
3012 F->addFnAttr("inline-max-stacksize", llvm::utostr(CodeGenOpts.InlineMaxStackSize));
3599 ((CodeGenOpts.KeepPersistentStorageVariables &&
3602 (CodeGenOpts.KeepStaticConsts && VD->getStorageDuration() == SD_Static &&
4124 if (CodeGenOpts.OptimizationLevel == 0 && !F->hasAttr<AlwaysInlineAttr>())
4178 return CodeGenOpts.OptimizationLevel > 0;
5926 CodeGenOpts.NoCommon))
6506 return !CodeGenOpts.EmitCodeView || CodeGenOpts.DebugColumnInfo;
7294 if (!CodeGenOpts.CoverageMapping)
7321 if (!CodeGenOpts.CoverageMapping)
7711 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIVCall)) ||
7713 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFINVCall)) ||
7715 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIDerivedCast)) ||
7717 !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIUnrelatedCast)));
7727 if (CodeGenOpts.SanitizeCfiCrossDso)