Home
last modified time | relevance | path

Searched refs:codegen (Results 1 – 25 of 77) sorted by relevance

1234

/art/compiler/optimizing/
Dintrinsics_utils.h44 Location MoveArguments(CodeGenerator* codegen) { in MoveArguments() argument
46 IntrinsicVisitor::MoveArguments(invoke_, codegen, &calling_convention_visitor); in MoveArguments()
50 void EmitNativeCode(CodeGenerator* codegen) override { in EmitNativeCode() argument
51 Assembler* assembler = codegen->GetAssembler(); in EmitNativeCode()
54 SaveLiveRegisters(codegen, invoke_->GetLocations()); in EmitNativeCode()
56 Location method_loc = MoveArguments(codegen); in EmitNativeCode()
59 codegen->GenerateStaticOrDirectCall(invoke_->AsInvokeStaticOrDirect(), method_loc, this); in EmitNativeCode()
61 codegen->GenerateVirtualCall(invoke_->AsInvokeVirtual(), method_loc, this); in EmitNativeCode()
69 codegen->MoveFromReturnRegister(out, invoke_->GetType()); in EmitNativeCode()
72 RestoreLiveRegisters(codegen, invoke_->GetLocations()); in EmitNativeCode()
Doptimizing_compiler.cc108 CodeGenerator* codegen, in PassObserver() argument
121 visualizer_(&visualizer_oss_, graph, *codegen), in PassObserver()
130 codegen->SetDisassemblyInformation(&disasm_info_); in PassObserver()
307 CodeGenerator* codegen, in RunOptimizations() argument
320 codegen, in RunOptimizations()
350 CodeGenerator* codegen, in RunOptimizations() argument
356 graph, codegen, dex_compilation_unit, pass_observer, handles, definitions, length); in RunOptimizations()
360 CodeGenerator* codegen,
369 CodeGenerator* codegen,
396 CodeGenerator* codegen,
[all …]
Dsharpening.cc60 ArtMethod* callee, CodeGenerator* codegen) { in SharpenInvokeStaticOrDirect() argument
84 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in SharpenInvokeStaticOrDirect()
85 if (callee == codegen->GetGraph()->GetArtMethod() && !codegen->GetGraph()->IsDebuggable()) { in SharpenInvokeStaticOrDirect()
116 if (codegen->GetGraph()->IsDebuggable()) { in SharpenInvokeStaticOrDirect()
125 return codegen->GetSupportedInvokeStaticOrDirectDispatch(desired_dispatch_info, callee); in SharpenInvokeStaticOrDirect()
130 CodeGenerator* codegen, in ComputeLoadClassKind() argument
154 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in ComputeLoadClassKind()
199 load_kind = codegen->GetSupportedLoadClassKind(desired_load_kind); in ComputeLoadClassKind()
214 static inline bool CanUseTypeCheckBitstring(ObjPtr<mirror::Class> klass, CodeGenerator* codegen) in CanUseTypeCheckBitstring() argument
221 } else if (codegen->GetCompilerOptions().IsBootImage()) { in CanUseTypeCheckBitstring()
[all …]
Dregister_allocator_test.cc69 const CodeGenerator& codegen) { in ValidateIntervals() argument
73 codegen, in ValidateIntervals()
90 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in Check() local
91 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in Check()
94 RegisterAllocator::Create(GetScopedAllocator(), &codegen, liveness, strategy); in Check()
105 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in TEST_F() local
113 ASSERT_TRUE(ValidateIntervals(intervals, codegen)); in TEST_F()
116 ASSERT_FALSE(ValidateIntervals(intervals, codegen)); in TEST_F()
126 ASSERT_TRUE(ValidateIntervals(intervals, codegen)); in TEST_F()
129 ASSERT_TRUE(ValidateIntervals(intervals, codegen)); in TEST_F()
[all …]
Dsharpening.h34 ArtMethod* callee, CodeGenerator* codegen);
38 CodeGenerator* codegen,
44 CodeGenerator* codegen,
50 CodeGenerator* codegen,
Dregister_allocator.cc33 CodeGenerator* codegen, in RegisterAllocator() argument
36 codegen_(codegen), in RegisterAllocator()
40 CodeGenerator* codegen, in Create() argument
46 new (allocator) RegisterAllocatorLinearScan(allocator, codegen, analysis)); in Create()
49 new (allocator) RegisterAllocatorGraphColor(allocator, codegen, analysis)); in Create()
112 const CodeGenerator& codegen, in ValidateIntervals() argument
116 ? codegen.GetNumberOfCoreRegisters() in ValidateIntervals()
117 : codegen.GetNumberOfFloatingPointRegisters(); in ValidateIntervals()
118 ScopedArenaAllocator allocator(codegen.GetGraph()->GetArenaStack()); in ValidateIntervals()
168 CHECK(codegen.HasAllocatedRegister(processing_core_registers, current->GetRegister())); in ValidateIntervals()
[all …]
Dintrinsics_arm64.h42 explicit IntrinsicLocationsBuilderARM64(ArenaAllocator* allocator, CodeGeneratorARM64* codegen) in IntrinsicLocationsBuilderARM64() argument
43 : allocator_(allocator), codegen_(codegen) {} in IntrinsicLocationsBuilderARM64()
68 explicit IntrinsicCodeGeneratorARM64(CodeGeneratorARM64* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorARM64() argument
Doptimization.cc183 CodeGenerator* codegen, in ConstructOptimizations() argument
231 graph, &codegen->GetCompilerOptions(), most_recent_induction, stats, pass_name); in ConstructOptimizations()
257 codegen, in ConstructOptimizations()
273 opt = new (allocator) InstructionSimplifier(graph, codegen, stats, pass_name); in ConstructOptimizations()
286 graph, codegen->GetCompilerOptions().GetInstructionSet(), codegen, pass_name); in ConstructOptimizations()
306 opt = new (allocator) mips::PcRelativeFixups(graph, codegen, stats); in ConstructOptimizations()
310 opt = new (allocator) mips::InstructionSimplifierMips(graph, codegen, stats); in ConstructOptimizations()
316 opt = new (allocator) x86::PcRelativeFixups(graph, codegen, stats); in ConstructOptimizations()
320 opt = new (allocator) x86::X86MemoryOperandGeneration(graph, codegen, stats); in ConstructOptimizations()
323 opt = new (allocator) x86::InstructionSimplifierX86(graph, codegen, stats); in ConstructOptimizations()
[all …]
Dcodegen_test_utils.h256 const CodeGenerator& codegen, in Run() argument
259 InstructionSet target_isa = codegen.GetInstructionSet(); in Run()
283 static void RunCodeNoCheck(CodeGenerator* codegen, in RunCodeNoCheck() argument
290 SsaLivenessAnalysis liveness(graph, codegen, &local_allocator); in RunCodeNoCheck()
291 PrepareForRegisterAllocation(graph, codegen->GetCompilerOptions()).Run(); in RunCodeNoCheck()
294 RegisterAllocator::Create(&local_allocator, codegen, liveness); in RunCodeNoCheck()
299 codegen->Compile(&allocator); in RunCodeNoCheck()
300 Run(allocator, *codegen, has_result, expected); in RunCodeNoCheck()
304 static void RunCode(CodeGenerator* codegen, in RunCode() argument
310 RunCodeNoCheck(codegen, graph, hook_before_codegen, has_result, expected); in RunCode()
[all …]
Dlive_ranges_test.cc64 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
65 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
108 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
109 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
155 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
156 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
230 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
231 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
305 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
306 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
[all …]
Dintrinsics_x86_64.h35 explicit IntrinsicLocationsBuilderX86_64(CodeGeneratorX86_64* codegen);
60 explicit IntrinsicCodeGeneratorX86_64(CodeGeneratorX86_64* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorX86_64() argument
Dintrinsics_arm_vixl.h32 explicit IntrinsicLocationsBuilderARMVIXL(CodeGeneratorARMVIXL* codegen);
59 explicit IntrinsicCodeGeneratorARMVIXL(CodeGeneratorARMVIXL* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorARMVIXL() argument
Dintrinsics_mips.h35 explicit IntrinsicLocationsBuilderMIPS(CodeGeneratorMIPS* codegen);
60 explicit IntrinsicCodeGeneratorMIPS(CodeGeneratorMIPS* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorMIPS() argument
Dintrinsics_x86.h35 explicit IntrinsicLocationsBuilderX86(CodeGeneratorX86* codegen);
60 explicit IntrinsicCodeGeneratorX86(CodeGeneratorX86* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorX86() argument
Dintrinsics_mips64.h35 explicit IntrinsicLocationsBuilderMIPS64(CodeGeneratorMIPS64* codegen);
60 explicit IntrinsicCodeGeneratorMIPS64(CodeGeneratorMIPS64* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorMIPS64() argument
Dregister_allocator.h49 CodeGenerator* codegen,
70 const CodeGenerator& codegen,
78 CodeGenerator* codegen,
Dinstruction_simplifier_x86.h29 InstructionSimplifierX86(HGraph* graph, CodeGenerator* codegen, OptimizingCompilerStats* stats) in InstructionSimplifierX86() argument
31 codegen_(codegen) {} in InstructionSimplifierX86()
Dpc_relative_fixups_mips.h31 PcRelativeFixups(HGraph* graph, CodeGenerator* codegen, OptimizingCompilerStats* stats) in PcRelativeFixups() argument
33 codegen_(codegen) {} in PcRelativeFixups()
Dinstruction_simplifier_x86_64.h30 InstructionSimplifierX86_64(HGraph* graph, CodeGenerator* codegen, OptimizingCompilerStats* stats) in InstructionSimplifierX86_64() argument
32 codegen_(codegen) {} in InstructionSimplifierX86_64()
Dpc_relative_fixups_x86.h31 PcRelativeFixups(HGraph* graph, CodeGenerator* codegen, OptimizingCompilerStats* stats) in PcRelativeFixups() argument
33 codegen_(codegen) {} in PcRelativeFixups()
Dinstruction_simplifier_mips.h32 InstructionSimplifierMips(HGraph* graph, CodeGenerator* codegen, OptimizingCompilerStats* stats) in InstructionSimplifierMips() argument
34 codegen_(down_cast<CodeGeneratorMIPS*>(codegen)) {} in InstructionSimplifierMips()
Dinstruction_simplifier.h41 CodeGenerator* codegen,
45 codegen_(codegen) {} in HOptimization()
Dx86_memory_gen.cc73 CodeGenerator* codegen, in X86MemoryOperandGeneration() argument
76 do_implicit_null_checks_(codegen->GetCompilerOptions().GetImplicitNullChecks()) { in X86MemoryOperandGeneration()
Dinstruction_simplifier_x86_64.cc27 CodeGenerator* codegen, in InstructionSimplifierX86_64Visitor() argument
30 codegen_(down_cast<CodeGeneratorX86_64*>(codegen)), in InstructionSimplifierX86_64Visitor()
Dinstruction_simplifier_x86.cc27 CodeGenerator* codegen, in InstructionSimplifierX86Visitor() argument
30 codegen_(down_cast<CodeGeneratorX86*>(codegen)), in InstructionSimplifierX86Visitor()

1234