Home
last modified time | relevance | path

Searched refs:compiler_options (Results 1 – 25 of 45) sorted by relevance

12

/art/compiler/optimizing/
Dsharpening.cc51 static bool BootImageAOTCanEmbedMethod(ArtMethod* method, const CompilerOptions& compiler_options) { in BootImageAOTCanEmbedMethod() argument
52 DCHECK(compiler_options.IsBootImage() || compiler_options.IsBootImageExtension()); in BootImageAOTCanEmbedMethod()
57 return compiler_options.IsImageClass(dex_file.StringByTypeIdx(klass->GetDexTypeIndex())); in BootImageAOTCanEmbedMethod()
88 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in SharpenLoadMethod() local
99 } else if (compiler_options.IsBootImage() || compiler_options.IsBootImageExtension()) { in SharpenLoadMethod()
100 if (!compiler_options.GetCompilePic()) { in SharpenLoadMethod()
104 DCHECK(compiler_options.IsBootImageExtension()); in SharpenLoadMethod()
106 } else if (BootImageAOTCanEmbedMethod(callee, compiler_options)) { in SharpenLoadMethod()
116 } else if (compiler_options.IsJitCompiler()) { in SharpenLoadMethod()
120 compiler_options.IsJitCompilerForSharedCode())) { in SharpenLoadMethod()
[all …]
Dcodegen_test_utils.h56 CodeGenerator* CreateCodeGenerator(HGraph* graph, const CompilerOptions& compiler_options) { in CreateCodeGenerator() argument
57 return create_codegen_(graph, compiler_options); in CreateCodeGenerator()
88 TestCodeGeneratorARMVIXL(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorARMVIXL() argument
89 : arm::CodeGeneratorARMVIXL(graph, compiler_options) { in TestCodeGeneratorARMVIXL()
130 TestCodeGeneratorARM64(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorARM64() argument
131 : arm64::CodeGeneratorARM64(graph, compiler_options) {} in TestCodeGeneratorARM64()
148 TestCodeGeneratorX86(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorX86() argument
149 : x86::CodeGeneratorX86(graph, compiler_options) { in TestCodeGeneratorX86()
313 const CompilerOptions& compiler_options, in RunCode() argument
319 compiler_options)); in RunCode()
[all …]
Doptimizing_compiler.cc109 const CompilerOptions& compiler_options, in PassObserver() argument
114 timing_logger_enabled_(compiler_options.GetDumpPassTimings()), in PassObserver()
119 visualizer_enabled_(!compiler_options.GetDumpCfgFileName().empty()), in PassObserver()
125 if (!IsVerboseMethod(compiler_options, GetMethodName())) { in PassObserver()
205 static bool IsVerboseMethod(const CompilerOptions& compiler_options, const char* method_name) { in IsVerboseMethod() argument
208 if (compiler_options.HasVerboseMethods()) { in IsVerboseMethod()
209 return compiler_options.IsVerboseMethod(method_name); in IsVerboseMethod()
273 explicit OptimizingCompiler(const CompilerOptions& compiler_options,
419 OptimizingCompiler::OptimizingCompiler(const CompilerOptions& compiler_options, in OptimizingCompiler() argument
421 : Compiler(compiler_options, storage, kMaximumCompilationTimeBeforeWarning), in OptimizingCompiler()
[all …]
Dcodegen_test.cc84 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local
86 RunCode(target_config, *compiler_options, graph, [](HGraph*) {}, has_result, expected); in TestCode()
97 std::unique_ptr<CompilerOptions> compiler_options = in TestCodeLong() local
99 RunCode(target_config, *compiler_options, graph, [](HGraph*) {}, has_result, expected); in TestCodeLong()
450 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local
452 PrepareForRegisterAllocation(graph, *compiler_options).Run(); in TEST_F()
461 RunCode(target_config, *compiler_options, graph, hook_before_codegen, true, 0); in TEST_F()
507 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local
509 RunCode(target_config, *compiler_options, graph, hook_before_codegen, true, lhs[i] < rhs[i]); in TEST_F()
576 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local
[all …]
Dintrinsics.cc149 static bool CanReferenceBootImageObjects(HInvoke* invoke, const CompilerOptions& compiler_options) { in CanReferenceBootImageObjects() argument
153 if (compiler_options.IsAotCompiler() && in CanReferenceBootImageObjects()
157 if (!compiler_options.IsBootImage() && in CanReferenceBootImageObjects()
159 DCHECK(compiler_options.IsJitCompiler()); in CanReferenceBootImageObjects()
171 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in ComputeIntegerValueOfLocations() local
172 if (!CanReferenceBootImageObjects(invoke, compiler_options)) { in ComputeIntegerValueOfLocations()
175 if (compiler_options.IsBootImage()) { in ComputeIntegerValueOfLocations()
176 if (!compiler_options.IsImageClass(kIntegerCacheDescriptor) || in ComputeIntegerValueOfLocations()
177 !compiler_options.IsImageClass(kIntegerDescriptor)) { in ComputeIntegerValueOfLocations()
229 if (compiler_options.IsJitCompiler()) { in ComputeIntegerValueOfLocations()
[all …]
Dbuilder.cc73 const CompilerOptions& compiler_options = code_generator_->GetCompilerOptions(); in SkipCompilation() local
74 CompilerFilter::Filter compiler_filter = compiler_options.GetCompilerFilter(); in SkipCompilation()
80 if (compiler_options.IsHugeMethod(code_units)) { in SkipCompilation()
89 if (compiler_options.IsLargeMethod(code_units) && (number_of_branches == 0)) { in SkipCompilation()
Dprepare_for_register_allocation.h35 const CompilerOptions& compiler_options,
38 compiler_options_(compiler_options) {} in HGraphDelegateVisitor()
Doptimizing_compiler.h31 Compiler* CreateOptimizingCompiler(const CompilerOptions& compiler_options,
Dliveness_test.cc50 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local
52 PrepareForRegisterAllocation(graph, *compiler_options).Run(); in TestCode()
53 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options); in TestCode()
Dlinearize_test.cc44 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local
46 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options); in TestCode()
Dcode_generator.cc1001 const CompilerOptions& compiler_options, in Create() argument
1004 switch (compiler_options.GetInstructionSet()) { in Create()
1009 new (allocator) arm::CodeGeneratorARMVIXL(graph, compiler_options, stats)); in Create()
1015 new (allocator) arm64::CodeGeneratorARM64(graph, compiler_options, stats)); in Create()
1021 new (allocator) x86::CodeGeneratorX86(graph, compiler_options, stats)); in Create()
1027 new (allocator) x86_64::CodeGeneratorX86_64(graph, compiler_options, stats)); in Create()
1041 const CompilerOptions& compiler_options, in CodeGenerator() argument
1061 compiler_options_(compiler_options), in CodeGenerator()
Dscheduler_test.cc191 std::unique_ptr<CompilerOptions> compiler_options = in CompileWithRandomSchedulerAndRun() local
194 *compiler_options, in CompileWithRandomSchedulerAndRun()
/art/compiler/
Dcompiler.cc30 Compiler* Compiler::Create(const CompilerOptions& compiler_options, in Create() argument
40 return CreateOptimizingCompiler(compiler_options, storage); in Create()
Dcompiler.h55 static Compiler* Create(const CompilerOptions& compiler_options,
101 Compiler(const CompilerOptions& compiler_options, in Compiler() argument
104 compiler_options_(compiler_options), in Compiler()
Dcommon_compiler_test.cc129 std::unique_ptr<CompilerOptions> compiler_options = std::make_unique<CompilerOptions>(); in CreateCompilerOptions() local
130 compiler_options->instruction_set_ = instruction_set; in CreateCompilerOptions()
132 compiler_options->instruction_set_features_ = in CreateCompilerOptions()
134 CHECK(compiler_options->instruction_set_features_ != nullptr) << error_msg; in CreateCompilerOptions()
135 return compiler_options; in CreateCompilerOptions()
/art/dex2oat/linker/
Delf_writer_quick.cc88 ElfWriterQuick(const CompilerOptions& compiler_options,
137 std::unique_ptr<ElfWriter> CreateElfWriterQuick(const CompilerOptions& compiler_options, in CreateElfWriterQuick() argument
139 if (Is64BitInstructionSet(compiler_options.GetInstructionSet())) { in CreateElfWriterQuick()
140 return std::make_unique<ElfWriterQuick<ElfTypes64>>(compiler_options, elf_file); in CreateElfWriterQuick()
142 return std::make_unique<ElfWriterQuick<ElfTypes32>>(compiler_options, elf_file); in CreateElfWriterQuick()
147 ElfWriterQuick<ElfTypes>::ElfWriterQuick(const CompilerOptions& compiler_options, File* elf_file) in ElfWriterQuick() argument
149 compiler_options_(compiler_options), in ElfWriterQuick()
Delf_writer_quick.h33 std::unique_ptr<ElfWriter> CreateElfWriterQuick(const CompilerOptions& compiler_options,
Doat_writer_test.cc89 void SetupCompiler(const std::vector<std::string>& compiler_options) { in SetupCompiler() argument
91 if (!compiler_options_->ParseCompilerOptions(compiler_options, in SetupCompiler()
535 std::vector<std::string> compiler_options; in TEST_F() local
536 compiler_options.push_back("--compiler-filter=extract"); in TEST_F()
537 SetupCompiler(compiler_options); in TEST_F()
/art/compiler/jit/
Djit_compiler.cc129 const CompilerOptions& compiler_options = GetCompilerOptions(); in TypesLoaded() local
130 if (compiler_options.GetGenerateDebugInfo()) { in TypesLoaded()
131 InstructionSet isa = compiler_options.GetInstructionSet(); in TypesLoaded()
132 const InstructionSetFeatures* features = compiler_options.GetInstructionSetFeatures(); in TypesLoaded()
/art/compiler/jni/quick/
Djni_compiler.cc115 static JniCompiledMethod ArtJniCompileMethodInternal(const CompilerOptions& compiler_options, in ArtJniCompileMethodInternal() argument
124 InstructionSet instruction_set = compiler_options.GetInstructionSet(); in ArtJniCompileMethodInternal()
126 compiler_options.GetInstructionSetFeatures(); in ArtJniCompileMethodInternal()
217 jni_asm->cfi().SetEnabled(compiler_options.GenerateAnyDebugInfo()); in ArtJniCompileMethodInternal()
218 jni_asm->SetEmitRunTimeChecksInDebugMode(compiler_options.EmitRunTimeChecksInDebugMode()); in ArtJniCompileMethodInternal()
772 JniCompiledMethod ArtQuickJniCompileMethod(const CompilerOptions& compiler_options, in ArtQuickJniCompileMethod() argument
776 if (Is64BitInstructionSet(compiler_options.GetInstructionSet())) { in ArtQuickJniCompileMethod()
778 compiler_options, access_flags, method_idx, dex_file); in ArtQuickJniCompileMethod()
781 compiler_options, access_flags, method_idx, dex_file); in ArtQuickJniCompileMethod()
Djni_compiler.h65 JniCompiledMethod ArtQuickJniCompileMethod(const CompilerOptions& compiler_options,
/art/compiler/dex/
Dverification_results.cc33 VerificationResults::VerificationResults(const CompilerOptions* compiler_options) in VerificationResults() argument
34 : compiler_options_(compiler_options), in VerificationResults()
Dverification_results.h44 explicit VerificationResults(const CompilerOptions* compiler_options);
/art/runtime/
Dcommon_runtime_test.cc424 std::vector<std::string> compiler_options = runtime->GetCompilerOptions(); in StartDex2OatCommandLine() local
425 argv->insert(argv->end(), compiler_options.begin(), compiler_options.end()); in StartDex2OatCommandLine()
478 std::vector<std::string> compiler_options = runtime->GetCompilerOptions(); in CompileBootImage() local
479 argv.insert(argv.end(), compiler_options.begin(), compiler_options.end()); in CompileBootImage()
/art/dex2oat/driver/
Dcompiler_driver.cc255 const CompilerOptions* compiler_options, in CompilerDriver() argument
259 : compiler_options_(compiler_options), in CompilerDriver()
271 compiler_.reset(Compiler::Create(*compiler_options, &compiled_method_storage_, compiler_kind)); in CompilerDriver()
2142 const CompilerOptions& compiler_options = manager_->GetCompiler()->GetCompilerOptions(); in TryInitializeClass() local
2143 const bool is_boot_image = compiler_options.IsBootImage(); in TryInitializeClass()
2144 const bool is_boot_image_extension = compiler_options.IsBootImageExtension(); in TryInitializeClass()
2145 const bool is_app_image = compiler_options.IsAppImage(); in TryInitializeClass()
2201 compiler_options.IsImageClass(descriptor)) { in TryInitializeClass()
2218 !compiler_options.GetDebuggable() && in TryInitializeClass()
2219 (compiler_options.InitializeAppImageClasses() || in TryInitializeClass()

12