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