• Home
  • Raw
  • Download

Lines Matching refs:opr

369         set->unode.opr.op[0] = lvalue;  in new_set()
370 set->unode.opr.op[1] = expression; in new_set()
382 set->unode.opr.op[0] = lvalue; in new_plus_eq()
383 set->unode.opr.op[1] = expression; in new_plus_eq()
388 precommit_node(set->unode.opr.op[1]); in commit_plus_eq()
390 printf("add %s %s\n", set->unode.opr.op[0]->str, set->unode.opr.op[1]->str); in commit_plus_eq()
393 commit_node(set->unode.opr.op[0],0); in commit_plus_eq()
394 commit_node(set->unode.opr.op[1],1); in commit_plus_eq()
401 set->unode.opr.op[0] = lvalue; in new_sub_eq()
402 set->unode.opr.op[1] = expression; in new_sub_eq()
407 precommit_node(set->unode.opr.op[1]); in commit_sub_eq()
409 printf("sub %s %s\n", set->unode.opr.op[0]->str, set->unode.opr.op[1]->str); in commit_sub_eq()
412 commit_node(set->unode.opr.op[0],0); in commit_sub_eq()
413 commit_node(set->unode.opr.op[1],1); in commit_sub_eq()
420 set->unode.opr.op[0] = lvalue; in new_mul_eq()
421 set->unode.opr.op[1] = expression; in new_mul_eq()
426 precommit_node(set->unode.opr.op[1]); in commit_mul_eq()
428 printf("mul %s %s\n", set->unode.opr.op[0]->str, set->unode.opr.op[1]->str); in commit_mul_eq()
431 commit_node(set->unode.opr.op[0],0); in commit_mul_eq()
432 commit_node(set->unode.opr.op[1],1); in commit_mul_eq()
439 set->unode.opr.op[0] = lvalue; in new_div_eq()
440 set->unode.opr.op[1] = expression; in new_div_eq()
445 precommit_node(set->unode.opr.op[1]); in commit_div_eq()
447 printf("div %s %s\n", set->unode.opr.op[0]->str, set->unode.opr.op[1]->str); in commit_div_eq()
450 commit_node(set->unode.opr.op[0],0); in commit_div_eq()
451 commit_node(set->unode.opr.op[1],1); in commit_div_eq()
462 switch (expr->unode.opr.nbOp) { in precommit_expr()
464 precommit_node(expr->unode.opr.op[1]); in precommit_expr()
466 precommit_node(expr->unode.opr.op[0]); in precommit_expr()
469 if (is_tmp_expr(expr->unode.opr.op[0])) { in precommit_expr()
470 tmp = expr->unode.opr.op[0]; in precommit_expr()
473 …else if (is_commutative_expr(instr_id) && (expr->unode.opr.nbOp==2) && is_tmp_expr(expr->unode.opr in precommit_expr()
474 tmp = expr->unode.opr.op[1]; in precommit_expr()
480 if (expr->unode.opr.op[0]->type == CONST_INT_NODE) { in precommit_expr()
484 else if (expr->unode.opr.op[0]->type == CONST_FLOAT_NODE) { in precommit_expr()
488 else if (expr->unode.opr.op[0]->type == CONST_PTR_NODE) { in precommit_expr()
493 … int type = gsl_type_of_var(expr->unode.opr.op[0]->vnamespace, expr->unode.opr.op[0]->str); in precommit_expr()
510 expr->line_number, expr->unode.opr.op[0]->str); in precommit_expr()
523 commit_node(new_set(tmp,expr->unode.opr.op[0]),0); in precommit_expr()
531 if (expr->unode.opr.nbOp == 2) in precommit_expr()
532 printf("%s %s %s\n", type, tmp->str, expr->unode.opr.op[toAdd]->str); in precommit_expr()
536 …currentGoomSL->instr = gsl_instr_init(currentGoomSL, type, instr_id, expr->unode.opr.nbOp, expr->l… in precommit_expr()
539 if (expr->unode.opr.nbOp == 2) { in precommit_expr()
540 commit_node(expr->unode.opr.op[toAdd],1); in precommit_expr()
552 add->unode.opr.op[0] = expr1; in new_expr1()
559 add->unode.opr.op[0] = expr1; in new_expr2()
560 add->unode.opr.op[1] = expr2; in new_expr2()
613 expr->line_number, expr->unode.opr.op[0]->str); in new_neg()
684 commit_node(call->unode.opr.op[0],0); in precommit_call_expr()
697 precommit_node(set->unode.opr.op[0]); in commit_test2()
698 precommit_node(set->unode.opr.op[1]); in commit_test2()
699 tmp = set->unode.opr.op[0]; in commit_test2()
702 if (set->unode.opr.op[0]->type == CONST_INT_NODE) { in commit_test2()
706 else if (set->unode.opr.op[0]->type == CONST_FLOAT_NODE) { in commit_test2()
710 else if (set->unode.opr.op[0]->type == CONST_PTR_NODE) { in commit_test2()
718 commit_node(new_set(tmp,set->unode.opr.op[0]),0); in commit_test2()
723 printf("%s %s %s\n", type, tmp->str, set->unode.opr.op[1]->str); in commit_test2()
727 commit_node(set->unode.opr.op[1],1); in commit_test2()
736 commit_node(set->unode.opr.op[0],0); in commit_not()
763 node->unode.opr.op[0] = expression; in new_while()
764 node->unode.opr.op[1] = instr; in new_while()
779 commit_node(node->unode.opr.op[1],0); in commit_while()
782 commit_node(node->unode.opr.op[0],0); in commit_while()
789 node->unode.opr.op[0] = var; in new_static_foreach()
790 node->unode.opr.op[1] = var_list; in new_static_foreach()
791 node->unode.opr.op[2] = instr; in new_static_foreach()
797 NodeType *cur = node->unode.opr.op[1]; in commit_foreach()
806 precommit_node(node->unode.opr.op[2]); in commit_foreach()
807 commit_node(node->unode.opr.op[2], 0); in commit_foreach()
822 x = nodeClone(node->unode.opr.op[0]); in commit_foreach()
823 var = nodeClone(cur->unode.opr.op[0]); in commit_foreach()
834 x = nodeClone(node->unode.opr.op[0]); in commit_foreach()
835 var = cur->unode.opr.op[0]; in commit_foreach()
837 cur = cur->unode.opr.op[1]; in commit_foreach()
839 nodeFree(node->unode.opr.op[0]); in commit_foreach()
845 node->unode.opr.op[0] = expression; in new_if()
846 node->unode.opr.op[1] = instr; in new_if()
853 commit_node(node->unode.opr.op[0],0); in commit_if()
856 commit_node(node->unode.opr.op[1],0); in commit_if()
863 blk->unode.opr.op[0] = new_nop("start_of_block"); in new_block()
864 blk->unode.opr.op[1] = lastNode; in new_block()
868 commit_node(node->unode.opr.op[0]->unode.opr.next,0); in commit_block()
904 node->unode.opr.op[0] = set; in new_affec_list()
905 node->unode.opr.op[1] = next; in new_affec_list()
913 NodeType *set = cur->unode.opr.op[0]; in new_affect_list_after()
914 NodeType *next = cur->unode.opr.op[1]; in new_affect_list_after()
915 NodeType *lvalue = set->unode.opr.op[0]; in new_affect_list_after()
916 NodeType *expression = set->unode.opr.op[1]; in new_affect_list_after()
929 NodeType *set = cur->unode.opr.op[0]; in commit_affect_list()
930 precommit_node(set->unode.opr.op[0]); in commit_affect_list()
931 precommit_node(set->unode.opr.op[1]); in commit_affect_list()
932 cur = cur->unode.opr.op[1]; in commit_affect_list()
936 NodeType *set = cur->unode.opr.op[0]; in commit_affect_list()
938 cur = cur->unode.opr.op[1]; in commit_affect_list()
946 node->unode.opr.op[0] = var; in new_var_list()
947 node->unode.opr.op[1] = next; in new_var_list()
974 node->unode.opr.op[0] = affect_list; in new_call()
984 node->unode.opr.op[0] = affect_list; in new_call()
990 NodeType *alafter = new_affect_list_after(node->unode.opr.op[0]); in commit_ext_call()
991 commit_node(node->unode.opr.op[0],0); in commit_ext_call()
1000 NodeType *alafter = new_affect_list_after(node->unode.opr.op[0]); in commit_call()
1001 commit_node(node->unode.opr.op[0],0); in commit_call()
1017 lastNode->unode.opr.next = curNode; in gsl_append()
1019 while(lastNode->unode.opr.next) lastNode = lastNode->unode.opr.next; in gsl_append()
1087 switch(node->unode.opr.type) { in precommit_node()
1102 switch(node->unode.opr.type) { in commit_node()
1126 …commit_node(node->unode.opr.next,0); /* recursive for the moment, maybe better to do something ite… in commit_node()
1205 node->unode.opr.next = 0; in new_op()
1206 node->unode.opr.type = type; in new_op()
1207 node->unode.opr.nbOp = nbOp; in new_op()
1208 for (i=0;i<nbOp;++i) node->unode.opr.op[i] = 0; in new_op()
1349 | '{' '\n' start_block gsl_code '}' '\n' { lastNode = $3->unode.opr.op[1]; $$=$3; }
1366 start_block: { $$ = new_block(lastNode); lastNode = $$->unode.opr.op[0]; }