Lines Matching refs:graph
27 static HBasicBlock* createIfBlock(HGraph* graph, ArenaAllocator* allocator) { in createIfBlock() argument
28 HBasicBlock* if_block = new (allocator) HBasicBlock(graph); in createIfBlock()
29 graph->AddBlock(if_block); in createIfBlock()
30 HInstruction* instr = graph->GetIntConstant(4); in createIfBlock()
38 static HBasicBlock* createGotoBlock(HGraph* graph, ArenaAllocator* allocator) { in createGotoBlock() argument
39 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createGotoBlock()
40 graph->AddBlock(block); in createGotoBlock()
46 static HBasicBlock* createEntryBlock(HGraph* graph, ArenaAllocator* allocator) { in createEntryBlock() argument
47 HBasicBlock* block = createGotoBlock(graph, allocator); in createEntryBlock()
48 graph->SetEntryBlock(block); in createEntryBlock()
52 static HBasicBlock* createReturnBlock(HGraph* graph, ArenaAllocator* allocator) { in createReturnBlock() argument
53 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createReturnBlock()
54 graph->AddBlock(block); in createReturnBlock()
60 static HBasicBlock* createExitBlock(HGraph* graph, ArenaAllocator* allocator) { in createExitBlock() argument
61 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createExitBlock()
62 graph->AddBlock(block); in createExitBlock()
75 HGraph* graph = CreateGraph(&allocator); in TEST() local
76 HBasicBlock* entry_block = createEntryBlock(graph, &allocator); in TEST()
77 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
78 HBasicBlock* if_true = createGotoBlock(graph, &allocator); in TEST()
79 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
80 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
91 graph->SimplifyCFG(); in TEST()
110 HGraph* graph = CreateGraph(&allocator); in TEST() local
111 HBasicBlock* entry_block = createEntryBlock(graph, &allocator); in TEST()
112 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
113 HBasicBlock* if_false = createGotoBlock(graph, &allocator); in TEST()
114 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
115 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
126 graph->SimplifyCFG(); in TEST()
145 HGraph* graph = CreateGraph(&allocator); in TEST() local
146 HBasicBlock* entry_block = createEntryBlock(graph, &allocator); in TEST()
147 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
148 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
149 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
159 graph->BuildDominatorTree(); in TEST()
180 HGraph* graph = CreateGraph(&allocator); in TEST() local
181 HBasicBlock* entry_block = createEntryBlock(graph, &allocator); in TEST()
182 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
183 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
184 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
194 graph->BuildDominatorTree(); in TEST()
215 HGraph* graph = CreateGraph(&allocator); in TEST() local
216 HBasicBlock* entry_block = createEntryBlock(graph, &allocator); in TEST()
217 HBasicBlock* first_if_block = createIfBlock(graph, &allocator); in TEST()
218 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
219 HBasicBlock* loop_block = createGotoBlock(graph, &allocator); in TEST()
220 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
233 graph->BuildDominatorTree(); in TEST()
254 HGraph* graph = CreateGraph(&allocator); in TEST() local
255 HBasicBlock* entry_block = createEntryBlock(graph, &allocator); in TEST()
256 HBasicBlock* first_if_block = createIfBlock(graph, &allocator); in TEST()
257 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
258 HBasicBlock* loop_block = createGotoBlock(graph, &allocator); in TEST()
259 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
271 graph->BuildDominatorTree(); in TEST()
290 HGraph* graph = CreateGraph(&allocator); in TEST() local
291 HBasicBlock* block = createGotoBlock(graph, &allocator); in TEST()