Home
last modified time | relevance | path

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

12345678

/aosp_15_r20/art/compiler/optimizing/
H A Dsharpening.cc51 static bool ImageAOTCanEmbedMethod(ArtMethod* method, const CompilerOptions& compiler_options) { in ImageAOTCanEmbedMethod() argument
52 DCHECK(compiler_options.IsBootImage() || in ImageAOTCanEmbedMethod()
53 compiler_options.IsBootImageExtension() || in ImageAOTCanEmbedMethod()
54 compiler_options.IsAppImage()); in ImageAOTCanEmbedMethod()
59 return compiler_options.IsImageClass(dex_file.GetTypeDescriptor(klass->GetDexTypeIndex())); in ImageAOTCanEmbedMethod()
90 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in SharpenLoadMethod() local
101 } else if (compiler_options.IsBootImage() || compiler_options.IsBootImageExtension()) { in SharpenLoadMethod()
102 if (!compiler_options.GetCompilePic()) { in SharpenLoadMethod()
106 DCHECK(compiler_options.IsBootImageExtension()); in SharpenLoadMethod()
108 } else if (ImageAOTCanEmbedMethod(callee, compiler_options)) { in SharpenLoadMethod()
[all …]
H A 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,
390 OptimizingCompiler::OptimizingCompiler(const CompilerOptions& compiler_options, in OptimizingCompiler() argument
392 : Compiler(compiler_options, storage, kMaximumCompilationTimeBeforeWarning) { in OptimizingCompiler()
[all …]
H A 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()
305 const CompilerOptions& compiler_options, in RunCode() argument
311 compiler_options)); in RunCode()
[all …]
H A Dcodegen_test.cc90 std::unique_ptr<CompilerOptions> compiler_options = in TestCode() local
92 RunCode(target_config, *compiler_options, graph, [](HGraph*) {}, has_result, expected); in TestCode()
103 std::unique_ptr<CompilerOptions> compiler_options = in TestCodeLong() local
105 RunCode(target_config, *compiler_options, graph, [](HGraph*) {}, has_result, expected); in TestCodeLong()
455 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local
457 PrepareForRegisterAllocation(graph, *compiler_options).Run(); in TEST_F()
466 RunCode(target_config, *compiler_options, graph, hook_before_codegen, true, 0); in TEST_F()
510 std::unique_ptr<CompilerOptions> compiler_options = in TEST_F() local
512 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 …]
H A 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()
H A 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()
H A 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)
H A 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()
H A 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()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/tf2xla/
H A Dtf2xla.cc70 XlaCompiler::Options compiler_options; in ConvertGraphToXla() local
71 compiler_options.client = client; in ConvertGraphToXla()
72 compiler_options.device_type = DeviceType(DEVICE_CPU_XLA_JIT); in ConvertGraphToXla()
73 compiler_options.flib_def = &graph->flib_def(); in ConvertGraphToXla()
74 compiler_options.graph_def_version = graph->versions().producer(); in ConvertGraphToXla()
75 compiler_options.allow_cpu_custom_calls = true; in ConvertGraphToXla()
77 XlaCompiler compiler(compiler_options); in ConvertGraphToXla()
/aosp_15_r20/art/compiler/
H A Dcommon_compiler_test.cc192 std::unique_ptr<CompilerOptions> compiler_options = std::make_unique<CompilerOptions>(); in CreateCompilerOptions() local
193 compiler_options->emit_read_barrier_ = gUseReadBarrier; in CreateCompilerOptions()
194 compiler_options->instruction_set_ = instruction_set; in CreateCompilerOptions()
196 compiler_options->instruction_set_features_ = in CreateCompilerOptions()
198 CHECK(compiler_options->instruction_set_features_ != nullptr) << error_msg; in CreateCompilerOptions()
200 compiler_options->instruction_set_features_ = in CreateCompilerOptions()
201 compiler_options->instruction_set_features_->AddFeaturesFromString(*extra_features, in CreateCompilerOptions()
203 CHECK_NE(compiler_options->instruction_set_features_, nullptr) << error_msg; in CreateCompilerOptions()
205 return compiler_options; in CreateCompilerOptions()
H A Dcompiler.h51 EXPORT static Compiler* Create(const CompilerOptions& compiler_options,
95 Compiler(const CompilerOptions& compiler_options, in Compiler() argument
98 compiler_options_(compiler_options), in Compiler()
/aosp_15_r20/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
H A Dcl_program.cc65 const std::string& compiler_options) { in BuildProgram() argument
67 program, 0, nullptr, compiler_options.c_str(), nullptr, nullptr); in BuildProgram()
118 const std::vector<CompilerOptions>& compiler_options) { in CompilerOptionsToString() argument
120 for (auto option : compiler_options) { in CompilerOptionsToString()
168 const std::string& compiler_options, in CreateCLProgram() argument
183 RETURN_IF_ERROR(BuildProgram(program, device, compiler_options)); in CreateCLProgram()
H A Dprogram_cache.cc49 const std::string& compiler_options) { in GetProgramFingerprint() argument
52 ::util::Fingerprint64(compiler_options); in GetProgramFingerprint()
63 const std::string& code, const std::string& compiler_options) in ProgramDescriptor() argument
64 : fingerprint(GetProgramFingerprint(code, compiler_options)) {} in ProgramDescriptor()
81 const std::vector<CompilerOptions>& compiler_options, in GetOrCreateCLKernel() argument
85 CompilerOptionsToString(device.GetInfo(), compiler_options); in GetOrCreateCLKernel()
/aosp_15_r20/art/dex2oat/linker/
H A Delf_writer_quick.cc90 ElfWriterQuick(const CompilerOptions& compiler_options,
139 std::unique_ptr<ElfWriter> CreateElfWriterQuick(const CompilerOptions& compiler_options, in CreateElfWriterQuick() argument
141 if (Is64BitInstructionSet(compiler_options.GetInstructionSet())) { in CreateElfWriterQuick()
142 return std::make_unique<ElfWriterQuick<ElfTypes64>>(compiler_options, elf_file); in CreateElfWriterQuick()
144 return std::make_unique<ElfWriterQuick<ElfTypes32>>(compiler_options, elf_file); in CreateElfWriterQuick()
149 ElfWriterQuick<ElfTypes>::ElfWriterQuick(const CompilerOptions& compiler_options, File* elf_file) in ElfWriterQuick() argument
151 compiler_options_(compiler_options), in ElfWriterQuick()
/aosp_15_r20/art/compiler/jni/quick/
H A 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 …]
/aosp_15_r20/art/dex2oat/driver/
H A 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()
415 static bool ShouldCompileBasedOnProfile(const CompilerOptions& compiler_options, in ShouldCompileBasedOnProfile() argument
420 if (!CompilerFilter::DependsOnProfile(compiler_options.GetCompilerFilter())) { in ShouldCompileBasedOnProfile()
424 DCHECK(compiler_options.GetProfileCompilationInfo() == nullptr || in ShouldCompileBasedOnProfile()
425 compiler_options.GetProfileCompilationInfo()->FindDexFile(*method_ref.dex_file) == in ShouldCompileBasedOnProfile()
429 DCHECK(CompilerFilter::DependsOnProfile(compiler_options.GetCompilerFilter())); in ShouldCompileBasedOnProfile()
431 compiler_options.GetProfileCompilationInfo(); in ShouldCompileBasedOnProfile()
483 const CompilerOptions& compiler_options = driver->GetCompilerOptions(); in CompileMethodQuick() local
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/core/tpu/
H A Dtpu_compile.cc381 XlaCompiler::Options compiler_options; in CompileTFFunctionToHlo() local
383 compiler_options.device_type = DeviceType(DEVICE_TPU_XLA_JIT); in CompileTFFunctionToHlo()
384 compiler_options.client = client; in CompileTFFunctionToHlo()
385 compiler_options.flib_def = &flib_definition; in CompileTFFunctionToHlo()
386 compiler_options.allow_cpu_custom_calls = false; in CompileTFFunctionToHlo()
387 compiler_options.graph_def_version = graph_def_version; in CompileTFFunctionToHlo()
388 compiler_options.shape_determination_fns = shape_determination_fns; in CompileTFFunctionToHlo()
390 auto compiler = std::make_unique<XlaCompiler>(compiler_options); in CompileTFFunctionToHlo()
/aosp_15_r20/external/mesa3d/src/gallium/frontends/clover/nir/
H A Dinvocation.cpp269 auto *compiler_options = dev_get_nir_compiler_options(dev); in load_libclc_nir() local
272 &spirv_options, compiler_options, in load_libclc_nir()
306 auto *compiler_options = dev_get_nir_compiler_options(dev); in spirv_to_nir() local
310 &spirv_options, compiler_options); in spirv_to_nir()
355 if (compiler_options->lower_to_scalar) { in spirv_to_nir()
357 compiler_options->lower_to_scalar_filter, NULL); in spirv_to_nir()
418 if (compiler_options->lower_int64_options) in spirv_to_nir()
/aosp_15_r20/art/compiler/jit/
H A 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()
/aosp_15_r20/external/mesa3d/src/gallium/drivers/virgl/
H A Dvirgl_screen.c1132 return &vscreen->compiler_options; in virgl_get_compiler_options()
1221 screen->compiler_options = *(nir_shader_compiler_options *) in virgl_create_screen()
1227 screen->compiler_options.lower_ffloor = true; in virgl_create_screen()
1228 screen->compiler_options.lower_fneg = true; in virgl_create_screen()
1230 screen->compiler_options.no_integers = screen->caps.caps.v1.glsl_level < 130; in virgl_create_screen()
1231 screen->compiler_options.lower_ffma32 = true; in virgl_create_screen()
1232 screen->compiler_options.fuse_ffma32 = false; in virgl_create_screen()
1233 screen->compiler_options.lower_ldexp = true; in virgl_create_screen()
1234 screen->compiler_options.lower_image_offset_to_range_base = true; in virgl_create_screen()
1235 screen->compiler_options.lower_atomic_offset_to_range_base = true; in virgl_create_screen()
/aosp_15_r20/art/runtime/
H A 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()
/aosp_15_r20/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
H A DBUILD21 ":compiler_options",
114 ":compiler_options",
137 name = "compiler_options",
138 hdrs = ["compiler_options.h"],
332 ":compiler_options",
H A Dapi2.cc559 CompilationOptions compiler_options; in Build() local
560 compiler_options.allow_precision_loss = in Build()
562 compiler_options.inline_parameters = in Build()
569 compiler_options.preferred_obj_type = ObjectType::BUFFER; in Build()
570 compiler_options.ref_obj_type = ObjectType::BUFFER; in Build()
573 auto compiler = NewCompiler(kernels.get(), gpu_info_, compiler_options); in Build()
/aosp_15_r20/external/mesa3d/src/compiler/glsl/tests/
H A Dtest_gl_lower_mediump.cpp164 static const struct nir_shader_compiler_options compiler_options = { in compile() local
176 ctx->Const.ShaderCompilerOptions[i].NirOptions = &compiler_options; in compile()
217 MESA_SHADER_VERTEX, &compiler_options); in compile()
221 MESA_SHADER_FRAGMENT, &compiler_options); in compile()

12345678