Lines Matching refs:expr
31 void set_spectre_first_half(struct expression *expr) in set_spectre_first_half() argument
36 name = expr_to_str(expr); in set_spectre_first_half()
37 snprintf(buf, sizeof(buf), "%p %s", expr, name); in set_spectre_first_half()
52 static struct smatch_state *get_spectre_first_half(struct expression *expr) in get_spectre_first_half() argument
57 name = expr_to_str(expr); in get_spectre_first_half()
58 snprintf(buf, sizeof(buf), "%p %s", expr, name); in get_spectre_first_half()
64 static void match_assign(struct expression *expr) in match_assign() argument
68 if (expr->op == SPECIAL_AND_ASSIGN) in match_assign()
71 state = get_spectre_first_half(expr->right); in match_assign()
73 set_state_expr(my_id, expr->left, state); in match_assign()
74 recently_set = expr->left; in match_assign()
77 state = get_state_expr(my_id, expr->right); in match_assign()
80 set_state_expr(my_id, expr->left, state); in match_assign()
81 recently_set = expr->left; in match_assign()
84 static void match_done(struct expression *expr) in match_done() argument
89 if (expr == recently_set) in match_done()
92 state = get_state_expr(my_id, expr); in match_done()
99 name = expr_to_str(expr); in match_done()
103 set_state_expr(my_id, expr, alloc_state_num(-MAX_SPEC_STMT)); in match_done()