Home
last modified time | relevance | path

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

123

/art/compiler/optimizing/
Dintrinsics_utils.h47 Location MoveArguments(CodeGenerator* codegen) { in MoveArguments() argument
49 IntrinsicVisitor::MoveArguments(invoke_, codegen, &calling_convention_visitor); in MoveArguments()
53 void EmitNativeCode(CodeGenerator* codegen) override { in EmitNativeCode() argument
54 TAssembler* assembler = down_cast<TAssembler*>(codegen->GetAssembler()); in EmitNativeCode()
57 this->SaveLiveRegisters(codegen, invoke_->GetLocations()); in EmitNativeCode()
59 Location method_loc = MoveArguments(codegen); in EmitNativeCode()
67 codegen->GenerateStaticOrDirectCall(invoke_static_or_direct, method_loc, this); in EmitNativeCode()
69 codegen->GenerateVirtualCall(invoke_->AsInvokeVirtual(), method_loc, this); in EmitNativeCode()
77 codegen->MoveFromReturnRegister(out, invoke_->GetType()); in EmitNativeCode()
80 this->RestoreLiveRegisters(codegen, invoke_->GetLocations()); in EmitNativeCode()
Doptimizing_compiler.cc107 CodeGenerator* codegen, in PassObserver() argument
120 visualizer_(&visualizer_oss_, graph, *codegen), in PassObserver()
121 codegen_(codegen), in PassObserver()
130 codegen->SetDisassemblyInformation(&disasm_info_); in PassObserver()
308 CodeGenerator* codegen, in RunOptimizations() argument
320 codegen, in RunOptimizations()
349 CodeGenerator* codegen, in RunOptimizations() argument
354 graph, codegen, dex_compilation_unit, pass_observer, definitions, length); in RunOptimizations()
358 CodeGenerator* codegen,
366 CodeGenerator* codegen,
[all …]
Dregister_allocator_test.cc69 const CodeGenerator& codegen) { in ValidateIntervals() argument
73 codegen, in ValidateIntervals()
92 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in Check() local
93 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in Check()
96 RegisterAllocator::Create(GetScopedAllocator(), &codegen, liveness, strategy); in Check()
107 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in TEST_F() local
115 ASSERT_TRUE(ValidateIntervals(intervals, codegen)); in TEST_F()
118 ASSERT_FALSE(ValidateIntervals(intervals, codegen)); in TEST_F()
128 ASSERT_TRUE(ValidateIntervals(intervals, codegen)); in TEST_F()
131 ASSERT_TRUE(ValidateIntervals(intervals, codegen)); in TEST_F()
[all …]
Dsharpening.h34 ArtMethod* callee, CodeGenerator* codegen);
38 CodeGenerator* codegen,
44 CodeGenerator* codegen,
50 CodeGenerator* codegen,
Dsharpening.cc61 ArtMethod* callee, CodeGenerator* codegen) { in SharpenInvokeStaticOrDirect() argument
85 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in SharpenInvokeStaticOrDirect()
86 if (callee == codegen->GetGraph()->GetArtMethod() && !codegen->GetGraph()->IsDebuggable()) { in SharpenInvokeStaticOrDirect()
134 if (codegen->GetGraph()->IsDebuggable()) { in SharpenInvokeStaticOrDirect()
143 return codegen->GetSupportedInvokeStaticOrDirectDispatch(desired_dispatch_info, callee); in SharpenInvokeStaticOrDirect()
148 CodeGenerator* codegen, in ComputeLoadClassKind() argument
172 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in ComputeLoadClassKind()
229 load_kind = codegen->GetSupportedLoadClassKind(desired_load_kind); in ComputeLoadClassKind()
244 static inline bool CanUseTypeCheckBitstring(ObjPtr<mirror::Class> klass, CodeGenerator* codegen) in CanUseTypeCheckBitstring() argument
249 const CompilerOptions& compiler_options = codegen->GetCompilerOptions(); in CanUseTypeCheckBitstring()
[all …]
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()
101 const CodeGenerator& codegen, in ValidateIntervals() argument
105 ? codegen.GetNumberOfCoreRegisters() in ValidateIntervals()
106 : codegen.GetNumberOfFloatingPointRegisters(); in ValidateIntervals()
107 ScopedArenaAllocator allocator(codegen.GetGraph()->GetArenaStack()); in ValidateIntervals()
157 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
Dcodegen_test_utils.h246 const CodeGenerator& codegen, in Run() argument
249 InstructionSet target_isa = codegen.GetInstructionSet(); in Run()
273 static void RunCodeNoCheck(CodeGenerator* codegen, in RunCodeNoCheck() argument
280 SsaLivenessAnalysis liveness(graph, codegen, &local_allocator); in RunCodeNoCheck()
281 PrepareForRegisterAllocation(graph, codegen->GetCompilerOptions()).Run(); in RunCodeNoCheck()
284 RegisterAllocator::Create(&local_allocator, codegen, liveness); in RunCodeNoCheck()
289 codegen->Compile(&allocator); in RunCodeNoCheck()
290 Run(allocator, *codegen, has_result, expected); in RunCodeNoCheck()
294 static void RunCode(CodeGenerator* codegen, in RunCode() argument
300 RunCodeNoCheck(codegen, graph, hook_before_codegen, has_result, expected); in RunCode()
[all …]
Doptimization.cc166 CodeGenerator* codegen, in ConstructOptimizations() argument
209 graph, *codegen, most_recent_induction, stats, pass_name); in ConstructOptimizations()
235 codegen, in ConstructOptimizations()
250 opt = new (allocator) InstructionSimplifier(graph, codegen, stats, pass_name); in ConstructOptimizations()
254 codegen, in ConstructOptimizations()
270 graph, codegen->GetCompilerOptions().GetInstructionSet(), codegen, pass_name); in ConstructOptimizations()
290 opt = new (allocator) x86::PcRelativeFixups(graph, codegen, stats); in ConstructOptimizations()
294 opt = new (allocator) x86::X86MemoryOperandGeneration(graph, codegen, stats); in ConstructOptimizations()
297 opt = new (allocator) x86::InstructionSimplifierX86(graph, codegen, stats); in ConstructOptimizations()
302 opt = new (allocator) x86_64::InstructionSimplifierX86_64(graph, codegen, stats); in ConstructOptimizations()
Dlive_ranges_test.cc67 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
68 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
111 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
112 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
158 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
159 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
233 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
234 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
308 std::unique_ptr<CodeGenerator> codegen = CodeGenerator::Create(graph, *compiler_options_); in TEST_F() local
309 SsaLivenessAnalysis liveness(graph, codegen.get(), GetScopedAllocator()); in TEST_F()
[all …]
Dintrinsics_arm_vixl.h32 explicit IntrinsicLocationsBuilderARMVIXL(CodeGeneratorARMVIXL* codegen);
59 explicit IntrinsicCodeGeneratorARMVIXL(CodeGeneratorARMVIXL* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorARMVIXL() argument
Dintrinsics_x86_64.h35 explicit IntrinsicLocationsBuilderX86_64(CodeGeneratorX86_64* codegen);
60 explicit IntrinsicCodeGeneratorX86_64(CodeGeneratorX86_64* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorX86_64() argument
Dregister_allocator.h49 CodeGenerator* codegen,
67 const CodeGenerator& codegen,
75 CodeGenerator* codegen,
Dintrinsics_x86.h35 explicit IntrinsicLocationsBuilderX86(CodeGeneratorX86* codegen);
60 explicit IntrinsicCodeGeneratorX86(CodeGeneratorX86* codegen) : codegen_(codegen) {} in IntrinsicCodeGeneratorX86() argument
Dpc_relative_fixups_x86.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()
Dinstruction_simplifier_x86.h29 InstructionSimplifierX86(HGraph* graph, CodeGenerator* codegen, OptimizingCompilerStats* stats) in InstructionSimplifierX86() argument
31 codegen_(codegen) {} in InstructionSimplifierX86()
Dinstruction_simplifier.h41 CodeGenerator* codegen,
46 codegen_(codegen), in HOptimization()
Dcodegen_test.cc723 arm::CodeGeneratorARMVIXL codegen(graph, *compiler_options); in TEST_F() local
725 codegen.Initialize(); in TEST_F()
734 codegen.GetMoveResolver()->EmitNativeCode(move); in TEST_F()
737 codegen.Finalize(&code_allocator); in TEST_F()
747 arm64::CodeGeneratorARM64 codegen(graph, *compiler_options); in TEST_F() local
749 codegen.Initialize(); in TEST_F()
786 codegen.GetMoveResolver()->EmitNativeCode(move); in TEST_F()
789 codegen.Finalize(&code_allocator); in TEST_F()
797 arm64::CodeGeneratorARM64 codegen(graph, *compiler_options); in TEST_F() local
799 codegen.Initialize(); in TEST_F()
[all …]
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()
Dintrinsics.h70 CodeGenerator* codegen, in INTRINSICS_LIST()
88 HParallelMove parallel_move(codegen->GetGraph()->GetAllocator()); in INTRINSICS_LIST()
98 codegen->GetMoveResolver()->EmitNativeCode(&parallel_move); in INTRINSICS_LIST()
102 CodeGenerator* codegen,
291 bool IsCallFreeIntrinsic(HInvoke* invoke, Codegenerator* codegen) { in IsCallFreeIntrinsic() argument
300 IntrinsicLocationsBuilder builder(codegen); in IsCallFreeIntrinsic()
Dinstruction_simplifier_x86.cc27 CodeGenerator* codegen, in InstructionSimplifierX86Visitor() argument
30 codegen_(down_cast<CodeGeneratorX86*>(codegen)), in InstructionSimplifierX86Visitor()
/art/test/1960-checker-bounds-codegen/
DAndroid.bp3 name: "art-run-test-1960-checker-bounds-codegen",
/art/test/566-checker-codegen-select/
DAndroid.bp3 name: "art-run-test-566-checker-codegen-select",

123