Lines Matching refs:ir
55 ir_if_simplification_visitor::visit_enter(ir_assignment *ir) in visit_enter() argument
57 (void) ir; in visit_enter()
72 ir_if_simplification_visitor::visit_leave(ir_if *ir) in visit_leave() argument
75 if (ir->then_instructions.is_empty() && in visit_leave()
76 ir->else_instructions.is_empty()) { in visit_leave()
77 ir->remove(); in visit_leave()
88 ir->condition->constant_expression_value(ralloc_parent(ir)); in visit_leave()
94 ir->insert_before(&ir->then_instructions); in visit_leave()
96 ir->insert_before(&ir->else_instructions); in visit_leave()
98 ir->remove(); in visit_leave()
119 if (ir->then_instructions.is_empty()) { in visit_leave()
120 ir->condition = new(ralloc_parent(ir->condition)) in visit_leave()
121 ir_expression(ir_unop_logic_not, ir->condition); in visit_leave()
122 ir->else_instructions.move_nodes_to(&ir->then_instructions); in visit_leave()