Lines Matching refs:CodeGenOpts

68       : CodeGenOpts(CGOpts), BackendCon(BCon) {}  in ClangDiagnosticHandler()
73 return CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(PassName); in isAnalysisRemarkEnabled()
76 return CodeGenOpts.OptimizationRemarkMissed.patternMatches(PassName); in isMissedOptRemarkEnabled()
79 return CodeGenOpts.OptimizationRemark.patternMatches(PassName); in isPassedOptRemarkEnabled()
83 return CodeGenOpts.OptimizationRemarkAnalysis.hasValidPattern() || in isAnyRemarkEnabled()
84 CodeGenOpts.OptimizationRemarkMissed.hasValidPattern() || in isAnyRemarkEnabled()
85 CodeGenOpts.OptimizationRemark.hasValidPattern(); in isAnyRemarkEnabled()
89 const CodeGenOptions &CodeGenOpts; member in clang::ClangDiagnosticHandler
94 const CodeGenOptions &CodeGenOpts) { in reportOptRecordError() argument
99 << CodeGenOpts.OptRecordFile << E.message(); in reportOptRecordError()
103 << E.message() << CodeGenOpts.OptRecordPasses; in reportOptRecordError()
107 << CodeGenOpts.OptRecordFormat; in reportOptRecordError()
115 const PreprocessorOptions &PPOpts, const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument
121 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
126 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
128 TimerIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
129 llvm::TimePassesIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
130 llvm::TimePassesPerRun = CodeGenOpts.TimePassesPerRun; in BackendConsumer()
140 const PreprocessorOptions &PPOpts, const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument
145 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
150 CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
152 TimerIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
153 llvm::TimePassesIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
154 llvm::TimePassesPerRun = CodeGenOpts.TimePassesPerRun; in BackendConsumer()
241 F, CodeGenOpts, LangOpts, TargetOpts, LM.Internalize); in LinkInModules()
295 CodeGenOpts, this)); in HandleTranslationUnit()
302 Ctx, CodeGenOpts.OptRecordFile, CodeGenOpts.OptRecordPasses, in HandleTranslationUnit()
303 CodeGenOpts.OptRecordFormat, CodeGenOpts.DiagnosticsWithHotness, in HandleTranslationUnit()
304 CodeGenOpts.DiagnosticsHotnessThreshold); in HandleTranslationUnit()
307 reportOptRecordError(std::move(E), Diags, CodeGenOpts); in HandleTranslationUnit()
315 CodeGenOpts.getProfileUse() != CodeGenOptions::ProfileNone) in HandleTranslationUnit()
318 if (CodeGenOpts.MisExpect) { in HandleTranslationUnit()
322 if (CodeGenOpts.DiagnosticsMisExpectTolerance) { in HandleTranslationUnit()
324 CodeGenOpts.DiagnosticsMisExpectTolerance); in HandleTranslationUnit()
328 if (!CodeGenOpts.LinkBitcodePostopt && LinkInModules(getModule())) in HandleTranslationUnit()
340 if (CodeGenOpts.ClearASTBeforeBackend) { in HandleTranslationUnit()
352 EmbedBitcode(getModule(), CodeGenOpts, llvm::MemoryBufferRef()); in HandleTranslationUnit()
354 EmitBackendOutput(Diags, HeaderSearchOpts, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit()
716 if (CodeGenOpts.OptimizationRemark.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
722 if (CodeGenOpts.OptimizationRemarkMissed.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
733 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
746 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
758 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
1151 auto &CodeGenOpts = CI.getCodeGenOpts(); in ExecuteAction() local
1175 EmbedObject(TheModule.get(), CodeGenOpts, Diagnostics); in ExecuteAction()
1176 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction()
1197 if (!CodeGenOpts.LinkBitcodePostopt && Result.LinkInModules(&*TheModule)) in ExecuteAction()
1204 std::make_unique<ClangDiagnosticHandler>(CodeGenOpts, &Result)); in ExecuteAction()
1211 Ctx, CodeGenOpts.OptRecordFile, CodeGenOpts.OptRecordPasses, in ExecuteAction()
1212 CodeGenOpts.OptRecordFormat, CodeGenOpts.DiagnosticsWithHotness, in ExecuteAction()
1213 CodeGenOpts.DiagnosticsHotnessThreshold); in ExecuteAction()
1216 reportOptRecordError(std::move(E), Diagnostics, CodeGenOpts); in ExecuteAction()
1223 Diagnostics, CI.getHeaderSearchOpts(), CodeGenOpts, TargetOpts, in ExecuteAction()