Lines Matching refs:CodeGenOpts

62         : CodeGenOpts(CGOpts), BackendCon(BCon) {}  in ClangDiagnosticHandler()
67 return CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(PassName); in isAnalysisRemarkEnabled()
70 return CodeGenOpts.OptimizationRemarkMissed.patternMatches(PassName); in isMissedOptRemarkEnabled()
73 return CodeGenOpts.OptimizationRemark.patternMatches(PassName); in isPassedOptRemarkEnabled()
77 return CodeGenOpts.OptimizationRemarkAnalysis.hasValidPattern() || in isAnyRemarkEnabled()
78 CodeGenOpts.OptimizationRemarkMissed.hasValidPattern() || in isAnyRemarkEnabled()
79 CodeGenOpts.OptimizationRemark.hasValidPattern(); in isAnyRemarkEnabled()
83 const CodeGenOptions &CodeGenOpts; member in clang::ClangDiagnosticHandler
88 const CodeGenOptions CodeGenOpts) { in reportOptRecordError() argument
93 << CodeGenOpts.OptRecordFile << E.message(); in reportOptRecordError()
97 << E.message() << CodeGenOpts.OptRecordPasses; in reportOptRecordError()
101 << CodeGenOpts.OptRecordFormat; in reportOptRecordError()
112 const CodeGenOptions &CodeGenOpts; member in clang::BackendConsumer
152 const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument
159 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
164 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
166 TimerIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
167 llvm::TimePassesIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
168 llvm::TimePassesPerRun = CodeGenOpts.TimePassesPerRun; in BackendConsumer()
178 const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument
184 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
189 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
191 TimerIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
192 llvm::TimePassesIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
193 llvm::TimePassesPerRun = CodeGenOpts.TimePassesPerRun; in BackendConsumer()
325 CodeGenOpts, this)); in HandleTranslationUnit()
329 Ctx, CodeGenOpts.OptRecordFile, CodeGenOpts.OptRecordPasses, in HandleTranslationUnit()
330 CodeGenOpts.OptRecordFormat, CodeGenOpts.DiagnosticsWithHotness, in HandleTranslationUnit()
331 CodeGenOpts.DiagnosticsHotnessThreshold); in HandleTranslationUnit()
334 reportOptRecordError(std::move(E), Diags, CodeGenOpts); in HandleTranslationUnit()
342 CodeGenOpts.getProfileUse() != CodeGenOptions::ProfileNone) in HandleTranslationUnit()
345 if (CodeGenOpts.MisExpect) { in HandleTranslationUnit()
349 if (CodeGenOpts.DiagnosticsMisExpectTolerance) { in HandleTranslationUnit()
351 CodeGenOpts.DiagnosticsMisExpectTolerance); in HandleTranslationUnit()
367 if (CodeGenOpts.ClearASTBeforeBackend) { in HandleTranslationUnit()
379 EmbedBitcode(getModule(), CodeGenOpts, llvm::MemoryBufferRef()); in HandleTranslationUnit()
381 EmitBackendOutput(Diags, HeaderSearchOpts, CodeGenOpts, TargetOpts, in HandleTranslationUnit()
771 if (CodeGenOpts.OptimizationRemark.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
777 if (CodeGenOpts.OptimizationRemarkMissed.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
788 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
801 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
813 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()
1199 std::make_unique<ClangDiagnosticHandler>(CodeGenOpts, &Result)); in ExecuteAction()
1203 Ctx, CodeGenOpts.OptRecordFile, CodeGenOpts.OptRecordPasses, in ExecuteAction()
1204 CodeGenOpts.OptRecordFormat, CodeGenOpts.DiagnosticsWithHotness, in ExecuteAction()
1205 CodeGenOpts.DiagnosticsHotnessThreshold); in ExecuteAction()
1208 reportOptRecordError(std::move(E), Diagnostics, CodeGenOpts); in ExecuteAction()
1214 EmitBackendOutput(Diagnostics, CI.getHeaderSearchOpts(), CodeGenOpts, in ExecuteAction()