Home
last modified time | relevance | path

Searched refs:bit_size (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/
H A Dsymbol.c105 if (sym->bit_size > info->bit_size) in lay_out_union()
106 info->bit_size = sym->bit_size; in lay_out_union()
136 bit_size = info->bit_size; in lay_out_struct()
200 bit_size = info.bit_size; in examine_struct_union_type()
205 sym->bit_size = bit_size; in examine_struct_union_type()
249 sym->bit_size = bit_size; in examine_array_type()
260 bit_size = base_type->bit_size; in examine_bitfield_type()
261 if (sym->bit_size > bit_size) in examine_bitfield_type()
377 arr_new->bit_size = bit_size; in implicit_array_size()
418 sym->bit_size = bit_size; in examine_node_type()
[all …]
H A Dshow-parse.c77 sym->bit_size, sym->ctype.alignment, in do_debug_symbol()
605 bits = stmt->ret->bit_size; in show_statement()
748 int size = arg->ctype->bit_size; in show_call_expression()
802 expr->ctype->bit_size, in show_binop()
864 bits = expr->ctype->bit_size; in show_assignment()
878 int bits = expr->ctype->bit_size; in show_return_stmt()
893 bits = expr->ctype->bit_size; in show_initialization()
913 int bits = expr->ctype->bit_size; in show_inc_dec()
969 bits = expr->ctype->bit_size; in show_symbol_init()
987 oldbits = old_type->bit_size; in show_cast_expr()
[all …]
H A Dcompile-i386.c929 switch (bit_size) { in emit_scalar()
1064 sym->bit_size / 8); in emit_array()
1091 unsigned int bit_size; in emit_copy() local
1096 if (!bit_size) in emit_copy()
1097 bit_size = 32; in emit_copy()
1099 bit_size = 32; in emit_copy()
1105 if (!bit_size) in emit_copy()
1106 bit_size = 32; in emit_copy()
1108 bit_size = 32; in emit_copy()
1125 sym->bit_size / 8); in emit_scalar_noinit()
[all …]
H A Dexpand.c92 int old_size = oldtype->bit_size; in cast_value()
93 int new_size = newtype->bit_size; in cast_value()
220 mask = 1ULL << (ctype->bit_size-1); in simplify_int_binop()
327 mask = 1ULL << (ctype->bit_size-1); in simplify_cmp_binop()
517 return left->bit_size < right->bit_size; in compare_types()
519 return left->bit_size > right->bit_size; in compare_types()
521 return left->bit_size <= right->bit_size; in compare_types()
523 return left->bit_size >= right->bit_size; in compare_types()
951 size = expr->ctype->bit_size; in bit_range()
986 if (!b->ctype || !b->ctype->bit_size) in verify_nonoverlapping()
[all …]
H A Devaluate.c188 if (left->bit_size > right->bit_size) in bigger_int_type()
191 if (right->bit_size > left->bit_size) in bigger_int_type()
209 return orig->bit_size == new->bit_size && in same_cast_type()
316 if (old->ctype->bit_size < type->bit_size) in cast_to()
328 if (old->ctype->bit_size >= type->bit_size) { in cast_to()
1630 s->bit_size = 0; in examine_fn_arguments()
1715 a->bit_size = expr->base->ctype->bit_size; in degenerate()
1850 node->bit_size = target->bit_size; in evaluate_dereference()
2462 if (ctype->bit_size >= 0 && type->bit_size >= 0) { in check_designators()
2530 if (array_element_offset(old->ctype->bit_size, n) == ctype->bit_size) { in next_designators()
[all …]
H A Dcse.c95 if (!insn->orig_type || insn->orig_type->bit_size < 0) in cse_collect()
100 hash += hashval(insn->orig_type->bit_size); in cse_collect()
245 size1 = i1->orig_type->bit_size; in insn_compare()
246 size2 = i2->orig_type->bit_size; in insn_compare()
H A Dssa.c50 if (bf_seen && (type->bit_size > long_ctype.bit_size)) in is_promotable()
58 if (member->bit_size != type->bit_size) in is_promotable()
H A Dchar.c87 type < TOKEN_WIDE_CHAR ? bits_in_char : wchar_ctype->bit_size, token->pos); in get_char_constant()
116 bits = is_wide ? wchar_ctype->bit_size: bits_in_char; in get_string_constant()
H A Dsparse.c122 int old = orig_type->bit_size; in check_cast_instruction()
284 if (sym->bit_size <= 0) in list_compound_symbol()
305 bits_to_bytes(sym->bit_size), in list_compound_symbol()
H A Dsparse-llvm.c59 assert(base_type->bit_size > 0); in sym_array_type()
65 return LLVMArrayType(elem_type, sym->bit_size / base_type->bit_size); in sym_array_type()
107 union_size = sym->bit_size / 8; in sym_union_type()
132 switch (sym->bit_size) { in sym_basetype_type()
143 die("invalid bit size %d for type %d", sym->bit_size, sym->type); in sym_basetype_type()
147 switch (sym->bit_size) { in sym_basetype_type()
167 die("invalid bit size %d for type %d", sym->bit_size, sym->type); in sym_basetype_type()
188 ret = LLVMIntType(sym->bit_size); in symbol_type()
921 unsigned int width = otype->bit_size; in output_op_cast()
H A Dlib.c1169 unsigned bits = type->bit_size - is_signed_type(type); in predefined_max()
1198 unsigned bits = type->bit_size; in predefined_ctype()
1347 predefine("__mips", 1, "%d", ptr_ctype.bit_size); in predefined_macros()
1348 predefine("_MIPS_SZINT", 1, "%d", int_ctype.bit_size); in predefined_macros()
1349 predefine("_MIPS_SZLONG", 1, "%d", long_ctype.bit_size); in predefined_macros()
1350 predefine("_MIPS_SZPTR", 1, "%d", ptr_ctype.bit_size); in predefined_macros()
1368 predefine("__riscv_xlen", 1, "%d", ptr_ctype.bit_size); in predefined_macros()
H A Dlinearize.c56 return type ? type->bit_size > 0 ? type->bit_size : 0 : 0; in type_size()
1008 unsigned int size = ctype->bit_size; in linearize_bitfield_insert()
1010 unsigned long long smask= bits_mask(btype->bit_size); in linearize_bitfield_insert()
1126 if (ctype->bit_size != type_size(btype)) in linearize_load_gen()
1292 if (dst->bit_size == src->bit_size) in get_cast_opcode()
1336 if (dst->bit_size ==src->bit_size) in get_cast_opcode()
1338 if (dst->bit_size < src->bit_size) in get_cast_opcode()
1367 if (from->bit_size < 0 || to->bit_size < 0) in cast_pseudo()
1374 if (from->bit_size == to->bit_size) in cast_pseudo()
1384 if (from->bit_size == to->bit_size) in cast_pseudo()
H A Dsymbol.h168 int bit_size; member
413 return type->bit_size == bits_in_char && type->type != SYM_BITFIELD; in is_byte_type()
492 unsigned size = ctype->bit_size; in extend_value()
H A Dsimplify.c501 unsigned int orig_size = src->orig_type->bit_size; in operand_size()
1007 if (value && (def->orig_type->bit_size == 1)) in simplify_seteq_setne()
1031 def->size = def->type->bit_size; in simplify_seteq_setne()
1056 osize = def->orig_type->bit_size; in simplify_constant_mask()
1292 mask = 1ULL << (insn->orig_type->bit_size-1); in simplify_constant_unop()
1507 if (size != def->orig_type->bit_size) in simplify_cast()
1527 osize = def->orig_type->bit_size; in simplify_cast()
H A Dflow.c476 if (sym->bit_size > 0 && (offset < 0 || bit > sym->bit_size)) { in check_access()
482 bits_to_bytes(sym->bit_size)); in check_access()
H A Dir.c114 if (ctype && ctype->bit_size > 0 && insn->src == VOID) { in check_return()
H A Dc2xml.c162 newNumProp(node, "bit-size", sym->bit_size); in examine_layout()
H A Dexpression.c131 decl->bit_size = array->bit_size = bytes_to_bits(len + 1); in handle_func()
H A Dparse.c844 int shift = type->bit_size; in type_is_ok()
863 unsigned int size = type->bit_size; in type_range()
907 if (ctype->bit_size == base_type->bit_size) { in cast_enum_list()
1932 bitfield->bit_size = width; in handle_bitfield()
1958 bitfield->bit_size = width; in handle_bitfield()
H A Dsmatch_type.c59 return bits_to_bytes(type->bit_size); in array_bytes()
H A Dbuiltin.c214 switch (expr->ctype->bit_size) { in expand_bswap()
H A Dexample.c1028 unsigned int old = insn->orig_type ? insn->orig_type->bit_size : 0; in generate_cast()
1827 int bits = argtype ? argtype->bit_size : 0; in set_up_arch_entry()
H A Dsmatch.h1340 return type->bit_size; in type_bits()