Searched refs:scopes_ (Results 1 – 10 of 10) sorted by relevance
/external/bcc/src/cc/frontends/b/ |
D | parser.cc | 31 if (scopes_->current_var()->lookup(decl->id_->name_, SCOPE_LOCAL) == NULL) { in variable_exists() 43 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add() 44 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add() 56 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add() 57 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add() 82 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add() 83 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add() 88 if (scopes_->current_state()->lookup(id->full_name(), SCOPE_LOCAL)) { in state_add() 98 scopes_->current_state()->add(state->id_->full_name(), state); in state_add() 99 state->scope_id_ = string("s") + std::to_string(scopes_->current_state()->id_) + string("_"); in state_add() [all …]
|
D | type_check.cc | 32 scopes_->push_var(n->scope_); in visit_block_stmt_node() 39 scopes_->pop_var(); in visit_block_stmt_node() 88 n->decl_ = scopes_->current_var()->lookup(n->name_, SCOPE_GLOBAL); in visit_ident_expr_node() 105 n->struct_type_ = 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() 255 auto table = scopes_->top_table()->lookup(n->id_->name_); in check_lookup_method() 271 auto table = scopes_->top_table()->lookup(n->id_->name_); in check_update_method() 282 auto table = scopes_->top_table()->lookup(n->id_->name_); in check_delete_method() 346 n->table_ = scopes_->top_table()->lookup(n->id_->name_); in visit_table_index_expr_node() 378 type = scopes_->top_struct()->lookup(n->struct_id_->name_, true); in visit_struct_variable_decl_stmt_node() [all …]
|
D | loader.cc | 56 ebpf::cc::TypeCheck type_check(parser_->scopes_.get(), proto_parser_->scopes_.get()); in parse() 63 … = ebpf::make_unique<ebpf::cc::CodegenLLVM>(mod, parser_->scopes_.get(), proto_parser_->scopes_.ge… in parse()
|
D | codegen_llvm.cc | 97 : out_(stdout), mod_(mod), indent_(0), tmp_reg_index_(0), scopes_(scopes), in CodegenLLVM() 119 scopes_->push_var(n->scope_); in visit_block_stmt_node() 127 scopes_->pop_var(); in visit_block_stmt_node() 363 TRY2(lookup_var(n, "skb", scopes_->current_var(), &skb_decl, &skb_mem)); in visit_packet_expr_node() 364 TRY2(lookup_var(n, "$" + n->id_->name_, scopes_->current_var(), &offset_decl, &offset_mem)); in visit_packet_expr_node() 547 auto state = scopes_->current_state()->lookup(n->id_->full_name(), false); in visit_goto_expr_node() 554 state = scopes_->current_state()->lookup("EOP", false); in visit_goto_expr_node() 574 TableDeclStmtNode* table = scopes_->top_table()->lookup(n->id_->name_); in emit_table_lookup() 617 TableDeclStmtNode* table = scopes_->top_table()->lookup(n->id_->name_); in emit_table_update() 648 TableDeclStmtNode* table = scopes_->top_table()->lookup(n->id_->name_); in emit_table_delete() [all …]
|
D | type_check.h | 30 : scopes_(scopes), proto_scopes_(proto_scopes) {} in TypeCheck() 43 Scopes *scopes_;
|
D | parser.h | 34 : root_node_(NULL), scopes_(new Scopes), in_(infile), lexer(&in_), parser(lexer, *this) { in Parser() 59 Scopes::Ptr scopes_; variable
|
D | parser.yy | 215 enter_varscope : /* empty */ { $$ = parser.scopes_->enter_var_scope(); } ; 216 exit_varscope : /* emtpy */ { $$ = parser.scopes_->exit_var_scope(); } ; 217 enter_statescope : /* empty */ { $$ = parser.scopes_->enter_state_scope(); } ; 218 exit_statescope : /* emtpy */ { $$ = parser.scopes_->exit_state_scope(); } ;
|
D | codegen_llvm.h | 116 Scopes *scopes_; variable
|
/external/fonttools/Lib/fontTools/voltLib/ |
D | parser.py | 609 self.scopes_ = [{}] 612 self.scopes_.append({}) 615 self.scopes_.pop() 618 self.scopes_[-1][name] = item 621 for scope in reversed(self.scopes_): 634 self.scopes_ = [OrderedDict()] 637 self.scopes_.append(OrderedDict()) 643 for scope in reversed(self.scopes_):
|
/external/fonttools/Lib/fontTools/feaLib/ |
D | parser.py | 1684 self.scopes_ = [{}] 1687 self.scopes_.append({}) 1690 self.scopes_.pop() 1693 self.scopes_[-1][name] = item 1696 for scope in reversed(self.scopes_):
|