Lines Matching refs:CodeGenOpts

63         : CodeGenOpts(CGOpts), BackendCon(BCon) {}  in ClangDiagnosticHandler()
68 return CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(PassName); in isAnalysisRemarkEnabled()
71 return CodeGenOpts.OptimizationRemarkMissed.patternMatches(PassName); in isMissedOptRemarkEnabled()
74 return CodeGenOpts.OptimizationRemark.patternMatches(PassName); in isPassedOptRemarkEnabled()
78 return CodeGenOpts.OptimizationRemarkAnalysis.hasValidPattern() || in isAnyRemarkEnabled()
79 CodeGenOpts.OptimizationRemarkMissed.hasValidPattern() || in isAnyRemarkEnabled()
80 CodeGenOpts.OptimizationRemark.hasValidPattern(); in isAnyRemarkEnabled()
84 const CodeGenOptions &CodeGenOpts; member in clang::ClangDiagnosticHandler
89 const CodeGenOptions CodeGenOpts) { in reportOptRecordError() argument
94 << CodeGenOpts.OptRecordFile << E.message(); in reportOptRecordError()
98 << E.message() << CodeGenOpts.OptRecordPasses; in reportOptRecordError()
102 << CodeGenOpts.OptRecordFormat; in reportOptRecordError()
113 const CodeGenOptions &CodeGenOpts; member in clang::BackendConsumer
153 const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument
160 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
165 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
167 TimerIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
168 llvm::TimePassesIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
169 llvm::TimePassesPerRun = CodeGenOpts.TimePassesPerRun; in BackendConsumer()
179 const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument
185 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
190 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
192 TimerIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
193 llvm::TimePassesIsEnabled = CodeGenOpts.TimePasses; in BackendConsumer()
194 llvm::TimePassesPerRun = CodeGenOpts.TimePassesPerRun; in BackendConsumer()
326 CodeGenOpts, this)); in HandleTranslationUnit()
330 Ctx, CodeGenOpts.OptRecordFile, CodeGenOpts.OptRecordPasses, in HandleTranslationUnit()
331 CodeGenOpts.OptRecordFormat, CodeGenOpts.DiagnosticsWithHotness, in HandleTranslationUnit()
332 CodeGenOpts.DiagnosticsHotnessThreshold); in HandleTranslationUnit()
335 reportOptRecordError(std::move(E), Diags, CodeGenOpts); in HandleTranslationUnit()
343 CodeGenOpts.getProfileUse() != CodeGenOptions::ProfileNone) in HandleTranslationUnit()
346 if (CodeGenOpts.MisExpect) { in HandleTranslationUnit()
350 if (CodeGenOpts.DiagnosticsMisExpectTolerance) { in HandleTranslationUnit()
352 CodeGenOpts.DiagnosticsMisExpectTolerance); in HandleTranslationUnit()
368 if (CodeGenOpts.ClearASTBeforeBackend) { in HandleTranslationUnit()
380 EmbedBitcode(getModule(), CodeGenOpts, llvm::MemoryBufferRef()); in HandleTranslationUnit()
382 EmitBackendOutput(Diags, HeaderSearchOpts, CodeGenOpts, TargetOpts, in HandleTranslationUnit()
791 if (CodeGenOpts.OptimizationRemark.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
797 if (CodeGenOpts.OptimizationRemarkMissed.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
808 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
821 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
833 CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(D.getPassName())) in OptimizationRemarkHandler()
1178 auto &CodeGenOpts = CI.getCodeGenOpts(); in ExecuteAction() local
1202 EmbedObject(TheModule.get(), CodeGenOpts, Diagnostics); in ExecuteAction()
1203 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction()
1226 std::make_unique<ClangDiagnosticHandler>(CodeGenOpts, &Result)); in ExecuteAction()
1230 Ctx, CodeGenOpts.OptRecordFile, CodeGenOpts.OptRecordPasses, in ExecuteAction()
1231 CodeGenOpts.OptRecordFormat, CodeGenOpts.DiagnosticsWithHotness, in ExecuteAction()
1232 CodeGenOpts.DiagnosticsHotnessThreshold); in ExecuteAction()
1235 reportOptRecordError(std::move(E), Diagnostics, CodeGenOpts); in ExecuteAction()
1241 EmitBackendOutput(Diagnostics, CI.getHeaderSearchOpts(), CodeGenOpts, in ExecuteAction()