Home
last modified time | relevance | path

Searched refs:compiler_options (Results 1 – 25 of 48) 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.GetTypeDescriptor(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.h61 CodeGenerator* CreateCodeGenerator(HGraph* graph, const CompilerOptions& compiler_options) { in CreateCodeGenerator() argument
62 return create_codegen_(graph, compiler_options); in CreateCodeGenerator()
93 TestCodeGeneratorARMVIXL(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorARMVIXL() argument
94 : arm::CodeGeneratorARMVIXL(graph, compiler_options) { in TestCodeGeneratorARMVIXL()
135 TestCodeGeneratorARM64(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorARM64() argument
136 : arm64::CodeGeneratorARM64(graph, compiler_options) {} in TestCodeGeneratorARM64()
153 TestCodeGeneratorX86(HGraph* graph, const CompilerOptions& compiler_options) in TestCodeGeneratorX86() argument
154 : x86::CodeGeneratorX86(graph, compiler_options) { in TestCodeGeneratorX86()
290 const CompilerOptions& compiler_options, in RunCode() argument
296 compiler_options)); in RunCode()
[all …]
Doptimizing_compiler.cc86 const CompilerOptions& compiler_options) in PassObserver() argument
90 timing_logger_enabled_(compiler_options.GetDumpPassTimings()), in PassObserver()
95 visualizer_enabled_(!compiler_options.GetDumpCfgFileName().empty()), in PassObserver()
100 if (!IsVerboseMethod(compiler_options, GetMethodName())) { in PassObserver()
184 static bool IsVerboseMethod(const CompilerOptions& compiler_options, const char* method_name) { in IsVerboseMethod() argument
187 if (compiler_options.HasVerboseMethods()) { in IsVerboseMethod()
188 return compiler_options.IsVerboseMethod(method_name); in IsVerboseMethod()
251 explicit OptimizingCompiler(const CompilerOptions& compiler_options,
391 OptimizingCompiler::OptimizingCompiler(const CompilerOptions& compiler_options, in OptimizingCompiler() argument
393 : Compiler(compiler_options, storage, kMaximumCompilationTimeBeforeWarning) { in OptimizingCompiler()
[all …]
Dprofiling_info_builder.h34 const CompilerOptions& compiler_options,
39 compiler_options_(compiler_options) {} in HGraphDelegateVisitor()
47 const CompilerOptions& compiler_options,
51 const HInliner* inliner, const CompilerOptions& compiler_options, HInvoke* invoke)
Dprofiling_info_builder.cc46 const CompilerOptions& compiler_options, in EncodeInlinedDexPc() argument
61 compiler_options.GetInlineMaxCodeUnits()); in EncodeInlinedDexPc()
64 static uint32_t EncodeDexPc(HInvoke* invoke, const CompilerOptions& compiler_options) { in EncodeDexPc() argument
78 compiler_options.GetInlineMaxCodeUnits()); in EncodeDexPc()
133 const CompilerOptions& compiler_options, in GetInlineCache() argument
136 uint32_t dex_pc = EncodeDexPc(instruction, compiler_options); in GetInlineCache()
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.cc68 static bool CanReferenceBootImageObjects(HInvoke* invoke, const CompilerOptions& compiler_options) { in CanReferenceBootImageObjects() argument
72 if (compiler_options.IsAotCompiler() && in CanReferenceBootImageObjects()
76 if (!compiler_options.IsBootImage() && in CanReferenceBootImageObjects()
91 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in ComputeValueOfLocations() local
92 if (!CanReferenceBootImageObjects(invoke, compiler_options)) { in ComputeValueOfLocations()
124 const CompilerOptions& compiler_options, in ComputeValueOfInfo() argument
133 if (compiler_options.IsBootImage()) { in ComputeValueOfInfo()
Dprepare_for_register_allocation.h36 const CompilerOptions& compiler_options,
39 compiler_options_(compiler_options) {} in HGraphDelegateVisitor()
Dbuilder.cc72 const CompilerOptions& compiler_options = code_generator_->GetCompilerOptions(); in SkipCompilation() local
73 CompilerFilter::Filter compiler_filter = compiler_options.GetCompilerFilter(); in SkipCompilation()
79 if (compiler_options.IsHugeMethod(code_units)) { in SkipCompilation()
Doptimizing_compiler.h32 Compiler* CreateOptimizingCompiler(const CompilerOptions& compiler_options,
Dliveness_test.cc51 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local
53 PrepareForRegisterAllocation(graph, *compiler_options).Run(); in TestCode()
54 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options); in TestCode()
Dlinearize_test.cc45 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local
47 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options); in TestCode()
Dcode_generator.cc931 const CompilerOptions& compiler_options, in Create() argument
934 switch (compiler_options.GetInstructionSet()) { in Create()
939 new (allocator) arm::CodeGeneratorARMVIXL(graph, compiler_options, stats)); in Create()
945 new (allocator) arm64::CodeGeneratorARM64(graph, compiler_options, stats)); in Create()
951 new (allocator) riscv64::CodeGeneratorRISCV64(graph, compiler_options, stats)); in Create()
957 new (allocator) x86::CodeGeneratorX86(graph, compiler_options, stats)); in Create()
963 new (allocator) x86_64::CodeGeneratorX86_64(graph, compiler_options, stats)); in Create()
980 const CompilerOptions& compiler_options, in CodeGenerator() argument
1001 compiler_options_(compiler_options), in CodeGenerator()
Dscheduler_test.cc192 std::unique_ptr<CompilerOptions> compiler_options = in CompileWithRandomSchedulerAndRun() local
195 *compiler_options, in CompileWithRandomSchedulerAndRun()
/art/compiler/
Dcompiler.cc30 Compiler* Compiler::Create(const CompilerOptions& compiler_options, CompiledCodeStorage* storage) { in Create() argument
34 return CreateOptimizingCompiler(compiler_options, storage); in Create()
Dcompiler.h51 EXPORT static Compiler* Create(const CompilerOptions& compiler_options,
96 Compiler(const CompilerOptions& compiler_options, in Compiler() argument
99 compiler_options_(compiler_options), in Compiler()
Dcommon_compiler_test.cc190 std::unique_ptr<CompilerOptions> compiler_options = std::make_unique<CompilerOptions>(); in CreateCompilerOptions() local
191 compiler_options->emit_read_barrier_ = gUseReadBarrier; in CreateCompilerOptions()
192 compiler_options->instruction_set_ = instruction_set; in CreateCompilerOptions()
194 compiler_options->instruction_set_features_ = in CreateCompilerOptions()
196 CHECK(compiler_options->instruction_set_features_ != nullptr) << error_msg; in CreateCompilerOptions()
197 return compiler_options; in CreateCompilerOptions()
/art/dex2oat/linker/
Delf_writer_quick.cc87 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()
532 std::vector<std::string> compiler_options; in TEST_F() local
533 compiler_options.push_back("--compiler-filter=extract"); in TEST_F()
534 SetupCompiler(compiler_options); in TEST_F()
/art/compiler/jit/
Djit_compiler.cc139 const CompilerOptions& compiler_options = GetCompilerOptions(); in TypesLoaded() local
140 if (compiler_options.GetGenerateDebugInfo()) { in TypesLoaded()
141 InstructionSet isa = compiler_options.GetInstructionSet(); in TypesLoaded()
142 const InstructionSetFeatures* features = compiler_options.GetInstructionSetFeatures(); in TypesLoaded()
/art/compiler/jni/quick/
Djni_compiler.cc78 static JniCompiledMethod ArtJniCompileMethodInternal(const CompilerOptions& compiler_options, in ArtJniCompileMethodInternal() argument
89 InstructionSet instruction_set = compiler_options.GetInstructionSet(); in ArtJniCompileMethodInternal()
91 compiler_options.GetInstructionSetFeatures(); in ArtJniCompileMethodInternal()
92 bool emit_read_barrier = compiler_options.EmitReadBarrier(); in ArtJniCompileMethodInternal()
93 bool is_debuggable = compiler_options.GetDebuggable(); in ArtJniCompileMethodInternal()
94 bool needs_entry_exit_hooks = is_debuggable && compiler_options.IsJitCompiler(); in ArtJniCompileMethodInternal()
164 jni_asm->cfi().SetEnabled(compiler_options.GenerateAnyDebugInfo()); in ArtJniCompileMethodInternal()
165 jni_asm->SetEmitRunTimeChecksInDebugMode(compiler_options.EmitRunTimeChecksInDebugMode()); in ArtJniCompileMethodInternal()
770 JniCompiledMethod ArtQuickJniCompileMethod(const CompilerOptions& compiler_options, in ArtQuickJniCompileMethod() argument
774 if (Is64BitInstructionSet(compiler_options.GetInstructionSet())) { in ArtQuickJniCompileMethod()
[all …]
Djni_compiler.h67 JniCompiledMethod ArtQuickJniCompileMethod(const CompilerOptions& compiler_options,
/art/dex2oat/driver/
Dcompiler_driver.cc256 const CompilerOptions* compiler_options, in CompilerDriver() argument
260 : compiler_options_(compiler_options), in CompilerDriver()
272 compiler_.reset(Compiler::Create(*compiler_options, &compiled_method_storage_)); in CompilerDriver()
417 static bool ShouldCompileBasedOnProfile(const CompilerOptions& compiler_options, in ShouldCompileBasedOnProfile() argument
422 if (!CompilerFilter::DependsOnProfile(compiler_options.GetCompilerFilter())) { in ShouldCompileBasedOnProfile()
426 DCHECK(compiler_options.GetProfileCompilationInfo() == nullptr || in ShouldCompileBasedOnProfile()
427 compiler_options.GetProfileCompilationInfo()->FindDexFile(*method_ref.dex_file) == in ShouldCompileBasedOnProfile()
431 DCHECK(CompilerFilter::DependsOnProfile(compiler_options.GetCompilerFilter())); in ShouldCompileBasedOnProfile()
433 compiler_options.GetProfileCompilationInfo(); in ShouldCompileBasedOnProfile()
487 const CompilerOptions& compiler_options = driver->GetCompilerOptions(); in CompileMethodQuick() local
[all …]
/art/runtime/
Dcommon_runtime_test.cc449 std::vector<std::string> compiler_options = runtime->GetCompilerOptions(); in StartDex2OatCommandLine() local
450 argv->insert(argv->end(), compiler_options.begin(), compiler_options.end()); in StartDex2OatCommandLine()
504 std::vector<std::string> compiler_options = runtime->GetCompilerOptions(); in CompileBootImage() local
505 argv.insert(argv.end(), compiler_options.begin(), compiler_options.end()); in CompileBootImage()

12