Lines Matching refs:symbol

26 struct symbol *get_real_base_type(struct symbol *sym)  in get_real_base_type()
28 struct symbol *ret; in get_real_base_type()
42 int type_bytes(struct symbol *type) in type_bytes()
55 int array_bytes(struct symbol *type) in array_bytes()
62 static struct symbol *get_binop_type(struct expression *expr) in get_binop_type()
64 struct symbol *left, *right; in get_binop_type()
115 static struct symbol *get_type_symbol(struct expression *expr) in get_type_symbol()
117 if (!expr || expr->type != EXPR_SYMBOL || !expr->symbol) in get_type_symbol()
120 return get_real_base_type(expr->symbol); in get_type_symbol()
123 static struct symbol *get_member_symbol(struct symbol_list *symbol_list, struct ident *member) in get_member_symbol()
125 struct symbol *tmp, *sub; in get_member_symbol()
142 static struct symbol *get_symbol_from_deref(struct expression *expr) in get_symbol_from_deref()
145 struct symbol *sym; in get_symbol_from_deref()
164 static struct symbol *handle__builtin_choose_expr(struct expression *expr) in handle__builtin_choose_expr()
181 static struct symbol *get_return_type(struct expression *expr) in get_return_type()
183 struct symbol *tmp; in get_return_type()
197 static struct symbol *get_expr_stmt_type(struct statement *stmt) in get_expr_stmt_type()
209 static struct symbol *get_select_type(struct expression *expr) in get_select_type()
211 struct symbol *one, *two; in get_select_type()
227 struct symbol *get_pointer_type(struct expression *expr) in get_pointer_type()
229 struct symbol *sym; in get_pointer_type()
244 static struct symbol *fake_pointer_sym(struct expression *expr) in fake_pointer_sym()
246 struct symbol *sym; in fake_pointer_sym()
247 struct symbol *base; in fake_pointer_sym()
258 static struct symbol *get_type_helper(struct expression *expr) in get_type_helper()
260 struct symbol *ret; in get_type_helper()
330 static struct symbol *get_final_type_helper(struct expression *expr) in get_final_type_helper()
350 struct symbol *get_type(struct expression *expr) in get_type()
355 struct symbol *get_final_type(struct expression *expr) in get_final_type()
357 struct symbol *ret; in get_final_type()
365 struct symbol *get_promoted_type(struct symbol *left, struct symbol *right) in get_promoted_type()
367 struct symbol *ret = &int_ctype; in get_promoted_type()
382 int type_signed(struct symbol *base_type) in type_signed()
393 struct symbol *sym; in expr_unsigned()
405 struct symbol *sym; in expr_signed()
415 int returns_unsigned(struct symbol *sym) in returns_unsigned()
431 int returns_pointer(struct symbol *sym) in returns_pointer()
444 static sval_t fp_max(struct symbol *type) in fp_max()
458 sval_t sval_type_max(struct symbol *base_type) in sval_type_max()
473 static sval_t fp_min(struct symbol *type) in fp_min()
487 sval_t sval_type_min(struct symbol *base_type) in sval_type_min()
510 struct symbol *type; in nr_bits()
520 struct symbol *type; in is_void_pointer()
533 struct symbol *type; in is_char_pointer()
554 bool is_struct_ptr(struct symbol *type) in is_struct_ptr()
567 struct symbol *sym; in is_static()
583 struct symbol *sym; in is_local_variable()
585 if (!expr || expr->type != EXPR_SYMBOL || !expr->symbol) in is_local_variable()
587 sym = expr->symbol; in is_local_variable()
593 int types_equiv(struct symbol *one, struct symbol *two) in types_equiv()
608 bool type_fits(struct symbol *type, struct symbol *test) in type_fits()
638 struct symbol *cur_func_return_type(void) in cur_func_return_type()
640 struct symbol *sym; in cur_func_return_type()
649 struct symbol *get_arg_type(struct expression *fn, int arg) in get_arg_type()
651 struct symbol *fn_type; in get_arg_type()
652 struct symbol *tmp; in get_arg_type()
653 struct symbol *arg_type; in get_arg_type()
676 static struct symbol *get_member_from_string(struct symbol_list *symbol_list, const char *name) in get_member_from_string()
678 struct symbol *tmp, *sub; in get_member_from_string()
712 struct symbol *get_member_type_from_key(struct expression *expr, const char *key) in get_member_type_from_key()
714 struct symbol *sym; in get_member_type_from_key()
756 struct symbol *get_arg_type_from_key(struct expression *fn, int param, struct expression *arg, cons… in get_arg_type_from_key()
758 struct symbol *type; in get_arg_type_from_key()
775 struct symbol *type; in is_struct()
784 struct symbol *sym;
820 static const char *base_type_str(struct symbol *sym) in base_type_str()
831 static int type_str_helper(char *buf, int size, struct symbol *type) in type_str_helper()
860 struct symbol *arg, *return_type, *arg_type; in type_str_helper()
900 char *type_to_str(struct symbol *type) in type_to_str()