Lines Matching refs:graph_
36 : graph_(CreateGraph()), in InductionVarRangeTest()
37 iva_(new (GetAllocator()) HInductionVarAnalysis(graph_)), in InductionVarRangeTest()
62 graph_->SetNumberOfVRegs(1); in BuildGraph()
63 entry_block_ = new (GetAllocator()) HBasicBlock(graph_); in BuildGraph()
64 exit_block_ = new (GetAllocator()) HBasicBlock(graph_); in BuildGraph()
65 graph_->AddBlock(entry_block_); in BuildGraph()
66 graph_->AddBlock(exit_block_); in BuildGraph()
67 graph_->SetEntryBlock(entry_block_); in BuildGraph()
68 graph_->SetExitBlock(exit_block_); in BuildGraph()
70 x_ = new (GetAllocator()) HParameterValue(graph_->GetDexFile(), in BuildGraph()
75 y_ = new (GetAllocator()) HParameterValue(graph_->GetDexFile(), in BuildGraph()
87 loop_preheader_ = new (GetAllocator()) HBasicBlock(graph_); in BuildLoop()
88 graph_->AddBlock(loop_preheader_); in BuildLoop()
89 loop_header_ = new (GetAllocator()) HBasicBlock(graph_); in BuildLoop()
90 graph_->AddBlock(loop_header_); in BuildLoop()
91 loop_body_ = new (GetAllocator()) HBasicBlock(graph_); in BuildLoop()
92 graph_->AddBlock(loop_body_); in BuildLoop()
93 HBasicBlock* return_block = new (GetAllocator()) HBasicBlock(graph_); in BuildLoop()
94 graph_->AddBlock(return_block); in BuildLoop()
105 phi->AddInput(graph_->GetIntConstant(lower)); // i = l in BuildLoop()
114 new (GetAllocator()) HAdd(DataType::Type::kInt32, phi, graph_->GetIntConstant(stride)); in BuildLoop()
124 graph_->BuildDominatorTree(); in PerformInductionVarAnalysis()
150 HLoopInformation loop(exit_block_, graph_); in CreateInvariant()
162 return CreateFetch(graph_->GetIntConstant(c)); in CreateConst()
209 graph_->GetIntConstant(f), in CreateGeometric()
246 HLoopInformation loop(exit_block_, graph_); in NeedsTripCount()
263 HLoopInformation loop(exit_block_, graph_); in GetMin()
278 HLoopInformation loop(exit_block_, graph_); in GetMax()
294 HLoopInformation loop(exit_block_, graph_); in GetMul()
303 HLoopInformation loop(exit_block_, graph_); in GetDiv()
311 HLoopInformation loop(exit_block_, graph_); in GetRem()
319 HLoopInformation loop(exit_block_, graph_); in GetXor()
326 HLoopInformation loop(exit_block_, graph_); in IsExact()
333 HLoopInformation loop(exit_block_, graph_); in IsAtMost()
340 HLoopInformation loop(exit_block_, graph_); in IsAtLeast()
353 HGraph* graph_; member in art::InductionVarRangeTest
498 BuildLoop(0, graph_->GetIntConstant(100), 1); in TEST_F()
548 BuildLoop(0, graph_->GetIntConstant(100), 1); in TEST_F()
950 HAdd(DataType::Type::kInt32, x_, graph_->GetIntConstant(-1)); in TEST_F()
952 HAdd(DataType::Type::kInt32, graph_->GetIntConstant(-1), x_); in TEST_F()
954 HSub(DataType::Type::kInt32, x_, graph_->GetIntConstant(1)); in TEST_F()
956 HSub(DataType::Type::kInt32, graph_->GetIntConstant(1), x_); in TEST_F()
976 BuildLoop(0, graph_->GetIntConstant(1000), 1); in TEST_F()
1011 HInstruction* last = range_.GenerateLastValue(phi, graph_, loop_preheader_); in TEST_F()
1021 EXPECT_TRUE(range_.IsUnitStride(phi->GetBlock(), phi, graph_, &offset)); in TEST_F()
1024 loop_header_->GetLoopInformation(), graph_, loop_preheader_); in TEST_F()
1030 BuildLoop(1000, graph_->GetIntConstant(0), -1); in TEST_F()
1066 HInstruction* last = range_.GenerateLastValue(phi, graph_, loop_preheader_); in TEST_F()
1077 EXPECT_FALSE(range_.IsUnitStride(phi->GetBlock(), phi, graph_, &offset)); in TEST_F()
1079 loop_header_->GetLoopInformation(), graph_, loop_preheader_); in TEST_F()
1126 range_.GenerateRange(increment_->GetBlock(), phi, graph_, loop_preheader_, &lower, &upper); in TEST_F()
1143 HInstruction* taken = range_.GenerateTakenTest(increment_, graph_, loop_preheader_); in TEST_F()
1161 EXPECT_TRUE(range_.IsUnitStride(phi->GetBlock(), phi, graph_, &offset)); in TEST_F()
1164 loop_header_->GetLoopInformation(), graph_, loop_preheader_); in TEST_F()
1210 range_.GenerateRange(increment_->GetBlock(), phi, graph_, loop_preheader_, &lower, &upper); in TEST_F()
1231 HInstruction* taken = range_.GenerateTakenTest(increment_, graph_, loop_preheader_); in TEST_F()
1249 EXPECT_FALSE(range_.IsUnitStride(phi->GetBlock(), phi, graph_, &offset)); in TEST_F()
1251 loop_header_->GetLoopInformation(), graph_, loop_preheader_); in TEST_F()