Home
last modified time | relevance | path

Searched refs:blk (Results 1 - 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dmir_lower.cpp122 LabelIdx MIRLower::CreateCondGotoStmt(Opcode op, BlockNode &blk, const IfStmtNode &ifStmt) in CreateCondGotoStmt() argument
131 blk.AddStatement(brStmt); in CreateCondGotoStmt()
137 blk.AppendStatementsFromBlock(*ifStmt.GetElsePart()); in CreateCondGotoStmt()
139 blk.AppendStatementsFromBlock(*ifStmt.GetThenPart()); in CreateCondGotoStmt()
144 void MIRLower::CreateBrFalseStmt(BlockNode &blk, const IfStmtNode &ifStmt) in CreateBrFalseStmt() argument
146 LabelIdx labelIdx = CreateCondGotoStmt(OP_brfalse, blk, ifStmt); in CreateBrFalseStmt()
149 blk.AddStatement(lableStmt); in CreateBrFalseStmt()
159 void MIRLower::CreateBrTrueStmt(BlockNode &blk, const IfStmtNode &ifStmt) in CreateBrTrueStmt() argument
161 LabelIdx labelIdx = CreateCondGotoStmt(OP_brtrue, blk, ifStmt); in CreateBrTrueStmt()
164 blk in CreateBrTrueStmt()
174 CreateBrFalseAndGotoStmt(BlockNode &blk, const IfStmtNode &ifStmt) CreateBrFalseAndGotoStmt() argument
222 auto *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); LowerIfStmt() local
277 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); LowerSwitchStmt() local
287 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); LowerSwitchStmt() local
372 LowerEmbeddedCandCior(BaseNode *x, StmtNode *curstmt, BlockNode *blk) LowerEmbeddedCandCior() argument
[all...]
H A Dmir_nodes.cpp60 void BlockNode::AppendStatementsFromBlock(BlockNode &blk) in AppendStatementsFromBlock() argument
62 if (blk.GetStmtNodes().empty()) { in AppendStatementsFromBlock()
65 stmtNodeList.splice(stmtNodeList.end(), blk.GetStmtNodes()); in AppendStatementsFromBlock()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
H A Dmove_constants.cpp136 for (auto blk = first_dominator; blk != nullptr; blk = blk->GetDominator()) { in GetDominators()
137 dominators.push_back(blk); in GetDominators()
158 auto blk = (*blocks)[blocks->size() - i - 1]; in FindCommonDominator() local
160 common_dominator_candidate = blk; in FindCommonDominator()
163 if (common_dominator_candidate != blk) { in FindCommonDominator()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dmove_constants.cpp162 for (auto blk = firstDominator; blk != nullptr; blk = blk->GetDominator()) { in GetDominators()
163 dominators.push_back(blk); in GetDominators()
184 auto blk = (*blocks)[blocks->size() - i - 1]; in FindCommonDominator() local
186 commonDominatorCandidate = blk; in FindCommonDominator()
189 if (commonDominatorCandidate != blk) { in FindCommonDominator()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmir_lower.h156 LabelIdx CreateCondGotoStmt(Opcode op, BlockNode &blk, const IfStmtNode &ifStmt);
157 void CreateBrFalseStmt(BlockNode &blk, const IfStmtNode &ifStmt);
158 void CreateBrTrueStmt(BlockNode &blk, const IfStmtNode &ifStmt);
159 void CreateBrFalseAndGotoStmt(BlockNode &blk, const IfStmtNode &ifStmt);
H A Dmir_nodes.h1777 void AppendStatementsFromBlock(BlockNode &blk);
1796 auto *blk = allocator.GetMemPool()->New<BlockNode>();
1797 blk->SetStmtID(stmtIDNext++);
1803 blk->AddStatement(newStmt);
1805 return blk;
1811 auto *blk = allocator.GetMemPool()->New<BlockNode>();
1812 blk->SetStmtID(stmtIDNext++);
1819 blk->AddStatement(newStmt);
1821 return blk;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
H A Dlower.cpp46 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); in LowerReturnStructUsingFakeParm() local
48 retNode.SetOpnd(LowerExpr(retNode, *retNode.GetNopndAt(i), *blk), i); in LowerReturnStructUsingFakeParm()
72 blk->AddStatement(iassign); in LowerReturnStructUsingFakeParm()
75 blk->AddStatement(&retNode); in LowerReturnStructUsingFakeParm()
76 return blk; in LowerReturnStructUsingFakeParm()
83 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); in LowerReturn() local
97 retNode.SetOpnd(LowerExpr(retNode, *retNode.GetNopndAt(i), *blk), i); in LowerReturn()
99 blk->AddStatement(&retNode); in LowerReturn()
100 return blk; in LowerReturn()
241 BlockNode *blk in GenBlockNode() local
437 BlockNode *blk = switchLowerer.LowerSwitch(); LowerBlock() local
[all...]

Completed in 8 milliseconds