Lines Matching refs:expr

23 extern void set_spectre_first_half(struct expression *expr);
27 static int is_write(struct expression *expr) in is_write() argument
32 static int is_read(struct expression *expr) in is_read() argument
37 if (is_write(expr)) in is_read()
40 last_parent = expr; in is_read()
41 while ((parent = expr_get_parent_expr(expr))){ in is_read()
50 if (parent->right == expr) in is_read()
52 if (parent->left == expr) in is_read()
55 expr = parent; in is_read()
65 static int is_harmless(struct expression *expr) in is_harmless() argument
71 parent = expr; in is_harmless()
93 static unsigned long long get_max_by_type(struct expression *expr) in get_max_by_type() argument
103 expr = strip_parens(expr); in get_max_by_type()
104 type = get_type(expr); in get_max_by_type()
107 if (expr->type == EXPR_PREOP) { in get_max_by_type()
108 expr = expr->unop; in get_max_by_type()
109 } else if (expr->type == EXPR_BINOP) { in get_max_by_type()
110 if (expr->op == '%' || expr->op == '&') in get_max_by_type()
111 expr = expr->right; in get_max_by_type()
115 expr = get_assigned_expr(expr); in get_max_by_type()
116 if (!expr) in get_max_by_type()
126 static unsigned long long get_mask(struct expression *expr) in get_mask() argument
132 expr = strip_expr(expr); in get_mask()
134 tmp = get_assigned_expr(expr); in get_mask()
136 expr = tmp; in get_mask()
139 tmp = get_assigned_expr(expr); in get_mask()
142 if (expr->type == EXPR_BINOP && expr->op == '&') { in get_mask()
143 if (get_value(expr->right, &mask)) /* right is the common case */ in get_mask()
145 if (get_value(expr->left, &mask)) in get_mask()
152 static void array_check(struct expression *expr) in array_check() argument
160 expr = strip_expr(expr); in array_check()
161 if (!is_array(expr)) in array_check()
166 if (is_harmless(expr)) in array_check()
169 array_expr = get_array_base(expr); in array_check()
171 set_spectre_first_half(expr); in array_check()
175 offset = get_array_offset(expr); in array_check()
197 is_read(expr) ? "r" : "w", in array_check()
200 set_spectre_first_half(expr); in array_check()