| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| D | mir_lower.cpp | 139 LabelIdx MIRLower::CreateCondGotoStmt(Opcode op, BlockNode &blk, const IfStmtNode &ifStmt) in CreateCondGotoStmt() argument 148 blk.AddStatement(brStmt); in CreateCondGotoStmt() 154 blk.AppendStatementsFromBlock(*ifStmt.GetElsePart()); in CreateCondGotoStmt() 156 blk.AppendStatementsFromBlock(*ifStmt.GetThenPart()); in CreateCondGotoStmt() 161 void MIRLower::CreateBrFalseStmt(BlockNode &blk, const IfStmtNode &ifStmt) in CreateBrFalseStmt() argument 163 LabelIdx labelIdx = CreateCondGotoStmt(OP_brfalse, blk, ifStmt); in CreateBrFalseStmt() 166 blk.AddStatement(lableStmt); in CreateBrFalseStmt() 176 void MIRLower::CreateBrTrueStmt(BlockNode &blk, const IfStmtNode &ifStmt) in CreateBrTrueStmt() argument 178 LabelIdx labelIdx = CreateCondGotoStmt(OP_brtrue, blk, ifStmt); in CreateBrTrueStmt() 181 blk.AddStatement(lableStmt); in CreateBrTrueStmt() [all …]
|
| D | mir_parser.cpp | 232 void MIRParser::ParseStmtBlockForSeenComment(BlockNodePtr blk, uint32 mplNum) in ParseStmtBlockForSeenComment() argument 244 blk->AddStatement(cmnt); in ParseStmtBlockForSeenComment()
|
| D | mir_nodes.cpp | 195 void BlockNode::AppendStatementsFromBlock(BlockNode &blk) in AppendStatementsFromBlock() argument 197 if (blk.GetStmtNodes().empty()) { in AppendStatementsFromBlock() 200 stmtNodeList.splice(stmtNodeList.end(), blk.GetStmtNodes()); in AppendStatementsFromBlock() 217 void BlockNode::ReplaceStmtWithBlock(StmtNode &stmtNode, BlockNode &blk) in ReplaceStmtWithBlock() argument 219 stmtNodeList.splice(&stmtNode, blk.GetStmtNodes()); in ReplaceStmtWithBlock() 221 stmtNode.SetNext(blk.GetLast()->GetNext()); in ReplaceStmtWithBlock()
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | move_constants.cpp | 136 for (auto blk = first_dominator; blk != nullptr; blk = blk->GetDominator()) { in GetDominators() local 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/ |
| D | move_constants.cpp | 150 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/ |
| D | mir_lower.h | 180 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);
|
| D | mir_parser.h | 149 void ParseStmtBlockForSeenComment(BlockNodePtr blk, uint32 mplNum);
|
| D | mir_nodes.h | 2823 void AppendStatementsFromBlock(BlockNode &blk); 2826 void ReplaceStmtWithBlock(StmtNode &stmtNode, BlockNode &blk); 2845 auto *blk = allocator.GetMemPool()->New<BlockNode>(); in CloneTree() local 2846 blk->SetStmtID(stmtIDNext++); in CloneTree() 2852 blk->AddStatement(newStmt); in CloneTree() 2854 return blk; in CloneTree() 2860 auto *blk = allocator.GetMemPool()->New<BlockNode>(); in CloneTreeWithSrcPosition() local 2861 blk->SetStmtID(stmtIDNext++); in CloneTreeWithSrcPosition() 2868 blk->AddStatement(newStmt); in CloneTreeWithSrcPosition() 2870 return blk; in CloneTreeWithSrcPosition()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
| D | lower.cpp | 699 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); in LowerReturnStructUsingFakeParm() local 701 retNode.SetOpnd(LowerExpr(retNode, *retNode.GetNopndAt(i), *blk), i); in LowerReturnStructUsingFakeParm() 727 blk->AddStatement(iassign); in LowerReturnStructUsingFakeParm() 730 blk->AddStatement(&retNode); in LowerReturnStructUsingFakeParm() 731 return blk; in LowerReturnStructUsingFakeParm() 738 BlockNode *blk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); in LowerReturn() local 752 retNode.SetOpnd(LowerExpr(retNode, *retNode.GetNopndAt(i), *blk), i); in LowerReturn() 754 blk->AddStatement(&retNode); in LowerReturn() 755 return blk; in LowerReturn() 894 BaseNode *CGLowerer::LowerRem(BaseNode &expr, BlockNode &blk) in LowerRem() argument [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
| D | cg_phasemanager.cpp | 203 const BlockNode *blk = static_cast<const BlockNode *>(baseNode); in RecursiveMarkUsedStaticSymbol() local 204 for (auto &stmt : blk->GetStmtNodes()) { in RecursiveMarkUsedStaticSymbol()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/ |
| D | lower.h | 221 void LowerAsmStmt(AsmNode *asmNode, BlockNode *blk);
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
| D | constantfold.cpp | 2543 BlockNode *blk = static_cast<BlockNode*>(returnValue); in SimplifyBlock() local 2544 if (blk->IsEmpty()) { in SimplifyBlock() 2547 node->ReplaceStmtWithBlock(*s, *blk); in SimplifyBlock()
|