Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_lower.cpp138 LabelIdx MIRLower::CreateCondGotoStmt(Opcode op, BlockNode &blk, const IfStmtNode &ifStmt) in CreateCondGotoStmt() argument
146 blk.AddStatement(brStmt); in CreateCondGotoStmt()
152 blk.AppendStatementsFromBlock(*ifStmt.GetElsePart()); in CreateCondGotoStmt()
154 blk.AppendStatementsFromBlock(*ifStmt.GetThenPart()); in CreateCondGotoStmt()
159 void MIRLower::CreateBrFalseStmt(BlockNode &blk, const IfStmtNode &ifStmt) in CreateBrFalseStmt() argument
161 LabelIdx labelIdx = CreateCondGotoStmt(OP_brfalse, blk, ifStmt); in CreateBrFalseStmt()
164 blk.AddStatement(lableStmt); in CreateBrFalseStmt()
174 void MIRLower::CreateBrTrueStmt(BlockNode &blk, const IfStmtNode &ifStmt) in CreateBrTrueStmt() argument
176 LabelIdx labelIdx = CreateCondGotoStmt(OP_brtrue, blk, ifStmt); in CreateBrTrueStmt()
179 blk.AddStatement(lableStmt); in CreateBrTrueStmt()
[all …]
Dmir_parser.cpp1935 bool MIRParser::ParseStmtBlock(BlockNodePtr &blk) in ParseStmtBlock() argument
1941 blk = mod.CurFuncCodeMemPool()->New<BlockNode>(); in ParseStmtBlock()
1951 blk->AddStatement(stmtt); in ParseStmtBlock()
1958 ParseStmtBlockForSeenComment(blk, mplNum); in ParseStmtBlock()
1965 blk->AddStatement(stmt); in ParseStmtBlock()
1971 ParseStmtBlockForSeenComment(blk, mplNum); in ParseStmtBlock()
1987 void MIRParser::ParseStmtBlockForSeenComment(BlockNodePtr blk, uint32 mplNum) in ParseStmtBlockForSeenComment() argument
1999 blk->AddStatement(cmnt); in ParseStmtBlockForSeenComment()
Dmir_nodes.cpp199 void BlockNode::AppendStatementsFromBlock(BlockNode &blk) in AppendStatementsFromBlock() argument
201 if (blk.GetStmtNodes().empty()) { in AppendStatementsFromBlock()
204 stmtNodeList.splice(stmtNodeList.end(), blk.GetStmtNodes()); in AppendStatementsFromBlock()
221 void BlockNode::ReplaceStmtWithBlock(StmtNode &stmtNode, BlockNode &blk) in ReplaceStmtWithBlock() argument
223 stmtNodeList.splice(&stmtNode, blk.GetStmtNodes()); in ReplaceStmtWithBlock()
225 stmtNode.SetNext(blk.GetLast()->GetNext()); in ReplaceStmtWithBlock()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dmove_constants.cpp137 for (auto blk = first_dominator; blk != nullptr; blk = blk->GetDominator()) { in GetDominators() local
138 dominators.push_back(blk); in GetDominators()
159 auto blk = (*blocks)[blocks->size() - i - 1]; in FindCommonDominator() local
161 common_dominator_candidate = blk; in FindCommonDominator()
164 if (common_dominator_candidate != blk) { in FindCommonDominator()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dmove_constants.cpp150 for (auto blk = firstDominator; blk != nullptr; blk = blk->GetDominator()) { in GetDominators() local
151 dominators.push_back(blk); in GetDominators()
172 auto blk = (*blocks)[blocks->size() - i - 1]; in FindCommonDominator() local
174 commonDominatorCandidate = blk; in FindCommonDominator()
177 if (commonDominatorCandidate != blk) { in FindCommonDominator()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dmir_lower.h180 LabelIdx CreateCondGotoStmt(Opcode op, BlockNode &blk, const IfStmtNode &ifStmt);
181 void CreateBrFalseStmt(BlockNode &blk, const IfStmtNode &ifStmt);
182 void CreateBrTrueStmt(BlockNode &blk, const IfStmtNode &ifStmt);
183 void CreateBrFalseAndGotoStmt(BlockNode &blk, const IfStmtNode &ifStmt);
Dmir_parser.h101 bool ParseStmtBlock(BlockNodePtr &blk);
289 void ParseStmtBlockForSeenComment(BlockNodePtr blk, uint32 mplNum);
Dmir_nodes.h2804 void AppendStatementsFromBlock(BlockNode &blk);
2807 void ReplaceStmtWithBlock(StmtNode &stmtNode, BlockNode &blk);
2826 auto *blk = allocator.GetMemPool()->New<BlockNode>(); in CloneTree() local
2827 blk->SetStmtID(stmtIDNext++); in CloneTree()
2833 blk->AddStatement(newStmt); in CloneTree()
2835 return blk; in CloneTree()
2841 auto *blk = allocator.GetMemPool()->New<BlockNode>(); in CloneTreeWithSrcPosition() local
2842 blk->SetStmtID(stmtIDNext++); in CloneTreeWithSrcPosition()
2849 blk->AddStatement(newStmt); in CloneTreeWithSrcPosition()
2851 return blk; in CloneTreeWithSrcPosition()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
Dlower.cpp887 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); in LowerReturnStructUsingFakeParm() local
889 retNode.SetOpnd(LowerExpr(retNode, *retNode.GetNopndAt(i), *blk), i); in LowerReturnStructUsingFakeParm()
919 blk->AddStatement(iassign); in LowerReturnStructUsingFakeParm()
922 blk->AddStatement(&retNode); in LowerReturnStructUsingFakeParm()
923 return blk; in LowerReturnStructUsingFakeParm()
930 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); in LowerReturn() local
944 retNode.SetOpnd(LowerExpr(retNode, *retNode.GetNopndAt(i), *blk), i); in LowerReturn()
946 blk->AddStatement(&retNode); in LowerReturn()
947 return blk; in LowerReturn()
1074 BaseNode *CGLowerer::LowerRem(BaseNode &expr, BlockNode &blk) in LowerRem() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/
Dlower.h176 …bool LowerStructReturn(BlockNode &blk, StmtNode *stmt, StmtNode *&nextStmt, bool &lvar, BlockNode …
219 void LowerAsmStmt(AsmNode *asmNode, BlockNode *blk);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Dcg_phasemanager.cpp192 const BlockNode *blk = static_cast<const BlockNode *>(baseNode); in RecursiveMarkUsedStaticSymbol() local
193 for (auto &stmt : blk->GetStmtNodes()) { in RecursiveMarkUsedStaticSymbol()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
Dconstantfold.cpp2450 BlockNode *blk = static_cast<BlockNode *>(returnValue); in SimplifyBlock() local
2451 node->ReplaceStmtWithBlock(*s, *blk); in SimplifyBlock()