Searched refs:BlockStmtNode (Results 1 – 7 of 7) sorted by relevance
/external/bcc/src/cc/frontends/b/ |
D | parser.cc | 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 …state_add(Scopes::StateScope *scope, IdentExprNode *id1, IdentExprNode *id2, BlockStmtNode *body) { 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() 174 StmtNode * Parser::result_add(int token, IdentExprNode *id, FormalList *formals, BlockStmtNode *bod… in result_add() 178 … stmt = new MatchDeclStmtNode(IdentExprNode::Ptr(id), move(*formals), BlockStmtNode::Ptr(body)); in result_add() 181 stmt = new MissDeclStmtNode(IdentExprNode::Ptr(id), move(*formals), BlockStmtNode::Ptr(body)); in result_add() 184 … stmt = new FailureDeclStmtNode(IdentExprNode::Ptr(id), move(*formals), BlockStmtNode::Ptr(body)); in result_add() 193 IdentExprNode *id, FormalList *formals, BlockStmtNode *body) { in func_add() [all …]
|
D | node.h | 74 EXPAND(BlockStmtNode, block_stmt_node) \ 332 class BlockStmtNode : public StmtNode { 334 DECLARE(BlockStmtNode) in DECLARE() argument 336 explicit BlockStmtNode(StmtNodeList stmts = StmtNodeList()) in DECLARE() 338 ~BlockStmtNode() { delete scope_; } in ~BlockStmtNode() 349 BlockStmtNode::Ptr block_; 351 : id_(move(id)), args_(move(args)), block_(make_unique<BlockStmtNode>()) { in MethodCallExprNode() 414 BlockStmtNode::Ptr block_; 415 SwitchStmtNode(ExprNode::Ptr cond, BlockStmtNode::Ptr block) in SwitchStmtNode() 423 BlockStmtNode::Ptr block_; [all …]
|
D | parser.h | 45 StmtNode * state_add(Scopes::StateScope *scope, IdentExprNode *id1, BlockStmtNode *body); 46 … state_add(Scopes::StateScope *scope, IdentExprNode *id1, IdentExprNode *id2, BlockStmtNode *body); 48 IdentExprNode *id, FormalList *formals, BlockStmtNode *body); 51 StmtNode * result_add(int token, IdentExprNode *id, FormalList *formals, BlockStmtNode *body);
|
D | parser.yy | 56 BlockStmtNode *block; 139 { $$ = new BlockStmtNode; $$->stmts_.push_back(StmtNode::Ptr($1)); } 162 { $$ = new BlockStmtNode; parser.add_pragma(*$2, *$3); delete $2; delete $3; } 164 { $$ = new BlockStmtNode; parser.add_pragma(*$2, *$3); delete $2; delete $3; } 208 { $$ = new BlockStmtNode; $$->stmts_ = move(*$2); delete $2; 211 { $$ = new BlockStmtNode; 399 { $$ = new SwitchStmtNode(ExprNode::Ptr($2), make_unique<BlockStmtNode>(move(*$4))); delete $4; 412 { $$ = new CaseStmtNode(IntegerExprNode::Ptr($2), BlockStmtNode::Ptr($3)); 415 { $$ = new CaseStmtNode(BlockStmtNode::Ptr($3));
|
D | type_check.cc | 29 StatusTuple TypeCheck::visit_block_stmt_node(BlockStmtNode *n) { in visit_block_stmt_node() 546 BlockStmtNode *b = static_cast<BlockStmtNode*>(root); in visit()
|
D | printer.cc | 28 StatusTuple Printer::visit_block_stmt_node(BlockStmtNode* n) { in visit_block_stmt_node()
|
D | codegen_llvm.cc | 115 StatusTuple CodegenLLVM::visit_block_stmt_node(BlockStmtNode *n) { in visit_block_stmt_node()
|