Searched refs:IdentExprNode (Results 1 – 7 of 7) sorted by relevance
/external/bcc/src/cc/frontends/b/ |
D | node.h | 59 EXPAND(IdentExprNode, ident_expr_node) \ 164 class IdentExprNode : public ExprNode { 166 DECLARE(IdentExprNode) 173 IdentExprNode(const IdentExprNode& other) { in IdentExprNode() function 180 IdentExprNode::Ptr copy() const { in copy() 181 return IdentExprNode::Ptr(new IdentExprNode(*this)); in copy() 183 explicit IdentExprNode(const string& id) : name_(id) {} in IdentExprNode() function 184 explicit IdentExprNode(const char* id) : name_(id) {} in IdentExprNode() function 233 typedef vector<IdentExprNode::Ptr> IdentExprNodeList; 242 AssignExprNode(IdentExprNode::Ptr id, ExprNode::Ptr rhs) in AssignExprNode() [all …]
|
D | parser.cc | 67 auto id = static_cast<IdentExprNode *>(n->lhs_.get()); in variable_add() 87 StmtNode *Parser::state_add(Scopes::StateScope *scope, IdentExprNode *id, BlockStmtNode *body) { in state_add() 93 auto state = new StateDeclStmtNode(IdentExprNode::Ptr(id), BlockStmtNode::Ptr(body)); in state_add() 104 StmtNode *Parser::state_add(Scopes::StateScope *scope, IdentExprNode *id1, IdentExprNode *id2, Bloc… in state_add() 107 …state = new StateDeclStmtNode(IdentExprNode::Ptr(id1), IdentExprNode::Ptr(id2), BlockStmtNode::Ptr… in state_add() 120 state->subs_.push_back(StateDeclStmtNode::Sub(IdentExprNode::Ptr(id2), BlockStmtNode::Ptr(body), in state_add() 135 StmtNode *Parser::table_add(IdentExprNode *type, IdentExprNodeList *templates, in table_add() 136 IdentExprNode *id, string *size) { in table_add() 137 auto table = new TableDeclStmtNode(IdentExprNode::Ptr(type), in table_add() 139 IdentExprNode::Ptr(id), size); in table_add() [all …]
|
D | parser.h | 45 StmtNode * state_add(Scopes::StateScope *scope, IdentExprNode *id1, BlockStmtNode *body); 46 …StmtNode * state_add(Scopes::StateScope *scope, IdentExprNode *id1, IdentExprNode *id2, BlockStmtN… 48 IdentExprNode *id, FormalList *formals, BlockStmtNode *body); 49 …StmtNode * table_add(IdentExprNode *type, IdentExprNodeList *templates, IdentExprNode *id, string … 50 StmtNode * struct_add(IdentExprNode *type, FormalList *formals); 51 StmtNode * result_add(int token, IdentExprNode *id, FormalList *formals, BlockStmtNode *body);
|
D | parser.yy | 60 IdentExprNode *ident; 202 { $$ = new MethodCallExprNode(IdentExprNode::Ptr($1), move(*$3), lexer.lineno()); delete $3; 241 { $$ = new IdentExprNodeList; $$->push_back(IdentExprNode::Ptr($1)); } 243 { $$->push_back(IdentExprNode::Ptr($3)); } 252 { $$ = parser.state_add($5, $2, new IdentExprNode(""), $7); $7->scope_ = $6; 334 { $$ = new IntegerVariableDeclStmtNode(IdentExprNode::Ptr($1), *$3); delete $3; 339 { $$ = new StructVariableDeclStmtNode(IdentExprNode::Ptr($1), IdentExprNode::Ptr($2)); 346 { $$ = new StructVariableDeclStmtNode(IdentExprNode::Ptr($1), IdentExprNode::Ptr($3), 364 { $$ = new AssignExprNode(IdentExprNode::Ptr($2), ExprNode::Ptr($4)); 367 …{ $$ = new AssignExprNode(IdentExprNode::Ptr($2), ExprNode::Ptr($5)); $$->bitop_ = BitopExprNode::… [all …]
|
D | type_check.cc | 87 StatusTuple TypeCheck::visit_ident_expr_node(IdentExprNode *n) { in visit_ident_expr_node() 261 …unique<StructVariableDeclStmtNode>(table->leaf_id()->copy(), make_unique<IdentExprNode>("_result"), in check_lookup_method() 386 auto id = static_cast<IdentExprNode *>(asn->lhs_.get()); in visit_struct_variable_decl_stmt_node() 391 auto id = make_unique<IdentExprNode>(n->id_->name_); in visit_struct_variable_decl_stmt_node() 431 …auto offset_var = make_unique<IntegerVariableDeclStmtNode>(make_unique<IdentExprNode>("$" + name),… in visit_state_decl_stmt_node() 445 auto asn1 = make_unique<AssignExprNode>(make_unique<IdentExprNode>("$" + n->id_->name_), in visit_state_decl_stmt_node() 446 make_unique<IdentExprNode>("parsed_bytes")); in visit_state_decl_stmt_node() 448 … auto add_expr = make_unique<BinopExprNode>(make_unique<IdentExprNode>("parsed_bytes"), Tok::TPLUS, in visit_state_decl_stmt_node() 450 …auto asn2 = make_unique<AssignExprNode>(make_unique<IdentExprNode>("parsed_bytes"), move(add_expr)… in visit_state_decl_stmt_node() 569 make_unique<IdentExprNode>("parsed_bytes"), "64"); in visit()
|
D | codegen_llvm.cc | 242 StatusTuple CodegenLLVM::visit_ident_expr_node(IdentExprNode *n) { in visit_ident_expr_node() 575 IdentExprNode* arg0 = static_cast<IdentExprNode*>(n->args_.at(0).get()); in emit_table_lookup() 576 IdentExprNode* arg1; in emit_table_lookup() 599 arg1 = static_cast<IdentExprNode*>(n->args_.at(1).get()); in emit_table_lookup() 618 IdentExprNode* arg0 = static_cast<IdentExprNode*>(n->args_.at(0).get()); in emit_table_update() 619 IdentExprNode* arg1 = static_cast<IdentExprNode*>(n->args_.at(1).get()); in emit_table_update() 649 IdentExprNode* arg0 = static_cast<IdentExprNode*>(n->args_.at(0).get()); in emit_table_delete()
|
D | printer.cc | 87 StatusTuple Printer::visit_ident_expr_node(IdentExprNode* n) { in visit_ident_expr_node()
|