Lines Matching defs:vtn_if
471 struct vtn_if *if_stmt = vtn_cf_node_as_if(node);
760 struct vtn_if *if_stmt = rzalloc(b, struct vtn_if);
1069 vtn_selection_control(struct vtn_builder *b, struct vtn_if *vtn_if)
1071 if (vtn_if->control == SpvSelectionControlMaskNone)
1073 else if (vtn_if->control & SpvSelectionControlDontFlattenMask)
1075 else if (vtn_if->control & SpvSelectionControlFlattenMask)
1132 struct vtn_if *vtn_if = vtn_cf_node_as_if(node);
1133 const uint32_t *branch = vtn_if->header_block->branch;
1141 if (vtn_if->then_type == vtn_branch_type_none) {
1142 vtn_emit_cf_list_structured(b, &vtn_if->then_body,
1145 vtn_emit_branch(b, vtn_if->then_type, switch_fall_var, &sw_break);
1153 nif->control = vtn_selection_control(b, vtn_if);
1155 if (vtn_if->then_type == vtn_branch_type_none) {
1156 vtn_emit_cf_list_structured(b, &vtn_if->then_body,
1159 vtn_emit_branch(b, vtn_if->then_type, switch_fall_var, &sw_break);
1163 if (vtn_if->else_type == vtn_branch_type_none) {
1164 vtn_emit_cf_list_structured(b, &vtn_if->else_body,
1167 vtn_emit_branch(b, vtn_if->else_type, switch_fall_var, &sw_break);