Searched refs:top_struct (Results 1 – 4 of 4) sorted by relevance
/external/bcc/src/cc/frontends/b/ |
D | type_check.cc | 102 n->struct_type_ = proto_scopes_->top_struct()->lookup(sdecl->struct_id_->name_, true); in visit_ident_expr_node() 105 n->struct_type_ = scopes_->top_struct()->lookup(sdecl->struct_id_->name_, true); in visit_ident_expr_node() 116 n->struct_type_ = proto_scopes_->top_struct()->lookup(sdecl->struct_id_->name_, true); in visit_ident_expr_node() 119 n->struct_type_ = scopes_->top_struct()->lookup(sdecl->struct_id_->name_, true); in visit_ident_expr_node() 158 StructDeclStmtNode *struct_type = proto_scopes_->top_struct()->lookup(n->id_->name_, true); in visit_packet_expr_node() 376 type = proto_scopes_->top_struct()->lookup(n->struct_id_->name_, true); in visit_struct_variable_decl_stmt_node() 378 type = scopes_->top_struct()->lookup(n->struct_id_->name_, true); in visit_struct_variable_decl_stmt_node() 442 auto p = proto_scopes_->top_struct()->lookup(n->id_->name_, true); in visit_state_decl_stmt_node() 513 n->key_type_ = scopes_->top_struct()->lookup(n->key_id()->name_, true); in visit_table_decl_stmt_node() 517 n->leaf_type_ = scopes_->top_struct()->lookup(n->leaf_id()->name_, true); in visit_table_decl_stmt_node()
|
D | parser.cc | 150 if (scopes_->top_struct()->lookup(type->name_, SCOPE_LOCAL) != NULL) { in struct_add() 170 scopes_->top_struct()->add(type->name_, struct_decl); in struct_add()
|
D | codegen_llvm.cc | 360 auto p = proto_scopes_->top_struct()->lookup(n->id_->name_, true); in visit_packet_expr_node() 1085 auto key = scopes_->top_struct()->lookup(n->key_id()->name_, /*search_local*/true); in visit_table_decl_stmt_node() 1087 auto leaf = scopes_->top_struct()->lookup(n->leaf_id()->name_, /*search_local*/true); in visit_table_decl_stmt_node() 1139 type = proto_scopes_->top_struct()->lookup(var->struct_id_->name_, true); in lookup_struct_type() 1141 type = scopes_->top_struct()->lookup(var->struct_id_->name_, true); in lookup_struct_type() 1278 for (auto it = scopes_->top_struct()->obegin(); it != scopes_->top_struct()->oend(); ++it) { in print_header() 1283 …for (auto it = proto_scopes_->top_struct()->obegin(); it != proto_scopes_->top_struct()->oend(); +… in print_header()
|
D | scope.h | 163 StructScope* top_struct() const { return top_struct_scope_; } in top_struct() function
|