Lines Matching refs:if_block

37   HBasicBlock* if_block = new (GetAllocator()) HBasicBlock(graph);  in CreateIfBlock()  local
38 graph->AddBlock(if_block); in CreateIfBlock()
41 if_block->AddInstruction(equal); in CreateIfBlock()
43 if_block->AddInstruction(instr); in CreateIfBlock()
44 return if_block; in CreateIfBlock()
83 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
88 entry_block->AddSuccessor(if_block); in TEST_F()
89 if_block->AddSuccessor(if_true); in TEST_F()
91 if_block->AddSuccessor(return_block); in TEST_F()
94 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_true); in TEST_F()
95 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
100 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_true); in TEST_F()
103 HBasicBlock* false_block = if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(); in TEST_F()
115 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
120 entry_block->AddSuccessor(if_block); in TEST_F()
121 if_block->AddSuccessor(return_block); in TEST_F()
123 if_block->AddSuccessor(if_false); in TEST_F()
126 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
127 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_false); in TEST_F()
132 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_false); in TEST_F()
135 HBasicBlock* true_block = if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(); in TEST_F()
147 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
151 entry_block->AddSuccessor(if_block); in TEST_F()
152 if_block->AddSuccessor(if_block); in TEST_F()
153 if_block->AddSuccessor(return_block); in TEST_F()
156 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_block); in TEST_F()
157 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
162 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
165 ASSERT_EQ(if_block->GetPredecessors().size(), 2u); in TEST_F()
166 ASSERT_EQ(if_block->GetPredecessors()[0], entry_block->GetSingleSuccessor()); in TEST_F()
167 ASSERT_NE(if_block->GetPredecessors()[1], if_block); in TEST_F()
170 ASSERT_EQ(if_block->GetPredecessors()[1], in TEST_F()
171 if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor()); in TEST_F()
179 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
183 entry_block->AddSuccessor(if_block); in TEST_F()
184 if_block->AddSuccessor(return_block); in TEST_F()
185 if_block->AddSuccessor(if_block); in TEST_F()
188 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
189 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_block); in TEST_F()
194 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
197 ASSERT_EQ(if_block->GetPredecessors().size(), 2u); in TEST_F()
198 ASSERT_EQ(if_block->GetPredecessors()[0], entry_block->GetSingleSuccessor()); in TEST_F()
199 ASSERT_NE(if_block->GetPredecessors()[1], if_block); in TEST_F()
202 ASSERT_EQ(if_block->GetPredecessors()[1], in TEST_F()
203 if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor()); in TEST_F()
212 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
217 first_if_block->AddSuccessor(if_block); in TEST_F()
220 if_block->AddSuccessor(loop_block); in TEST_F()
221 if_block->AddSuccessor(return_block); in TEST_F()
224 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), loop_block); in TEST_F()
225 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block); in TEST_F()
229 HIf* if_instr = if_block->GetLastInstruction()->AsIf(); in TEST_F()
248 HBasicBlock* if_block = CreateIfBlock(graph); in TEST_F() local
253 first_if_block->AddSuccessor(if_block); in TEST_F()
256 if_block->AddSuccessor(return_block); in TEST_F()
257 if_block->AddSuccessor(loop_block); in TEST_F()
259 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block); in TEST_F()
260 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), loop_block); in TEST_F()
264 HIf* if_instr = if_block->GetLastInstruction()->AsIf(); in TEST_F()