Home
last modified time | relevance | path

Searched refs:bit_width_ (Results 1 – 5 of 5) sorted by relevance

/external/bcc/src/cc/frontends/b/
Dtype_check.cc96 n->bit_width_ = n->decl_->bit_width_; in visit_ident_expr_node()
109 n->bit_width_ = n->struct_type_->bit_width_; in visit_ident_expr_node()
131 n->bit_width_ = n->sub_decl_->bit_width_; in visit_ident_expr_node()
170 n->bit_width_ = 64; in visit_packet_expr_node()
172 n->bit_width_ = sub_decl->bit_width_; in visit_packet_expr_node()
180 n->bit_width_ = n->bits_; in visit_integer_expr_node()
187 n->bit_width_ = n->val_.size() << 3; in visit_string_expr_node()
206 n->bit_width_ = 1; in visit_binop_expr_node()
208 n->bit_width_ = std::max(n->lhs_->bit_width_, n->rhs_->bit_width_); in visit_binop_expr_node()
316 n->bit_width_ = 32; in visit_method_call_expr_node()
[all …]
Dcodegen_llvm.cc253 … n->bitop_->bit_offset_, bits_to_uint(n->bitop_->bit_width_ + 1), n->bitop_->bit_width_); in visit_ident_expr_node()
299 … n->bitop_->bit_offset_, bits_to_uint(n->bitop_->bit_width_ + 1), n->bitop_->bit_width_); in visit_ident_expr_node()
319 emit(" & ~((((%s)1 << %d) - 1) << %d)) | (", bits_to_uint(n->lhs_->bit_width_), in visit_assign_expr_node()
320 n->bitop_->bit_width_, n->bitop_->bit_offset_); in visit_assign_expr_node()
370 size_t bit_width = f->bit_width_; in visit_packet_expr_node()
372 bit_offset += f->bit_width_ - (n->bitop_->bit_offset_ + n->bitop_->bit_width_); in visit_packet_expr_node()
373 bit_width = std::min(bit_width - n->bitop_->bit_offset_, n->bitop_->bit_width_); in visit_packet_expr_node()
445 Value *neq_zero = B.CreateICmpNE(pop_expr(), B.getIntN(n->lhs_->bit_width_, 0)); in emit_short_circuit_and()
451 expr_ = B.CreateICmpNE(pop_expr(), B.getIntN(n->rhs_->bit_width_, 0)); in emit_short_circuit_and()
472 Value *neq_zero = B.CreateICmpNE(pop_expr(), B.getIntN(n->lhs_->bit_width_, 0)); in emit_short_circuit_or()
[all …]
Dnode.h147 size_t bit_width_; variable
154 bit_width_ = other.bit_width_; in copy_type()
228 size_t bit_width_; variable
230 : bit_offset_(strtoul(bofs.c_str(), NULL, 0)), bit_width_(strtoul(bsz.c_str(), NULL, 0)) {} in BitopExprNode()
438 size_t bit_width_; variable
443 : id_(move(id)), storage_type_(t), bit_width_(bit_width), bit_offset_(bit_offset), slot_(0) {} in id_()
475 size_t bit_width_; variable
478 : id_(move(id)), stmts_(move(stmts)), bit_width_(0), packed_(false) {} in id_()
Dparser.cc162 FieldType ft = bits_to_enum((*it)->bit_width_); in struct_add()
166 offset += (*it)->bit_width_; in struct_add()
168 struct_decl->bit_width_ = struct_decl->is_packed() ? offset : align_offset(offset, UINT32_T); in struct_add()
Dprinter.cc216 fprintf(out_, ":%zu", n->bit_width_); in visit_integer_variable_decl_stmt_node()