Lines Matching refs:graph
91 HGraph* graph = CreateCFG(data); in Check() local
92 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in Check()
93 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in Check()
106 HGraph* graph = CreateGraph(); in TEST_F() local
107 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in TEST_F()
330 HGraph* graph = CreateCFG(data); in Loop3() local
331 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in Loop3()
332 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in Loop3()
339 HBasicBlock* loop_header = graph->GetBlocks()[2]; in Loop3()
348 HBasicBlock* return_block = graph->GetBlocks()[3]; in Loop3()
363 HGraph* graph = CreateCFG(data); in TEST_F() local
364 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in TEST_F()
365 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in TEST_F()
368 HXor* first_xor = graph->GetBlocks()[1]->GetFirstInstruction()->AsXor(); in TEST_F()
369 HXor* last_xor = graph->GetBlocks()[1]->GetLastInstruction()->GetPrevious()->AsXor(); in TEST_F()
413 HGraph* graph = CreateCFG(data); in DeadPhi() local
414 SsaDeadPhiElimination(graph).Run(); in DeadPhi()
415 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in DeadPhi()
416 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in DeadPhi()
437 HGraph* graph = CreateCFG(data); in TEST_F() local
438 SsaDeadPhiElimination(graph).Run(); in TEST_F()
439 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in TEST_F()
440 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in TEST_F()
445 LiveInterval* unhandled = graph->GetEntryBlock()->GetFirstInstruction()->GetLiveInterval(); in TEST_F()
451 graph->GetEntryBlock()->GetFirstInstruction()); in TEST_F()
491 HGraph* graph = CreateGraph(); in BuildIfElseWithPhi() local
492 HBasicBlock* entry = new (GetAllocator()) HBasicBlock(graph); in BuildIfElseWithPhi()
493 graph->AddBlock(entry); in BuildIfElseWithPhi()
494 graph->SetEntryBlock(entry); in BuildIfElseWithPhi()
496 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in BuildIfElseWithPhi()
499 HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph); in BuildIfElseWithPhi()
500 graph->AddBlock(block); in BuildIfElseWithPhi()
510 graph->GetDexFile(), in BuildIfElseWithPhi()
514 HBasicBlock* then = new (GetAllocator()) HBasicBlock(graph); in BuildIfElseWithPhi()
515 HBasicBlock* else_ = new (GetAllocator()) HBasicBlock(graph); in BuildIfElseWithPhi()
516 HBasicBlock* join = new (GetAllocator()) HBasicBlock(graph); in BuildIfElseWithPhi()
517 graph->AddBlock(then); in BuildIfElseWithPhi()
518 graph->AddBlock(else_); in BuildIfElseWithPhi()
519 graph->AddBlock(join); in BuildIfElseWithPhi()
537 graph->GetDexFile(), in BuildIfElseWithPhi()
546 graph->GetDexFile(), in BuildIfElseWithPhi()
554 graph->BuildDominatorTree(); in BuildIfElseWithPhi()
555 graph->AnalyzeLoops(); in BuildIfElseWithPhi()
556 return graph; in BuildIfElseWithPhi()
564 HGraph* graph = BuildIfElseWithPhi(&phi, &input1, &input2); in PhiHint() local
565 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in PhiHint()
566 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in PhiHint()
580 HGraph* graph = BuildIfElseWithPhi(&phi, &input1, &input2); in PhiHint() local
581 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in PhiHint()
582 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in PhiHint()
598 HGraph* graph = BuildIfElseWithPhi(&phi, &input1, &input2); in PhiHint() local
599 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in PhiHint()
600 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in PhiHint()
616 HGraph* graph = BuildIfElseWithPhi(&phi, &input1, &input2); in PhiHint() local
617 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in PhiHint()
618 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in PhiHint()
641 HGraph* graph = CreateGraph(); in BuildFieldReturn() local
642 HBasicBlock* entry = new (GetAllocator()) HBasicBlock(graph); in BuildFieldReturn()
643 graph->AddBlock(entry); in BuildFieldReturn()
644 graph->SetEntryBlock(entry); in BuildFieldReturn()
646 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); in BuildFieldReturn()
649 HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph); in BuildFieldReturn()
650 graph->AddBlock(block); in BuildFieldReturn()
660 graph->GetDexFile(), in BuildFieldReturn()
666 HBasicBlock* exit = new (GetAllocator()) HBasicBlock(graph); in BuildFieldReturn()
667 graph->AddBlock(exit); in BuildFieldReturn()
671 graph->BuildDominatorTree(); in BuildFieldReturn()
672 return graph; in BuildFieldReturn()
679 HGraph* graph = BuildFieldReturn(&field, &ret); in ExpectedInRegisterHint() local
680 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in ExpectedInRegisterHint()
681 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in ExpectedInRegisterHint()
693 HGraph* graph = BuildFieldReturn(&field, &ret); in ExpectedInRegisterHint() local
694 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in ExpectedInRegisterHint()
695 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in ExpectedInRegisterHint()
717 HGraph* graph = CreateGraph(); in BuildTwoSubs() local
718 HBasicBlock* entry = new (GetAllocator()) HBasicBlock(graph); in BuildTwoSubs()
719 graph->AddBlock(entry); in BuildTwoSubs()
720 graph->SetEntryBlock(entry); in BuildTwoSubs()
722 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in BuildTwoSubs()
725 HInstruction* constant1 = graph->GetIntConstant(1); in BuildTwoSubs()
726 HInstruction* constant2 = graph->GetIntConstant(2); in BuildTwoSubs()
728 HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph); in BuildTwoSubs()
729 graph->AddBlock(block); in BuildTwoSubs()
739 graph->BuildDominatorTree(); in BuildTwoSubs()
740 return graph; in BuildTwoSubs()
747 HGraph* graph = BuildTwoSubs(&first_sub, &second_sub); in SameAsFirstInputHint() local
748 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in SameAsFirstInputHint()
749 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in SameAsFirstInputHint()
762 HGraph* graph = BuildTwoSubs(&first_sub, &second_sub); in SameAsFirstInputHint() local
763 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in SameAsFirstInputHint()
764 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in SameAsFirstInputHint()
789 HGraph* graph = CreateGraph(); in BuildDiv() local
790 HBasicBlock* entry = new (GetAllocator()) HBasicBlock(graph); in BuildDiv()
791 graph->AddBlock(entry); in BuildDiv()
792 graph->SetEntryBlock(entry); in BuildDiv()
794 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in BuildDiv()
796 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in BuildDiv()
800 HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph); in BuildDiv()
801 graph->AddBlock(block); in BuildDiv()
810 graph->BuildDominatorTree(); in BuildDiv()
811 return graph; in BuildDiv()
816 HGraph* graph = BuildDiv(&div); in ExpectedExactInRegisterAndSameOutputHint() local
817 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in ExpectedExactInRegisterAndSameOutputHint()
818 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in ExpectedExactInRegisterAndSameOutputHint()
842 HGraph* graph = CreateGraph(); in TEST_F() local
843 HBasicBlock* entry = new (GetAllocator()) HBasicBlock(graph); in TEST_F()
844 graph->AddBlock(entry); in TEST_F()
845 graph->SetEntryBlock(entry); in TEST_F()
847 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in TEST_F()
849 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in TEST_F()
851 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in TEST_F()
853 graph->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kInt32); in TEST_F()
859 HBasicBlock* block = new (GetAllocator()) HBasicBlock(graph); in TEST_F()
860 graph->AddBlock(block); in TEST_F()
915 x86::CodeGeneratorX86 codegen(graph, *compiler_options_); in TEST_F()
916 SsaLivenessAnalysis liveness(graph, &codegen, GetScopedAllocator()); in TEST_F()