Lines Matching refs:cOptions
116 bool AotCompilerPreprocessor::HandleTargetCompilerMode(CompilationOptions &cOptions)
119 if (!OhosPkgArgs::ParseArgs(*this, cOptions)) {
129 if (!OhosPgoProcessor::MergeAndRemoveRuntimeAp(cOptions, mainPkgArgs)) {
133 HandleTargetModeInfo(cOptions);
138 void AotCompilerPreprocessor::HandleTargetModeInfo(CompilationOptions &cOptions)
145 cOptions.optLevel_ = DEFAULT_OPT_LEVEL;
184 void AotCompilerPreprocessor::Process(CompilationOptions &cOptions)
186 GenerateBytecodeInfoCollectors(cOptions);
189 DoPreAnalysis(cOptions);
190 GenerateMethodMap(cOptions);
193 void AotCompilerPreprocessor::DoPreAnalysis(CompilationOptions &cOptions)
198 AnalyzeGraphs(jsPandaFile, collector, cOptions);
203 BytecodeInfoCollector &collector, CompilationOptions &cOptions)
214 AnalyzeGraph(bytecodeInfo, cOptions, collector, methodLiteral, methodPcInfo);
219 void AotCompilerPreprocessor::AnalyzeGraph(BCInfo &bytecodeInfo, CompilationOptions &cOptions,
226 AotMethodLogList logList(cOptions.logMethodsList_);
228 CompilerLog log(cOptions.logOption_);
229 AOTFileGenerator generator(&log, &logList, &aotCompilationEnv, cOptions.triple_, false);
232 Module *m = generator.AddModule("", cOptions.triple_, lOptions, false);
233 PassContext ctx(cOptions.triple_, &log, &collector, m->GetModule(), &profilerDecoder);
243 PGOProfilerDecoder *decoder = cOptions.isEnableOptPGOType_ ? &profilerDecoder : &defDecoder;
247 cOptions.isEnableTypeLowering_,
287 void AotCompilerPreprocessor::GenerateBytecodeInfoCollectors(const CompilationOptions &cOptions)
293 profilerDecoder_, cOptions.maxAotMethodSize_);
422 CompilationOptions &cOptions) const
433 if (!cOptions.optionSelectMethods_.empty()) {
434 return !FilterOption(cOptions.optionSelectMethods_, ConvertToStdString(recordName), methodName);
435 } else if (!cOptions.optionSkipMethods_.empty()) {
436 return FilterOption(cOptions.optionSkipMethods_, ConvertToStdString(recordName), methodName);
447 void AotCompilerPreprocessor::GenerateMethodMap(CompilationOptions &cOptions)
466 jsPandaFile, EntityId(index)), methodLiteral, methodPcInfo, methodName, cOptions);
518 bool AotCompilerPreprocessor::HasExistsAOTFiles(CompilationOptions &cOptions) const
520 std::string anFileName = cOptions.outputFileName_ + AOTFileManager::FILE_EXTENSION_AN;
521 std::string aiFileName = cOptions.outputFileName_ + AOTFileManager::FILE_EXTENSION_AI;